-
Notifications
You must be signed in to change notification settings - Fork 7
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
Issue in interpolation of data using the SAF #13
Comments
Hi Kamila, I may not have exactly the same configuration as you, but I was able to reproduce the same error on profile 108. |
Hi @cabanesc, I think if this is a reference dbase issue, then it should be dealt with within the reference dbase. This is because an inappropriate reference profile will cause problems in many places, and not just in frontalConstraintSAF. If we add sanity checks in the OWC code to exclude these inappropriate reference profiles, then it means we are not using them anyway, so it's best to exclude them from the reference base in the first place. Hi @coatanoan, would it be possible to add a monotonically increasing pressure check to the reference profiles? |
Thank you all for your quick response and taking a look on this! :) |
Hi everyone, |
In running the matlab_owc software for the float WMO: 1901877 I have encounter some error with the interpolation of data in the update salinity mapping block of calculations where the software use the SAF in the analysis. The error message refers to not unique sample points used for analysis.
Is there any way to avoid this error in the software other than disable SAF in the config file?
I am using combined, the most recent reference data CTD_for_DMQC_2024V01 and ARGO_for_DMQC_2023V03
The error message is as follows:
UPDATE_SALINITY_MAPPING: Working on profile 121
Error using matlab.internal.math.interp1
Sample points must be unique.
Error in interp1 (line 188)
VqLite = matlab.internal.math.interp1(X,V,method,method,Xqcol);
Error in frontalConstraintSAF (line 155)
T300=interp1(grid_pres(isok,i),temp,300);
Error in update_salinity_mapping (line 201)
frontalConstraintSAF(la_bhist_sal, la_bhist_ptmp, la_bhist_pres, la_bhist_lat, la_bhist_long, la_bhist_dates, la_bhist_Z, LAT, LONG, PRES, PTMP, SAL, po_system_configuration);
Error in ow_calibration_kamwal_v2 (line 39)
update_salinity_mapping( flt_dir, flt_name, lo_system_configuration )
The text was updated successfully, but these errors were encountered: