PROGRAM fill_inflation_restart

DART project logo

Jump to DART Documentation Main Index
version information for this file:
$Id$

NAMELIST / FILES / REFERENCES / ERRORS / PLANS / TERMS OF USE

Overview

Utility program to create inflation restart files with constant values. Useful for a multi-step assimilation, so the values inf_initial_from_restart and inf_sd_initial_from_restart items in the &filter_nml namelist can be .TRUE. from the beginning.

This reads inflation values from the &fill_inflation_restart_nml namelist for prior_inf_mean, prior_inf_sd and post_inf_mean, post_inf_sd. It does not use the values in the & filter namelist.

This program uses the information from the model_mod code to determine the number of items in the state vector. It must be compiled with the right model's model_mod, and if the items in the state vector are selectable by namelist options, the namelist when running this program must match exactly the namelist used during the assimilation run.

It creates files with names consistent with the input names expected by filter:

input_priorinf_mean.nc
input_priorinf_sd.nc
input_postinf_mean.nc
input_postinf_sd.nc

Alternatively you can use one of the standard NCO utilities like "ncap2" on a copy of another restart file to set the initial inflation mean, and another for the initial inflation standard deviation. Inflation mean and sd values look exactly like restart values, arranged by variable type like T, U, V, etc.

Depending on your version of the NCO utilities, you can use ncap2 to set the T,U and V inf values using one of two syntaxes:

  ncap2 -s 'T=1.0;U=1.0;V=1.0' wrfinput_d01 input_priorinf_mean.nc
  ncap2 -s 'T=0.6;U=0.6;V=0.6' wrfinput_d01 input_priorinf_sd.nc
  -or-
  ncap2 -s 'T(:,:,:)=1.0;U(:,:,:)=1.0;V(:,:,:)=1.0' wrfinput_d01 input_priorinf_mean.nc
  ncap2 -s 'T(:,:,:)=0.6;U(:,:,:)=0.6;V(:,:,:)=0.6' wrfinput_d01 input_priorinf_sd.nc

Some versions of the NCO utilities change the full 3D arrays into a single scalar. If that's your result (check your output with ncdump -h) use the alternate syntax or a more recent version of the NCO tools.

[top]

NAMELIST

This namelist is read from the file input.nml. Namelists start with an ampersand '&' and terminate with a slash '/'. Character strings that contain a '/' must be enclosed in quotes to prevent them from prematurely terminating the namelist.

&fill_inflation_restart_nml

   write_prior_inf    = .FALSE.
   prior_inf_mean     = -88888.8888
   prior_inf_sd       = -88888.8888

   write_post_inf     = .FALSE.
   post_inf_mean      = -88888.8888
   post_inf_sd        = -88888.8888

   single_file        = .FALSE.
   input_state_files  = ''
   verbose            = .FALSE.
/

The namelist controls how the logging, namelist, messages, and general utility routines behave.

Item Type Description
write_prior_inf logical Setting this to .TRUE. writes both the prior inflation mean and standard deviation files: input_priorinf_mean.nc, input_priorinf_sd.nc.
prior_inf_mean real(r8) Prior inflation mean value.
prior_inf_sd real(r8) Prior inflation standard deviation value.
write_post_inf logical Setting this to .TRUE. writes both the posterior inflation mean and standard deviation files input_postinf_mean.nc, input_postinf_sd.nc.
post_inf_mean real(r8) Posterior inflation mean value.
post_inf_sd real(r8) Posterior inflation standard deviation value.
single_file logical Currently not supported, but would be used in the case where you have a single restart file that contains all of the ensemble members. Must be .false.
input_state_files character(:) For the single file case a list of input files, one per domain, to add the inflation values into with the proper netcdf variable names. Unused for the multiple file case.
verbose logical Setting this to .TRUE. gives more output, and is generally used for debugging


Here is an example of a typical namelist for fill_inflation_restart :

&fill_inflation_restart_nml

   write_prior_inf    = .TRUE.
   prior_inf_mean     = 1.01
   prior_inf_sd       = 0.6

   write_post_inf     = .FALSE.
   post_inf_mean      = 1.0
   post_inf_sd        = 0.6

   single_file        = .FALSE.
   input_state_files  = ''
   verbose            = .FALSE.
/

[top]

FILES

Creates:

input_priorinf_mean.nc
input_priorinf_sd.nc
input_postinf_mean.nc
input_postinf_sd.nc

based on the template file from the specific model this code is compiled for.

[top]

REFERENCES

[top]

ERROR CODES and CONDITIONS

Only works for models which have individual restart files and not the 'single_file' format, where all the ensemble members are contained in one file.

[top]

KNOWN BUGS

none

[top]

FUTURE PLANS

If requested we can implement the 'single_file' version of fill_inflation_restart.

[top]

Terms of Use

DART software - Copyright UCAR. This open source software is provided by UCAR, "as is", without charge, subject to all terms of use at http://www.image.ucar.edu/DAReS/DART/DART_download

Contact: DART core group
Revision: $Revision$
Source: $URL: https://svn-dares-dart.cgd.ucar.edu/DART/branches/rma_trunk/assimilation_code/programs/fill_inflation_restart/fill_inflation_restart.html$
Change Date: $Date$
Change history:  try "svn log" or "svn diff"