[Git][debian-gis-team/asf-search][upstream] New upstream version 12.0.6
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Sat Mar 28 18:52:39 GMT 2026
Antonio Valentino pushed to branch upstream at Debian GIS Project / asf-search
Commits:
d70e44c8 by Antonio Valentino at 2026-03-28T18:49:09+00:00
New upstream version 12.0.6
- - - - -
5 changed files:
- CHANGELOG.md
- asf_search/CMR/translate.py
- asf_search/__init__.py
- + asf_search/utils/NISAR.py
- + asf_search/utils/__init__.py
Changes:
=====================================
CHANGELOG.md
=====================================
@@ -25,12 +25,22 @@ and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-
-->
+------
+## [v12.0.6](https://github.com/asfadmin/Discovery-asf_search/compare/v12.0.5...v12.0.6)
+### Added
+- `utils` module added as top level module
+ - `get_nisar_orbit_ephemeras()` method returns dictionary with latest `NISAR` `POE`, `MOE`, `NOE`, and `FOE` orbit ephemeras
+
+### Fixed
+- Fix track based searches when `processingLevel` specified on `NISAR` dataset searches
+
------
## [v12.0.5](https://github.com/asfadmin/Discovery-asf_search/compare/v12.0.4...v12.0.5)
### Added
- DIST-ALERT-S1 product type to OPERA dataset
- TileID searchable attribute
- productVersion attribute
+
### Fixed
- Fix edge-case with `platform` & `processingLevel` concept-id aliasing
=====================================
asf_search/CMR/translate.py
=====================================
@@ -16,13 +16,14 @@ try:
except ImportError:
from dateutil.parser import parse as parse_datetime
-
+nisar_collections_set = set(collections_per_platform['NISAR'])
def translate_opts(opts: ASFSearchOptions) -> List:
# Need to add params which ASFSearchOptions cant support (like temporal),
# so use a dict to avoid the validate_params logic:
dict_opts = dict(opts)
- should_use_track = False
+ should_use_track = not set(dict_opts.get('collections', [])).isdisjoint(nisar_collections_set)
+
if dict_opts.get('processingLevel') is not None: # Certain products are now using PRODUCT_TYPE instead of PROCESSING_LEVEL
processingType = dict_opts.get('processingLevel', [])[0]
if processingType in NISAR_PRODUCT_TYPES:
=====================================
asf_search/__init__.py
=====================================
@@ -55,6 +55,7 @@ from .baseline import * # noqa: F403 F401 E402
from .WKT import validate_wkt # noqa: F401 E402
from .export import * # noqa: F403 F401 E402
from .Pair import Pair # noqa: F401, E402
+from . import utils # noqa: F401, E402
REPORT_ERRORS = True
"""Enables automatic search error reporting to ASF, send any questions to uso at asf.alaska.edu"""
=====================================
asf_search/utils/NISAR.py
=====================================
@@ -0,0 +1,23 @@
+from asf_search.constants import PRODUCT_TYPE
+from asf_search.search import search
+from asf_search import ASFSearchOptions
+from copy import copy
+
+
+def get_nisar_orbit_ephemeras(opts: ASFSearchOptions | None = None):
+ """Returns a dictionary of the latest NISAR orbit ephemera products (`POE`, `MOE`, `NOE`, and `FOE`).
+ Additional options may be specified to pass to search.
+
+ For more information refer to the NISAR Data User Guide:
+ https://nisar-docs.asf.alaska.edu/orbit-ephemeris/#tbl-nisar-orbit-ephemeris-characteristics
+ """
+ opts = ASFSearchOptions() if opts is None else copy(opts)
+
+ opts.shortName = 'NISAR_OE'
+ opts.maxResults = 1
+
+ orbits = {}
+ for processingLevel in [PRODUCT_TYPE.POE, PRODUCT_TYPE.MOE, PRODUCT_TYPE.NOE, PRODUCT_TYPE.FOE]:
+ orbits[processingLevel] = search(opts=opts, processingLevel=processingLevel)[0]
+
+ return orbits
=====================================
asf_search/utils/__init__.py
=====================================
@@ -0,0 +1 @@
+from .NISAR import get_nisar_orbit_ephemeras # noqa: F401
View it on GitLab: https://salsa.debian.org/debian-gis-team/asf-search/-/commit/d70e44c8ad0f8c166cfbff3c85f5e41a9caebcc9
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/asf-search/-/commit/d70e44c8ad0f8c166cfbff3c85f5e41a9caebcc9
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20260328/98b839ac/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list