This module provides routines for saving the GOTM results using NetCDF format. A hack has been provided for saving in a way that can be used by the GrADS graphics software. The sdfopen() interface to GrADS does not allow for smaller time units than 1 hour, so if GrADS output is selected the units for time are set to hours and not secs.
In both cases, the type and number of variables appearing in the output file depends on the turbulence model and the output flags set by the user. If you use, for example, the KPP turbulence module no information for the TKE, the dissipation rate, the turbulence production terms are saved, because the KPP model does not provide information about these quantities.
Note that if you #define EXTRA_OUTPUT in cppdef.h, then you will find the a number of dummy fields called mean1, mean2, ... and turb1, turb2, ... in the netCDF output file after re-compiling and runnign GOTM. These extra variables are public members of the meanflow and turbulence modules and are convenient for testing and debuging.
use turbulence, only: turb_method use netcdf IMPLICIT NONEPUBLIC MEMBER FUNCTIONS:
public init_ncdf, do_ncdf_out, close_ncdf public define_mode, new_nc_variable, set_attributes, store_dataPUBLIC DATA MEMBERS:
netCDF file id integer, public :: ncid dimension ids integer :: lon_dim,lat_dim,z_dim,z1_dim integer :: time_dim integer :: dim1d(1) integer :: dim3d(3) integer :: dim4d(4)REVISION HISTORY:
Original author(s): Karsten Bolding & Hans Burchard