ESMF_CFIOEosMod
Author: GMAO SI-Team
ESMF_CFIOEosMod
- Source file for CFIO
The module ESMF_CFIOEosMod
provides data type definitions and interface
specifications. It provides all the necessary subroutines for users to
write/read HDF format output using CF convention.
ESMF_CFIOEosVarWrite3D_
– Write a variable to a output file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_CFIO), | intent(in) | :: | cfio |
a CFIO obj |
||
character(len=*), | intent(in) | :: | vName |
Variable name |
||
real, | intent(in) | :: | field(:,:,:) |
array contains data |
||
integer, | intent(in), | optional | :: | date |
yyyymmdd |
|
integer, | intent(in), | optional | :: | curTime |
hhmmss |
|
integer, | intent(in), | optional | :: | kbeg |
first level to write |
|
integer, | intent(in), | optional | :: | kount |
number of levels to write |
|
character(len=*), | intent(in), | optional | :: | timeString | ||
logical, | intent(in), | optional | :: | doComp |
do szip compression |
|
logical, | intent(in), | optional | :: | doChunk |
do szip compression string expression for date and time |
|
integer, | intent(out), | optional | :: | rc |
Error return code: 0 all is well rc = -2 time is inconsistent with increment rc = -3 number of levels is incompatible with file rc = -4 im is incompatible with file rc = -5 jm is incompatible with file rc = -6 time must fall on a minute boundary rc = -7 error in diffdate rc = -12 error determining default precision rc = -13 error determining variable type rc = -15 data outside of valid range rc = -16 data outside of packing range rc = -17 data outside of pack and valid range rc = -38 error from NF90_PUT_VAR (dimension variable) rc = -40 error from NF90_INQ_VARID rc = -41 error from NF90_INQ_DIMID or NF90_INQUIRE_DIMENSION (lat or lon) rc = -42 error from NF90_INQ_DIMID or NF90_INQUIRE_DIMENSION (lev) rc = -43 error from NF90_INQ_VARID (time variable) rc = -44 error from NF90_GET_ATT (time attribute) rc = -45 error from NF90_PUT_VAR rc = -46 error from NF90_GET_VAR rc = -52 error from NF90_INQUIRE_VARIABLE rc = -53 error from NF90_GET_ATT |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_CFIO), | intent(in) | :: | cfio |
a CFIO obj |
||
character(len=*), | intent(in) | :: | vName |
Variable name |
||
real, | intent(in) | :: | field(:,:) |
array contains data |
||
integer, | intent(in), | optional | :: | date |
yyyymmdd |
|
integer, | intent(in), | optional | :: | curTime |
hhmmss |
|
integer, | intent(in), | optional | :: | kbeg |
first level to write |
|
integer, | intent(in), | optional | :: | kount |
number of levels to write |
|
character(len=*), | intent(in), | optional | :: | timeString | ||
logical, | intent(in), | optional | :: | doComp |
do szip compression |
|
logical, | intent(in), | optional | :: | doChunk |
do szip compression string expression for date and time |
|
integer, | intent(out), | optional | :: | rc |
Error return code: 0 all is well |
ESMF_CFIOEosVarWrite1D_
– Write a variable to a output file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_CFIO), | intent(in) | :: | cfio |
a CFIO obj |
||
character(len=*), | intent(in) | :: | vName |
Variable name |
||
real, | intent(in) | :: | field(:) |
array contains data |
||
integer, | intent(in), | optional | :: | date |
yyyymmdd |
|
integer, | intent(in), | optional | :: | curTime |
hhmmss |
|
character(len=*), | intent(in), | optional | :: | timeString | ||
logical, | intent(in), | optional | :: | doComp |
do szip compression |
|
logical, | intent(in), | optional | :: | doChunk |
do szip compression string expression for date and time |
|
integer, | intent(out), | optional | :: | rc |
Error return code: 0 all is well |
ESMF_CFIOEosFileClose
– close an open CFIO stream.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_CFIO), | intent(inout) | :: | cfio |
CFIO object |
||
integer, | intent(out), | optional | :: | rc |
Error return code: 0 all is well -54 error from NF90_CLOSE (file close) |
ESMF_CFIOEosFileCreate
– Create a CFIO output file with meta data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_CFIO), | intent(inout) | :: | cfio |
a CFIO object |
||
integer, | intent(out), | optional | :: | rc |
Error return code: 0 all is well -1 Time increment is 0 -2 allocate memory error -3 Num of int/char/real elements and Cnt don’t match -12 error determining default precision -18 incorrect time increment -30 can’t open file -31 error from NF90_DEF_DIM -32 error from NF90_DEF_VAR (dimension variable) -33 error from NF90_PUT_ATT (dimension attribute) -34 error from NF90_DEF_VAR (variable) -35 error from NF90_PUT_ATT (variable attribute) -36 error from NF90_PUT_ATT (global attribute) -37 error from NF90_ENDDEF -38 error from NF90_PUT_VAR (dimension variable) -39 Num of real var elements and Cnt differ -55 error from NF90_REDEF (enter define mode) -56 error from NF90_ENDDEF (exit define mode) |