nasa / stitchee

Harmony service that concatenates netCDF4 data files along an existing dimension
https://stitchee.readthedocs.io/
Apache License 2.0
6 stars 0 forks source link

Allow single file netCDF filepath input #230

Closed danielfromearth closed 1 week ago

danielfromearth commented 1 month ago

We're currently receiving an error: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte when running stitchee in UAT from a request such as https://harmony.uat.earthdata.nasa.gov/C1262899921-LARC_CLOUD/ogc-api-coverages/1.0.0/collections/parameter_vars/coverage/rangeset?forceAsync=true&granuleId=G1263137379-LARC_CLOUD&concatenate=true&variable=product%2Fvertical_column&skipPreview=true.

It seems like this is due to an inappropriate handling of the filepath input as a directory or vice versa. Let's simplify the possible input options.

danielfromearth commented 1 month ago

Note: we need to retain the ability to process a text SOURCEFILE that has all the files to be bundled listed one after another on separate rows — because this is how the CERES subsetter and bundling script operates.