[Bug]: CMR audit slc - not finding CLSC products with regex "OPERA_L2_CSLC-S1?_IW_*_{cslc_acquisition_dt_str}Z_v*_*"
Closed this issue · 0 comments
toandn-jpl commented
Checked for duplicates
Yes - I've already checked
Describe the bug
rtc_native_id_pattern = f'OPERA_L2_CSLC-S1?_IW_*_{cslc_acquisition_dt_str}Z_v*_*
the above regex unable to detect CSLC-S1 product generations.
What did you expect?
@philipjyoon made the following changes and need to check them into develop branch. Thank you.
< rtc_native_id_pattern = f'OPERA_L2_CSLC-S1_*_{cslc_acquisition_dt_str}Z_*_S1*'
---
>
> rtc_native_id_pattern = f'OPERA_L2_CSLC-S1?_IW_*_{cslc_acquisition_dt_str}Z_v*_*'
206,207c203
< acquisition_time = cmr_product[33:48]
< print(f"{acquisition_time=}")
---
> acquisition_time = cmr_product[40:55]
216c212
< acquisition_time = native_id_pattern[19:34]
---
> acquisition_time = native_id_pattern[23:38]
Reproducible steps
1.
2.
3.
...
Environment
- Version of this software [e.g. vX.Y.Z]
- Operating System: [e.g. MacOSX with Docker Desktop vX.Y]
...