sfc_climo_gen  1.13.0
source_grid Module Reference

Read grid specs, date information and land/sea mask for the source data that will be interpolated to the model grid. More...

Functions/Subroutines

subroutine, public define_source_grid (localpet, npets, input_file)
 Defines esmf grid object for source grid. More...
 
subroutine, public source_grid_cleanup
 Free up memory associated with this module. More...
 

Variables

integer, dimension(:), allocatable, public day_of_rec
 Day of each time record with respect to Jan 1. More...
 
character(len=50), dimension(:), allocatable, public field_names
 Names of fields to be processed. More...
 
type(esmf_grid), public grid_src
 ESMF grid object for the source grid. More...
 
integer, public i_src
 i dimension of the source grid. More...
 
integer, public j_src
 j dimension of the source grid. More...
 
integer, public num_fields
 Number of fields in the file. More...
 
integer, public num_records
 Number of fields times time records. More...
 
integer, public num_time_recs
 Number of time records. More...
 
character(len=75), public source
 Original source of the data. More...
 

Detailed Description

Read grid specs, date information and land/sea mask for the source data that will be interpolated to the model grid.

Also, sets up the ESMF grid object for the source grid. Source grid is assumed to be global lat/lon.

Author
George Gayno
Date
2018

Function/Subroutine Documentation

◆ define_source_grid()

subroutine, public source_grid::define_source_grid ( integer, intent(in)  localpet,
integer, intent(in)  npets,
character(len=*), intent(in)  input_file 
)

Defines esmf grid object for source grid.

Retrieves date and field information from source file.

Read date information from input source data file. Create esmf grid object for the source grid.

Parameters
[in]localpetmpi task number
[in]npetstotal number mpi tasks
[in]input_filefile containing the source grid data.
Author
George Gayno
Date
2018

Definition at line 52 of file source_grid.F90.

References day_of_rec, utils::error_handler(), field_names, grid_src, i_src, j_src, utils::netcdf_err(), num_fields, num_records, num_time_recs, and source.

Referenced by driver().

◆ source_grid_cleanup()

subroutine, public source_grid::source_grid_cleanup ( )

Free up memory associated with this module.

Author
George Gayno
Date
2018

Definition at line 404 of file source_grid.F90.

References day_of_rec, field_names, and grid_src.

Referenced by driver().

Variable Documentation

◆ day_of_rec

integer, dimension(:), allocatable, public source_grid::day_of_rec

Day of each time record with respect to Jan 1.

Definition at line 31 of file source_grid.F90.

Referenced by define_source_grid(), output(), source_grid_cleanup(), and output_frac_cats::writeit().

◆ field_names

character(len=50), dimension(:), allocatable, public source_grid::field_names

◆ grid_src

type(esmf_grid), public source_grid::grid_src

ESMF grid object for the source grid.

Definition at line 34 of file source_grid.F90.

Referenced by define_source_grid(), interp(), interp_frac_cats(), and source_grid_cleanup().

◆ i_src

integer, public source_grid::i_src

i dimension of the source grid.

Definition at line 24 of file source_grid.F90.

Referenced by define_source_grid(), interp(), and interp_frac_cats().

◆ j_src

integer, public source_grid::j_src

j dimension of the source grid.

Definition at line 25 of file source_grid.F90.

Referenced by define_source_grid(), interp(), and interp_frac_cats().

◆ num_fields

integer, public source_grid::num_fields

Number of fields in the file.

Some files have more than one (ex: the 4-component albedo).

Definition at line 28 of file source_grid.F90.

Referenced by define_source_grid(), interp(), and output().

◆ num_records

integer, public source_grid::num_records

Number of fields times time records.

Definition at line 26 of file source_grid.F90.

Referenced by define_source_grid(), and output().

◆ num_time_recs

integer, public source_grid::num_time_recs

Number of time records.

Definition at line 27 of file source_grid.F90.

Referenced by define_source_grid(), interp(), output(), and output_frac_cats::writeit().

◆ source

character(len=75), public source_grid::source

Original source of the data.

Definition at line 22 of file source_grid.F90.

Referenced by define_source_grid(), output(), and output_frac_cats::writeit().