[Dart-dev] [4166] DART/trunk/observations/GTSPP: We aren't using these obs anymore, but these were the last changes
nancy at ucar.edu
nancy at ucar.edu
Wed Nov 25 14:25:19 MST 2009
Revision: 4166
Author: nancy
Date: 2009-11-25 14:25:19 -0700 (Wed, 25 Nov 2009)
Log Message:
-----------
We aren't using these obs anymore, but these were the last changes
made to the converter & docs - to use the right salinity units.
Modified Paths:
--------------
DART/trunk/observations/GTSPP/GTSPP.html
DART/trunk/observations/GTSPP/gtspp_to_obs.f90
-------------- next part --------------
Modified: DART/trunk/observations/GTSPP/GTSPP.html
===================================================================
--- DART/trunk/observations/GTSPP/GTSPP.html 2009-11-25 20:58:27 UTC (rev 4165)
+++ DART/trunk/observations/GTSPP/GTSPP.html 2009-11-25 21:25:19 UTC (rev 4166)
@@ -87,6 +87,14 @@
with one execution of the converter program.
</P>
+<P>
+The units in the source file are degrees C for temperature, g/kg for
+salinity, and so far we have not found any error information (not
+quality control, but observation instrument error values). There is
+probably instrument source information encoded in these files, but
+so far we don't have the key. The quality control values are read
+and only those with a QC of 1 are retained.
+</P>
<!--==================================================================-->
<A NAME="Programs"></A>
Modified: DART/trunk/observations/GTSPP/gtspp_to_obs.f90
===================================================================
--- DART/trunk/observations/GTSPP/gtspp_to_obs.f90 2009-11-25 20:58:27 UTC (rev 4165)
+++ DART/trunk/observations/GTSPP/gtspp_to_obs.f90 2009-11-25 21:25:19 UTC (rev 4166)
@@ -254,9 +254,10 @@
call print_date(obs_time, 'obs time')
endif
- ! FIXME:
- terr = 2.0 ! temp error = 2 degrees C
- serr = 1.0 ! salinity error = 1 something?
+ ! FIXME: these have no physical basis; selected to get us running
+ ! but need some domain expertise for guidance.
+ terr = 1.0 ! temp error = fixed at 1 degrees C
+ serr = 0.001 ! salinity error = 1 g/kg, which is 0.001 kg/kg
first_obs = .true.
@@ -267,7 +268,7 @@
if (have_temp .and. i_qc == 1) then
! set qc to a good dart val
- d_qc(1) = 0.0 ! but for dart, a QC of 0 is good
+ d_qc(1) = 0.0 ! for dart, a QC of 0 is good
! set location - incoming obs are -180 to 180 in longitude;
! dart wants 0 to 360.
@@ -286,7 +287,7 @@
qc_val(1) = d_qc(1)
call set_qc(obs, qc_val)
- ! first one, insert with no prev. otherwise, since all times will be the
+ ! first one, insert with no prev. otherwise, since all times are the
! same for this column, insert with the prev obs as the starting point.
! (the first insert with no prev means it will search for the right
! time ordered starting point.)
@@ -322,12 +323,14 @@
call set_obs_def_key(obs_def, obs_num)
call set_obs_def(obs, obs_def)
- obs_val(1) = salinity(k)
+ ! incoming obs are g/kg (practical salinity units - psu)
+ ! model works in kg/kg (model salinity units - msu) so convert here.
+ obs_val(1) = salinity(k) / 1000.0_r8
call set_obs_values(obs, obs_val)
qc_val(1) = d_qc(1)
call set_qc(obs, qc_val)
- ! first one, insert with no prev. otherwise, since all times will be the
+ ! first one, insert with no prev. otherwise, since all times are the
! same for this column, insert with the prev obs as the starting point.
! (the first insert with no prev means it will search for the right
! time ordered starting point.)
More information about the Dart-dev
mailing list