JIRA ticket https://bugs.earthdata.nasa.gov/browse/PCESA-3335
When doing some testing, I noticed that the collection_version field in the DynamoDB tables is empty. It looks like the collection_version variable is never set in the code that reads data from the shapefile name:
|
collection = "" |
|
collection_version = "" |
|
|
|
for table_info in constants.TABLE_COLLECTION_INFO: |
|
if (table_info['feature_type'] in filename) & (table_info['collection_name'] in filepath): |
|
collection = table_info['collection_name'] |
|
|
|
filename_attrs = { |
|
'cycle_id': filename_components[5], |
|
'pass_id': filename_components[6], |
|
'continent_id': filename_components[7], |
|
'range_start_time': datetime.strptime( |
|
filename_components[8], |
|
'%Y%m%dT%H%M%S').strftime('%Y-%m-%dT%H:%M:%SZ'), |
|
'range_end_time': datetime.strptime( |
|
filename_components[9], |
|
'%Y%m%dT%H%M%S').strftime('%Y-%m-%dT%H:%M:%SZ'), |
|
'crid': filename_components[10], |
|
'collection_shortname': collection, |
|
'collection_version': collection_version, |
|
'granuleUR': filename, |
|
'ingest_time': datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ") |
|
} |
JIRA ticket https://bugs.earthdata.nasa.gov/browse/PCESA-3335
When doing some testing, I noticed that the
collection_versionfield in the DynamoDB tables is empty. It looks like thecollection_versionvariable is never set in the code that reads data from the shapefile name:hydrocron/hydrocron/db/io/swot_shp.py
Lines 227 to 249 in efa0e3b