-
Notifications
You must be signed in to change notification settings - Fork 28
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
inconsistent in data rendering and in QARTOD flags creation #106
Comments
@ocefpaf could you look at the issues i am seeing with the QARTOD application? Thanks |
@leilabbb can you try the latest commit? @iwensu0313 made some improvements and fixed a few bugs that may impact your example. Please let us know what you find. |
I rerun the code using the latest commits and I do not see any change in the results. The same flags were rendered by the ioos_qc/qartod library. |
I guess we need to wait for #108 |
Not sure what is not working but the merge of 108 did not fix it. @iwensu0313 could use this netCDF file and see if you see a different response. |
@leilabbb - apologies, somehow I didn't get an email notification of your response. I need to check to see if it's being filtered into my email quarantine. Thanks for sending along the file, I'll take a look at this again as soon as I can |
Hi @leilabbb - Spike Test Missing Flags salinity xarray values copied from your original post, for comparison
Rate of Change Suspect Flags I ran the debugger in your Example rate of change calculation from the 5th to 6th measurement
Reading in Data using Different Methods |
@benjwadams figured out that the valid_min and valid_max of the salinity variable were switched and therefore netCDF4.Dataset masked the salinity values. |
I realized that incorrect flag results happen when the time input to the rate_of_change_test function isn't in seconds. See rate_of_change_test flags are corrupted when the time array is in nano seconds #376 |
@leilabbb - if helpful, here's what my colleague (@kthyng) said about Reading in Data using Different Methods. I also generally use xarray over netcdf as well, just preference.
|
@ocefpaf @iwensu0313 When will the commit 5ffa1c6 related to the changes in spike_test be pushed to the main branch? |
@ocefpaf , @leilabbb - the changes I suggested should be incorporated before we can merge that PR #129. The first suggestion makes the code logic more representative of the logic we'd like to implement even though the end result is the same, for readability. The second suggestion (which needs to be updated for the 3 tests I mentioned) is required in order for the tests to pass. @Sakshamgupta90 - let me know if it's helpful if I push the suggestions to a branch off of yours for your review Sakshamgupta90:fix/inconsistency |
I run into issues when using the qartod package to QC the Glider DAC files. I have seen flags being applied inconsistently, which raises concern. Before I file an issue about that, I run into a new issue when reading the data that I am exposing here for some feedback.
Issues: (1) The salinity data in the netCDF file shows different results when read with different packages. (2) The spike_test and rate_of_change_test flags are questionably using the missing-flag and the suspect-flag on existing or non-erroneous data.
Description: The notebook is a walk-through process to help reproduce the above issues.
Files needed to run the notebook:
netCDF file
configuration file
notebook file
Debugging Info Issue (1):
When using netCDF4 to read the salinity array, all values show as nan: [this is the method I use in the Glider DAC QC process] _
When using the xarray to read the salinity array, not all values show as nan: [this is used in the ioos_qc.streams Class XarrayStream]
When using ncdump to read the salinity array, not all values are masked: [using another method]
Debugging Info Issue (2):
The flag selection for the spike_test shows a missing flag (9) applied to an existing data point.
KEYS for the right column: Missing 9 UNKNOWN 2
The flag selection for the rate_of_change_test shows a suspect flag (3) applied to a good data point.
KEYS for the right column: Missing 9 UNKNOWN 2 SUSPECT 3
Clarification:
The suspect flag may be acceptable, but I am not completely clear on labeling existent data with a missing flag. Also, the data read from the 3 methods may be unrelated to flagging data but any recommendations or best practices on how to work with the ioos_qc package will be appreciated.
The text was updated successfully, but these errors were encountered: