Given a gridname, fieldname and model time this routine will get data in a file whose path is described in a user-provided data_table, do spatial and temporal interpolation if necessary to convert data to model's grid and time. Before using data_override a data_table must be created with the following entries: gridname, fieldname_code, fieldname_file, file_name, ongrid, factor. More explainations about data_table entries can be found in the source code (defining data_type) If user wants to override fieldname_code with a const, set fieldname_file in data_table = "" and factor = const If user wants to override fieldname_code with data from a file, set fieldname_file = name in the netCDF data file, factor then will be for unit conversion (=1 if no conversion required) A field can be overriden globally (by default) or users can specify one or two regions in which data_override will take place, field values outside the region will not be affected.
platform_mod
constants_mod
mpp_io_mod
mpp_mod
horiz_interp_mod
time_interp_external_mod
fms_io_mod
fms_mod
axis_utils_mod
mpp_domains_mod
time_manager_mod
call data_override_init
call call data_override(gridname,fieldname,data,time,override)
gridname |
Grid name (Ocean, Ice, Atmosphere, Land)
[character, dimension(*)] |
fieldname_code |
Field name as used in the code (may be different from the name in NetCDF data file)
[character, dimension(*)] |
time |
model time
[time_type] |
data_index |
[integer] |
data |
array containing output data
[real, dimension(:,:,:)] |
override |
TRUE if the field is overriden, FALSE otherwise
[logical] |
call call data_override(fieldname,data,time,override)
gridname |
Grid name (Ocean, Ice, Atmosphere, Land)
[character, dimension(*)] |
fieldname_code |
Field name as used in the code (may be different from the name in NetCDF data file)
[character, dimension(*)] |
time |
model time
[time_type] |
data_index |
[integer] |
data |
array containing output data
[real, dimension(:,:,:)] |
override |
TRUE if the field is overriden, FALSE otherwise
[logical] |