Due to the need to describe the complex nature of land surface processes,
land surface schemes have many input/output variables and parameters. Modelers
have to expend a lot of effort to work on data input/output. For example,
certain decisions have to be made to deal with various configurations of
input variables based on their availabilities. Here, I will introduce several
programs developed and publicly provided by our group, which might be helpful
for model I/O parts.
1. Two modules for NetCDF handling
2. A sample program and demo
---> drv_input_mod
---> drv_readnf_mod ---> drv_readcon ---> drv_almaparse |
The input model has several functions:
|
---> drv_output_mod
---> drv_table_mod ---> drv_writenf_mod ---> drv_almagen ---> drv_almaout |
The output model has several functions:
|
call drv_readcon
call drv_allocate_alma
call drv_almaparse
call drv_gsp2d
call drv_almagen
A makefile exists for the sample program. See the directory listing for access to all of the files. |
outvar | This is the table of ALMA output variables, with ranges, etc. specified per ALMA standards. The table allows for specification of the frequency of output (at the forcing interval, or at an averaging interval specified in the control deck. |
gph | This table specifies latitudes and longitudes where Grid Point Histories (a.k.a. MOLTS) should be saved. The model grid box encompassing the location is used in drv_table_mod (i.e. no interpolation of model results to the exact grid point is performed) |
drv_postproc - fills ALMA output registers with model results. This code is very SSiB specific, but it is structured just like the ALMA output tables (V1.2 in this case), and would make a very good template to follow to produce the data for the drv_output_mod module described above.
drv_finterp - This routine performs time interpolation of atmospheric forcing data (adtt seconds period) to dtt seconds model time-step for one forcing data interval. Interpolation is performed based on the value of trp_flag:
A portion of GSWP2 is supported by the National Aeronautics and Space Administration (NAG5-11579).