ua-snap / rasdaman-ingest

Collection of ingredients/configurations + docs for ingesting data into Rasdaman
MIT License
3 stars 0 forks source link

Mask and crop new arctic eds coverage datasets to Alaska footprint and extent #32

Closed kyleredilla closed 2 years ago

kyleredilla commented 2 years ago

This PR consists of changes to the preprocessing notebooks for the following Rasdaman coverages:

We make use of the "Alaska Coast Simplified" shapefile in the ua-snap/geospatial-vector-veracity repo to mask the above datasets and crop the new extent of valid data in an ad hoc fashion using gdalwarp. This significantly reduces the sizes of the resulting datasets.

In addition to the masking and cropping, there are some changes to fix an issue with the resulting coverages in Rasdaman. (Should have made an issue for this!) The realized encoded values for the model dimension for the first four coverages listed above ranged from -1 to 5, instead of 0 to 6 as specified in the luts.py files. This was due to the import order of files and the known requirement to match file import order with the order of encoded values, with CRU-TS files actually being imported first, likely because of some priority given the year axis when determining import order, not strictly filename.

There is a lot to test here - no rush @cstephen !