ascat icon indicating copy to clipboard operation
ascat copied to clipboard

Aggregator regrid option

Open claytharrison opened this issue 4 months ago • 1 comments

Adds the option --regrid to the aggregator CLI. The value passed will determine the size of a regular grid to regrid the data to after aggregation.

Data is first aggregated by time chunk to the GPIs of the original grid, then for each point in the new grid, the aggregated data from the nearest point in the original grid is taken (if data exists at the nearest point in the original grid - otherwise it is set to NaN).

Output is a single netcdf file for each timechunk, with time, lon, and lat dimensions (raster data). These can be opened together as a datacube using xarray's open_mfdataset with concat_dim="time" and combine="nested".

Might be nice to add an option to write to a single netCDF or even Zarr, rather than several netCDFs?

claytharrison avatar Feb 27 '24 10:02 claytharrison