NGen
Loading...
Searching...
No Matches
data_access Namespace Reference

Namespaces

namespace  detail
 

Classes

class  DataProvider
 
class  DeferredWrappedProvider
 A specialized @WrappedDataProvider that is created without first knowing the backing source it wraps. More...
 
class  OptionalWrappedDataProvider
 Extension of DeferredWrappedProvider, where default values can be used instead of a backing provider. More...
 
class  WrappedDataProvider
 Simple implementation that basically wraps another instance. More...
 

Typedefs

using GenericDataProvider = DataProvider<double, CatchmentAggrDataSelector>
 
using Provider = ForcingsEngineLumpedDataProvider
 
using BaseProvider = Provider::base_type
 

Enumerations

enum  ReSampleMethod {
  MEAN ,
  SUM ,
  FRONT_FILL ,
  BACK_FILL
}
 An abstraction for classes that provides access to data. More...
 

Functions

std::size_t convert_divide_id_stoi (const std::string &divide_id)
 

Variables

const std::map< std::string, std::tuple< std::string, std::string > > WellKnownFields
 

Typedef Documentation

◆ BaseProvider

using data_access::BaseProvider = Provider::base_type

◆ GenericDataProvider

◆ Provider

using data_access::Provider = ForcingsEngineLumpedDataProvider

Enumeration Type Documentation

◆ ReSampleMethod

An abstraction for classes that provides access to data.

Data may be pre-provided from some external source, internally calculated by the implementing type, or some combination of both.

Enumerator
MEAN 
SUM 
FRONT_FILL 
BACK_FILL 

Function Documentation

◆ convert_divide_id_stoi()

std::size_t data_access::convert_divide_id_stoi ( const std::string & divide_id)

Variable Documentation

◆ WellKnownFields

const std::map<std::string, std::tuple<std::string, std::string> > data_access::WellKnownFields
Initial value:
= {
{"precip_rate", { CSDMS_STD_NAME_LIQUID_EQ_PRECIP_RATE, "mm s^-1" } },
{"APCP_surface", { CSDMS_STD_NAME_RAIN_VOLUME_FLUX, "kg m^-2" } },
{"DLWRF_surface", { CSDMS_STD_NAME_SOLAR_LONGWAVE, "W m-2" } },
{"DSWRF_surface", { CSDMS_STD_NAME_SOLAR_SHORTWAVE, "W m-2" } },
{"PRES_surface", { CSDMS_STD_NAME_SURFACE_AIR_PRESSURE, "Pa" } },
{"SPFH_2maboveground", { NGEN_STD_NAME_SPECIFIC_HUMIDITY, "kg kg-1" } },
{"TMP_2maboveground", { CSDMS_STD_NAME_SURFACE_TEMP, "K" } },
{"UGRD_10maboveground", { CSDMS_STD_NAME_WIND_U_X, "m s-1" } },
{"VGRD_10maboveground", { CSDMS_STD_NAME_WIND_V_Y, "m s-1" } },
{"RAINRATE", { CSDMS_STD_NAME_LIQUID_EQ_PRECIP_RATE , "mm s^-1" } },
{"T2D", { CSDMS_STD_NAME_SURFACE_TEMP, "K" } },
{"Q2D", { NGEN_STD_NAME_SPECIFIC_HUMIDITY, "kg kg-1" } },
{"U2D", { CSDMS_STD_NAME_WIND_U_X, "m s-1" } },
{"V2D", { CSDMS_STD_NAME_WIND_V_Y, "m s-1" } },
{"PSFC", { CSDMS_STD_NAME_SURFACE_AIR_PRESSURE, "Pa" } },
{"SWDOWN", { CSDMS_STD_NAME_SOLAR_SHORTWAVE, "W m-2" } },
{"LWDOWN", { CSDMS_STD_NAME_SOLAR_LONGWAVE, "W m-2" } }
}

Referenced by CsvPerFeatureForcingProvider::get_value_for_param_name(), and CsvPerFeatureForcingProvider::read_csv().