DamienIrving / climate-analysis

Code used for the analysis and visualisation of climate data during my PhD
MIT License
40 stars 19 forks source link

ESMPy for re-gridding? #16

Closed DamienIrving closed 9 years ago

DamienIrving commented 9 years ago

For re-gridding, ESMPy might be an alternative to css going forward, since I can only use css with a UV-CDAT install (see #7). This AMS talk wasn't particularly useful, but their website looks ok. The problem is that the installation is from source code (i.e. it's not on binstar)

DamienIrving commented 9 years ago

The documentation for ESMPy is here and they now have a page on anaconda.org. Apparently the install works on linux and the moment but not mac.

DamienIrving commented 9 years ago

Another option would be to take the code for cssgrid from here at the uvcdat repo and use it to write my own Python package.

DamienIrving commented 9 years ago

It turns out that because I'm only using the values near the equator (i.e. where a degree of latitude and longitude is the same distance), I don't need to perform the regridding on a sphere. Instead, I can just use scipy.interpolate.griddata.

For future reference, pyresample might also be an option for this type of regridding.