[Git][debian-gis-team/asf-search][upstream] New upstream version 10.0.1
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Fri Aug 22 06:37:25 BST 2025
Antonio Valentino pushed to branch upstream at Debian GIS Project / asf-search
Commits:
89707d13 by Antonio Valentino at 2025-08-22T05:32:19+00:00
New upstream version 10.0.1
- - - - -
3 changed files:
- CHANGELOG.md
- asf_search/Products/NISARProduct.py
- asf_search/export/jsonlite.py
Changes:
=====================================
CHANGELOG.md
=====================================
@@ -26,6 +26,10 @@ and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-->
------
+## [v10.0.1](https://github.com/asfadmin/Discovery-asf_search/compare/v10.0.0...v10.0.1)
+### Added
+- adds NISAR file sizes to the `nisar` attribute of exports
+------
## [v10.0.0](https://github.com/asfadmin/Discovery-asf_search/compare/v9.0.9...v10.0.0)
### Added
- adds `asf-enumeration` package as optional dependency (installable via `pip install asf-search[asf-enumeration]`)
=====================================
asf_search/Products/NISARProduct.py
=====================================
@@ -22,6 +22,7 @@ class NISARProduct(ASFStackableProduct):
'rangeBandwidth': {'path': ['AdditionalAttributes', ('Name', 'RANGE_BANDWIDTH_CONCAT'), 'Values']},
'productionConfiguration': {'path': ['AdditionalAttributes', ('Name', 'PRODUCTION_PIPELINE'), 'Values', 0]},
'processingLevel': {'path': ['AdditionalAttributes', ('Name', 'PRODUCT_TYPE'), 'Values', 0]},
+ 'bytes': {'path': ['DataGranule', 'ArchiveAndDistributionInformation']},
}
def __init__(self, args: Dict = {}, session: ASFSession = ASFSession()):
super().__init__(args, session)
@@ -34,6 +35,10 @@ class NISARProduct(ASFStackableProduct):
if self.properties.get('groupID') is None:
self.properties['groupID'] = self.properties['sceneName']
+ self.properties['bytes'] = {
+ entry['Name']: {'bytes': entry['SizeInBytes'], 'format': entry['Format']}
+ for entry in self.properties['bytes']
+ }
@staticmethod
def get_default_baseline_product_type() -> Union[str, None]:
=====================================
asf_search/export/jsonlite.py
=====================================
@@ -245,6 +245,7 @@ class JSONLiteStreamArray(list):
'frameCoverage': p.get('frameCoverage'),
'jointObservation': p.get('jointObservation'),
'rangeBandwidth': p.get('rangeBandwidth'),
+ 'sizeMB': p.get('bytes'),
}
elif result.get('productID', result.get('fileName', '')).startswith('S1-GUNW'):
result.pop("perpendicularBaseline", None)
View it on GitLab: https://salsa.debian.org/debian-gis-team/asf-search/-/commit/89707d13c633556b6979f081873b1e21ee72207c
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/asf-search/-/commit/89707d13c633556b6979f081873b1e21ee72207c
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/20250822/beea421f/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list