[Dart-dev] DART/branches Revision: 11431

dart at ucar.edu dart at ucar.edu
Tue Apr 4 11:11:47 MDT 2017


hendric at ucar.edu
2017-04-04 11:11:44 -0600 (Tue, 04 Apr 2017)
445
removing month_lenghts and using the cf-convention of
"none" for no_calandar in the low order models.  This
fixed and error in ncview 2.1.7 which would not display
variables with no calendar and units with 
days since xxxx-xx-xx xx:xx:xx.  Units for low order models
are all now in days.

nondimensional was also removed from the units as it was not
complient with ncview.  nondimensional variables should be
written without a units attribute.




Modified: DART/branches/rma_trunk/models/9var/model_mod.f90
===================================================================
--- DART/branches/rma_trunk/models/9var/model_mod.f90	2017-04-04 17:08:19 UTC (rev 11430)
+++ DART/branches/rma_trunk/models/9var/model_mod.f90	2017-04-04 17:11:44 UTC (rev 11431)
@@ -717,7 +717,6 @@
               dimids = LocationDimID, varid=LocationVarID) )
 call check(nf90_put_att(ncFileID, LocationVarID, "long_name", trim(adjustl(LocationLName))))
 call check(nf90_put_att(ncFileID, LocationVarID, "dimension", LocationDims ))
-call check(nf90_put_att(ncFileID, LocationVarID, "units", "nondimensional"))
 call check(nf90_put_att(ncFileID, LocationVarID, "valid_range", (/ 0.0_r8, 1.0_r8 /)))
 
 ! Leave define mode so we can fill

Modified: DART/branches/rma_trunk/models/9var/work/filter_input.cdl
===================================================================
--- DART/branches/rma_trunk/models/9var/work/filter_input.cdl	2017-04-04 17:08:19 UTC (rev 11430)
+++ DART/branches/rma_trunk/models/9var/work/filter_input.cdl	2017-04-04 17:11:44 UTC (rev 11431)
@@ -34,17 +34,15 @@
 		time:long_name = "valid time of the model state" ;
 		time:axis = "T" ;
 		time:cartesian_axis = "T" ;
-		time:calendar = "no calendar" ;
-                time:month_lengths = 31,28,31,30,31,30,31,31,30,31,30,31 ;
-		time:units = "days since 0000-01-01 00:00:00" ;
+		time:calendar = "none" ;
+		time:units = "days" ;
 
 	double advance_to_time ;
 		advance_to_time:long_name = "desired time at end of the next model advance" ;
 		advance_to_time:axis = "T" ;
 		advance_to_time:cartesian_axis = "T" ;
-		advance_to_time:calendar = "no calendar" ;
-                advance_to_time:month_lengths = 31,28,31,30,31,30,31,31,30,31,30,31 ;
-		advance_to_time:units = "days since 0000-01-01 00:00:00" ;
+		advance_to_time:calendar = "none" ;
+		advance_to_time:units = "days" ;
 
 // global attributes:
 		:title = "an ensemble of spun-up model states" ;

Modified: DART/branches/rma_trunk/models/9var/work/perfect_input.cdl
===================================================================
--- DART/branches/rma_trunk/models/9var/work/perfect_input.cdl	2017-04-04 17:08:19 UTC (rev 11430)
+++ DART/branches/rma_trunk/models/9var/work/perfect_input.cdl	2017-04-04 17:11:44 UTC (rev 11431)
@@ -22,9 +22,8 @@
 		time:long_name = "valid time of the model state" ;
 		time:axis = "T" ;
 		time:cartesian_axis = "T" ;
-		time:calendar = "no calendar" ;
-                time:month_lengths = 31,28,31,30,31,30,31,31,30,31,30,31 ;
-		time:units = "days since 0000-01-01 00:00:00" ;
+		time:calendar = "none" ;
+		time:units = "days" ;
 
 // global attributes:
                 :title = "a spun-up model state" ;

Modified: DART/branches/rma_trunk/models/bgrid_solo/work/filter_input.cdl
===================================================================
--- DART/branches/rma_trunk/models/bgrid_solo/work/filter_input.cdl	2017-04-04 17:08:19 UTC (rev 11430)
+++ DART/branches/rma_trunk/models/bgrid_solo/work/filter_input.cdl	2017-04-04 17:11:44 UTC (rev 11431)
@@ -88,17 +88,15 @@
 		time:long_name = "valid time of the model state" ;
 		time:axis = "T" ;
 		time:cartesian_axis = "T" ;
-		time:calendar = "no calendar" ;
-                time:month_lengths = 31,28,31,30,31,30,31,31,30,31,30,31 ;
-		time:units = "days since 0000-01-01 00:00:00" ;
+		time:calendar = "none" ;
+		time:units = "days" ;
 
 	double advance_to_time ;
 		advance_to_time:long_name = "desired time at end of the next model advance" ;
 		advance_to_time:axis = "T" ;
 		advance_to_time:cartesian_axis = "T" ;
-		advance_to_time:calendar = "no calendar" ;
-                advance_to_time:month_lengths = 31,28,31,30,31,30,31,31,30,31,30,31 ;
-		advance_to_time:units = "days since 0000-01-01 00:00:00" ;
+		advance_to_time:calendar = "none" ;
+		advance_to_time:units = "days" ;
 
 // global attributes:
 		:title = "an ensemble of spun-up model states" ;

Modified: DART/branches/rma_trunk/models/bgrid_solo/work/perfect_input.cdl
===================================================================
--- DART/branches/rma_trunk/models/bgrid_solo/work/perfect_input.cdl	2017-04-04 17:08:19 UTC (rev 11430)
+++ DART/branches/rma_trunk/models/bgrid_solo/work/perfect_input.cdl	2017-04-04 17:11:44 UTC (rev 11431)
@@ -64,9 +64,8 @@
 		time:long_name = "valid time of the model state" ;
 		time:axis = "T" ;
 		time:cartesian_axis = "T" ;
-		time:calendar = "no calendar" ;
-                time:month_lengths = 31,28,31,30,31,30,31,31,30,31,30,31 ;
-		time:units = "days since 0000-01-01 00:00:00" ;
+		time:calendar = "none" ;
+		time:units = "days" ;
 
 // global attributes:
 		:title = "true state from control" ;


More information about the Dart-dev mailing list