NASA-IMPACT / csdap-cumulus

SmallSat Cumulus Deployment
Other
1 stars 1 forks source link

Define Data Management items for WV02_MSI_L2A Maxar collection #391

Closed jsrikish closed 1 week ago

jsrikish commented 1 month ago

Obtain the collection short name for the WV02_MSI_L2A Maxar collection and define the corresponding Cumulus Data Management Items according to the instructions in the section "Defining Cumulus Data Management Items" in docs/OPERATING.md.

Acceptance criteria:

DOTENV=.env  make create-data-management-items
jsrikish commented 3 weeks ago

Restore files from GLACIER DAG had to be modified for Level 2A collection https://github.com/NASA-IMPACT/csda-self-managed-airflow/pull/117 and 115,116

MAXAR_CONVERSION DAG errored out with the following message: Error reading dynamodb: An error occurred (ValidationException) when calling the BatchGetItem operation: Provided list of item keys contains duplicates for item {}

Abdelhak helped us in debugging the code; Madhu submitted the PR to change the regex to grab only the xml extension instead of all extensions Madhu made edits to the code maxar_conversion/dags.py (line 74 - regex) https://github.com/NASA-IMPACT/csda-self-managed-airflow/pull/119

jsrikish commented 3 weeks ago

MAXAR_CONVERSION DAG still has an error: Error converting s3://csdap-maxar-delivery/css/nga/WV02/2A/2009/322/WV02_1030010002A94100_X2AS_052511027010_01/WV02_20091118022744_1030010002A94100_09NOV18022744-M2AS-052511027010_01_P002.xml: 'LV2A'

In UMM-G_writer.py code the following variables are hardcoded: PROJECT_SHORTNAME = "CSDA" METADATA_SPEC = "UMM-G" METADATA_SPEC_VERSION = "1.6.4" PRODUCT_LEVEL_NAME = {"LV1B": "L1B"} FORMAT_TYPE = "NATIVE" CHECHSUM_ALGORITHM = "SHA-256"

Do we change the code to include other product names, umm-g version etc? Madhu and I need to have a discussion with Helen to proceed with the changes.

jsrikish commented 2 weeks ago

In the sandbox, cumulus rules run failed-CopytoArchive step with the following message: On instance:", " {'errorMessage': 'An error occurred (AccessDenied) when calling the '", " 'CopyObject operation: Access Denied',", " 'errorType': 'ClientError',", " 'requestId': '3f1b8bd2-ad06-49d5-b4f1-126f553a7fef',", " 'stackTrace': [' File '", " '\"/var/task/aws_lambda_powertools/logging/logger.py\", '", " 'line 358, in decorate\n'", " ' return lambda_handler(event, context, *args, '", " '**kwargs)\n',", " ' File \"/var/task/copy_to_archive.py\", line 485, in '", " 'handler\n'", " ' result = task(event[EVENT_INPUT_KEY], '", " 'event[EVENT_CONFIG_KEY])\n',", " ' File \"/var/task/copy_to_archive.py\", line 262, in '", " 'task\n'", " ' result = copy_granule_between