-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add ArgoIndex support for ar_index_global_meta.txt #438
Comments
Hi @SBS-EREHM I just checked and it looks like it would quite easy to make the meta data index file available in as a complement, the new and I'm preparing an ArgoIndex float iterator so that something like this would be possible:
Does a new search method, on the |
don't want to close this too fast please have a look to #439 providing support for the 'meta' file index with the ArgoIndex and note that the 'wmo' column is added when exporting with ArgoIndex.to_dataframe() |
Sorry for the delay. It took me a bit of time to figure out how to install your '438-add-argoindex-support-for-meta-index' branch. Very nice! Yes, a search method with profiler_type would be useful! FYI, I did get an error on:
ValueError: DAC name for Float 3902666 cannot be found from https://data-argo.ifremer.fr. (s3://argo-gdac-sandbox/pub) |
awesome ! so let's fix this in #441 |
the error with the float '3902666' was that the fleet monitoring API was not returning any data ! anyway, this allowed me to improve the ArgoFloat class to handle such cases. When metadata are not return by the API, they are loaded from the meta file, and the DAC name is obtained from the index so this should work now, even for float 3902666 from argopy import ArgoFloat
ArgoFloat(3902666)
<argofloat.3902666.http.online>
GDAC host: https://data-argo.ifremer.fr/
DAC name: coriolis
Network(s): ['CORE']
Deployment date: 2025-02-08 13:20 [5 days ago]
Float type and manufacturer: ARVOR [NKE]
Number of cycles: 3
Dashboard: https://fleetmonitoring.euro-argo.eu/float/3902666
Netcdf dataset available: ['Rtraj', 'meta', 'prof', 'tech'] note that a new from argopy import ArgoIndex
idx = ArgoIndex(index_file='meta').load()
idx.search_profiler_type([838, 878])
idx.search_profiler_label('ARVOR') |
As a sensor vendor, scientists at Sea-Bird Scientific would like to be able to quickly join metadata derived from other indexes (e.g., Profile, Bio-Profile) with metadata from the ar_index_global_meta.txt index.
If
wmo
is added as a column to index, ar_global_index_prof or ar_bio-profile_index could easily be joined with ar_index_global_meta. For example, this would make it one step easier to retrieve metadata like SENSOR_SERIAL_NUMBER along with profile/trajectory data, or plotting a calibration coefficient vs. date of first profile (cycle=1).Not asking for a metafile data fetcher at this time, as it looks like the
ArgoFloat()
will eventually provide this.The text was updated successfully, but these errors were encountered: