Public Types | |
enum | dataSet { rampdem, bed, icemask_grounded_and_shelves, surface, thickness } |
Public Member Functions | |
RampdemReader () | |
~RampdemReader () | |
Static Public Member Functions | |
static RampdemReader * | Instance () __attribute__((deprecated)) |
Instance generator. More... | |
static Double_t | Geoid (Double_t latitude) |
static Double_t | Area (Double_t latitude, RampdemReader::dataSet=rampdem) |
static void | ENtoLonLat (Int_t e_coord, Int_t n_coord, Double_t &lon, Double_t &lat, RampdemReader::dataSet=rampdem) |
static void | LonLattoEN (Double_t lon, Double_t lat, int &e_coord, int &n_coord, RampdemReader::dataSet=rampdem) |
static void | EastingNorthingToEN (Double_t easting, Double_t northing, Int_t &e_coord, Int_t &n_coord, RampdemReader::dataSet=rampdem) |
static void | LonLatToEastingNorthing (Double_t lon, Double_t lat, Double_t &easting, Double_t &northing) |
static void | EastingNorthingToLonLat (Double_t easting, Double_t northing, Double_t &lon, Double_t &lat) |
static Bool_t | isOnContinent (Double_t lon, Double_t lat) |
static Bool_t | isOnIceShelf (Double_t lon, Double_t lat) |
static Double_t | iceThickness (Double_t lon, Double_t lat) |
static Double_t | Surface (Double_t longitude, Double_t latitude) |
static Double_t | SurfaceAboveGeoid (Double_t longitude, Double_t latitude, RampdemReader::dataSet=rampdem) |
static Double_t | SurfaceAboveGeoidRampDem (Double_t longitude, Double_t latitude) |
static Double_t | SurfaceAboveGeoidEN (Double_t Easting, Double_t Northing, RampdemReader::dataSet=rampdem) |
static Double_t | BilinearInterpolatedSurfaceAboveGeoid (Double_t longitude, Double_t latitude, RampdemReader::dataSet=rampdem) |
static Double_t | BilinearInterpolatedSurfaceAboveGeoidEastingNorthing (Double_t easting, Double_t northing, RampdemReader::dataSet=rampdem) |
static TProfile2D * | rampMap (int coarseness_factor, int set_log_scale, UInt_t &xBins, UInt_t &yBins) __attribute__((deprecated)) |
static TProfile2D * | rampMapPartial (int coarseness_factor, double centralLon, double centralLat, double rangeMetres, Int_t &xBins, Int_t &yBins, Double_t &xMin, Double_t &xMax, Double_t &yMin, Double_t &yMax) __attribute__((deprecated)) |
static TGaxis * | distanceScale (Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax) |
template<class thing > | |
static void | flipEndian (thing &in) |
static void | getMapCoordinates (double &xMin, double &yMin, double &xMax, double &yMax, RampdemReader::dataSet=rampdem) |
static TProfile2D * | getMap (RampdemReader::dataSet dataSet, int coarseness_factor) |
static TProfile2D * | getMapPartial (RampdemReader::dataSet dataSet, int coarseness, double centralLon, double centralLat, double rangeMetres) |
static int | readRAMPDEM () |
static const char * | dataSetToAxisTitle (RampdemReader::dataSet dataSet) |
static void | getNumXY (Int_t &numX, Int_t &numY, RampdemReader::dataSet dataSet=rampdem) |
static TProfile2D * | fillThisHist (TProfile2D *theHist, RampdemReader::dataSet dataSet) |
Static Protected Attributes | |
static RampdemReader * | fgInstance = 0 |
Pointer to instance. | |
Definition at line 29 of file RampdemReader.h.
RampdemReader::RampdemReader | ( | ) |
Default constructor. This class has been converted so that it works entirely statically You don't need to call this or create an instance... Preserved for backward compatibility.
Definition at line 105 of file RampdemReader.cxx.
RampdemReader::~RampdemReader | ( | ) |
Default destructor, not used.
Definition at line 114 of file RampdemReader.cxx.
|
static |
Returns the area of one square of the BEDMAP data at a given latitude.
latitude | is in degrees |
Definition at line 458 of file RampdemReader.cxx.
|
static |
Version of SurfaceAboveGeoid which does bilinear interpolation (in easting/northing) between neighouring cells.
lon | is the longiutde (degrees) |
lat | is the latitude (degrees) |
Definition at line 164 of file RampdemReader.cxx.
|
static |
Version of SurfaceAboveGeoid which does bilinear interpolation (in easting/northing) between neighouring cells.
is | the longiutde (degrees) |
lat | is the latitude (degrees) |
Definition at line 179 of file RampdemReader.cxx.
|
static |
Get z-axis title for any data set
dataSet | is the data set |
Definition at line 838 of file RampdemReader.cxx.
|
static |
Converts Easting/northing to RAMPDEM data indices
easting | |
northing | |
e_coord | is the easting coordinate index |
n_coord | is the the northing coordinate index |
dataSet | is the data set to get the e/n coordinate of |
Definition at line 508 of file RampdemReader.cxx.
|
static |
Convert from easting/northing to longitude and latitude
easting | in meters |
northing | in meters |
lon | is the longitude |
lat | is the latitude |
Definition at line 623 of file RampdemReader.cxx.
|
static |
Takes as input the indicies from a BEDMAP data set, and turns them into latitude and longitude coordinates. Original code by Stephen Hoover.
e_coord | is the easting coordinate |
n_coord | is the northing coordinate |
lon | is the longiude in degrees |
lat | is the latitude in degrees |
dataSet | picks the data set to get the coordinates at the specified lat/lon for. |
Definition at line 562 of file RampdemReader.cxx.
|
static |
Function to loop over a any created histogram and fill it with a given data set This won't work unless you created it with the correct limits. (See
theHist | is the TProfile2D to be filled |
dataSet | is the selected data set |
Definition at line 1026 of file RampdemReader.cxx.
|
static |
Returns the height of the Earth surface geoid in metres.
latitude | in degrees |
Definition at line 311 of file RampdemReader.cxx.
|
static |
Creates a lovely new map of Antarctica from the requested data set with the requested coarseness.
dataSet | is the dataSet |
coarseness | is a rebinning factor for X and Y |
Definition at line 1081 of file RampdemReader.cxx.
|
static |
Get the corners of the map (for a given data set)
xMin | is the minimum easting (metres) |
yMin | is the minimum northing (metres) |
xMax | is the maximum easting (metres) |
yMax | is the maximum northing (metres) |
dataSet | is the data set from which to select the coordinates |
Definition at line 742 of file RampdemReader.cxx.
|
static |
Create a TProfile2D of the continent with the specified data set, centred on the given coordinates.
dataSet | is the selected data set |
coarseness | downsamples the easting/northing bins |
centralLon | is the longitude (degrees) on which to centre the histogram |
centralLat | is the latitude (degrees) on which to centre the histogram |
rangeMetres | is the distance from the centre to any edge of the histogram |
Definition at line 1124 of file RampdemReader.cxx.
|
static |
Get number of bins in X and Y for any data set
numX | |
numY | |
dataSet |
Definition at line 766 of file RampdemReader.cxx.
|
static |
Returns true if a specified latitude or longitude is on an iceshelf ...according to the RampdemReader::icemask_grounding_and_shelves model
lon | is the longitude (degrees) |
lat | is the latitude (degrees) |
Definition at line 1248 of file RampdemReader.cxx.
|
static |
Instance generator.
Instance generated. Deprecated.
Definition at line 124 of file RampdemReader.cxx.
|
static |
Returns true if a specified latitude or longitude is on the continent... ...according to the RampdemReader::surface model
lon | is the longitude (degrees) |
lat | is the latitude (degrees) |
Definition at line 1186 of file RampdemReader.cxx.
|
static |
Returns true if a specified latitude or longitude is on an iceshelf ...according to the RampdemReader::icemask_grounding_and_shelves model
lon | is the longitude (degrees) |
lat | is the latitude (degrees) |
Definition at line 1215 of file RampdemReader.cxx.
|
static |
Convert longitude and latitude to easting and northing using the geoid model
lon | is the longitude in degrees |
lat | is the latitude in degrees |
easting | in meters |
northing | in meters |
(x_max-x_min);
(y_max-y_min);
Definition at line 536 of file RampdemReader.cxx.
|
static |
Takes latitude and longitude (in degrees) and converts to indicies for BEDMAP matricies. Needs a location for the corner of the matrix, as not all the BEDMAP files cover the same area. Code by Stephen Hoover.
lon | is the longitude in degrees |
lat | is the latitude in degrees |
e_coord | is the bedmap east coordinate index |
n_coord | is the bedmap north coordinate index |
dataSet | is which data set to get the coordinate of |
Definition at line 482 of file RampdemReader.cxx.
|
static |
DEPRECATED. Left for backward compatibility, prefer getMap(RampdemReader::rampdem...)
coarseness | downsamples the easting/northing bins |
set_log_scale | converts heights to log units |
xBins | is the number of bins on the x-axis |
yBins | is the number of bins on the y-axis |
Definition at line 651 of file RampdemReader.cxx.
|
static |
DEPRECATED. Left for backward compatibility, prefer getMapPartial(RampdemReader::rampdem...)
coarseness | downsamples the easting/northing bins |
centralLon | is the latitude (degrees) on which to centre the histogram |
centralLat | is the longitude (degrees) on which to centre the historam |
rangeMetres | is the extent of the histogram edges from the centre point (metres) |
xBins | is the number of bins on the x-axis |
yBins | is the number of bins on the y-axis |
xMin | is the lower limit of the x-axis |
xMax | is the upper limit of the x-axis |
yMin | is the lower limit of the y-axis |
yMax | is the upper limit of the y-axis |
Definition at line 694 of file RampdemReader.cxx.
|
static |
Function to read in the original RAMPDEM data. This function is called by getDataIfNeeded, as the RAMPDEM elevation data files have a different format from the BEDMAP2 data
Definition at line 326 of file RampdemReader.cxx.
|
static |
Returns the height of the Antarctic surface above the centre of the Earth.
lon | is the longitude (degrees) |
lat | is the latitude (degrees) |
Definition at line 148 of file RampdemReader.cxx.
|
static |
Returns the elevation above the geoid of the surface of the top of the ice (or bare ground if no ice) in meters, at a location specified by a latitude and longitude (in degrees).
lon | is the longiutde (degrees) |
lat | is the latitude (degrees) |
Definition at line 249 of file RampdemReader.cxx.
|
static |
Returns the elevation above the geoid of the surface of the top of the ice (or bare ground if no ice) in meters, at a location specified by a latitude and longitude (in degrees).
Easting | is easting (m) |
Northing | is northing (m) |
Definition at line 265 of file RampdemReader.cxx.