euroargodev / argopy

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

fetching traj files with argopy #332

Open haydenleo opened 6 months ago

haydenleo commented 6 months ago

Hello,

I am doing research on oxygen data from argo floats and I'd like to use argopy since it has a ton of excellent tools and features. However I am trying to access the in-air oxygen measurements which are stored in the BRtraj files, but it seems the fetcher currently can only retrieve prof files. Would it be possible to make the fetcher to fetch the traj files?

gmaze commented 6 months ago

Hello @haydenleo thanks for your interest in argopy and the enhancement suggestion !

Indeed there's no specific fetcher in argopy for trajectory data, yet ...

Note that you can open a BRtraj file with correct variable types using the xarray 'argo' engine:

import xarray as xr
ds = xr.open_dataset("bodc/3901578/3901578_BRtraj.nc", engine='argo')

Feel free to contribute to argopy to:

haydenleo commented 6 months ago

I didn't know xarray had an engine for argo floats, this is just what I needed. Thank you!

gmaze commented 6 months ago

the 'argo' engine is provided by argopy once installed ...

I encourage you to possibly share some code or notebook to show how you're using these BRtraj files, these could go in the argopy gallery thanks

github-actions[bot] commented 3 months ago

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