From 8c668caa0d8f3974f63b0eab0e3675efb0f219bc Mon Sep 17 00:00:00 2001
From: Jacques Grelet <jacques.grelet@ird.fr>
Date: Wed, 2 Jan 2008 14:26:00 +0000
Subject: [PATCH] add test file test.csv change header read line with textscan
 add id to csv files

---
 @tsg_nc/test.csv       |   9 +++
 @tsg_nc/tsg_nc.m       |   8 ++-
 @tsg_nc/tsg_ncattr.csv |  66 ++++++++++-----------
 @tsg_nc/tsg_ncvar.csv  | 126 ++++++++++++++++++++---------------------
 4 files changed, 111 insertions(+), 98 deletions(-)
 create mode 100644 @tsg_nc/test.csv

diff --git a/@tsg_nc/test.csv b/@tsg_nc/test.csv
new file mode 100644
index 0000000..7ce97d8
--- /dev/null
+++ b/@tsg_nc/test.csv
@@ -0,0 +1,9 @@
+% definition
+% $Id$
+%
+id;nom;prenom;age;adresse;telephone;
+integer;char;char;integer;char;char;
+1;Grelet;Jacques;47;Ploumoguer;0298893950;
+2;Delcroix;Thierry;50;Toulouse;67;
+3;Gomes;Jacques;47;Ploumoguer;0298893950;
+4;Momo;Thierry;50;Toulouse;67;
diff --git a/@tsg_nc/tsg_nc.m b/@tsg_nc/tsg_nc.m
index a5c86b7..c0c1549 100644
--- a/@tsg_nc/tsg_nc.m
+++ b/@tsg_nc/tsg_nc.m
@@ -48,9 +48,13 @@ data = hashtable;
 
 % read csv file
 % -------------
-header   = textscan(fid,'%s \n %s [^\n]','headerlines', 3 );
+% read 2 first lines
+header   = textscan(fid,'%s',2,'delimiter','\n','headerlines', 3 );
+% extract each member from first header line
 members  = textscan(header{1}{1},'%s','delimiter',';');
-types    = textscan(header{2}{1},'%s','delimiter',';');
+% extract data type from second header line
+types    = textscan(header{1}{2},'%s','delimiter',';');
+% read end of file
 values   = textscan(fid,'%s','delimiter',';');
 
 % populate private structure ncv
diff --git a/@tsg_nc/tsg_ncattr.csv b/@tsg_nc/tsg_ncattr.csv
index 479b3e5..404fb61 100644
--- a/@tsg_nc/tsg_ncattr.csv
+++ b/@tsg_nc/tsg_ncattr.csv
@@ -1,34 +1,34 @@
-% definition
-% $Id$
 %
-code;name;uicontrolType;string;value;length;height;horizontalAlignment;comment;
-char;char;char;char;integer;integer;integer;char;char;
-PLATFORM_NAME;PLATFORM NAME:;edit;;;;;right;Ship name;
-SHIP_CALL_SIGN;SHIP CALL SIGN:;edit;;;;;right;Ship call sign;
-SHIP_MMSI;SHIP MMSI:;edit;;;;;right;Ship MMSI (ASN) number;
-TSG_TYPE;TSG TYPE:;popupmenu;SBE21|SBE45|UNKNO;1;.1;.015;right;Thermosalinograph model number;
-TSG_NUMBER;TSG NUMBER:;edit;;;;;right;TSG serial number;
-TINT_TYPE;TINT TYPE:;popupmenu;SBE38|SBE3S|UNKNO;1;.1;.015;right;External sea surface temperature sensor;
-TINT_NUMBER;TINT NUMBER:;edit;;;;;right;External temperature sensor serial number;
-DATA_TYPE;DATA TYPE:;edit;;;;;right;Describe data type contained in file, eg: Thermosilinometer data;
-DATA_MODE;DATA MODE:;popupmenu;Delayed mode data|Real time data;1;;;right;Indicate if the file contains real time or delayed mode data;
-SAMPLING_PERIOD;SAMPLING PERIOD:;edit;300;;.05;;right;Sampling period in seconds: 6 to 3600;
-PROCESSING_STATUS;PROCESSING STATUS:;edit;;;;;right;State of processing;
-DATE_START;DATE_START:;edit;;;;;right;Date of first measurements;
-DATE_END;DATE END:;edit;;;;;right;Date of last measurements;
-SOUTH_LATX;SOUTH LATX:;edit;;;;;right;South limit of measurements;
-NORTH_LATX;NORTH LATX:;edit;;;;;right;North limit of measurements;
-WEST_LONX;WEST LONX:;edit;;;;;right;West limit of measurements;
-EAST_LONX;EAST LONX:;edit;;;;;right;East limit of measurements;
-FORMAT_VERSION;FORMAT VERSION:;edit;1.4;;;;right;File format version;
-DATE_CREATION;DATE CREATION:;edit;;;;;right;Date and time of file creation, format: YYYYMMDDHHMISS;
-DATE_UPDATE;DATE UPDATE:;edit;;;;;right;Date and time of file update, format: YYYYMMDDHHMISS;
-DATA_RESTRICTIONS;DATA RESTRICTIONS:;edit;NONE;;;;right;Restriction on use for these data;
-CITATION;CITATION:;edit;;;;;right;This citation should be used for publications;
-COMMENT;COMMENT:;edit;;;;;right;;
-PROJECT_NAME;PROJECT NAME:;edit;;;;;right;Name of project wich operates the TSG line, ex: ORE-SSS;
-PI_NAME;PI NAME:;edit;;;;;right;Name of principal investigator in charge of the TSG, ex: IRD or GENAVIR;
-DATA_CENTRE;DATA CENTRE:;edit;;;;;right;Code for data center (2 char);
-DATA_ACQUISITION;DATA ACQUISITION:;edit;;;;;right;Acquisition data centre, ex: SHOM,IRD,GENAVIR,CNRS,...;
-PROCESSING_CENTRE;PROCESSING CENTRE:;edit;;;;;right;Processing data centre, ex: ORE-SSS,CORIOLIS,SISMER,...;
-PROCESSING_STATES;PROCESSING STATES:;edit;;;;;right;Need to be defined, IRD action,...;
+%
+%
+id;code;name;uicontrolType;string;value;length;height;horizontalAlignment;comment;
+integer;char;char;char;char;integer;integer;integer;char;char;
+1;PLATFORM_NAME;PLATFORM NAME:;edit;;;;;right;Ship name;
+2;SHIP_CALL_SIGN;SHIP CALL SIGN:;edit;;;;;right;Ship call sign;
+3;SHIP_MMSI;SHIP MMSI:;edit;;;;;right;Ship MMSI (ASN) number;
+4;TSG_TYPE;TSG TYPE:;popupmenu;SBE21|SBE45|UNKNO;1;.1;.015;right;Thermosalinograph model number;
+5;TSG_NUMBER;TSG NUMBER:;edit;;;;;right;TSG serial number;
+6;TINT_TYPE;TINT TYPE:;popupmenu;SBE38|SBE3S|UNKNO;1;.1;.015;right;External sea surface temperature sensor;
+7;TINT_NUMBER;TINT NUMBER:;edit;;;;;right;External temperature sensor serial number;
+8;DATA_TYPE;DATA TYPE:;edit;;;;;right;Describe data type contained in file, eg: Thermosilinometer data;
+9;DATA_MODE;DATA MODE:;popupmenu;Delayed mode data|Real time data;1;;;right;Indicate if the file contains real time or delayed mode data;
+10;SAMPLING_PERIOD;SAMPLING PERIOD:;edit;300;;.05;;right;Sampling period in seconds: 6 to 3600;
+11;PROCESSING_STATUS;PROCESSING STATUS:;edit;;;;;right;State of processing;
+12;DATE_START;DATE_START:;edit;;;;;right;Date of first measurements;
+13;DATE_END;DATE END:;edit;;;;;right;Date of last measurements;
+14;SOUTH_LATX;SOUTH LATX:;edit;;;;;right;South limit of measurements;
+15;NORTH_LATX;NORTH LATX:;edit;;;;;right;North limit of measurements;
+16;WEST_LONX;WEST LONX:;edit;;;;;right;West limit of measurements;
+17;EAST_LONX;EAST LONX:;edit;;;;;right;East limit of measurements;
+18;FORMAT_VERSION;FORMAT VERSION:;edit;1.4;;;;right;File format version;
+19;DATE_CREATION;DATE CREATION:;edit;;;;;right;Date and time of file creation, format: YYYYMMDDHHMISS;
+20;DATE_UPDATE;DATE UPDATE:;edit;;;;;right;Date and time of file update, format: YYYYMMDDHHMISS;
+21;DATA_RESTRICTIONS;DATA RESTRICTIONS:;edit;NONE;;;;right;Restriction on use for these data;
+22;CITATION;CITATION:;edit;;;;;right;This citation should be used for publications;
+23;COMMENT;COMMENT:;edit;;;;;right;;
+24;PROJECT_NAME;PROJECT NAME:;edit;;;;;right;Name of project wich operates the TSG line, ex: ORE-SSS;
+25;PI_NAME;PI NAME:;edit;;;;;right;Name of principal investigator in charge of the TSG, ex: IRD or GENAVIR;
+26;DATA_CENTRE;DATA CENTRE:;edit;;;;;right;Code for data center (2 char);
+27;DATA_ACQUISITION;DATA ACQUISITION:;edit;;;;;right;Acquisition data centre, ex: SHOM,IRD,GENAVIR,CNRS,...;
+28;PROCESSING_CENTRE;PROCESSING CENTRE:;edit;;;;;right;Processing data centre, ex: ORE-SSS,CORIOLIS,SISMER,...;
+29;PROCESSING_STATES;PROCESSING STATES:;edit;;;;;right;Need to be defined, IRD action,...;
\ No newline at end of file
diff --git a/@tsg_nc/tsg_ncvar.csv b/@tsg_nc/tsg_ncvar.csv
index 509ba34..922bfa4 100644
--- a/@tsg_nc/tsg_ncvar.csv
+++ b/@tsg_nc/tsg_ncvar.csv
@@ -1,66 +1,66 @@
 % tsg_ncvar.csv:  definition (14 separators ; actually)
 % $Id$
 %
-code;dimension;long_name;standard_name;units;conventions;valid_min;valid_max;format;FillValue;epic_code;axis;resolution;comment;
-char;char;char;char;char;char;integer;integer;char;double;integer;char;double;char;
-REFERENCE_DATE_TIME;STRING14;;;;yyyymmddhhmmss;;;;;;;;Reference date for julian days origin;
-DATE;DAYD,STRING14;DATE OF MAIN INSTRUMENT MEASUREMENT;;;yyyymmddhhmmss;;;;;;;;This is the original data describing the date, it must not be lost;
-DATE_WS;DAYD,STRING14;DATE OF WATER SAMPLE;;;yyyymmddhhmmss;;;;;;;;This is the original data describing the date, it must not be lost;
-DATE_EXT;DAYD,STRING14;DATE OF EACH EXTERNAL DATA MEASUREMENT;;;yyyymmddhhmmss;;;;;;;;This is the original data describing the date, it must not be lost;
-DAYD;DAYD;DECIMAL JULIAN DAY (UTC) OF EACH MEASUREMENT;time;days since 1950/01/01 00:00:00;Relative julian days with decimal part (as parts of the day);0.0;36600.0;%9.5lf;9999999.;601;t;;Julian day of the measurement;
-DAYD_WS;DAYD_WS;DECIMAL JULIAN DAY (UTC) OF EACH WATER SAMPLE;time;days since 1950/01/01 00:00:00;Relative julian days with decimal part (as parts of the day);0.0;36600.0;%9.5lf;9999999.;601;t;;Julian day of the measurement;
-DAYD_EXT;DAYD_EXT;DECIMAL JULIAN DAY (UTC) OF EXTERNAL DATA MEASUREMENT;time;Days since 1950/01/01 00:00:00;Relative julian days with decimal part (as parts of the day);0.0;36600.0;%9.5lf;9999999.;601;t;;Julian day of the measurement;
-LATX;DAYD;LATITUDE OF EACH MEASUREMENT;latitude;degree_north (decimal);;-90;90;%+8.4lf;999999.;500;;;Latitude of the measurement;
-LATX_WS;DAYD_WS;LATITUDE OF WATER SAMPLE;latitude;degree_north (decimal);;-90;90;%+8.4lf;999999.;500;;;Latitude of the measurement;
-LATX_EXT;DAYD_EXT;LATITUDE OF EACH EXTERNAL DATA MEASUREMENT;latitude;degree_north (decimal);;-90;90;%+8.4lf;999999.;500;;;Latitude of the measurement;
-LONX;DAYD;LONGITUDE OF EACH MEASUREMENT;longitude;degree_east (decimal);;-180;180;%+9.4lf;999999.;501;;;Longitude of the measurement;
-LONX_WS;DAYD_WS;LONGITUDE OF WATER SAMPLE;longitude;degree_east (decimal);;-180;180;%+9.4lf;999999.;501;;;Longitude of the measurement;
-LONX_EXT;DAYD_EXT;LONGITUDE OF EACH EXTERNAL DATA MEASUREMENT;longitude;degree_east (decimal);;-180;180;%+9.4lf;999999.;501;;;Longitude of the measurement;
-SPDC;DAYD;SHIP SPEED COMPUTED FROM NAVIGATION;speed;knots;;0;50;%6.3lf;99999.;;;0.1;Ship speed from GPS (SOG). If SOG not available, derived from last position;
-PRES;DAYD;SEA PRESSURE IN TSG;pressure;decibar=10000 pascals;;0;10;%6.1lf;99999.;;;0.1;Pressure inside TSG, this is an indication that pump is working properly;
-CNDC;DAYD;ELECTRICAL CONDUCTIVITY;conductivity;mho/meter;;0;7;%5.3lf;99999.;;;0.0001;Conductivity measured by TSG. This data may have been reduced with a media (recommended) or a mean;
-CNDC_STD;DAYD;CONDUCTIVITY STANDARD DEVIATION;conductivity;mho/meter;;0;7;%5.3lf;99999.;;;0.0001;Standard deviation of conductivity measured by TSG (CNDC);
-CNDC_CAL;DAYD;CONDUCTIVITY CALIBRATED;conductivity calibrated;mho/meter;;0;7;%5.3lf;99999.;;;0.0001;Conductivity calibrated using linearization coefficient;
-CNDC_CALCOEF;NCOEF_CAL;CONDUCTIVITY CALIBRATION COEFFICIENTS;;;a,b,c,d,m;;;;99999.;;;;Conductivity linear drift correction coefficient;
-CNDC_LINCOEF;NCOEF_LIN;CONDUCTIVITY LINEAR DRIFT CORRECTION COEFFICIENTS;;;a,b;;;;99999.;;;;Conductivity Ocean temperature;
-SSJT;DAYD;WATER JACKET TEMPERATURE;temperature in TSG;Celsius degree;;-1.5;38;%6.3lf;99.999;;;0.001;Temperature inside TSG (Water Jacket Temperature). Warning, this is not ocean SST temperature. Used for salinity computation;
-SSJT_STD;DAYD;WATER JACKET TEMPERATURE STANDARD DEVIATION;temperature std;Celsius degree;;-1.5;38;%6.3lf;99.999;;;0.001;SSJT, Temperature inside TSG standard deviation for data wich have been reduced (with a mean or median);
-SSJT_CAL;DAYD;WATER JACKET TEMPERATURE CALIBRATED;temperature cal;Celsius degree;;-1.5;38;%6.3lf;99.999;;;0.001;SSJT, Temperature inside TSG calibrated using linearization coefficient;
-SSJT_CALCOEF;NCOEF_CAL;TEMPERATURE CALIBRATION COEFFICIENTS;;;a,b,c,d,f0;;;;99999.;;;;Temperature calibrated using linearization coefficient;
-SSJT_LINCOEF;NCOEF_LIN;TEMPERATURE LINEAR DRIFT CORRECTION COEFFICIENTS;;;a,b;;;;99999.;;;;Temperature linear drift correction coefficient;
-SSJT_ADJUSTED;DAYD;WATER JACKET TEMPERATURE ADJUSTED;temperature in TSG adjusted;Celsius degree;;-1.5;38;%6.3lf;99.999;;;0.001;Adjusted SSJT with external data (CTD,ARGO,XBT,...);
-SSJT_ADJUSTED_ERROR;DAYD;ERROR ON ADJUSTED WATER JACKET TEMPERATURE;error temperature in TSG adjusted;Celsius degree;;-1.5;38;%6.3lf;99.999;;;0.001;Quality flag applied on adjusted SSJT;
-SSJT_ADJUSTED_QC;DAYD;WATER JACKET TEMPERATURE QUALITY FLAG;quality flag applied on temperature in TSG adjusted;Celsius degree;;-1.5;38;%6.3lf;99.999;;;0.001;Quality flag applied on adjusted SSJT;
-SSJT_ADJUSTED_HIST;DAYD;ADJUSTED WATER JACKET TEMPERATURE PROCESSING HISTORY;temperature in TSG adjusted processing history;Celsius degree;;-1.5;38;%6.3lf;99.999;;;0.001;;
-SSPS;DAYD;SEA SURFACE PRACTICAL SALINITY;surface salinity;P.S.U.;;0;40;%6.3lf;99.999;;;0.001;Ocean salinity deduced fron conductivity and jacket TSG temperature;
-SSPS_QC;DAYD;SEA SURFACE SALINITY QUALITY FLAG;surface salinity quality;;;0;9;%1d;0;;;;Quality flag applied on salinity values;
-SSPS_CAL;DAYD;SEA SURFACE SALINITY CALIBRATED;surface salinity calibrated;P.S.U.;;0;40;%6.3lf;99.999;;;;Calibrated Ocean salinity deduced fron conductivity and jacket tsg temperature;
-SSPS_ADJUSTED;DAYD;SEA SURFACE SALINITY ADJUSTED;surface salinity adjusted;P.S.U.;;0;40;%6.3lf;99.999;;;0.001;Adjusted Ocean salinity deduced fron conductivity and jacket tsg temperature;
-SSPS_ADJUSTED_ERROR;DAYD;ERROR ON SEA SURFACE SALINITY ADJUSTED;error surface salinity adjusted;P.S.U.;;0;40;%6.3lf;99.999;;;;Error on adjusted Ocean salinity deduced fron conductivity and jacket tsg temperature;
-SSPS_ADJUSTED_QC;DAYD;ERROR ON SEA SURFACE SALINITY ADJUSTED QUALITY FLAG;error surface salinity adjusted quality;;;0;9;%1d;0;;;;Quality flag applied on adjusted Ocean salinity deduced fron conductivity and jacket tsg temperature;
-SSPS_ADJUSTED_HIST;DAYD;ADJUSTED SEA SURFACE SALINITY PROCESSING HISTORY;surface salinity adjusted processing history;;;;;;;;;;;
-SSPS_DEPH;N1;NOMINAL DEPTH OF WATER INTAKE FOR SALINITY MEASUREMENT;depth surface salinity;meter;;0;100;%6.3lf;99999.;;;;;
-SSPS_DEPH_MIN;N1;MINIMUM DEPTH OF WATER INTAKE FOR SALINITY MEASUREMENT;min depth surface salinity;meter;;0;100;%6.3lf;99999.;;;;;
-SSPS_DEPH_MAX;N1;MAXIMUM DEPTH OF WATER INTAKE FOR SALINITY MEASUREMENT;max depth surface salinity;meter;;0;100;%6.3lf;99999.;;;;;
-SSPS_WS;DAYD_WS;SEA SURFACE PRACTICAL SALINIT FROM WATER SAMPLE;surface salinity;P.S.U.;;0;40;%6.3lf;99.999;;;0.001;Sea surface salinity from water sample;
-SSPS_WS_QC;DAYD_WS;SEA SURFACE SALINITY QUALITY FLAG;surface salinity quality;;;0;9;%1d;0;;;;Quality flag applied on salinity values from water sample;
-SSPS_WS_ANALDATE;DAYD_WS;DATE OF WATER SAMPLE SURFACE SALINITY ANALYSIS;;;yyyymmddhhmmss;;;;;;;;Date of sea surface salinity water sample analysis;
-SSPS_WS_BOTTLE;DAYD_WS;SEA SURFACE SALINITY BOTTLE NUMBER;;;;;;;;;;;Number of sea surface salinity water sample;
-SSTP;DAYD;SEA SURFACE TEMPERATURE;surface temperature;Celsius degree;;-1.5;38;%6.3lf;99.999;;;0.001;Sea Surface Temperature (SST) measure at intake with external instrument. This is ocean SST;
-SSTP_QC;DAYD;SEA SURFACE TEMPERATURE QUALITY FLAG;surface temperature quality;;;0;9;%1d;0;;;;Quality flag applied on SST temperature values;
-SSTP_CAL;DAYD;SEA SURFACE TEMPERATURE CALIBRATED;surface temperature calibrated;Celsius degree;;-1.5;38;%6.3lf;99.999;;;;Calibrated Ocean temperature;
-SSTP_ADJUSTED;DAYD;SEA SURFACE TEMPERATURE ADJUSTED;surface temperature adjusted;Celsius degree;;-1.5;38;%6.3lf;99.999;;;;Adjusted Ocean temperature;
-SSTP_ADJUSTED_ERROR;DAYD;ERROR ON SEA SURFACE TEMPERATURE ADJUSTED;error surface temperature adjusted;Celsius degree;;-1.5;38;%6.3lf;99.999;;;;Error on adjusted Ocean temperature;
-SSTP_ADJUSTED_QC;DAYD;SEA SURFACE TEMPERATURE ADJUSTED QUALITY FLAG;quality flag on surface temperature adjusted;;;0;9;%1d;0;;;;Quality flag applied on adjusted Ocean temperature;
-SSTP_ADJUSTED_HIST;DAYD;ADJUSTED SEA SURFACE TEMPERATURE PROCESSING HISTORY;surface temperature adjusted processing history;;;;;;;;;;;
-SSTP_DEPH;N1;NOMINAL DEPTH OF WATER INTAKE FOR TEMPERATURE MEASUREMENT;depth surface temperature;meter;;0;100;%6.3lf;99999;;;;;
-SSTP_DEPH_MIN;N1;MINIMUM DEPTH OF WATER INTAKE FOR TEMPERATURE MEASUREMENT;min depth surface temperature;meter;;0;100;%6.3lf;99999;;;;;
-SSTP_DEPH_MAX;N1;MAXIMUM DEPTH OF WATER INTAKE FOR TEMPERATURE MEASUREMENT;max depth surface temperature;meter;;0;100;%6.3lf;99999;;;;;
-SSTP_CALCOEF;NCOEF_CAL;TEMPERATURE CALIBRATION COEFFICIENTS;;;a,b,c,d,f0;;;;99999.;;;;Temperature calibrated using linearization coefficient;
-SSTP_LINCOEF;NCOEF_LIN;TEMPERATURE LINEAR DRIFT CORRECTION COEFFICIENTS;;;a,b;;;;99999.;;;;Temperature linear drift correction coefficient;
-SSTP_EXT;DAYD_EXT;SEA SURFACE TEMPERATURE FROM EXTERNAL DATA;surface temperature;Celsius degree;;-1.5;38;%6.3lf;99.999;;;0.001;Sea Surface Temperature (SST) from external data instrument;
-SSTP_EXT_QC;DAYD_EXT;SEA SURFACE TEMPERATURE QUALITY FLAG;surface temperature quality;;;0;9;%1d;0;;;;Quality flag applied on external temperature data values;
-SSTP_EXT_TYPE;DAYD_EXT;SEA SURFACE TEMPERATURE EXTERNAL INSTRUMENT TYPE;surface temperature type instrument;;;;;;;;;;CTD,ARGO,XBT,...;
-SSPS_EXT;DAYD_EXT;SEA SURFACE PRACTICAL SALINIT FROM WATER SAMPLE;surface salinity;P.S.U.;;0;40;%6.3lf;99.999;;;0.001;Sea surface salinity from external instrument;
-SSPS_EXT_QC;DAYD_EXT;SEA SURFACE SALINITY QUALITY FLAG;surface salinity quality;;;0;9;%1d;0;;;;Quality flag applied on salinity values from external instrument;
-SSPS_EXT_TYPE;DAYD_EXT;SEA SURFACE SALINITY EXTERNAL INSTRUMENT TYPE;surface salinity type instrument;;;;;;;;;;CTD,ARGO,XBT,...;
+id;code;dimension;long_name;standard_name;units;conventions;valid_min;valid_max;format;FillValue;epic_code;axis;resolution;comment;
+integer;char;char;char;char;char;char;integer;integer;char;double;integer;char;double;char;
+1;REFERENCE_DATE_TIME;STRING14;;;;yyyymmddhhmmss;;;;;;;;Reference date for julian days origin;
+2;DATE;DAYD,STRING14;DATE OF MAIN INSTRUMENT MEASUREMENT;;;yyyymmddhhmmss;;;;;;;;This is the original data describing the date, it must not be lost;
+3;DATE_WS;DAYD,STRING14;DATE OF WATER SAMPLE;;;yyyymmddhhmmss;;;;;;;;This is the original data describing the date, it must not be lost;
+4;DATE_EXT;DAYD,STRING14;DATE OF EACH EXTERNAL DATA MEASUREMENT;;;yyyymmddhhmmss;;;;;;;;This is the original data describing the date, it must not be lost;
+5;DAYD;DAYD;DECIMAL JULIAN DAY (UTC) OF EACH MEASUREMENT;time;days since 1950/01/01 00:00:00;Relative julian days with decimal part (as parts of the day);0.0;36600.0;%9.5lf;9999999.;601;t;;Julian day of the measurement;
+6;DAYD_WS;DAYD_WS;DECIMAL JULIAN DAY (UTC) OF EACH WATER SAMPLE;time;days since 1950/01/01 00:00:00;Relative julian days with decimal part (as parts of the day);0.0;36600.0;%9.5lf;9999999.;601;t;;Julian day of the measurement;
+7;DAYD_EXT;DAYD_EXT;DECIMAL JULIAN DAY (UTC) OF EXTERNAL DATA MEASUREMENT;time;Days since 1950/01/01 00:00:00;Relative julian days with decimal part (as parts of the day);0.0;36600.0;%9.5lf;9999999.;601;t;;Julian day of the measurement;
+8;LATX;DAYD;LATITUDE OF EACH MEASUREMENT;latitude;degree_north (decimal);;-90;90;%+8.4lf;999999.;500;;;Latitude of the measurement;
+9;LATX_WS;DAYD_WS;LATITUDE OF WATER SAMPLE;latitude;degree_north (decimal);;-90;90;%+8.4lf;999999.;500;;;Latitude of the measurement;
+10;LATX_EXT;DAYD_EXT;LATITUDE OF EACH EXTERNAL DATA MEASUREMENT;latitude;degree_north (decimal);;-90;90;%+8.4lf;999999.;500;;;Latitude of the measurement;
+11;LONX;DAYD;LONGITUDE OF EACH MEASUREMENT;longitude;degree_east (decimal);;-180;180;%+9.4lf;999999.;501;;;Longitude of the measurement;
+12;LONX_WS;DAYD_WS;LONGITUDE OF WATER SAMPLE;longitude;degree_east (decimal);;-180;180;%+9.4lf;999999.;501;;;Longitude of the measurement;
+13;LONX_EXT;DAYD_EXT;LONGITUDE OF EACH EXTERNAL DATA MEASUREMENT;longitude;degree_east (decimal);;-180;180;%+9.4lf;999999.;501;;;Longitude of the measurement;
+14;SPDC;DAYD;SHIP SPEED COMPUTED FROM NAVIGATION;speed;knots;;0;50;%6.3lf;99999.;;;0.1;Ship speed from GPS (SOG). If SOG not available, derived from last position;
+15;PRES;DAYD;SEA PRESSURE IN TSG;pressure;decibar=10000 pascals;;0;10;%6.1lf;99999.;;;0.1;Pressure inside TSG, this is an indication that pump is working properly;
+16;CNDC;DAYD;ELECTRICAL CONDUCTIVITY;conductivity;mho/meter;;0;7;%5.3lf;99999.;;;0.0001;Conductivity measured by TSG. This data may have been reduced with a media (recommended) or a mean;
+17;CNDC_STD;DAYD;CONDUCTIVITY STANDARD DEVIATION;conductivity;mho/meter;;0;7;%5.3lf;99999.;;;0.0001;Standard deviation of conductivity measured by TSG (CNDC);
+18;CNDC_CAL;DAYD;CONDUCTIVITY CALIBRATED;conductivity calibrated;mho/meter;;0;7;%5.3lf;99999.;;;0.0001;Conductivity calibrated using linearization coefficient;
+19;CNDC_CALCOEF;NCOEF_CAL;CONDUCTIVITY CALIBRATION COEFFICIENTS;;;a,b,c,d,m;;;;99999.;;;;Conductivity linear drift correction coefficient;
+20;CNDC_LINCOEF;NCOEF_LIN;CONDUCTIVITY LINEAR DRIFT CORRECTION COEFFICIENTS;;;a,b;;;;99999.;;;;Conductivity Ocean temperature;
+21;SSJT;DAYD;WATER JACKET TEMPERATURE;temperature in TSG;Celsius degree;;-1.5;38;%6.3lf;99.999;;;0.001;Temperature inside TSG (Water Jacket Temperature). Warning, this is not ocean SST temperature. Used for salinity computation;
+22;SSJT_STD;DAYD;WATER JACKET TEMPERATURE STANDARD DEVIATION;temperature std;Celsius degree;;-1.5;38;%6.3lf;99.999;;;0.001;SSJT, Temperature inside TSG standard deviation for data wich have been reduced (with a mean or median);
+23;SSJT_CAL;DAYD;WATER JACKET TEMPERATURE CALIBRATED;temperature cal;Celsius degree;;-1.5;38;%6.3lf;99.999;;;0.001;SSJT, Temperature inside TSG calibrated using linearization coefficient;
+24;SSJT_CALCOEF;NCOEF_CAL;TEMPERATURE CALIBRATION COEFFICIENTS;;;a,b,c,d,f0;;;;99999.;;;;Temperature calibrated using linearization coefficient;
+25;SSJT_LINCOEF;NCOEF_LIN;TEMPERATURE LINEAR DRIFT CORRECTION COEFFICIENTS;;;a,b;;;;99999.;;;;Temperature linear drift correction coefficient;
+26;SSJT_ADJUSTED;DAYD;WATER JACKET TEMPERATURE ADJUSTED;temperature in TSG adjusted;Celsius degree;;-1.5;38;%6.3lf;99.999;;;0.001;Adjusted SSJT with external data (CTD,ARGO,XBT,...);
+27;SSJT_ADJUSTED_ERROR;DAYD;ERROR ON ADJUSTED WATER JACKET TEMPERATURE;error temperature in TSG adjusted;Celsius degree;;-1.5;38;%6.3lf;99.999;;;0.001;Quality flag applied on adjusted SSJT;
+28;SSJT_ADJUSTED_QC;DAYD;WATER JACKET TEMPERATURE QUALITY FLAG;quality flag applied on temperature in TSG adjusted;Celsius degree;;-1.5;38;%6.3lf;99.999;;;0.001;Quality flag applied on adjusted SSJT;
+29;SSJT_ADJUSTED_HIST;DAYD;ADJUSTED WATER JACKET TEMPERATURE PROCESSING HISTORY;temperature in TSG adjusted processing history;Celsius degree;;-1.5;38;%6.3lf;99.999;;;0.001;;
+30;SSPS;DAYD;SEA SURFACE PRACTICAL SALINITY;surface salinity;P.S.U.;;0;40;%6.3lf;99.999;;;0.001;Ocean salinity deduced fron conductivity and jacket TSG temperature;
+31;SSPS_QC;DAYD;SEA SURFACE SALINITY QUALITY FLAG;surface salinity quality;;;0;9;%1d;0;;;;Quality flag applied on salinity values;
+32;SSPS_CAL;DAYD;SEA SURFACE SALINITY CALIBRATED;surface salinity calibrated;P.S.U.;;0;40;%6.3lf;99.999;;;;Calibrated Ocean salinity deduced fron conductivity and jacket tsg temperature;
+33;SSPS_ADJUSTED;DAYD;SEA SURFACE SALINITY ADJUSTED;surface salinity adjusted;P.S.U.;;0;40;%6.3lf;99.999;;;0.001;Adjusted Ocean salinity deduced fron conductivity and jacket tsg temperature;
+34;SSPS_ADJUSTED_ERROR;DAYD;ERROR ON SEA SURFACE SALINITY ADJUSTED;error surface salinity adjusted;P.S.U.;;0;40;%6.3lf;99.999;;;;Error on adjusted Ocean salinity deduced fron conductivity and jacket tsg temperature;
+35;SSPS_ADJUSTED_QC;DAYD;ERROR ON SEA SURFACE SALINITY ADJUSTED QUALITY FLAG;error surface salinity adjusted quality;;;0;9;%1d;0;;;;Quality flag applied on adjusted Ocean salinity deduced fron conductivity and jacket tsg temperature;
+36;SSPS_ADJUSTED_HIST;DAYD;ADJUSTED SEA SURFACE SALINITY PROCESSING HISTORY;surface salinity adjusted processing history;;;;;;;;;;;
+37;SSPS_DEPH;N1;NOMINAL DEPTH OF WATER INTAKE FOR SALINITY MEASUREMENT;depth surface salinity;meter;;0;100;%6.3lf;99999.;;;;;
+38;SSPS_DEPH_MIN;N1;MINIMUM DEPTH OF WATER INTAKE FOR SALINITY MEASUREMENT;min depth surface salinity;meter;;0;100;%6.3lf;99999.;;;;;
+39;SSPS_DEPH_MAX;N1;MAXIMUM DEPTH OF WATER INTAKE FOR SALINITY MEASUREMENT;max depth surface salinity;meter;;0;100;%6.3lf;99999.;;;;;
+40;SSPS_WS;DAYD_WS;SEA SURFACE PRACTICAL SALINIT FROM WATER SAMPLE;surface salinity;P.S.U.;;0;40;%6.3lf;99.999;;;0.001;Sea surface salinity from water sample;
+41;SSPS_WS_QC;DAYD_WS;SEA SURFACE SALINITY QUALITY FLAG;surface salinity quality;;;0;9;%1d;0;;;;Quality flag applied on salinity values from water sample;
+42;SSPS_WS_ANALDATE;DAYD_WS;DATE OF WATER SAMPLE SURFACE SALINITY ANALYSIS;;;yyyymmddhhmmss;;;;;;;;Date of sea surface salinity water sample analysis;
+43;SSPS_WS_BOTTLE;DAYD_WS;SEA SURFACE SALINITY BOTTLE NUMBER;;;;;;;;;;;Number of sea surface salinity water sample;
+44;SSTP;DAYD;SEA SURFACE TEMPERATURE;surface temperature;Celsius degree;;-1.5;38;%6.3lf;99.999;;;0.001;Sea Surface Temperature (SST) measure at intake with external instrument. This is ocean SST;
+45;SSTP_QC;DAYD;SEA SURFACE TEMPERATURE QUALITY FLAG;surface temperature quality;;;0;9;%1d;0;;;;Quality flag applied on SST temperature values;
+46;SSTP_CAL;DAYD;SEA SURFACE TEMPERATURE CALIBRATED;surface temperature calibrated;Celsius degree;;-1.5;38;%6.3lf;99.999;;;;Calibrated Ocean temperature;
+47;SSTP_ADJUSTED;DAYD;SEA SURFACE TEMPERATURE ADJUSTED;surface temperature adjusted;Celsius degree;;-1.5;38;%6.3lf;99.999;;;;Adjusted Ocean temperature;
+48;SSTP_ADJUSTED_ERROR;DAYD;ERROR ON SEA SURFACE TEMPERATURE ADJUSTED;error surface temperature adjusted;Celsius degree;;-1.5;38;%6.3lf;99.999;;;;Error on adjusted Ocean temperature;
+49;SSTP_ADJUSTED_QC;DAYD;SEA SURFACE TEMPERATURE ADJUSTED QUALITY FLAG;quality flag on surface temperature adjusted;;;0;9;%1d;0;;;;Quality flag applied on adjusted Ocean temperature;
+50;SSTP_ADJUSTED_HIST;DAYD;ADJUSTED SEA SURFACE TEMPERATURE PROCESSING HISTORY;surface temperature adjusted processing history;;;;;;;;;;;
+51;SSTP_DEPH;N1;NOMINAL DEPTH OF WATER INTAKE FOR TEMPERATURE MEASUREMENT;depth surface temperature;meter;;0;100;%6.3lf;99999;;;;;
+52;SSTP_DEPH_MIN;N1;MINIMUM DEPTH OF WATER INTAKE FOR TEMPERATURE MEASUREMENT;min depth surface temperature;meter;;0;100;%6.3lf;99999;;;;;
+53;SSTP_DEPH_MAX;N1;MAXIMUM DEPTH OF WATER INTAKE FOR TEMPERATURE MEASUREMENT;max depth surface temperature;meter;;0;100;%6.3lf;99999;;;;;
+54;SSTP_CALCOEF;NCOEF_CAL;TEMPERATURE CALIBRATION COEFFICIENTS;;;a,b,c,d,f0;;;;99999.;;;;Temperature calibrated using linearization coefficient;
+55;SSTP_LINCOEF;NCOEF_LIN;TEMPERATURE LINEAR DRIFT CORRECTION COEFFICIENTS;;;a,b;;;;99999.;;;;Temperature linear drift correction coefficient;
+56;SSTP_EXT;DAYD_EXT;SEA SURFACE TEMPERATURE FROM EXTERNAL DATA;surface temperature;Celsius degree;;-1.5;38;%6.3lf;99.999;;;0.001;Sea Surface Temperature (SST) from external data instrument;
+57;SSTP_EXT_QC;DAYD_EXT;SEA SURFACE TEMPERATURE QUALITY FLAG;surface temperature quality;;;0;9;%1d;0;;;;Quality flag applied on external temperature data values;
+58;SSTP_EXT_TYPE;DAYD_EXT;SEA SURFACE TEMPERATURE EXTERNAL INSTRUMENT TYPE;surface temperature type instrument;;;;;;;;;;CTD,ARGO,XBT,...;
+59;SSPS_EXT;DAYD_EXT;SEA SURFACE PRACTICAL SALINIT FROM WATER SAMPLE;surface salinity;P.S.U.;;0;40;%6.3lf;99.999;;;0.001;Sea surface salinity from external instrument;
+60;SSPS_EXT_QC;DAYD_EXT;SEA SURFACE SALINITY QUALITY FLAG;surface salinity quality;;;0;9;%1d;0;;;;Quality flag applied on salinity values from external instrument;
+61;SSPS_EXT_TYPE;DAYD_EXT;SEA SURFACE SALINITY EXTERNAL INSTRUMENT TYPE;surface salinity type instrument;;;;;;;;;;CTD,ARGO,XBT,...;
\ No newline at end of file
-- 
GitLab