SCALE-RM
|
module GTOOL_FILE More...
Functions/Subroutines | |
subroutine, public | filecreate (fid, existed, basename, title, source, institution, master, myrank, rankidx, single, time_units, append) |
subroutine, public | filesetoption (fid, filetype, key, val) |
subroutine, public | fileopen (fid, basename, mode, single) |
subroutine, public | filesettattr (fid, vname, key, val) |
subroutine, public | filegetshape (dims, basename, varname, myrank, single) |
subroutine, public | filegetdatainfo (basename, varname, myrank, istep, single, description, units, datatype, dim_rank, dim_name, dim_size, time_start, time_end, time_units) |
subroutine, public | filegetalldatainfo (step_limit, dim_limit, basename, varname, myrank, step_nmax, description, units, datatype, dim_rank, dim_name, dim_size, time_start, time_end, time_units, single) |
subroutine, public | fileclose (fid) |
subroutine, public | filecloseall |
subroutine, public | filemakefname (fname, basename, prefix, myrank, len) |
Variables | |
real(dp), parameter, public | rmiss = -9.9999e+30 |
module GTOOL_FILE
subroutine, public gtool_file::filecreate | ( | integer, intent(out) | fid, |
logical, intent(out) | existed, | ||
character(len=*), intent(in) | basename, | ||
character(len=*), intent(in) | title, | ||
character(len=*), intent(in) | source, | ||
character(len=*), intent(in) | institution, | ||
integer, intent(in) | master, | ||
integer, intent(in) | myrank, | ||
integer, dimension(:), intent(in) | rankidx, | ||
logical, intent(in), optional | single, | ||
character(len=*), intent(in), optional | time_units, | ||
logical, intent(in), optional | append | ||
) |
Definition at line 150 of file gtool_file.f90.
References gtool_file_h::file_fappend, gtool_file_h::file_fwrite, file_get_global_attribute_double(), file_get_global_attribute_float(), file_get_global_attribute_int(), file_get_global_attribute_text(), file_set_global_attribute_double(), file_set_global_attribute_float(), file_set_global_attribute_int(), file_set_global_attribute_text(), file_set_tunits(), dc_log::log(), and gtool_file_h::success_code.
Referenced by scale_fileio::fileio_write_1d(), scale_fileio::fileio_write_2d(), scale_fileio::fileio_write_3d(), scale_fileio::fileio_write_3d_t(), scale_fileio::fileio_write_4d(), and gtool_history::historyaddvariable().
subroutine, public gtool_file::filesetoption | ( | integer, intent(in) | fid, |
character(len=*), intent(in) | filetype, | ||
character(len=*), intent(in) | key, | ||
character(len=*), intent(in) | val | ||
) |
Definition at line 422 of file gtool_file.f90.
References file_set_option(), dc_log::log(), and gtool_file_h::success_code.
Referenced by gtool_history::historyaddvariable().
subroutine, public gtool_file::fileopen | ( | integer, intent(out) | fid, |
character(len=*), intent(in) | basename, | ||
integer, intent(in) | mode, | ||
logical, intent(in), optional | single | ||
) |
Definition at line 446 of file gtool_file.f90.
References gtool_file_h::already_existed_code, dc_types::dp, file_add_variable(), file_put_associated_coordinates(), file_put_axis(), dc_log::log(), dc_types::sp, and gtool_file_h::success_code.
Referenced by filegetalldatainfo(), filegetdatainfo(), and filegetshape().
subroutine, public gtool_file::filesettattr | ( | integer, intent(in) | fid, |
character(len=*), intent(in) | vname, | ||
character(len=*), intent(in) | key, | ||
character(len=*), intent(in) | val | ||
) |
Definition at line 942 of file gtool_file.f90.
References gtool_file_h::already_existed_code, file_set_tattr(), dc_log::log(), and gtool_file_h::success_code.
Referenced by scale_fileio::fileio_set_axes(), gtool_history::historyaddvariable(), and gtool_history::historysettattr().
subroutine, public gtool_file::filegetshape | ( | integer, dimension(:), intent(out) | dims, |
character(len=*), intent(in) | basename, | ||
character(len=*), intent(in) | varname, | ||
integer, intent(in) | myrank, | ||
logical, intent(in), optional | single | ||
) |
Definition at line 970 of file gtool_file.f90.
References gtool_file_h::file_fread, file_get_datainfo(), fileopen(), dc_log::log(), and gtool_file_h::success_code.
Referenced by mod_realinput_nicam::parentatomsetupnicam(), mod_realinput_nicam::parentlandsetupnicam(), mod_realinput_nicam::parentoceansetupnicam(), and mod_mkinit::read_sounding().
subroutine, public gtool_file::filegetdatainfo | ( | character(len=*), intent(in) | basename, |
character(len=*), intent(in) | varname, | ||
integer, intent(in) | myrank, | ||
integer, intent(in) | istep, | ||
logical, intent(in), optional | single, | ||
character(len=file_hmid), intent(out), optional | description, | ||
character(len=file_hshort), intent(out), optional | units, | ||
integer, intent(out), optional | datatype, | ||
integer, intent(out), optional | dim_rank, | ||
character(len=file_hshort), dimension(:), intent(out), optional | dim_name, | ||
integer, dimension(:), intent(out), optional | dim_size, | ||
real(dp), intent(out), optional | time_start, | ||
real(dp), intent(out), optional | time_end, | ||
character(len=file_hmid), intent(out), optional | time_units | ||
) |
Definition at line 1036 of file gtool_file.f90.
References gtool_file_h::file_fread, file_get_datainfo(), fileopen(), dc_log::log(), and gtool_file_h::success_code.
Referenced by mod_admin_time::admin_time_setup().
subroutine, public gtool_file::filegetalldatainfo | ( | integer, intent(in) | step_limit, |
integer, intent(in) | dim_limit, | ||
character(len=*), intent(in) | basename, | ||
character(len=*), intent(in) | varname, | ||
integer, intent(in) | myrank, | ||
integer, intent(out) | step_nmax, | ||
character(len=file_hmid), intent(out) | description, | ||
character(len=file_hshort), intent(out) | units, | ||
integer, intent(out) | datatype, | ||
integer, intent(out) | dim_rank, | ||
character(len=file_hshort), dimension (dim_limit), intent(out) | dim_name, | ||
integer, dimension (dim_limit), intent(out) | dim_size, | ||
real(dp), dimension(step_limit), intent(out) | time_start, | ||
real(dp), dimension (step_limit), intent(out) | time_end, | ||
character(len=file_hmid), intent(out) | time_units, | ||
logical, intent(in), optional | single | ||
) |
Definition at line 1153 of file gtool_file.f90.
References dc_types::dp, gtool_file_h::file_fread, file_get_datainfo(), file_read_data(), file_write_data(), fileopen(), dc_log::log(), rmiss, dc_types::sp, and gtool_file_h::success_code.
Referenced by scale_external_input::extin_setup().
subroutine, public gtool_file::fileclose | ( | integer, intent(in) | fid | ) |
Definition at line 2199 of file gtool_file.f90.
References gtool_file_h::already_closed_code, file_close(), dc_log::log(), and gtool_file_h::success_code.
Referenced by filecloseall(), and gtool_history::historyfinalize().
subroutine, public gtool_file::filecloseall | ( | ) |
Definition at line 2238 of file gtool_file.f90.
References fileclose().
Referenced by scale_process::prc_mpitimestat(), mod_rm_driver::scalerm(), scalerm_launcher(), and mod_rm_prep::scalerm_prep().
subroutine, public gtool_file::filemakefname | ( | character(len=*), intent(out) | fname, |
character(len=*), intent(in) | basename, | ||
character(len=*), intent(in) | prefix, | ||
integer, intent(in) | myrank, | ||
integer, intent(in) | len | ||
) |
Definition at line 2259 of file gtool_file.f90.
References file_open(), dc_log::log(), and gtool_file_h::success_code.
Referenced by scale_external_io::externalfilereadoffset4drealdp().
real(dp), parameter, public gtool_file::rmiss = -9.9999e+30 |
Definition at line 110 of file gtool_file.f90.
Referenced by filegetalldatainfo(), scale_fileio::fileio_write_2d(), scale_fileio::fileio_write_3d(), scale_fileio::fileio_write_3d_t(), scale_fileio::fileio_write_4d(), scale_history::hist_put_2d(), and scale_history::hist_put_3d().