FV3 Bundle
qg::LocationsQG Class Reference

LocationsQG class to handle locations for QG model. More...

#include <LocationsQG.h>

Inheritance diagram for qg::LocationsQG:
[legend]
Collaboration diagram for qg::LocationsQG:
[legend]

Public Member Functions

 LocationsQG (const F90locs key)
 
 LocationsQG (const eckit::Configuration &)
 QG Locations Constructor with Configuration. More...
 
 ~LocationsQG ()
 
size_t size () const
 
int toFortran () const
 

Static Public Member Functions

static const std::string classname ()
 

Private Member Functions

void print (std::ostream &os) const
 

Private Attributes

F90locs keyLoc_
 

Detailed Description

LocationsQG class to handle locations for QG model.

Definition at line 26 of file LocationsQG.h.

Constructor & Destructor Documentation

◆ LocationsQG() [1/2]

qg::LocationsQG::LocationsQG ( const F90locs  key)
inlineexplicit

Definition at line 31 of file LocationsQG.h.

◆ LocationsQG() [2/2]

qg::LocationsQG::LocationsQG ( const eckit::Configuration &  config)
explicit

QG Locations Constructor with Configuration.

This constructor can be used to generate user-specified and/or random locations for use with testStateInterpolation()

To generate random locations, the relevant parameters specified in State.Locations section of the config file are:

  • lats user-specified latitudes (degrees)
  • lons user-specified longitudes (degrees)
  • heights user-specified heights (normalized, from 0-1)
  • Nrandom number of random locations desired
  • random_seed (optional) random seed for reproducibility of results
Date
April, 2018 Created (M. Miesch, JCSDA)
Warning
latitudes and longitudes are converted to normalized locations (between 0-1) based on on an assumed latitudinal extent of 180 degrees and an assumed longitudinal extent of 360 degrees
See also
qg::c_qg_loc_test() test::testStateInterpolation()

Definition at line 46 of file LocationsQG.cc.

Here is the call graph for this function:

◆ ~LocationsQG()

qg::LocationsQG::~LocationsQG ( )
inline

Definition at line 35 of file LocationsQG.h.

Here is the call graph for this function:

Member Function Documentation

◆ classname()

static const std::string qg::LocationsQG::classname ( )
inlinestatic

Definition at line 29 of file LocationsQG.h.

◆ print()

void qg::LocationsQG::print ( std::ostream &  os) const
inlineprivate

Definition at line 45 of file LocationsQG.h.

Here is the call graph for this function:

◆ size()

size_t qg::LocationsQG::size ( ) const
inline

Definition at line 37 of file LocationsQG.h.

Here is the call graph for this function:

◆ toFortran()

int qg::LocationsQG::toFortran ( ) const
inline

Definition at line 43 of file LocationsQG.h.

Here is the caller graph for this function:

Member Data Documentation

◆ keyLoc_

F90locs qg::LocationsQG::keyLoc_
private

Definition at line 57 of file LocationsQG.h.


The documentation for this class was generated from the following files: