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) |
subroutine, public | file_grads_varcheck (file_id, var_name, exist) |
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, start, count, postfix) |
subroutine | file_grads_read_2d_id (file_id, var_id, var, step, start, count, postfix) |
subroutine | file_grads_read_3d_id (file_id, var_id, var, step, start, count, postfix) |
subroutine, public | file_grads_finalize |
subroutine, public | file_grads_close (file_id) |
subroutine | read_data_int1 (fid, pos, ka, nx, k, sx, cx, cy, yrev, var, ierr) |
character(len=len(str)) function | upcase (str) |
module file_grads
name | type | default value | comment |
---|---|---|---|
NX | integer | ||
NY | integer | optional | |
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 | optional | |
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 104 of file scale_file_grads.F90.
References scale_const::const_undef, scale_io::io_get_available_fid(), scale_io::io_get_fname(), scale_prc::prc_abort(), and upcase().
Referenced by mod_cnv2d::cnv2d_grads_init(), mod_cnvuser::cnvuser(), 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 312 of file scale_file_grads.F90.
References scale_prc::prc_abort(), and upcase().
Referenced by mod_cnv2d::cnv2d_grads_init(), mod_cnvuser::cnvuser(), 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(), file_grads_varcheck(), mod_realinput_grads::parentatmossetupgrads(), mod_realinput_grads::parentlandsetupgrads(), mod_realinput_grads::parentoceaninputgrads(), mod_realinput_grads::parentoceansetupgrads(), mod_realinput_grads::read2d(), and mod_realinput_grads::read3d().
subroutine, public scale_file_grads::file_grads_varcheck | ( | integer, intent(in) | file_id, |
character(len=*), intent(in) | var_name, | ||
logical, intent(out) | exist | ||
) |
Definition at line 344 of file scale_file_grads.F90.
References file_grads_varid(), and scale_prc::prc_abort().
Referenced by mod_realinput_grads::parentlandinputgrads().
logical function, public scale_file_grads::file_grads_isoned | ( | integer, intent(in) | file_id, |
integer, intent(in) | var_id | ||
) |
Definition at line 373 of file scale_file_grads.F90.
References scale_prc::prc_abort().
Referenced by mod_cnv2d::cnv2d_grads_init(), mod_cnvuser::cnvuser(), mod_copytopo::copytopo_get_data_grads(), file_grads_get_shape_id(), mod_realinput_grads::parentlandsetupgrads(), mod_realinput_grads::parentoceansetupgrads(), mod_realinput_grads::read2d(), and mod_realinput_grads::read3d().
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 404 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 431 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, | ||
integer, dimension(1), intent(in), optional | start, | ||
integer, dimension(1), intent(in), optional | count, | ||
character(len=*), intent(in), optional | postfix | ||
) |
Definition at line 506 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, | ||
integer, dimension(2), intent(in), optional | start, | ||
integer, dimension(2), intent(in), optional | count, | ||
character(len=*), intent(in), optional | postfix | ||
) |
Definition at line 588 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, | ||
integer, dimension(3), intent(in), optional | start, | ||
integer, dimension(3), intent(in), optional | count, | ||
character(len=*), intent(in), optional | postfix | ||
) |
Definition at line 668 of file scale_file_grads.F90.
Referenced by file_grads_read_2d_id().
subroutine, public scale_file_grads::file_grads_finalize |
Definition at line 700 of file scale_file_grads.F90.
References file_grads_close().
Referenced by mod_rm_driver::rm_driver(), and mod_rm_prep::rm_prep().
subroutine, public scale_file_grads::file_grads_close | ( | integer, intent(in) | file_id | ) |
Definition at line 713 of file scale_file_grads.F90.
References scale_const::const_eps, scale_const::const_undef, scale_io::io_get_available_fid(), scale_io::io_get_fname(), scale_prc::prc_abort(), and read_data_int1().
Referenced by mod_copytopo::copytopo_get_data_grads(), and file_grads_finalize().
subroutine scale_file_grads::read_data_int1 | ( | integer, intent(in) | fid, |
integer(8), intent(in) | pos, | ||
integer, intent(in) | ka, | ||
integer, intent(in) | nx, | ||
integer, intent(in) | k, | ||
integer, intent(in) | sx, | ||
integer, intent(in) | cx, | ||
integer, intent(in) | cy, | ||
logical, intent(in) | yrev, | ||
real(rp), dimension(:), intent(out) | var, | ||
integer, intent(out) | ierr | ||
) |
Definition at line 1043 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 1279 of file scale_file_grads.F90.
Referenced by file_grads_open(), and file_grads_varid().