nasa / opera-sds-pcm

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

[Bug]: DISP-S1 query chunking is being done incorrectly in historical mode #961

Open philipjyoon opened 1 month ago

philipjyoon commented 1 month ago

Checked for duplicates

Yes - I've already checked

Describe the bug

Chunking for download jobs in query jobs for DISP-S1 is done differently between historical mode vs the other modes. In historical mode, one chunk must contain all batch_ids of the frame because PGE expects them all at once and query is always performed one frame at a time. In forward/reprocessing modes more than one frame can be process at once and we need to group all batch_ids per acquisition time window per frame... and then add k granule batch_ids. It's a bit complicated.

While I was working on forward processing for chunking I broke historical processing chunking. This need to be fixed ASAP.

What did you expect?

n/a

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]
...