-
Notifications
You must be signed in to change notification settings - Fork 16
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
oceansdb / normbias bug #184
Comments
This profile is in the Red Sea (https://www.google.co.uk/maps/place/21%C2%B000'00.0%22N+38%C2%B018'00.0%22E/@21,29.3351565,5z/data=!4m5!3m4!1s0x0:0x0!8m2!3d21!4d38.3) so probably there is no climatology defined there. I've looked at the oceansdb and woa_normbias code and it looks like in this situation it prints the error to screen and returns a qc result of 0 (not QCed), which I think that AutoQC will just assume as a pass. Does AutoQC fail or just print the error to screen? If the latter then I think we are OK, but it might be good to suppress the output if possible. |
Unfortunately I think it's worse than that - if you have a look at this line in oceansdb - there's a |
Or, I guess, a try/except around this line, which is where things fall apart in AutoQC here. Unless @castelao has any suggestions about how to validate input to oceansdb's |
I think I can see now where the problem is happening. The WOA normbias test in CoTeDe is set up and run in two steps. The second step is the actual test and this is robust to there being no climatology. The first step, which is a constructor for the WOA_NormBias object, runs the set_features function and this appears to not be. I think this is something that needs to be fixed in CoTeDe. @castelao can you advise? Other than that the try/except round the line that runs the QC is probably the best option for now. |
going once going twice - I am going to try/except this at the end of the week if I don't hear a better idea. |
Going to leave this open as #188 is about the most ham-fisted possible solution, just to get us moving before our October meeting. |
Profile 560968 throws an error when
oceansdb 0.6.0
fails to extract climatology information, throwing the errorSorry, I was not able to extract the climatology.
Profile content:The text was updated successfully, but these errors were encountered: