MOM6
MOM_io.F90 File Reference
#include "version_variable.h"
Include dependency graph for MOM_io.F90:

Go to the source code of this file.

Data Types

type  mom_io::vardesc
 Type for describing a variable, typically a tracer. More...
 
interface  mom_io::file_exists
 Indicate whether a file exists, perhaps with domain decomposition. More...
 
interface  mom_io::mom_read_data
 Read a data field from a file. More...
 
interface  mom_io::mom_read_vector
 Read a pair of data fields representing the two components of a vector from a file. More...
 

Modules

module  mom_io
 This module contains I/O framework code.
 

Functions/Subroutines

subroutine, public mom_io::create_file (unit, filename, vars, novars, fields, threading, timeunit, G, dG, GV, checksums)
 Routine creates a new NetCDF file. It also sets up structures that describe this file and variables that will later be written to this file. Type for describing a variable, typically a tracer. More...
 
subroutine, public mom_io::reopen_file (unit, filename, vars, novars, fields, threading, timeunit, G, dG, GV)
 This routine opens an existing NetCDF file for output. If it does not find the file, a new file is created. It also sets up structures that describe this file and the variables that will later be written to this file. More...
 
subroutine, public mom_io::read_axis_data (filename, axis_name, var)
 Read the data associated with a named axis in a file. More...
 
integer function, public mom_io::num_timelevels (filename, varname, min_dims)
 This function determines how many time levels a variable has. More...
 
type(vardesc) function, public mom_io::var_desc (name, units, longname, hor_grid, z_grid, t_grid, cmor_field_name, cmor_units, cmor_longname, conversion, caller)
 Returns a vardesc type whose elements have been filled with the provided fields. The argument name is required, while the others are optional and have default values that are empty strings or are appropriate for a 3-d tracer field at the tracer cell centers. More...
 
subroutine, public mom_io::modify_vardesc (vd, name, units, longname, hor_grid, z_grid, t_grid, cmor_field_name, cmor_units, cmor_longname, conversion, caller)
 This routine modifies the named elements of a vardesc type. All arguments are optional, except the vardesc type to be modified. More...
 
character(len=len(longname)) function, public mom_io::cmor_long_std (longname)
 This function returns the CMOR standard name given a CMOR longname, based on the standard pattern of character conversions. More...
 
subroutine, public mom_io::query_vardesc (vd, name, units, longname, hor_grid, z_grid, t_grid, cmor_field_name, cmor_units, cmor_longname, conversion, caller)
 This routine queries vardesc. More...
 
subroutine mom_io::safe_string_copy (str1, str2, fieldnm, caller)
 Copies a string. More...
 
character(len=len(name)) function, public mom_io::ensembler (name, ens_no_in)
 Returns a name with "%#E" or "%E" replaced with the ensemble member number. More...
 
logical function mom_io::mom_file_exists (filename, MOM_Domain)
 Returns true if the named file or its domain-decomposed variant exists. More...
 
logical function mom_io::fms_file_exists (filename, domain, no_domain)
 Returns true if the named file or its domain-decomposed variant exists. More...
 
subroutine mom_io::mom_read_data_1d (filename, fieldname, data, timelevel, scale)
 This function uses the fms_io function read_data to read 1-D data field named "fieldname" from file "filename". More...
 
subroutine mom_io::mom_read_data_2d (filename, fieldname, data, MOM_Domain, timelevel, position, scale)
 This function uses the fms_io function read_data to read a distributed 2-D data field named "fieldname" from file "filename". Valid values for "position" include CORNER, CENTER, EAST_FACE and NORTH_FACE. More...
 
subroutine mom_io::mom_read_data_3d (filename, fieldname, data, MOM_Domain, timelevel, position, scale)
 This function uses the fms_io function read_data to read a distributed 3-D data field named "fieldname" from file "filename". Valid values for "position" include CORNER, CENTER, EAST_FACE and NORTH_FACE. More...
 
subroutine mom_io::mom_read_data_4d (filename, fieldname, data, MOM_Domain, timelevel, position, scale)
 This function uses the fms_io function read_data to read a distributed 4-D data field named "fieldname" from file "filename". Valid values for "position" include CORNER, CENTER, EAST_FACE and NORTH_FACE. More...
 
subroutine mom_io::mom_read_vector_2d (filename, u_fieldname, v_fieldname, u_data, v_data, MOM_Domain, timelevel, stagger, scalar_pair, scale)
 This function uses the fms_io function read_data to read a pair of distributed 2-D data fields with names given by "[uv]_fieldname" from file "filename". Valid values for "stagger" include CGRID_NE, BGRID_NE, and AGRID. More...
 
subroutine mom_io::mom_read_vector_3d (filename, u_fieldname, v_fieldname, u_data, v_data, MOM_Domain, timelevel, stagger, scalar_pair, scale)
 This function uses the fms_io function read_data to read a pair of distributed 3-D data fields with names given by "[uv]_fieldname" from file "filename". Valid values for "stagger" include CGRID_NE, BGRID_NE, and AGRID. More...
 
subroutine, public mom_io::mom_io_init (param_file)
 Initialize the MOM_io module. More...