DamienIrving / climate-analysis

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

Errors with TEOS-10 Python library #36

Open DamienIrving opened 7 years ago

DamienIrving commented 7 years ago

Problem explained at: https://github.com/TEOS-10/python-gsw/issues/26

In my spatial_weights.py module I use gsw to convert between height, pressure and depth (i.e. gsw.z_from_p and gsw.depth_from_z).

I then call that module in calc_ocean_maps.py (i.e. it callsspatial_weights.calc_vertical_weights_2D).

I'm not sure whether the python implementation errors apply to these simple pressure/height conversions?

DamienIrving commented 7 years ago

It might be possible to write my own Python wrappers for the C code following this lesson?