-
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
Different size of matrix using create_float_source for raw and adjusted data #218
Comments
Hi @kamwal |
@kamwal And if I look to the netcdf file content with: from argopy import DataFetcher as ArgoDataFetcher
WMO = 3901928
argo_loader = ArgoDataFetcher(src='gdac', cache=True, mode='expert', dataset='phy').float(WMO)
ds = argo_loader.load().data
dsp = ds.argo.point2profile()
dsp.where(dsp['CYCLE_NUMBER']==164, drop=True) I see the data mode to Delayed and the adjusted salinity full of NaNs with QC=4, |
Thanks for looking at this. I think it is done to don't create any issues with a mismatch of the size of the matrix for all parameters. Sometimes for some floats the QC =4 is applied not to all parameters (PRES, SAL, TEMP) like here, but only to one parameter like PSAL. |
After discussion with @cabanesc , this appears to be motivated by the post analysis use of the .mat source files: the D netcdf files are created for profiles in the source files ! I don't know how OWC handle this, but we could fix argopy to make sure to report as many profiles as before all the filtering, and fields would be full of NaNs. |
Yes, thanks it would be very helpful |
@kamwal note that I have no idea when I'll be able to fix this ... |
This issue was marked as staled automatically because it has not seen any activity in 90 days |
Although after some thoughts I'm not sure anymore if this is the way to go, since this approach is messing up matrix content with different file uses (OWC analysis vs D file production). Basically I'm cold feet with reproducing a flawed workflow based on the Matlab software. |
This issue was marked as staled automatically because it has not seen any activity in 90 days |
This issue was closed automatically because it has not seen any activity in 365 days |
This issue was marked as staled automatically because it has not seen any activity in 90 days |
I have found a differences in size of the matrix generated by the ds.argo.create_float_source code for generating the Wong matrix .mat for OWC analysis. The differences appear for .mat matrix for raw data and adjusted data.
The equivalent matlab code to generate float source is giving the same size of output for raw and adjusted data https://github.com/euroargodev/dm_floats/blob/master/src/ow_source/create_float_source.m
The WMO float examples where the issue have been detected: 3901928, 3900797,3900799
The mismatch between size of matrices including raw and adjusted data lead to problems in extracting differences and comparing data during checks of the quality of adjusted data.
I am using the argopy v0.1.11 version.
The text was updated successfully, but these errors were encountered: