This script generates the JSON file needed to coordinate the execution of MUR (Multi-scale Ultra-high Resolution) algorithms.
This script produces data for the following:
l2p: Produces a dictionary of sensors with a 12-day date range. The L2P sensor operations should be executed on each sensor and on each day in the range.
The script:
- Reads a configuration file defining sensors and their date ranges.
- Calculates the date ranges for each sensor based on the current date and the specified day range.
- Writes the result to
l2p.jsonin the specified output directory.
This output can then be used to coordinate and schedule MUR processing workflows.
- The following Python packages:
argparse(standard library)datetime(standard library)json(standard library)logging(standard library)pathlib(standard library)fsspec(only required if configuration file is stored on S3)
python generate_l2p.py -o /path/to/output/dir -c /path/to/config.json