ReFRACtor
|
This class implements and example Meteorological reader that reads data from an HDF file with datasets of the same name as the values. More...
#include <example_met_file.h>
Public Member Functions | |
ExampleMetFile (const boost::shared_ptr< HdfFile > &input_file, const std::string &observation_id) | |
Constructor. More... | |
ExampleMetFile (const std::string &input_filename, const std::string &observation_id) | |
~ExampleMetFile () | |
blitz::Array< double, 1 > | pressure_levels () const |
Pressure levels in Pascals used for provided meteorological data. More... | |
void | print (std::ostream &Os) const |
std::string | print_to_string () const |
Print to string. More... | |
blitz::Array< double, 1 > | specific_humidity () const |
Specific humidty on the meteorological pressure levels. More... | |
virtual blitz::Array< double, 1 > | specific_humidity (const blitz::Array< double, 1 > &Pressure_level) const |
Specific humidity interpolated to the requested pressure levels. More... | |
double | surface_pressure () const |
Surface pressure in Pascals. More... | |
blitz::Array< double, 1 > | temperature () const |
Temperature profile in Kelvins on the meteorological pressure levels. More... | |
virtual blitz::Array< double, 1 > | temperature (const blitz::Array< double, 1 > &Pressure_level) const |
Temperature profile in Kelvins interpolated to the requested pressure levels. More... | |
virtual blitz::Array< double, 1 > | vmr (const std::string &Species) const |
Volume mixing ratio for a particular species on the meteorological pressure levels. More... | |
virtual blitz::Array< double, 1 > | vmr (const std::string &Species, const blitz::Array< double, 1 > &Pressure_level) const |
Volume mixing ratio for a particular species interpolated to the requested pressure levels. More... | |
virtual double | windspeed () const |
Windspeed magnitude in m/s for the surface. More... | |
double | windspeed_u () const |
The U component windspeed in m/s. More... | |
double | windspeed_v () const |
The V component windspeed in m/s. More... | |
Protected Member Functions | |
virtual blitz::Array< double, 1 > | h2o_vmr () const |
Return the H20 VMR. More... | |
blitz::Array< double, 1 > | interpolate_to_grid (const blitz::Array< double, 1 > &Profile, const blitz::Array< double, 1 > &Dest_pressure_levels) const |
Interpolates a profile of data from the internal pressure grid to the supplied one. More... | |
This class implements and example Meteorological reader that reads data from an HDF file with datasets of the same name as the values.
Definition at line 13 of file example_met_file.h.
ExampleMetFile::ExampleMetFile | ( | const boost::shared_ptr< HdfFile > & | input_file, |
const std::string & | observation_id | ||
) |
Constructor.
input_file | HDF file with meteological data |
observation_id | Identifier string that is present in the observation_ids dataset |
Definition at line 20 of file example_met_file.cc.
ExampleMetFile::ExampleMetFile | ( | const std::string & | input_filename, |
const std::string & | observation_id | ||
) |
Definition at line 27 of file example_met_file.cc.
|
inline |
Definition at line 17 of file example_met_file.h.
|
protectedvirtualinherited |
Return the H20 VMR.
This is the specific_humidity converted to a volume mixing ratio.
Definition at line 67 of file meteorology.cc.
|
protectedinherited |
Interpolates a profile of data from the internal pressure grid to the supplied one.
Uses log-log interpolation.
Definition at line 75 of file meteorology.cc.
|
inlinevirtual |
Pressure levels in Pascals used for provided meteorological data.
Implements FullPhysics::Meteorology.
Definition at line 21 of file example_met_file.h.
|
inline |
Definition at line 41 of file example_met_file.h.
|
inlineinherited |
Print to string.
This is primarily useful for SWIG wrappers to this class, e.g. a to_s method in ruby.
Definition at line 31 of file printable.h.
|
inlinevirtual |
Specific humidty on the meteorological pressure levels.
Implements FullPhysics::Meteorology.
Definition at line 25 of file example_met_file.h.
|
virtualinherited |
Specific humidity interpolated to the requested pressure levels.
|
inlinevirtual |
Surface pressure in Pascals.
Implements FullPhysics::Meteorology.
Definition at line 28 of file example_met_file.h.
|
inlinevirtual |
Temperature profile in Kelvins on the meteorological pressure levels.
Implements FullPhysics::Meteorology.
Definition at line 38 of file example_met_file.h.
|
virtualinherited |
Temperature profile in Kelvins interpolated to the requested pressure levels.
|
virtualinherited |
Volume mixing ratio for a particular species on the meteorological pressure levels.
Species name should use the standard molecular compound naming convention. Ie, oxygen = O2, water = H2O, etc..
Functions for computing the VMR values are registered into vmr_func_map. This base class includes an implementation for H2O VMR from specific_humidity.
Definition at line 54 of file meteorology.cc.
|
virtualinherited |
Volume mixing ratio for a particular species interpolated to the requested pressure levels.
|
virtualinherited |
Windspeed magnitude in m/s for the surface.
Definition at line 49 of file meteorology.cc.
|
inlinevirtual |
The U component windspeed in m/s.
Implements FullPhysics::Meteorology.
Definition at line 31 of file example_met_file.h.
|
inlinevirtual |
The V component windspeed in m/s.
Implements FullPhysics::Meteorology.
Definition at line 34 of file example_met_file.h.