SCALE-RM
|
module file_grads More...
Functions/Subroutines | |
subroutine, public | file_grads_open (file_name, file_id) |
Open. More... | |
subroutine, public | file_grads_varid (file_id, var_name, var_id) |
logical function, public | file_grads_isoned (file_id, var_id) |
subroutine | file_grads_get_shape_name (file_id, var_name, shape) |
subroutine | file_grads_get_shape_id (file_id, var_id, shape) |
subroutine | file_grads_read_1d_id (file_id, var_id, var, step, postfix) |
subroutine | file_grads_read_2d_id (file_id, var_id, var, step, postfix) |
subroutine | file_grads_read_3d_id (file_id, var_id, var, step, postfix) |
subroutine, public | file_grads_close (file_id) |
subroutine | read_data_int1 (fid, irecl, nx, ny, nz, k, yrev, var, ierr) |
character(len=len(str)) function | upcase (str) |
module file_grads
name | type | default value | comment |
---|---|---|---|
NX | integer | ||
NY | integer | ||
NZ | integer |
name | type | default value | comment |
---|---|---|---|
NAME | character(len=H_SHORT) | up to 16 characters | |
DTYPE | character(len=H_SHORT) | 'linear','levels','map' | |
FNAME | character(len=H_LONG) | head of file name | |
SWPOINT | real(RP) | start point (south-west point) for "linear" | |
DD | real(RP) | dlon,dlat for "linear" | |
LNUM | integer | number of data | |
LVARS | real(RP), dimension(LVARS_MAX) | values for "levels" | |
STARTREC | integer | record position | |
TOTALREC | integer | total record number per one time | |
MISSVAL | real(SP) | missing value | |
NX | integer | ||
NY | integer | ||
NZ | integer | ||
YREV | logical | ||
BINTYPE | character(len=H_SHORT) | binary type: 'int?' or 'real?' ?=2,4, or 8 |
name | type | default value | comment |
---|---|---|---|
DUMMY | logical |
name | type | default value | comment |
---|---|---|---|
DUMMY | logical |
subroutine, public scale_file_grads::file_grads_open | ( | character(len=*), intent(in) | file_name, |
integer, intent(out) | file_id | ||
) |
Open.
Definition at line 102 of file scale_file_grads.F90.
References scale_const::const_undef, scale_io::io_get_available_fid(), scale_prc::prc_abort(), and upcase().
Referenced by mod_cnv2d::cnv2d_grads_init(), mod_cnvuser::cnvuser(), mod_cnvuser::cnvuser_setup(), mod_copytopo::copytopo_get_data_grads(), mod_copytopo::copytopo_get_size_grads(), mod_copytopo::copytopo_get_size_wrfarw(), mod_realinput_grads::parentatmossetupgrads(), mod_realinput_grads::parentlandsetupgrads(), and mod_realinput_grads::parentoceansetupgrads().
subroutine, public scale_file_grads::file_grads_varid | ( | integer, intent(in) | file_id, |
character(len=*), intent(in) | var_name, | ||
integer, intent(out) | var_id | ||
) |
Definition at line 300 of file scale_file_grads.F90.
References scale_prc::prc_abort(), and upcase().
Referenced by mod_cnv2d::cnv2d_grads_init(), mod_cnvuser::cnvuser(), mod_cnvuser::cnvuser_setup(), mod_copytopo::copytopo_get_data_grads(), file_grads_get_shape_id(), file_grads_get_shape_name(), file_grads_read_1d_id(), file_grads_read_2d_id(), mod_realinput_grads::parentatmossetupgrads(), mod_realinput_grads::parentlandsetupgrads(), and mod_realinput_grads::parentoceansetupgrads().
logical function, public scale_file_grads::file_grads_isoned | ( | integer, intent(in) | file_id, |
integer, intent(in) | var_id | ||
) |
Definition at line 332 of file scale_file_grads.F90.
References scale_prc::prc_abort().
Referenced by mod_cnv2d::cnv2d_grads_init(), mod_cnvuser::cnvuser_setup(), mod_copytopo::copytopo_get_data_grads(), file_grads_get_shape_id(), mod_realinput_grads::parentatmosinputgrads(), mod_realinput_grads::parentatmosopengrads(), mod_realinput_grads::parentlandinputgrads(), and mod_realinput_grads::parentoceaninputgrads().
subroutine scale_file_grads::file_grads_get_shape_name | ( | integer, intent(in) | file_id, |
character(len=*), intent(in) | var_name, | ||
integer, dimension(:), intent(out) | shape | ||
) |
Definition at line 363 of file scale_file_grads.F90.
References file_grads_get_shape_id(), file_grads_varid(), and scale_prc::prc_abort().
subroutine scale_file_grads::file_grads_get_shape_id | ( | integer, intent(in) | file_id, |
integer, intent(in) | var_id, | ||
integer, dimension(:), intent(out) | shape | ||
) |
Definition at line 390 of file scale_file_grads.F90.
References file_grads_isoned(), file_grads_read_1d_id(), file_grads_varid(), and scale_prc::prc_abort().
Referenced by file_grads_get_shape_name().
subroutine scale_file_grads::file_grads_read_1d_id | ( | integer, intent(in) | file_id, |
integer, intent(in) | var_id, | ||
real(rp), dimension(:), intent(out) | var, | ||
integer, intent(in), optional | step, | ||
character(len=*), intent(in), optional | postfix | ||
) |
Definition at line 457 of file scale_file_grads.F90.
References file_grads_read_2d_id(), file_grads_varid(), and scale_prc::prc_abort().
Referenced by file_grads_get_shape_id().
subroutine scale_file_grads::file_grads_read_2d_id | ( | integer, intent(in) | file_id, |
integer, intent(in) | var_id, | ||
real(rp), dimension(:,:), intent(out) | var, | ||
integer, intent(in), optional | step, | ||
character(len=*), intent(in), optional | postfix | ||
) |
Definition at line 527 of file scale_file_grads.F90.
References file_grads_read_3d_id(), file_grads_varid(), and scale_prc::prc_abort().
Referenced by file_grads_read_1d_id().
subroutine scale_file_grads::file_grads_read_3d_id | ( | integer, intent(in) | file_id, |
integer, intent(in) | var_id, | ||
real(rp), dimension(:,:,:), intent(out) | var, | ||
integer, intent(in), optional | step, | ||
character(len=*), intent(in), optional | postfix | ||
) |
Definition at line 595 of file scale_file_grads.F90.
Referenced by file_grads_read_2d_id().
subroutine, public scale_file_grads::file_grads_close | ( | integer, intent(in) | file_id | ) |
Definition at line 624 of file scale_file_grads.F90.
References scale_const::const_eps, scale_const::const_undef, scale_io::io_get_available_fid(), scale_prc::prc_abort(), and read_data_int1().
Referenced by mod_copytopo::copytopo_get_data_grads().
subroutine scale_file_grads::read_data_int1 | ( | integer, intent(in) | fid, |
integer, intent(in) | irecl, | ||
integer, intent(in) | nx, | ||
integer, intent(in) | ny, | ||
integer, intent(in) | nz, | ||
integer, intent(in) | k, | ||
logical, intent(in) | yrev, | ||
real(rp), dimension(:), intent(out) | var, | ||
integer, intent(out) | ierr | ||
) |
Definition at line 863 of file scale_file_grads.F90.
References scale_prc::prc_abort().
Referenced by file_grads_close().
character(len=len(str)) function scale_file_grads::upcase | ( | character(len=*), intent(in) | str | ) |
Definition at line 1093 of file scale_file_grads.F90.
Referenced by file_grads_open(), and file_grads_varid().