Read a data field from a file.
Definition at line 74 of file MOM_io.F90.
|
subroutine | 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_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_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_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...
|
|
◆ mom_read_data_1d()
subroutine mom_io::mom_read_data::mom_read_data_1d |
( |
character(len=*), intent(in) |
filename, |
|
|
character(len=*), intent(in) |
fieldname, |
|
|
real, dimension(:), intent(inout) |
data, |
|
|
integer, intent(in), optional |
timelevel, |
|
|
real, intent(in), optional |
scale |
|
) |
| |
|
private |
This function uses the fms_io function read_data to read 1-D data field named "fieldname" from file "filename".
- Parameters
-
[in] | filename | The name of the file to read |
[in] | fieldname | The variable name of the data in the file |
[in,out] | data | The 1-dimensional array into which the data |
[in] | timelevel | The time level in the file to read |
[in] | scale | A scaling factor that the field is multiplied by before they are returned. |
Definition at line 850 of file MOM_io.F90.
850 character(len=*),
intent(in) :: filename
851 character(len=*),
intent(in) :: fieldname
852 real,
dimension(:),
intent(inout) :: data
853 integer,
optional,
intent(in) :: timelevel
854 real,
optional,
intent(in) :: scale
857 call read_data(filename, fieldname,
data, timelevel=timelevel, no_domain=.true.)
859 if (
present(scale))
then ;
if (scale /= 1.0)
then
860 data(:) = scale*
data(:)
◆ mom_read_data_2d()
subroutine mom_io::mom_read_data::mom_read_data_2d |
( |
character(len=*), intent(in) |
filename, |
|
|
character(len=*), intent(in) |
fieldname, |
|
|
real, dimension(:,:), intent(inout) |
data, |
|
|
type(mom_domain_type), intent(in) |
MOM_Domain, |
|
|
integer, intent(in), optional |
timelevel, |
|
|
integer, intent(in), optional |
position, |
|
|
real, intent(in), optional |
scale |
|
) |
| |
|
private |
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.
- Parameters
-
[in] | filename | The name of the file to read |
[in] | fieldname | The variable name of the data in the file |
[in,out] | data | The 2-dimensional array into which the data should be read |
[in] | mom_domain | The MOM_Domain that describes the decomposition |
[in] | timelevel | The time level in the file to read |
[in] | position | A flag indicating where this data is located |
[in] | scale | A scaling factor that the field is multiplied by before they are returned. |
Definition at line 870 of file MOM_io.F90.
870 character(len=*),
intent(in) :: filename
871 character(len=*),
intent(in) :: fieldname
872 real,
dimension(:,:),
intent(inout) :: data
874 type(MOM_domain_type),
intent(in) :: MOM_Domain
875 integer,
optional,
intent(in) :: timelevel
876 integer,
optional,
intent(in) :: position
877 real,
optional,
intent(in) :: scale
880 integer :: is, ie, js, je
882 call read_data(filename, fieldname,
data, mom_domain%mpp_domain, &
883 timelevel=timelevel, position=position)
885 if (
present(scale))
then ;
if (scale /= 1.0)
then
886 call get_simple_array_i_ind(mom_domain,
size(
data,1), is, ie)
887 call get_simple_array_j_ind(mom_domain,
size(
data,2), js, je)
888 data(is:ie,js:je) = scale*
data(is:ie,js:je)
◆ mom_read_data_3d()
subroutine mom_io::mom_read_data::mom_read_data_3d |
( |
character(len=*), intent(in) |
filename, |
|
|
character(len=*), intent(in) |
fieldname, |
|
|
real, dimension(:,:,:), intent(inout) |
data, |
|
|
type(mom_domain_type), intent(in) |
MOM_Domain, |
|
|
integer, intent(in), optional |
timelevel, |
|
|
integer, intent(in), optional |
position, |
|
|
real, intent(in), optional |
scale |
|
) |
| |
|
private |
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.
- Parameters
-
[in] | filename | The name of the file to read |
[in] | fieldname | The variable name of the data in the file |
[in,out] | data | The 3-dimensional array into which the data should be read |
[in] | mom_domain | The MOM_Domain that describes the decomposition |
[in] | timelevel | The time level in the file to read |
[in] | position | A flag indicating where this data is located |
[in] | scale | A scaling factor that the field is multiplied by before they are returned. |
Definition at line 898 of file MOM_io.F90.
898 character(len=*),
intent(in) :: filename
899 character(len=*),
intent(in) :: fieldname
900 real,
dimension(:,:,:),
intent(inout) :: data
902 type(MOM_domain_type),
intent(in) :: MOM_Domain
903 integer,
optional,
intent(in) :: timelevel
904 integer,
optional,
intent(in) :: position
905 real,
optional,
intent(in) :: scale
908 integer :: is, ie, js, je
910 call read_data(filename, fieldname,
data, mom_domain%mpp_domain, &
911 timelevel=timelevel, position=position)
913 if (
present(scale))
then ;
if (scale /= 1.0)
then
914 call get_simple_array_i_ind(mom_domain,
size(
data,1), is, ie)
915 call get_simple_array_j_ind(mom_domain,
size(
data,2), js, je)
916 data(is:ie,js:je,:) = scale*
data(is:ie,js:je,:)
◆ mom_read_data_4d()
subroutine mom_io::mom_read_data::mom_read_data_4d |
( |
character(len=*), intent(in) |
filename, |
|
|
character(len=*), intent(in) |
fieldname, |
|
|
real, dimension(:,:,:,:), intent(inout) |
data, |
|
|
type(mom_domain_type), intent(in) |
MOM_Domain, |
|
|
integer, intent(in), optional |
timelevel, |
|
|
integer, intent(in), optional |
position, |
|
|
real, intent(in), optional |
scale |
|
) |
| |
|
private |
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.
- Parameters
-
[in] | filename | The name of the file to read |
[in] | fieldname | The variable name of the data in the file |
[in,out] | data | The 4-dimensional array into which the data should be read |
[in] | mom_domain | The MOM_Domain that describes the decomposition |
[in] | timelevel | The time level in the file to read |
[in] | position | A flag indicating where this data is located |
[in] | scale | A scaling factor that the field is multiplied by before they are returned. |
Definition at line 926 of file MOM_io.F90.
926 character(len=*),
intent(in) :: filename
927 character(len=*),
intent(in) :: fieldname
928 real,
dimension(:,:,:,:),
intent(inout) :: data
930 type(MOM_domain_type),
intent(in) :: MOM_Domain
931 integer,
optional,
intent(in) :: timelevel
932 integer,
optional,
intent(in) :: position
933 real,
optional,
intent(in) :: scale
936 integer :: is, ie, js, je
938 call read_data(filename, fieldname,
data, mom_domain%mpp_domain, &
939 timelevel=timelevel, position=position)
941 if (
present(scale))
then ;
if (scale /= 1.0)
then
942 call get_simple_array_i_ind(mom_domain,
size(
data,1), is, ie)
943 call get_simple_array_j_ind(mom_domain,
size(
data,2), js, je)
944 data(is:ie,js:je,:,:) = scale*
data(is:ie,js:je,:,:)
The documentation for this interface was generated from the following file:
- /glade/work/altuntas/cesm.sandboxes/cesm2_2_alpha_X_mom/components/mom/MOM6/src/framework/MOM_io.F90