Go to the source code of this file.
Functions/Subroutines | |
| subroutine | historycreate1 (file, title, source, institution, dims, dimsizes, longnames, units, origin, interval, xtypes, history, origind, intervald, conventions, gt_version, overwrite, quiet, flag_mpi_gather, flag_mpi_split, err) |
| gtool4 データ出力用初期設定 | |
| subroutine | historycreate2 (file, title, source, institution, dims, dimsizes, longnames, units, origin, interval, xtypes, history, conventions, gt_version, overwrite, quiet, flag_mpi_gather, flag_mpi_split, err) |
| gtool4 データ出力用初期設定 | |
| subroutine | historycreate3 (file, title, source, institution, axes, origin, interval, history, origind, intervald, conventions, gt_version, overwrite, quiet, flag_mpi_gather, flag_mpi_split, err) |
| gtool4 データ出力用初期設定 | |
| subroutine historycreate1 | ( | character(*), intent(in) | file, |
| character(*), intent(in) | title, | ||
| character(*), intent(in) | source, | ||
| character(*), intent(in) | institution, | ||
| character(*), dimension(:), intent(in) | dims, | ||
| integer, dimension (:), intent(in) | dimsizes, | ||
| character(*), dimension (:), intent(in) | longnames, | ||
| character(*), dimension(:), intent(in) | units, | ||
| real, intent(in), optional | origin, | ||
| real, intent(in), optional | interval, | ||
| character(*), dimension(:), intent(in), optional | xtypes, | ||
| type(gt_history), intent(out), optional, target | history, | ||
| real(dp), intent(in), optional | origind, | ||
| real(dp), intent(in), optional | intervald, | ||
| character(*), intent(in), optional | conventions, | ||
| character(*), intent(in), optional | gt_version, | ||
| logical, intent(in), optional | overwrite, | ||
| logical, intent(in), optional | quiet, | ||
| logical, intent(in), optional | flag_mpi_gather, | ||
| logical, intent(in), optional | flag_mpi_split, | ||
| logical, intent(out), optional | err | ||
| ) |
gtool4 データ出力用初期設定
| [in] | file |
iline 1
このサブルーチンは、gtool4 データ出力の初期設定を行います。 HistoryAddVariable、 HistoryCopyVariable、 HistoryPut、 HistoryAddAttr、 HistoryClose、 HistorySetTime を用いるためには、HistoryCreate による初期設定が必要です。
なお、プログラム内で HistoryCreate を呼び出した場合、 プログラムを終了する前に必ず、 HistoryClose を呼び出して 終了処理を行なって下さい。
HistoryCreate というサブルーチン名は 2 つの別々の サブルーチンの総称名です。上記のサブルーチンも参照ください。
Two specific subroutines share a common part: Both initialize a dataset file. The result of type GT_HISTORY will be returned by history or managed internally if omitted. Mandatory global attributes are defined by arguments title, source, and institution. Spatial axis definitions have two different forms: a primitive one uses several arrays of various types: dims, dimsizes, longnames, units, and xtypes. Another sophisticated one has only array of type GT_HISTORY_AXIS, axes. Temporal definition is done with origin and interval.
Definition at line 30 of file historycreate.f90.
References dc_trace::beginsub(), dc_trace::dbgmessage(), dc_error::dc_ealreadyinit, dc_error::dc_noerr, gtool_history_internal::default, dc_types::dp, dc_trace::endsub(), dc_error::gt_eargsizemismatch, gtool_history_internal::gtool4_netcdf_conventions, gtool_history_internal::gtool4_netcdf_version, dc_string::joinchar(), dc_present::present_and_false(), dc_present::present_and_not_empty(), dc_present::present_and_true(), dc_error::storeerror(), dc_types::string, sysdep::sysdepenvget(), dc_types::token, dc_date_types::unit_symbol_err, and dc_date_types::unit_symbol_sec.
| subroutine historycreate2 | ( | character(*), intent(in) | file, |
| character(*), intent(in) | title, | ||
| character(*), intent(in) | source, | ||
| character(*), intent(in) | institution, | ||
| character(*), dimension(:), intent(in) | dims, | ||
| integer, dimension (:), intent(in) | dimsizes, | ||
| character(*), dimension (:), intent(in) | longnames, | ||
| character(*), dimension(:), intent(in) | units, | ||
| type(dc_difftime), intent(in) | origin, | ||
| type(dc_difftime), intent(in), optional | interval, | ||
| character(*), dimension(:), intent(in), optional | xtypes, | ||
| type(gt_history), intent(out), optional, target | history, | ||
| character(*), intent(in), optional | conventions, | ||
| character(*), intent(in), optional | gt_version, | ||
| logical, intent(in), optional | overwrite, | ||
| logical, intent(in), optional | quiet, | ||
| logical, intent(in), optional | flag_mpi_gather, | ||
| logical, intent(in), optional | flag_mpi_split, | ||
| logical, intent(out), optional | err | ||
| ) |
gtool4 データ出力用初期設定
| [in] | file |
iline 1
このサブルーチンは、gtool4 データ出力の初期設定を行います。 HistoryAddVariable、 HistoryCopyVariable、 HistoryPut、 HistoryAddAttr、 HistoryClose、 HistorySetTime を用いるためには、HistoryCreate による初期設定が必要です。
なお、プログラム内で HistoryCreate を呼び出した場合、 プログラムを終了する前に必ず、 HistoryClose を呼び出して 終了処理を行なって下さい。
HistoryCreate というサブルーチン名は 2 つの別々の サブルーチンの総称名です。上記のサブルーチンも参照ください。
Two specific subroutines share a common part: Both initialize a dataset file. The result of type GT_HISTORY will be returned by history or managed internally if omitted. Mandatory global attributes are defined by arguments title, source, and institution. Spatial axis definitions have two different forms: a primitive one uses several arrays of various types: dims, dimsizes, longnames, units, and xtypes. Another sophisticated one has only array of type GT_HISTORY_AXIS, axes. Temporal definition is done with origin and interval.
Definition at line 697 of file historycreate.f90.
References dc_trace::beginsub(), dc_error::dc_noerr, gtool_history_internal::default, dc_types::dp, dc_trace::endsub(), dc_error::storeerror(), dc_types::string, dc_types::token, dc_date_types::unit_symbol_err, and dc_date_types::unit_symbol_sec.
| subroutine historycreate3 | ( | character(*), intent(in) | file, |
| character(*), intent(in) | title, | ||
| character(*), intent(in) | source, | ||
| character(*), intent(in) | institution, | ||
| type(gt_history_axis), dimension(:), intent(in) | axes, | ||
| real, intent(in), optional | origin, | ||
| real, intent(in), optional | interval, | ||
| type(gt_history), intent(out), optional, target | history, | ||
| real(dp), intent(in), optional | origind, | ||
| real(dp), intent(in), optional | intervald, | ||
| character(*), intent(in), optional | conventions, | ||
| character(*), intent(in), optional | gt_version, | ||
| logical, intent(in), optional | overwrite, | ||
| logical, intent(in), optional | quiet, | ||
| logical, intent(in), optional | flag_mpi_gather, | ||
| logical, intent(in), optional | flag_mpi_split, | ||
| logical, intent(out), optional | err | ||
| ) |
gtool4 データ出力用初期設定
| [in] | file |
iline 1
HistoryCreate というサブルーチン名は 2 つの別々の サブルーチンの総称名です。まずは HistoryCreate を参照ください。
もう 1 つのサブルーチンと異なる点は、座標軸の情報を dims, dimsizes, longnames, units, xtypes といった 個別の引数で与えるのではなく、構造体 GT_HISTORY_AXIS 型の 引数 axes で与える点にあります。
GT_HISTORY_AXIS 型変数の生成 (constructor) は HistoryAxisCreate にて行います。
Two specific subroutines share a common part: Both initialize a dataset file. The result of type GT_HISTORY will be returned by history or managed internally if omitted. Mandatory global attributes are defined by arguments title, source, and institution. Spatial axis definitions have two different forms: a primitive one uses several arrays of various types: dims, dimsizes, longnames, units, and xtypes. Another sophisticated one has only array of type GT_HISTORY_AXIS, axes. Temporal definition is done with origin and interval.
Definition at line 1101 of file historycreate.f90.
References dc_trace::beginsub(), dc_trace::dbgmessage(), gtool_history_internal::default, dc_types::dp, dc_trace::endsub(), dc_present::present_and_true(), and dc_types::string.