The NetCDF output routines are in the files output_nc.F
and ncout.F90
.
The makefile makefile_nc
should be used compile qtcm with these routines.
Parts of the NetCDF output routines are written in Fortran 90 so a Fortran 90 compiler
is needed. By default the NetCDF output files are located
in ../proc
. The names of the files are build out of the date and time of the model
run
The file names are of the form
qi_YYMMDD_HHMM.nc
and qm_YYMMDD_HHMM.nc
for
instantaneous and mean fields, respectively. (Example: a run on June 17 1797 at 5:31 am
would produce
two files qi_970617_0531.nc
and qm_970617_0531.nc
.)
The output files contain the same data as the GrADS binary file plus some information about used the model input parameters. The files obey the COARDS convention (see http://ferret.wrc.noaa.gov/noaa_coop/coop_cdf_profile.html) and may be opened using the command ``sdfopen'' (see http://www.cdc.noaa.gov/ hoop/grads.html) within GrADS.
To add a variable to the NetCDF output the user has to
arr1
, arr4
may be use for this purpose.nc_defvar
to subroutine nc_init
in nc_out.F90
to define the new variable..nc_write_i
(nc_write_m
) for instantaneous
(mean) values to write the data to file.oacc
in varmean
.