euroargodev / argopy

A python library for Argo data beginners and experts
https://argopy.readthedocs.io
European Union Public License 1.2
182 stars 40 forks source link

New method to interpolate dataset on theta surface #279

Open gmaze opened 1 year ago

gmaze commented 1 year ago

Some analysis require to have salinity values on iso-thermal surfaces. It would be awesome to have an easy method in argopy to do that. The API may simply look like this:

from argopy import DataFetcher

ds = DataFetcher().float(6901035).data

dsi = ds.argo.interp_on_theta(theta=np.arange(0,40))
dsi = ds.argo.interp_on_theta(theta=np.arange(0,40), method='linear')
dsi = ds.argo.interp_on_theta(theta=np.arange(0,40), method='linear', fillvalue=np.NaN)

it is possible that such function already exists in the python OWC software

github-actions[bot] commented 1 year ago

This issue was marked as staled automatically because it has not seen any activity in 90 days