Detector description interface for GOES cloud data. More...
#include <GOESDB.h>
Public Types | |
typedef std::map< unsigned int, double > | ProbabilityMap |
Public Member Functions | |
ProbabilityMap | GetAllCloudProbabilities () const |
Optimised lookup of all cloud probabilities (mapped to pixel IDs) More... | |
double | GetCloudProbability (const unsigned int pixelId) const |
Get cloud probability from the pixel id. More... | |
double | GetCloudProbability (const utl::Point &p) const |
Get cloud probability for a particular point. More... | |
double | GetCloudProbability (const utl::UTMPoint &p) const |
double | GetMaximumCloudProbability (const utl::Point &pos1, const utl::Point &pos2) const |
Get max. cloud probability along line of sight between pos1 and pos2. More... | |
unsigned int | GetNumberOfPixels () const |
const utl::UTMPoint & | GetPixelCenter (const unsigned int pixelId) const |
double | GetPixelWidthEasting () const |
double | GetPixelWidthNorthing () const |
bool | HasData (const unsigned int pixelId) const |
Check if cloud probability data exists for a given pixel at the current time. More... | |
Private Member Functions | |
double | GetCloudProbability (const double easting, const double northing) const |
int | GetCloudProbabilityIndex (const unsigned int pixelId) const |
int | GetEastPixel (const double easting, const int northPixel) const |
int | GetNorthPixel (const double northing) const |
int | GetPixelId (const double easting, const double northing) const |
GOESDB () | |
GOESDB (const GOESDB &) | |
double | IndexToProbability (const unsigned int cpIndex) const |
GOESDB & | operator= (GOESDB &) |
~GOESDB () | |
Private Attributes | |
std::vector< utl::UTMPoint > | fPixelCenters |
std::map< unsigned int, int > | fPixelMap |
Friends | |
class | Atmosphere |
Detector description interface for GOES cloud data.
typedef std::map<unsigned int, double> atm::GOESDB::ProbabilityMap |
|
private |
GOESDB::ProbabilityMap atm::GOESDB::GetAllCloudProbabilities | ( | ) | const |
Optimised lookup of all cloud probabilities (mapped to pixel IDs)
If you are going to check the probabilities for many tens of pixels, then this method should be faster than individual lookups with GetCloudProbability() or HasData() because it uses a single database query
Definition at line 175 of file GOESDB.cc.
References det::VManager::eFound, det::VManager::GetData(), and G4StationSimulatorOG::p.
double atm::GOESDB::GetCloudProbability | ( | const unsigned int | pixelId | ) | const |
Get cloud probability from the pixel id.
Definition at line 118 of file GOESDB.cc.
Referenced by otoa::Detector2ADST::FillGOESData(), testAtmLowLevelAtmInterface::testGOESDB(), testAtmLowLevelAtmInterface::testGOESDBNotFound1(), testAtmLowLevelAtmInterface::testGOESDBNotFound2(), and testAtmLowLevelAtmInterface::testGOESDBNotFound3().
double atm::GOESDB::GetCloudProbability | ( | const utl::Point & | p | ) | const |
double atm::GOESDB::GetCloudProbability | ( | const utl::UTMPoint & | p | ) | const |
Definition at line 227 of file GOESDB.cc.
References utl::UTMPoint::GetEasting(), and utl::UTMPoint::GetNorthing().
|
private |
|
private |
|
private |
double atm::GOESDB::GetMaximumCloudProbability | ( | const utl::Point & | pos1, |
const utl::Point & | pos2 | ||
) | const |
Get max. cloud probability along line of sight between pos1 and pos2.
Definition at line 272 of file GOESDB.cc.
References fwk::CoordinateSystemRegistry::Get(), utl::UTMPoint::GetEasting(), utl::UTMPoint::GetNorthing(), and atm::SegmentIntersection().
Referenced by otoa::FD2ADST::FillCloudsBetweenEyeAndShower(), and testAtmLowLevelAtmInterface::testGOESDB().
|
private |
unsigned int atm::GOESDB::GetNumberOfPixels | ( | ) | const |
Definition at line 48 of file GOESDB.cc.
Referenced by otoa::Detector2ADST::FillGOESData().
const utl::UTMPoint & atm::GOESDB::GetPixelCenter | ( | const unsigned int | pixelId | ) | const |
Definition at line 85 of file GOESDB.cc.
References fwk::CoordinateSystemRegistry::Get(), and utl::m.
|
private |
bool atm::GOESDB::HasData | ( | const unsigned int | pixelId | ) | const |
Check if cloud probability data exists for a given pixel at the current time.
Definition at line 148 of file GOESDB.cc.
References det::VManager::eFound, and det::VManager::GetData().
Referenced by otoa::Detector2ADST::FillGOESData(), and testAtmLowLevelAtmInterface::testGOESDB().
|
private |
|
friend |
|
mutableprivate |
|
mutableprivate |