MOM_io_file module reference
This module contains the MOM file handler types
Data Types
Handle for axis in MOM file |
|
Linked list of framework axes |
|
Framework axis linked list node |
|
Linked list of framework axes |
|
Framework axis linked list node |
|
Handle for field in MOM file |
|
Linked list of framework fields |
|
Framework field linked list node |
|
Linked list of framework fields |
|
Framework field linked list node |
|
Generic MOM file abstraction for common operations |
|
MOM file from the supporting framework ("infra") layer |
|
MOM file using netCDF backend |
Procedure Interfaces
Interface for opening a MOM file |
|
Interface for closing a MOM file |
|
Interface for flushing I/O in a MOM file |
|
Interface to register an axis to a MOM file |
|
Interface to register a field to a netCDF file |
|
Interface for writing global metata to a MOM file |
|
Interface to write_field_4d() |
|
Interface to write_field_3d() |
|
Interface to write_field_2d() |
|
Interface to write_field_1d() |
|
Interface to write_field_0d() |
|
Interface to write_field_axis() |
|
Interface to file_is_open() |
|
Interface to get_file_info() |
|
Interface to get_file_fields() |
|
Interface to get_field_atts() |
|
Interface to read_field_chksum |
Functions/Subroutines
Initialize the linked list of framework axes |
|
Append a new axis to the list |
|
Get axis based on label |
|
Deallocate axes of list |
|
Initialize the linked list of framework axes |
|
Append a new axis to the list |
|
Get axis based on label |
|
Deallocate axes of list |
|
Initialize the linked list of framework axes |
|
Append a new field to the list |
|
Get axis based on label |
|
Deallocate fields of list |
|
Initialize the linked list of framework axes |
|
Append a new field to the list |
|
Get axis based on label |
|
Deallocate fields of list |
|
Open a MOM framework file |
|
Close a MOM framework file |
|
Flush the buffer of a MOM framework file |
|
Register an axis to the MOM framework file |
|
Register a field to the MOM framework file |
|
Write a 4D field to the MOM framework file |
|
Write a 3D field to the MOM framework file |
|
Write a 2D field to the MOM framework file |
|
Write a 1D field to the MOM framework file |
|
Write a 0D field to the MOM framework file |
|
Write an axis field to the MOM framework file |
|
Write global metadata to the MOM framework file |
|
True if the framework file has been opened |
|
Return number of dimensions, variables, or time levels in a MOM infra file |
|
Return the field metadata associated with a MOM framework file |
|
Get time levels of a MOM framework file |
|
Get attributes from a field |
|
Interface to read_field_chksum |
|
Get the native (fieldtype) fields of a MOM framework file |
|
Open a MOM netCDF file |
|
Close a MOM netCDF file |
|
Flush the buffer of a MOM netCDF file |
|
Register an axis to the MOM netcdf file |
|
Register a field to the MOM netcdf file |
|
Write global metadata to the MOM netcdf file |
|
Write a 4D field to the MOM netcdf file |
|
Write a 3D field to the MOM netcdf file |
|
Write a 2D field to the MOM netcdf file |
|
Write a 1D field to the MOM netcdf file |
|
Write a 0D field to the MOM netcdf file |
|
Write an axis field to the MOM netcdf file |
|
True if the framework file has been opened |
|
Return number of dimensions, variables, or time levels in a MOM netcdf file |
|
Update the axes and fields descriptors of a MOM netCDF file |
|
Return the field descriptors of a MOM netCDF file |
|
Get attributes from a netCDF field |
|
Interface to read_field_chksum |
|
Read the values of a netCDF field into an array that might have halos |
Detailed Description
This file defines the MOM_file classes used to inferface with the internal IO handlers, such as the configured "infra" layer (FMS) or native netCDF.
MOM_file: The generic class used to reference any file type Cannot be used in a variable declaration.
MOM_infra_file: A file handler for use by the infra layer. Currently this means an FMS file, such a restart or diagnostic output.
MOM_netcdf_file: A netCDF file handler for MOM-specific I/O. This may include operations outside the scope of FMS or other infra frameworks.
Type Documentation
- type :: MOM_axis
Handle for axis in MOM file
- Parameters
label
Identifier for the axis in handle's list
- type :: axis_list_infra
Linked list of framework axes
- Parameters
head
Head of axis linked list
tail
Tail of axis linked list
- type :: axis_node_infra
Framework axis linked list node
- Parameters
label
Axis identifier
next
Pointer to next axis node
axis
Axis node contents
- type :: axis_list_nc
Linked list of framework axes
- Parameters
head
Head of axis linked list
tail
Tail of axis linked list
- type :: axis_node_nc
Framework axis linked list node
- Parameters
label
Axis identifier
next
Pointer to next axis node
axis
Axis node contents
- type :: MOM_field
Handle for field in MOM file
- Parameters
label
Identifier for the field in the handle's list
conversion
A factor to use to rescale the field before output [a A-1 ~> 1]
- type :: field_list_infra
Linked list of framework fields
- Parameters
head
Head of field linked list
tail
Tail of field linked list
- type :: field_node_infra
Framework field linked list node
- Parameters
label
Field identifier
field
Field node contents
next
Pointer to next field node
- type :: field_list_nc
Linked list of framework fields
- Parameters
head
Head of field linked list
tail
Tail of field linked list
- type :: field_node_nc
Framework field linked list node
- Parameters
label
Field identifier
field
Field node contents
next
Pointer to next field node
- type, abstract :: MOM_file
Generic MOM file abstraction for common operations
- type, extends(MOM_file) :: MOM_infra_file
MOM file from the supporting framework ("infra") layer
- Parameters
domain
Internal domain used for single-file IO
handle_infra
Framework-specific file handler content
axes
List of axes in file
fields
List of fields in file
- type, extends(MOM_file) :: MOM_netcdf_file
MOM file using netCDF backend
- Parameters
handle_nc
List of netCDF axes
axes
List of netCDF fields
fields
True if the file has been opened
is_open
True if I/O content is domain-decomposed
domain_decomposed
True if I/O content is domain-decomposed
Procedure Interface Documentation
- subroutine i_open_file(handle, filename, action, MOM_domain, threading, fileset)
Interface for opening a MOM file
- Parameters
handle [inout]
The handle for the opened file
filename [in]
The path name of the file being opened
action [in]
A flag indicating whether the file can be read or written to and how to handle existing files. The default is WRITE_ONLY.
MOM_Domain [in]
A MOM_Domain that describes the decomposition
threading [in]
A flag indicating whether one (SINGLE_FILE) or multiple PEs (MULTIPLE) participate in I/O. With the default, the root PE does I/O.
fileset [in]
A flag indicating whether multiple PEs doing I/O due to threading=MULTIPLE write to the same file (SINGLE_FILE) or to one file per PE (MULTIPLE, the default).
- subroutine i_close_file(handle)
Interface for closing a MOM file
- Parameters
handle [inout]
The MOM file to be closed
- subroutine i_flush_file(handle)
Interface for flushing I/O in a MOM file
- Parameters
handle [in]
The MOM file to be flushed
- function i_register_axis(handle, label, units, longname, cartesian, sense, domain, data, edge_axis, calendar) result(axis)
Interface to register an axis to a MOM file
- Parameters
handle [inout]
Handle for a file that is open for writing
label [in]
The name in the file of this axis
units [in]
The units of this axis
longname [in]
The long description of this axis
cartesian [in]
A variable indicating which direction this axis corresponds with. Valid values include 'X', 'Y', 'Z', 'T', and 'N' for none.
sense [in]
This is 1 for axes whose values increase upward, or -1 if they increase downward.
domain [in]
The domain decomposion for this axis
data [in]
The coordinate values of the points on this axis
edge_axis [in]
If true, this axis marks an edge of the tracer cells
calendar [in]
The name of the calendar used with a time axis
axis
IO handle for axis in MOM_file
- function i_register_field(handle, axes, label, units, longname, pack, standard_name, checksum, conversion) result(field)
Interface to register a field to a netCDF file
- Parameters
handle [inout]
Handle for a file that is open for writing
axes [in]
Handles for the axis used for this variable
label [in]
The name in the file of this variable
units [in]
The units of this variable
longname [in]
The long description of this variable
pack [in]
A precision reduction factor with which the variable. The default, 1, has no reduction, but 2 is not uncommon.
standard_name [in]
The standard (e.g., CMOR) name for this variable
checksum [in]
Checksum values that can be used to verify reads.
conversion [in]
A factor to use to rescale the field before output [a A-1 ~> 1]
field
IO handle for field in MOM_file
- subroutine i_write_attribute(handle, name, attribute)
Interface for writing global metata to a MOM file
- Parameters
handle [in]
Handle for a file that is open for writing
name [in]
The name in the file of this global attribute
attribute [in]
The value of this attribute
- subroutine i_write_field_4d(handle, field_md, MOM_domain, field, tstamp, tile_count, fill_value)
Interface to write_field_4d()
- Parameters
handle [inout]
Handle for a file that is open for writing
field_md [in]
Field type with metadata
MOM_domain [in]
The MOM_Domain that describes the decomposition
field [inout]
Field to write
tstamp [in]
Model time of this field
tile_count [in]
PEs per tile (default: 1)
fill_value [in]
Missing data fill value
- subroutine i_write_field_3d(handle, field_md, MOM_domain, field, tstamp, tile_count, fill_value)
Interface to write_field_3d()
- Parameters
handle [inout]
Handle for a file that is open for writing
field_md [in]
Field type with metadata
MOM_domain [in]
The MOM_Domain that describes the decomposition
field [inout]
Field to write
tstamp [in]
Model time of this field
tile_count [in]
PEs per tile (default: 1)
fill_value [in]
Missing data fill value
- subroutine i_write_field_2d(handle, field_md, MOM_domain, field, tstamp, tile_count, fill_value)
Interface to write_field_2d()
- Parameters
handle [inout]
Handle for a file that is open for writing
field_md [in]
Field type with metadata
MOM_domain [in]
The MOM_Domain that describes the decomposition
field [inout]
Field to write
tstamp [in]
Model time of this field
tile_count [in]
PEs per tile (default: 1)
fill_value [in]
Missing data fill value
- subroutine i_write_field_1d(handle, field_md, field, tstamp)
Interface to write_field_1d()
- Parameters
handle [inout]
Handle for a file that is open for writing
field_md [in]
Field type with metadata
field [in]
Field to write
tstamp [in]
Model time of this field
- subroutine i_write_field_0d(handle, field_md, field, tstamp)
Interface to write_field_0d()
- Parameters
handle [inout]
Handle for a file that is open for writing
field_md [in]
Field type with metadata
field [in]
Field to write
tstamp [in]
Model time of this field
- subroutine i_write_field_axis(handle, axis)
Interface to write_field_axis()
- Parameters
handle [inout]
Handle for a file that is open for writing
axis [in]
An axis type variable with information to write
- logical function i_file_is_open(handle)
Interface to file_is_open()
- Parameters
handle [in]
Handle to a file to inquire about
- subroutine i_get_file_info(handle, ndim, nvar, ntime)
Interface to get_file_info()
- Parameters
handle [in]
Handle for a file that is open for I/O
ndim [out]
The number of dimensions in the file
nvar [out]
The number of variables in the file
ntime [out]
The number of time levels in the file
- subroutine i_get_file_fields(handle, fields)
Interface to get_file_fields()
- Parameters
handle [inout]
Handle for a file that is open for I/O
fields [inout]
Field-type descriptions of all of the variables in a file.
- subroutine i_get_field_atts(handle, field, name, units, longname, checksum)
Interface to get_field_atts()
- Parameters
handle [in]
File where field is stored
field [in]
The field to extract information from
name [out]
The variable name
units [out]
The units of the variable
longname [out]
The long name of the variable
checksum [out]
The checksums of the variable in a file
- subroutine i_read_field_chksum(handle, field, chksum, valid_chksum)
Interface to read_field_chksum
- Parameters
handle [in]
File where field is stored
field [in]
The field whose checksum attribute is to be read
chksum [out]
The checksum for the field.
valid_chksum [out]
If true, chksum has been successfully read
Functions/Subroutine Documentation
- subroutine initialize_axis_list_infra(list)
Initialize the linked list of framework axes
- subroutine append_axis_list_infra(list, axis, label)
Append a new axis to the list
- function get_axis_list_infra(list, label) result(axis)
Get axis based on label
- subroutine finalize_axis_list_infra(list)
Deallocate axes of list
- subroutine initialize_axis_list_nc(list)
Initialize the linked list of framework axes
- subroutine append_axis_list_nc(list, axis, label)
Append a new axis to the list
- function get_axis_list_nc(list, label) result(axis)
Get axis based on label
- subroutine finalize_axis_list_nc(list)
Deallocate axes of list
- subroutine initialize_field_list_infra(list)
Initialize the linked list of framework axes
- subroutine append_field_list_infra(list, field, label)
Append a new field to the list
- function get_field_list_infra(list, label) result(field)
Get axis based on label
- subroutine finalize_field_list_infra(list)
Deallocate fields of list
- subroutine initialize_field_list_nc(list)
Initialize the linked list of framework axes
- subroutine append_field_list_nc(list, field, label)
Append a new field to the list
- function get_field_list_nc(list, label) result(field)
Get axis based on label
- subroutine finalize_field_list_nc(list)
Deallocate fields of list
- subroutine open_file_infra(handle, filename, action, MOM_domain, threading, fileset)
Open a MOM framework file
Callees call graph
- subroutine close_file_infra(handle)
Close a MOM framework file
Callees call graph
- subroutine flush_file_infra(handle)
Flush the buffer of a MOM framework file
- function register_axis_infra(handle, label, units, longname, cartesian, sense, domain, data, edge_axis, calendar) result(axis)
Register an axis to the MOM framework file
- Parameters
handle [inout]
Handle for a file that is open for writing
label [in]
The name in the file of this axis
units [in]
The units of this axis
longname [in]
The long description of this axis
cartesian [in]
A variable indicating which direction this axis corresponds with. Valid values include 'X', 'Y', 'Z', 'T', and 'N' for none.
sense [in]
This is 1 for axes whose values increase upward, or -1 if they increase downward.
domain [in]
The domain decomposion for this axis
data [in]
The coordinate values of the points on this axis
edge_axis [in]
If true, this axis marks an edge of the tracer cells
calendar [in]
The name of the calendar used with a time axis
axis
The axis type where this information is stored
Callees call graph
- function register_field_infra(handle, axes, label, units, longname, pack, standard_name, checksum, conversion) result(field)
Register a field to the MOM framework file
- Parameters
handle [inout]
Handle for a file that is open for writing
axes [in]
Handles for the axis used for this variable
label [in]
The name in the file of this variable
units [in]
The units of this variable
longname [in]
The long description of this variable
pack [in]
A precision reduction factor with which the variable. The default, 1, has no reduction, but 2 is not uncommon.
standard_name [in]
The standard (e.g., CMOR) name for this variable
checksum [in]
Checksum values that can be used to verify reads.
conversion [in]
A factor to use to rescale the field before output [a A-1 ~> 1]
field
The field type where this information is stored
Callees call graph
- subroutine write_field_4d_infra(handle, field_md, MOM_domain, field, tstamp, tile_count, fill_value)
Write a 4D field to the MOM framework file
- Parameters
handle [inout]
Handle for a file that is open for writing
field_md [in]
Field type with metadata
MOM_domain [in]
The MOM_Domain that describes the decomposition
field [inout]
Field to write
tstamp [in]
Model time of this field
tile_count [in]
PEs per tile (default: 1)
fill_value [in]
Missing data fill value
Callees call graph
- subroutine write_field_3d_infra(handle, field_md, MOM_domain, field, tstamp, tile_count, fill_value)
Write a 3D field to the MOM framework file
- Parameters
handle [inout]
Handle for a file that is open for writing
field_md [in]
Field type with metadata
MOM_domain [in]
The MOM_Domain that describes the decomposition
field [inout]
Field to write, perhaps in arbitrary rescaled units [A ~> a]
tstamp [in]
Model time of this field
tile_count [in]
PEs per tile (default: 1)
fill_value [in]
Missing data fill value
Callees call graph
- subroutine write_field_2d_infra(handle, field_md, MOM_domain, field, tstamp, tile_count, fill_value)
Write a 2D field to the MOM framework file
- Parameters
handle [inout]
Handle for a file that is open for writing
field_md [in]
Field type with metadata
MOM_domain [in]
The MOM_Domain that describes the decomposition
field [inout]
Field to write
tstamp [in]
Model time of this field
tile_count [in]
PEs per tile (default: 1)
fill_value [in]
Missing data fill value
Callees call graph
- subroutine write_field_1d_infra(handle, field_md, field, tstamp)
Write a 1D field to the MOM framework file
- Parameters
handle [inout]
Handle for a file that is open for writing
field_md [in]
Field type with metadata
field [in]
Field to write
tstamp [in]
Model time of this field
Callees call graph
- subroutine write_field_0d_infra(handle, field_md, field, tstamp)
Write a 0D field to the MOM framework file
- Parameters
handle [inout]
Handle for a file that is open for writing
field_md [in]
Field type with metadata
field [in]
Field to write
tstamp [in]
Model time of this field
Callees call graph
- subroutine write_field_axis_infra(handle, axis)
Write an axis field to the MOM framework file
- Parameters
handle [inout]
Handle for a file that is open for writing
axis [in]
An axis type variable with information to write
axis_infra
An axis type variable with information to write
Callees call graph
- subroutine write_attribute_infra(handle, name, attribute)
Write global metadata to the MOM framework file
- Parameters
handle [in]
Handle for a file that is open for writing
name [in]
The name in the file of this global attribute
attribute [in]
The value of this attribute
Callees call graph
- logical function file_is_open_infra(handle)
True if the framework file has been opened
- Parameters
handle [in]
Handle to a file to inquire about
- subroutine get_file_info_infra(handle, ndim, nvar, ntime)
Return number of dimensions, variables, or time levels in a MOM infra file
- Parameters
handle [in]
Handle for a file that is open for I/O
ndim [out]
The number of dimensions in the file
nvar [out]
The number of variables in the file
ntime [out]
The number of time levels in the file
- subroutine get_file_fields_infra(handle, fields)
Return the field metadata associated with a MOM framework file
- Parameters
handle [inout]
Handle for a file that is open for I/O
fields [inout]
Field-type descriptions of all of the variables in a file.
Callees call graph
- subroutine get_file_times_infra(handle, time_values, ntime)
Get time levels of a MOM framework file
- Parameters
handle [in]
Handle for a file that is open for I/O
time_values [inout]
The real times for the records in file.
ntime [out]
The number of time levels in the file
- subroutine get_field_atts_infra(handle, field, name, units, longname, checksum)
Get attributes from a field
- Parameters
handle [in]
File where field is stored
field [in]
The field to extract information from
name [out]
The variable name
units [out]
The units of the variable
longname [out]
The long name of the variable
checksum [out]
The checksums of the variable in a file
- subroutine read_field_chksum_infra(handle, field, chksum, valid_chksum)
Interface to read_field_chksum
- Parameters
handle [in]
File where field is stored
field [in]
The field whose checksum attribute is to be read
chksum [out]
The checksum for the field.
valid_chksum [out]
If true, chksum has been successfully read
- subroutine get_file_fieldtypes(handle, fields)
Get the native (fieldtype) fields of a MOM framework file
- subroutine open_file_nc(handle, filename, action, MOM_domain, threading, fileset)
Open a MOM netCDF file
Callees call graph
- subroutine close_file_nc(handle)
Close a MOM netCDF file
Callees call graph
- subroutine flush_file_nc(handle)
Flush the buffer of a MOM netCDF file
Callees call graph
- function register_axis_nc(handle, label, units, longname, cartesian, sense, domain, data, edge_axis, calendar) result(axis)
Register an axis to the MOM netcdf file
- Parameters
handle [inout]
Handle for a netCDF file that is open for writing
label [in]
The name in the file of this axis
units [in]
The units of this axis
longname [in]
The long description of this axis
cartesian [in]
A variable indicating which direction this axis corresponds with. Valid values include 'X', 'Y', 'Z', 'T', and 'N' for none.
sense [in]
This is 1 for axes whose values increase upward, or -1 if they increase downward.
domain [in]
The domain decomposion for this axis
data [in]
The coordinate values of the points on this axis
edge_axis [in]
If true, this axis marks an edge of the tracer cells
calendar [in]
The name of the calendar used with a time axis
Callees call graph
- function register_field_nc(handle, axes, label, units, longname, pack, standard_name, checksum, conversion) result(field)
Register a field to the MOM netcdf file
- Parameters
handle [inout]
Handle for a file that is open for writing
axes [in]
Handles for the axis used for this variable
label [in]
The name in the file of this variable
units [in]
The units of this variable
longname [in]
The long description of this variable
pack [in]
A precision reduction factor with which the variable. The default, 1, has no reduction, but 2 is not uncommon.
standard_name [in]
The standard (e.g., CMOR) name for this variable
checksum [in]
Checksum values that can be used to verify reads.
conversion [in]
A factor to use to rescale the field before output [a A-1 ~> 1]
Callees call graph
- subroutine write_attribute_nc(handle, name, attribute)
Write global metadata to the MOM netcdf file
- Parameters
handle [in]
Handle for a file that is open for writing
name [in]
The name in the file of this global attribute
attribute [in]
The value of this attribute
Callees call graph
- subroutine write_field_4d_nc(handle, field_md, MOM_domain, field, tstamp, tile_count, fill_value)
Write a 4D field to the MOM netcdf file
- Parameters
handle [inout]
Handle for a file that is open for writing
field_md [in]
Field type with metadata
MOM_domain [in]
The MOM_Domain that describes the decomposition
field [inout]
Field to write
tstamp [in]
Model time of this field
tile_count [in]
PEs per tile (default: 1)
fill_value [in]
Missing data fill value
Callees call graph
- subroutine write_field_3d_nc(handle, field_md, MOM_domain, field, tstamp, tile_count, fill_value)
Write a 3D field to the MOM netcdf file
- Parameters
handle [inout]
Handle for a file that is open for writing
field_md [in]
Field type with metadata
MOM_domain [in]
The MOM_Domain that describes the decomposition
field [inout]
Field to write
tstamp [in]
Model time of this field
tile_count [in]
PEs per tile (default: 1)
fill_value [in]
Missing data fill value
Callees call graph
- subroutine write_field_2d_nc(handle, field_md, MOM_domain, field, tstamp, tile_count, fill_value)
Write a 2D field to the MOM netcdf file
- Parameters
handle [inout]
Handle for a file that is open for writing
field_md [in]
Field type with metadata
MOM_domain [in]
The MOM_Domain that describes the decomposition
field [inout]
Field to write
tstamp [in]
Model time of this field
tile_count [in]
PEs per tile (default: 1)
fill_value [in]
Missing data fill value
Callees call graph
- subroutine write_field_1d_nc(handle, field_md, field, tstamp)
Write a 1D field to the MOM netcdf file
- Parameters
handle [inout]
Handle for a file that is open for writing
field_md [in]
Field type with metadata
field [in]
Field to write
tstamp [in]
Model time of this field
Callees call graph
- subroutine write_field_0d_nc(handle, field_md, field, tstamp)
Write a 0D field to the MOM netcdf file
- Parameters
handle [inout]
Handle for a file that is open for writing
field_md [in]
Field type with metadata
field [in]
Field to write
tstamp [in]
Model time of this field
Callees call graph
- subroutine write_field_axis_nc(handle, axis)
Write an axis field to the MOM netcdf file
- Parameters
handle [inout]
Handle for a file that is open for writing
axis [in]
An axis type variable with information to write
Callees call graph
- logical function file_is_open_nc(handle)
True if the framework file has been opened
- Parameters
handle [in]
Handle to a file to inquire about
- subroutine get_file_info_nc(handle, ndim, nvar, ntime)
Return number of dimensions, variables, or time levels in a MOM netcdf file
- Parameters
handle [in]
Handle for a file that is open for I/O
ndim [out]
The number of dimensions in the file
nvar [out]
The number of variables in the file
ntime [out]
The number of time levels in the file
Callees call graph
- subroutine update_file_contents_nc(handle)
Update the axes and fields descriptors of a MOM netCDF file
- Parameters
handle [inout]
Handle for a file that is open for I/O
Callees call graph
- subroutine get_file_fields_nc(handle, fields)
Return the field descriptors of a MOM netCDF file
- Parameters
handle [inout]
Handle for a file that is open for I/O
fields [inout]
Field-type descriptions of all of the variables in a file.
- subroutine get_field_atts_nc(handle, field, name, units, longname, checksum)
Get attributes from a netCDF field
- Parameters
handle [in]
File where field is stored
field [in]
The field to extract information from
name [out]
The variable name
units [out]
The units of the variable
longname [out]
The long name of the variable
checksum [out]
The checksums of the variable in a file
- subroutine read_field_chksum_nc(handle, field, chksum, valid_chksum)
Interface to read_field_chksum
- Parameters
handle [in]
File where field is stored
field [in]
The field whose checksum attribute is to be read
chksum [out]
The checksum for the field.
valid_chksum [out]
If true, chksum has been successfully read
- subroutine get_field_nc(handle, label, values, rescale)
Read the values of a netCDF field into an array that might have halos
- Parameters
handle [in]
Handle of netCDF file to be read
label [in]
Field variable name
values [inout]
Field values read from the file. It would be intent(out) but for the need to preserve any initialized values in the halo regions.
rescale [in]
A multiplicative rescaling factor for the values that are read. Omitting this is the same as setting it to 1.