CCI-Tools / cate

ESA CCI Toolbox (Cate)
MIT License
51 stars 15 forks source link

Reprojection operation #80

Open forman opened 8 years ago

forman commented 8 years ago

Provide an reprojection operation to a create new, reprojected dataset from an existing one:

 repr_ds = reproject(ds, var, projection, params)

Especially the polar stereographic projection shall be considered early in order to support remapping of gridded ECVs (Ozone, Clouds, Aerolsols, ...) to the ones that use Shapefiles (Glaciers, Icesheets).

Note that this operation is not necessarily required to to create the scaleable maps requested by #79. Instead this operation is likely to be used to collocate datasets that don't share a common grid definition.

JanisGailis commented 7 years ago

Similar comment as for #81. Wasn't this supposed to be a visualization issue only for this iteration? If it's possible in the light of uc11.

JanisGailis commented 7 years ago

We should probably go for the 'usual suspect' when implementing this:

https://pypi.python.org/pypi/GDAL

But there is a need for discussion on how this affects the overall 'Cate' software. For example, what happens with the CDM? Do we have a 'default' projection that we expect the datasets to have? If a dataset is converted into polar stereographic coordinates, can the GUI handle this? Etc.

Relevant CF Conventions: http://cfconventions.org/Data/cf-conventions/cf-conventions-1.7/cf-conventions.html#grid-mappings-and-projections

forman commented 6 years ago

Or consider using rasterio in combination with its xarray backend:

However that introduces a new dependency. I also belive rasterio uses a different GDAL binding, possibly adding another gigabyte package to our distribution. Will check...

JanisGailis commented 6 years ago

Not necessary for UC11, re-projection is done as part of plotting.