[Dart-dev] DART/branches Revision: 11014
dart at ucar.edu
dart at ucar.edu
Tue Feb 7 11:11:08 MST 2017
thoar at ucar.edu
2017-02-07 11:11:08 -0700 (Tue, 07 Feb 2017)
109
Will now build the netCDF files as the first step.
Documentation changed to reference the netCDF filenames.
Modified: DART/branches/rma_single_file/models/9var/work/workshop_setup.csh
===================================================================
--- DART/branches/rma_single_file/models/9var/work/workshop_setup.csh 2017-02-07 18:07:28 UTC (rev 11013)
+++ DART/branches/rma_single_file/models/9var/work/workshop_setup.csh 2017-02-07 18:11:08 UTC (rev 11014)
@@ -11,7 +11,7 @@
#
# Executes a known "perfect model" experiment using an existing
# observation sequence file (obs_seq.in) and initial conditions appropriate
-# for both 'perfect_model_obs' (perfect_ics) and 'filter' (filter_ics).
+# for both 'perfect_model_obs' (perfect_input.nc) and 'filter' (filter_input.nc).
# There are enough initial conditions for a 20 member ensemble in filter.
# Use ens_size = 21 and it WILL bomb. Guaranteed.
# The 'input.nml' file controls all facets of this execution.
@@ -18,8 +18,8 @@
#
# 'create_obs_sequence' and 'create_fixed_network_sequence' were used to
# create the observation sequence file 'obs_seq.in' - this defines
-# what/where/when we want observations. This script does not run these
-# programs - intentionally.
+# what/where/when we want observations. This script builds these
+# programs in support of the tutorial exercises but does not RUN them.
#
# 'perfect_model_obs' results in a True_State.nc file that contains
# the true state, and obs_seq.out - a file that contains the "observations"
@@ -40,7 +40,23 @@
# 'obs_diag' is a program that will create observation-space diagnostics
# for any result of 'filter' and results in a couple data files that can
# be explored with yet more matlab scripts.
+#----------------------------------------------------------------------
+# The input model states for both perfect_model_obs and filter come
+# from netCDF files and must be built from the source .cdl files.
+
+which ncgen > /dev/null
+if ($status != 0) then
+ echo "The required input netCDF files must be build using 'ncgen'"
+ echo "'ncgen' is not currently available. It comes with every"
+ echo "netCDF installation and is needed by DART. Stopping."
+ exit 1
+endif
+
+\rm -f perfect_input.nc filter_input.nc
+ncgen -o perfect_input.nc perfect_input.cdl
+ncgen -o filter_input.nc filter_input.cdl
+
#----------------------------------------------------------------------
# 'preprocess' is a program that culls the appropriate sections of the
# observation module for the observations types in 'input.nml'; the
@@ -60,6 +76,14 @@
make || exit 1
./preprocess || exit 99
+echo 'building create_obs_sequence'
+csh mkmf_create_obs_sequence
+make || exit 2
+
+echo 'building create_fixed_network_seq'
+csh mkmf_create_fixed_network_seq
+make || exit 3
+
echo 'building perfect_model_obs'
csh mkmf_perfect_model_obs
make || exit 4
Modified: DART/branches/rma_single_file/models/bgrid_solo/work/workshop_setup.csh
===================================================================
--- DART/branches/rma_single_file/models/bgrid_solo/work/workshop_setup.csh 2017-02-07 18:07:28 UTC (rev 11013)
+++ DART/branches/rma_single_file/models/bgrid_solo/work/workshop_setup.csh 2017-02-07 18:11:08 UTC (rev 11014)
@@ -11,7 +11,7 @@
#
# Executes a known "perfect model" experiment using an existing
# observation sequence file (obs_seq.in) and initial conditions appropriate
-# for both 'perfect_model_obs' (perfect_ics) and 'filter' (filter_ics).
+# for both 'perfect_model_obs' (perfect_input.nc) and 'filter' (filter_input.nc).
# There are enough initial conditions for 80 ensemble members in filter.
# Use ens_size = 81 and it WILL bomb. Guaranteed.
# The 'input.nml' file controls all facets of this execution.
@@ -40,7 +40,23 @@
# 'obs_diag' is a program that will create observation-space diagnostics
# for any result of 'filter' and results in a couple data files that can
# be explored with yet more matlab scripts.
+#----------------------------------------------------------------------
+# The input model states for both perfect_model_obs and filter come
+# from netCDF files and must be built from the source .cdl files.
+
+which ncgen > /dev/null
+if ($status != 0) then
+ echo "The required input netCDF files must be build using 'ncgen'"
+ echo "'ncgen' is not currently available. It comes with every"
+ echo "netCDF installation and is needed by DART. Stopping."
+ exit 1
+endif
+
+\rm -f perfect_input.nc filter_input.nc
+ncgen -o perfect_input.nc perfect_input.cdl
+ncgen -o filter_input.nc filter_input.cdl
+
#----------------------------------------------------------------------
# 'preprocess' is a program that culls the appropriate sections of the
# observation module for the observations types in 'input.nml'; the
More information about the Dart-dev
mailing list