Skip to content

Commit

Permalink
Add CTDALTIMETER [METERS] as a prameter
Browse files Browse the repository at this point in the history
Closes #32
  • Loading branch information
DocOtak committed Oct 30, 2024
1 parent 03f7931 commit 014f577
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Parameter Changes
* Add TDN_ERROR as the error name for TDN [UMOL/KG] and TDN [UMOL/L]
* Add POC_ERROR as the error name for POC
* Add PON_ERROR as the error name for PON
* Add CTDALTIMETER [METERS] for the value reported by the altimeter, And an expected valid range of 0 to 100, hopefully its never 0 in any of the data.

v2024.10.0 (2024-10-04)
=======================
Expand Down
29 changes: 29 additions & 0 deletions cchdo/params/_whp_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -9661,6 +9661,35 @@
emission_wavelength=None,
nc_group=None,
),
WHPNameDC(
whp_name='CTDALTIMETER',
dtype='decimal',
in_erddap=False,
whp_unit='METERS',
nc_name='ctd_altimeter',
flag_w='woce_ctd',
cf_name='height_above_sea_floor',
numeric_min=0.0,
numeric_max=100.0,
numeric_precision=1,
field_width=9,
description='The height above the sea floor as measured by an altimeter.',
note=None,
warning=None,
error_name=None,
cf_unit='meters',
reference_scale=None,
whp_number=None,
scope='sample',
analytical_temperature_name=None,
analytical_temperature_units=None,
rank=74.7,
radiation_wavelength=None,
scattering_angle=None,
excitation_wavelength=None,
emission_wavelength=None,
nc_group=None,
),
]
for name in names:
whp_names[name.key] = name
Expand Down
Binary file modified cchdo/params/params.sqlite3
Binary file not shown.
2 changes: 2 additions & 0 deletions cchdo/params/params.sqlite3.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5784,6 +5784,7 @@ INSERT INTO "ex_params" VALUES('Nd_D_CONC',NULL,'Concentration of dissolved "bul
INSERT INTO "ex_params" VALUES('EWCT',NULL,'Eastward current velocity from a rosette mounted current meter. A positive value indicates zonal flow in the eastward direction, negative values are in the westward direction.',NULL,NULL,'sample','decimal','woce_ctd',0,162.0,0);
INSERT INTO "ex_params" VALUES('NSCT',NULL,'Northward current velocity from a rosette mounted current meter. A positive value indicates meridional flow in the northward direction, negative values are in the southward direction.',NULL,NULL,'sample','decimal','woce_ctd',0,162.1,0);
INSERT INTO "ex_params" VALUES('BSI',NULL,'Biogenic Silica, also called opal. Chemically is hydrated silica, SiO2 nH2O. Biogenic silica is in particulate form.',NULL,NULL,'sample','decimal','woce_discrete',0,163.0,0);
INSERT INTO "ex_params" VALUES('CTDALTIMETER',NULL,'The height above the sea floor as measured by an altimeter.',NULL,NULL,'sample','decimal','woce_ctd',0,74.7,0);
CREATE TABLE ex_units (
id INTEGER NOT NULL,
whp_unit VARCHAR,
Expand Down Expand Up @@ -6400,4 +6401,5 @@ INSERT INTO "whp_names" VALUES('BSI','UG/L',NULL,'biogenic_silica_ug',NULL,NULL,
INSERT INTO "whp_names" VALUES('CTDORP','VOLTS',NULL,'ctd_redox_potential_raw',NULL,NULL,NULL,NULL,NULL,9,4,NULL,NULL,NULL,NULL,NULL);
INSERT INTO "whp_names" VALUES('CTDCDOM','RFU',NULL,'ctd_cdom_rfu',NULL,NULL,NULL,NULL,NULL,9,5,NULL,NULL,NULL,NULL,NULL);
INSERT INTO "whp_names" VALUES('TDN','UMOL/L',NULL,'total_dissolved_nitrogen_l',NULL,NULL,'TDN_ERROR',NULL,NULL,9,2,NULL,NULL,NULL,NULL,NULL);
INSERT INTO "whp_names" VALUES('CTDALTIMETER','METERS','height_above_sea_floor','ctd_altimeter',0.0,100.0,NULL,NULL,NULL,9,1,NULL,NULL,NULL,NULL,NULL);
COMMIT;

0 comments on commit 014f577

Please sign in to comment.