nasa / opera-sds-pge

Observational Products for End-Users from Remote Sensing Analysis (OPERA)
Apache License 2.0
16 stars 6 forks source link

[Bug]: InputGranules Metadata Field in DSWx-S1 Product Metadata has TMI #461

Closed riverma closed 3 months ago

riverma commented 4 months ago

Checked for duplicates

Yes - I've already checked

Describe the bug

When requesting metadata for a given DSWx-S1 product from CMR, I get back values for the InputGranules field that contain system environment information, i.e. /home/dswx_urs/input_dir/.../ that is irrelevant to most users. We should remove that information from the metadata we submit to CMR.

Send a query to CMR UAT for DSWx-S1 product metadata for a given tile

curl "https://cmr.uat.earthdata.nasa.gov/search/granules.umm_json?short_name=OPERA_L3_DSWX-S1_PROVISIONAL_V0&temporal[]=2024-05-12T08:10:00.000Z,2024-05-12T12:59:59.000Z&page_size=1000&provider=POCLOUD" | jq '.items[] | select(.umm.AdditionalAttributes[] | .Name == "MGRS_TILE_ID" and .Values[] == "T23WPQ")'

Result

The below is a snippet for InputGranules field. Run the original query for the full result.

"InputGranules": [
      "/home/dswx_user/input_dir/T039-082293-IW1/OPERA_L2_RTC-S1_T039-082293-IW1_20240512T090356Z_20240512T141542Z_S1A_30_v1.0.h5",
      "/home/dswx_user/input_dir/T039-082293-IW1/OPERA_L2_RTC-S1_T039-082293-IW1_20240512T090356Z_20240512T141542Z_S1A_30_v1.0_HH.tif",
      "/home/dswx_user/input_dir/T039-082293-IW1/OPERA_L2_RTC-S1_T039-082293-IW1_20240512T090356Z_20240512T141542Z_S1A_30_v1.0_HV.tif",
      "/home/dswx_user/input_dir/T039-082293-IW1/OPERA_L2_RTC-S1_T039-082293-IW1_20240512T090356Z_20240512T141542Z_S1A_30_v1.0_mask.tif",
      "/home/dswx_user/input_dir/T039-082293-IW2/OPERA_L2_RTC-S1_T039-082293-IW2_20240512T090357Z_20240512T141542Z_S1A_30_v1.0.h5",
      "/home/dswx_user/input_dir/T039-082293-IW2/OPERA_L2_RTC-S1_T039-082293-IW2_20240512T090357Z_20240512T141542Z_S1A_30_v1.0_HH.tif",
      "/home/dswx_user/input_dir/T039-082293-IW2/OPERA_L2_RTC-S1_T039-082293-IW2_20240512T090357Z_20240512T141542Z_S1A_30_v1.0_HV.tif",
      "/home/dswx_user/input_dir/T039-082293-IW2/OPERA_L2_RTC-S1_T039-082293-IW2_20240512T090357Z_20240512T141542Z_S1A_30_v1.0_mask.tif",

What did you expect?

I expect the following metadata for the InputGranules field:

"InputGranules": [
      "OPERA_L2_RTC-S1_T039-082293-IW1_20240512T090356Z_20240512T141542Z_S1A_30_v1.0.h5",
      "OPERA_L2_RTC-S1_T039-082293-IW1_20240512T090356Z_20240512T141542Z_S1A_30_v1.0_HH.tif",
      "OPERA_L2_RTC-S1_T039-082293-IW1_20240512T090356Z_20240512T141542Z_S1A_30_v1.0_HV.tif",
      "OPERA_L2_RTC-S1_T039-082293-IW1_20240512T090356Z_20240512T141542Z_S1A_30_v1.0_mask.tif",
      "OPERA_L2_RTC-S1_T039-082293-IW2_20240512T090357Z_20240512T141542Z_S1A_30_v1.0.h5",
      "OPERA_L2_RTC-S1_T039-082293-IW2_20240512T090357Z_20240512T141542Z_S1A_30_v1.0_HH.tif",
      "OPERA_L2_RTC-S1_T039-082293-IW2_20240512T090357Z_20240512T141542Z_S1A_30_v1.0_HV.tif",
      "OPERA_L2_RTC-S1_T039-082293-IW2_20240512T090357Z_20240512T141542Z_S1A_30_v1.0_mask.tif",

Reproducible steps

See "Describe a bug" section for reproducing the metadata.

Environment

My laptop.