ocnice_prep
1.13.0
|
Define utility procedures. More...
Go to the source code of this file.
Data Types | |
interface | utils_mod::dumpnc |
interface | utils_mod::getfield |
interface | utils_mod::getvecpair |
interface | utils_mod::packarrays |
interface | utils_mod::remap |
Functions/Subroutines | |
subroutine | utils_mod::dumpnc1d (fname, vname, dims, field) |
Write a bare netcdf file of a unpacked 2D field. More... | |
subroutine | utils_mod::dumpnc2d (fname, vname, dims, nflds, field) |
Write a bare netcdf file of a 2D packed field. More... | |
subroutine | utils_mod::dumpnc3d (fname, vname, dims, nk, nflds, field) |
Write a bare netcdf file of a packed 3D field. More... | |
subroutine | utils_mod::dumpnc3dk (fname, vname, dims, field) |
Write a bare netcdf file of an unpacked 3D field. More... | |
subroutine | utils_mod::getfield2d (fname, vname, dims, field, wgts) |
Obtain a 2D field and return a 1-D vector array. More... | |
subroutine | utils_mod::getfield3d (fname, vname, dims, field, wgts) |
Obtain a 3D field and return a 2-D vector array. More... | |
subroutine | utils_mod::getvecpair2d (fname, wdir, cosrot, sinrot, vname1, vgrid1, vname2, vgrid2, dims, vecpair) |
Obtain 2D vector pairs mapped to Ct and rotated to EN. More... | |
subroutine | utils_mod::getvecpair3d (fname, wdir, cosrot, sinrot, vname1, vgrid1, vname2, vgrid2, dims, vecpair) |
Obtain 3D vector pairs mapped to Ct and rotated to EN. More... | |
subroutine, public | utils_mod::nf90_err (ierr, string) |
Handle netcdf errors. More... | |
subroutine | utils_mod::packarrays2d (filesrc, wgtsdir, cosrot, sinrot, vars, dims, nflds, fields) |
Pack 2D fields into arrays by mapping type. More... | |
subroutine | utils_mod::packarrays3d (filesrc, wgtsdir, cosrot, sinrot, vars, dims, nflds, fields) |
Pack 3D fields into arrays by mapping type. More... | |
subroutine | utils_mod::remap1d (fname, src_field, dst_field) |
Remap a 1-D vector array from source to destination. More... | |
subroutine | utils_mod::remap2d (fname, dim2, src_field, dst_field) |
Remap a 2-D vector array of nflds or nlevs from source to destination. More... | |
subroutine | utils_mod::remap3d (fname, nk, nflds, src_field, dst_field) |
Remap a field packed array of nk levels and nflds fields. More... | |
Define utility procedures.
This module defines a set of utility procedures
Definition in file utils_mod.F90.
|
private |
Write a bare netcdf file of a unpacked 2D field.
[in] | fname | the file containing ESMF regridding weights |
[in] | vname | the name of the variable |
[in] | dims | the variable spatial dimensions |
[in] | field | the field to write |
Definition at line 673 of file utils_mod.F90.
|
private |
Write a bare netcdf file of a 2D packed field.
[in] | fname | the file containing ESMF regridding weights |
[in] | vname | the name of the variable |
[in] | dims | the variable spatial dimensions |
[in] | nflds | the number of fields |
[in] | field | the field to write |
Definition at line 545 of file utils_mod.F90.
|
private |
Write a bare netcdf file of a packed 3D field.
[in] | fname | the file containing ESMF regridding weights |
[in] | vname | the name of the variable |
[in] | dims | the variable spatial dimensions |
[in] | nk | the number of levels |
[in] | nflds | the number of fields |
[in] | field | the field to write |
Definition at line 588 of file utils_mod.F90.
|
private |
Write a bare netcdf file of an unpacked 3D field.
[in] | fname | the file containing ESMF regridding weights |
[in] | vname | the name of the variable |
[in] | dims | the variable spatial dimensions |
[in] | field | the field to write |
Definition at line 632 of file utils_mod.F90.
|
private |
Obtain a 2D field and return a 1-D vector array.
[in] | fname | the file containing the fields to retrieve |
[in] | vname | the variable to retrieve |
[in] | dims | the dimensions of the fields |
[out] | field | the field |
[in] | wgts | the optional ESMF regridding weights |
Definition at line 286 of file utils_mod.F90.
|
private |
Obtain a 3D field and return a 2-D vector array.
[in] | fname | the file containing the fields to retrieve |
[in] | vname | the variable to retrieve |
[in] | dims | the dimensions of the fields |
[out] | field | the field |
[in] | wgts | the optional ESMF regridding weights |
Definition at line 331 of file utils_mod.F90.
|
private |
Obtain 2D vector pairs mapped to Ct and rotated to EN.
[in] | fname | the file containing the fields to retrieve |
[in] | wdir | the path to the required ESMF regridding weights |
[in] | cosrot | the cosine of the rotation angle |
[in] | sinrot | the sine of the rotation angle |
[in] | vname1 | the variable name of the first vector |
[in] | vgrid1 | the grid location of the first vector |
[in] | vname2 | the variable name of the second vector |
[in] | vgrid2 | the grid location of the second vector |
[in] | dims | the dimensions of the fields |
[out] | vecpair | the vector pair array |
Definition at line 191 of file utils_mod.F90.
|
private |
Obtain 3D vector pairs mapped to Ct and rotated to EN.
[in] | fname | the file containing the fields to retrieve |
[in] | wdir | the path to the required ESMF regridding weights |
[in] | cosrot | the cosine of the rotation angle |
[in] | sinrot | the sine of the rotation angle |
[in] | vname1 | the variable name of the first vector |
[in] | vgrid1 | the grid location of the first vector |
[in] | vname2 | the variable name of the second vector |
[in] | vgrid2 | the grid location of the second vector |
[in] | dims | the dimensions of the fields |
[out] | vecpair | the vector pair array |
Definition at line 241 of file utils_mod.F90.
subroutine, public utils_mod::nf90_err | ( | integer, intent(in) | ierr, |
character(len=*), intent(in) | string | ||
) |
Handle netcdf errors.
[in] | ierr | the error code |
[in] | string | the error message |
Definition at line 709 of file utils_mod.F90.
|
private |
Pack 2D fields into arrays by mapping type.
[in] | filesrc | the file containing the fields to retrieve |
[in] | wgtsdir | the path to the required ESMF regridding weights |
[in] | cosrot | the cosine of the rotation angle |
[in] | sinrot | the sine of the rotation angle |
[in] | vars | the typedefs for this packed array |
[in] | dims | the dimensions of the fields in the packed array |
[in] | nflds | the number of fields in the packed array |
[out] | fields | the packed array |
Definition at line 65 of file utils_mod.F90.
|
private |
Pack 3D fields into arrays by mapping type.
[in] | filesrc | the file containing the fields to retrieve |
[in] | wgtsdir | the path to the required ESMF regridding weights |
[in] | cosrot | the cosine of the rotation angle |
[in] | sinrot | the sine of the rotation angle |
[in] | vars | the typedefs for this packed array |
[in] | dims | the dimensions of the fields in the packed array |
[in] | nflds | the number of fields in the packed array |
[out] | fields | the packed array |
Definition at line 127 of file utils_mod.F90.
|
private |
Remap a 1-D vector array from source to destination.
[in] | fname | the file containing ESMF regridding weights |
[in] | src_field | the source field |
[out] | dst_field | the destination field |
Definition at line 376 of file utils_mod.F90.
|
private |
Remap a 2-D vector array of nflds or nlevs from source to destination.
[in] | fname | the file containing ESMF regridding weights |
[in] | dim2 | the number of fields or levels |
[in] | src_field | the source field |
[out] | dst_field | the destination field |
Definition at line 431 of file utils_mod.F90.
|
private |
Remap a field packed array of nk levels and nflds fields.
[in] | fname | the file containing ESMF regridding weights |
[in] | nk | the number of levels |
[in] | nflds | the number of fields |
[in] | src_field | the source field |
[out] | dst_field | the destination field |
Definition at line 488 of file utils_mod.F90.