-
Notifications
You must be signed in to change notification settings - Fork 41
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
Unknown profiler got from ArgoIndex(index_file='bgc-s').load() #420
Comments
Bug originThe deep cause for this bug is not from argopy: When loading the reference table 8 from the NVS server, casting profiler code as integers fails because one float does not return an altLabel (the "copex" profiler type). this can be seen in here: https://vocab.nerc.ac.uk/collection/R08/current/?_profile=nvs&_mediatype=application/ld+json then when argopy create a pandas dataframe from this json, the which makes the Bug fixFrom argopy this can be fixed with more tests on the reference table loading, or on the mapping function From the Argo Vocabulary server, there is an issue, because although the COPEX profile has no altLabel on the json file, there is on ID reported on https://vocab.nerc.ac.uk/collection/R08/current/ that is 871 |
Actually I found it's type of object, not simply int or str, that's really confused me when I wanted to fix it internally in my app:
|
it's an object because of the missing field sent by the NVS server I just raised this on the appropriate repo: OneArgo/ArgoVocabs#144 (comment) It's coming from a new float recently added (COPEX, added on Nov. 11) In the mean time, the design in argopy could be made more robust to this kind of errors |
Currently argopy reads the profiler ID from the This fails here because the COPEX has an empty A more robust approach for Argopy would be to extract the ID value from the |
@cywhale fix available on the master branch until next release |
Discussed in #419
Originally posted by cywhale December 14, 2024
Got all Unknown in profiler column:
I'm not sure if profiler_code and profiler comes from R08 table:
Got:
altLabel prefLabel
0 890 PROVOR_III - Jumbo, SBE
1 891 PROVOR_III - Jumbo, RBR
2 841 PROVOR float with SBE conductivity sensor
3 838 ARVOR-D deep float with SBE conductivity sensor
4 831 PALACE float
5 889 PROVOR_V - Jumbo, RBR
If it's profiler in this table, then it should have values, not to be Unknown.
I had tried argopy==0.1.17 and 1.0.0, both got the same results. But I'm sure this dataframe have not-unknown values in profiler column maybe several months ago at last time I checked it.
Is there something wrong in my code as I using argopy? Thanks.
The text was updated successfully, but these errors were encountered: