sfc_climo_gen  1.3.0
 All Data Structures Files Functions Variables
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...

Public Member Functions

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...
 

Data Fields

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

Definition at line 12 of file source_grid.F90.

Member Function/Subroutine Documentation

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 51 of file source_grid.F90.

References utils::error_handler(), and utils::netcdf_err().

Referenced by driver().

subroutine, public source_grid::source_grid_cleanup ( )

Free up memory associated with this module.

Author
George Gayno
Date
2018

Definition at line 381 of file source_grid.F90.

Referenced by driver().

Field Documentation

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.

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

Names of fields to be processed.

Definition at line 21 of file source_grid.F90.

type(esmf_grid), public source_grid::grid_src

ESMF grid object for the source grid.

Definition at line 34 of file source_grid.F90.

integer, public source_grid::i_src

i dimension of the source grid.

Definition at line 24 of file source_grid.F90.

integer, public source_grid::j_src

j dimension of the source grid.

Definition at line 25 of file source_grid.F90.

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.

integer, public source_grid::num_records

Number of fields times time records.

Definition at line 26 of file source_grid.F90.

integer, public source_grid::num_time_recs

Number of time records.

Definition at line 27 of file source_grid.F90.

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

Original source of the data.

Definition at line 22 of file source_grid.F90.


The documentation for this module was generated from the following file: