Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetching traj files with argopy #332

Open
haydenleo opened this issue Feb 6, 2024 · 4 comments
Open

fetching traj files with argopy #332

haydenleo opened this issue Feb 6, 2024 · 4 comments
Labels
argo-traj About trajectory data enhancement New feature or request stale No activity over the last 90 days

Comments

@haydenleo
Copy link

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 gmaze added enhancement New feature or request argo-traj About trajectory data labels Feb 7, 2024
@gmaze
Copy link
Member

gmaze commented Feb 8, 2024

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:

  • implement this new data fetcher,
  • include your own tools in sub-module, that is the best way to start, by integrating and sharing your existing code to argopy

@haydenleo
Copy link
Author

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

@gmaze
Copy link
Member

gmaze commented Feb 9, 2024

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

Copy link

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

@github-actions github-actions bot added the stale No activity over the last 90 days label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
argo-traj About trajectory data enhancement New feature or request stale No activity over the last 90 days
Projects
None yet
Development

No branches or pull requests

2 participants