DM_FLOATS is a tool that can be used to analyse and correct Argo salinity data in delayed mode.
Target users : experts/DM operators
Features:
- GUI to view Argo profiles and interactively change the value of the quality flags (corrected flags are reported in netcdf files)
- Program that plots several diagnostic figures (theta/S, PSAL, TEMP, SIG0 sections, float trajectory).
- Programs that analyze and correct the CPcor for deep Argo floats.
- Program that compares an Argo profile with the closest reference profiles.
- Program that compares an Argo profile with the reference profile made at the float launch.
- Program that analyzes and calculates the salinity correction (owc)
- Program that writes DM files with adjusted values. Files are ready to be submitted to the DAC.
- Programs that verify the adjusted values
- Programs that produce a report template
Matlab requiered version: >= 2020b
-
Clone the DM_FLOATS repo : git clone https://github.com/cabanesc/DM_FLOATS.git => {REP_CODES}/DM_FLOATS
-
Add the toolbox m_map1.4m in {REP_CODES}/DM_FLOATS/lib/ ; Change PATHNAME in m_etopo2.m l.47 (path to ETOPO2v2g_i2_MSB.bin)
-
Dowload owc https://github.com/ArgoDMQC/matlab_owc/releases/tag/v3.0.0 => {REP_CODES}/OWC/matlab_owc-3.0.0
-
Download the last CTD reference database and the last ARGO reference database => {REP_CODES}/OWC/matlab_ow-3.0.0/data/climatology/argo_profiles/ => {REP_CODES}/OWC/matlab_ow-3.0.0/data/climatology/historical_ctd/
-
Run {REP_CODES}/DM_FLOATS/LPO_CODES_ATLN_NEW/genere_wmoboxes_matfile.m to generate {REP_CODES}/OWC/matlab_ow-3.0.0/data/constants/wmo_boxes_ctd.mat, wmo_boxes_argo.mat and wmo_boxes_ctdandargo.mat
-
Download a recent DOI of the full ARGO GDAC (needed to find nearby floats) http://www.argodatamgt.org/Access-to-data/Argo-DOI-Digital-Object-Identifier => {REP_DATA}/ARGO_DOI/
-
Download the netcdf files of the float that is processed in Delayed Mode from the GDAC ftp server =>{REP_DATA}/FTP_ORIG/ ex: wget -r --user="anonymous" --password="your.email@institute.fr" ftp://ftp.ifremer.fr/ifremer/coriolis/argo/dac/coriolis/6901762/
-
Create a repository where you will store the netcdf files with intermediate corrections (FLAGS, CPCOR) => {REP_DATA}/FTP_MODIF/
-
Create a repository where you will store the netcdf files with the final DM correction (OWC adjustements) => {REP_DATA}/DM_FILES/
-
Create a repository where you will store plots from the various programs => {REP_DATA}/PLOTS/
-
Create a repository where you will store input/ouptut data from OWC (source, calib, mapped ,plot) => {REP_DATA}/data/
-
Download two topo files used for plots : topo.onetenthdeg.nc and topo.onedeg.nc => {REP_DATA}/TOPO/
-
If a launch CTD is available, mat file can be put here => {REP_DATA}/CAMPAIGN/
-
You will need pdflatex to create reports. As an alternative, it is possible to compile .tex online : overleaf https://fr.overleaf.com/
-
Copy config_template.txt to config.txt. Modify config.txt
-
Copy init_path_template.m to init_path.m. Modify init_path.m if necessary
-
Copy Main_core_template.m to Main_core.m.
-
Modify rdir in MAIN_core.m. Use Main_core.m to run Delayed Mode analysis on your 0-2000m floats.
-
Copy Main_deep_template.m to Main_deep.m.
-
Modify rdir in MAIN_deep.m. Use Main_deep.m to run Delayed Mode analysis on your deep floats.