BEAM BLOCKAGE
|
Beam-blockage topography layer. More...
#include "bbtopography.h"
#include "rave_debug.h"
#include "rave_alloc.h"
#include "math.h"
#include <string.h>
Classes | |
struct | _BBTopography_t |
Represents the beam blockage topography. More... | |
Functions | |
void | BBTopography_setNodata (BBTopography_t *self, double nodata) |
Sets the nodata value. | |
double | BBTopography_getNodata (BBTopography_t *self) |
Return the nodata value. | |
void | BBTopography_setXDim (BBTopography_t *self, double xdim) |
Sets the x-scale in radians. | |
double | BBTopography_getXDim (BBTopography_t *self) |
Return the x-scale in radians. | |
void | BBTopography_setYDim (BBTopography_t *self, double ydim) |
Sets the y-scale in radians. | |
double | BBTopography_getYDim (BBTopography_t *self) |
Return the y-scale in radians. | |
void | BBTopography_setUlxmap (BBTopography_t *self, double ulxmap) |
Sets the upper left x-coordinate (longitude) in the topography map (in radians). | |
double | BBTopography_getUlxmap (BBTopography_t *self) |
Return the upper left x-coordinate (longitude) in the topography map (in radians). | |
void | BBTopography_setUlymap (BBTopography_t *self, double ulymap) |
Sets the upper left y-coordinate (latitude) in the topography map (in radians). | |
double | BBTopography_getUlymap (BBTopography_t *self) |
Return the upper left y-coordinate (latitude) in the topography map (in radians). | |
int | BBTopography_createData (BBTopography_t *self, long ncols, long nrows, RaveDataType type) |
Creates a empty data field. | |
int | BBTopography_setData (BBTopography_t *self, long ncols, long nrows, void *data, RaveDataType type) |
Sets the data in the topography field. | |
void * | BBTopography_getData (BBTopography_t *self) |
Returns a pointer to the internal data storage. | |
int | BBTopography_setDatafield (BBTopography_t *self, RaveData2D_t *datafield) |
Sets the rave data 2d field. | |
RaveData2D_t * | BBTopography_getDatafield (BBTopography_t *self) |
Returns the 2d field associated with this topography field. | |
long | BBTopography_getNcols (BBTopography_t *self) |
Returns the number of columns. | |
long | BBTopography_getNrows (BBTopography_t *self) |
Returns the number of rows. | |
RaveDataType | BBTopography_getDataType (BBTopography_t *self) |
Returns the data type. | |
int | BBTopography_getValue (BBTopography_t *self, long col, long row, double *v) |
Returns the value at the specified index. | |
int | BBTopography_setValue (BBTopography_t *self, long col, long row, double value) |
Sets the value at specified position. | |
int | BBTopography_getValueAtLonLat (BBTopography_t *self, double lon, double lat, double *v) |
Returns the value at the specified lon/lat coordinate. | |
BBTopography_t * | BBTopography_concatX (BBTopography_t *self, BBTopography_t *other) |
Concatenates two topography fields horizontally with each other. | |
BBTopography_t * | BBTopography_concatY (BBTopography_t *self, BBTopography_t *other) |
Concatenates two topography fields vertically with each other. | |
Variables | |
RaveCoreObjectType | BBTopography_TYPE |
Type definition to use when creating a rave object. | |
Beam-blockage topography layer.
BBTopography_t * BBTopography_concatX | ( | BBTopography_t * | self, |
BBTopography_t * | other ) |
Concatenates two topography fields horizontally with each other.
The field's and other's y-dimension must be the same as well as the data type. It is also necessary that ydim and xdim are the same. All other attribute values will be taken from the first field.
[in] | self | - self |
[in] | other | - the field to contatenate |
BBTopography_t * BBTopography_concatY | ( | BBTopography_t * | self, |
BBTopography_t * | other ) |
Concatenates two topography fields vertically with each other.
The field's and other's x-dimension must be the same as well as the data type. It is also necessary that ydim and xdim are the same. All other attribute values will be taken from the first field.
[in] | self | - self |
[in] | other | - the field to contatenate |
int BBTopography_createData | ( | BBTopography_t * | self, |
long | ncols, | ||
long | nrows, | ||
RaveDataType | type ) |
Creates a empty data field.
[in] | self | - self |
[in] | ncols | - the ncols |
[in] | nrows | - the nrows |
[in] | type | - the data type |
void * BBTopography_getData | ( | BBTopography_t * | self | ) |
Returns a pointer to the internal data storage.
[in] | self | - self |
RaveData2D_t * BBTopography_getDatafield | ( | BBTopography_t * | self | ) |
Returns the 2d field associated with this topography field.
Note, it is a clone so don't expect that any modifications will modify the rave fields data array.
[in] | field | - self |
RaveDataType BBTopography_getDataType | ( | BBTopography_t * | self | ) |
Returns the data type.
[in] | self | - self |
long BBTopography_getNcols | ( | BBTopography_t * | self | ) |
Returns the number of columns.
[in] | self | - self |
double BBTopography_getNodata | ( | BBTopography_t * | self | ) |
Return the nodata value.
[in] | self | - self |
long BBTopography_getNrows | ( | BBTopography_t * | self | ) |
Returns the number of rows.
[in] | self | - self |
double BBTopography_getUlxmap | ( | BBTopography_t * | self | ) |
Return the upper left x-coordinate (longitude) in the topography map (in radians).
[in] | self | - self |
double BBTopography_getUlymap | ( | BBTopography_t * | self | ) |
Return the upper left y-coordinate (latitude) in the topography map (in radians).
[in] | self | - self |
int BBTopography_getValue | ( | BBTopography_t * | self, |
long | col, | ||
long | row, | ||
double * | v ) |
Returns the value at the specified index.
[in] | self | - self |
[in] | col | - the column |
[in] | row | - the row |
[out] | v | - the data at the specified index |
int BBTopography_getValueAtLonLat | ( | BBTopography_t * | self, |
double | lon, | ||
double | lat, | ||
double * | v ) |
Returns the value at the specified lon/lat coordinate.
If outside boundaries or if there is no data at provided coordinate the returned value will be 0 but v will still be set to nodata.
[in] | self | - self |
[in] | lon | - the longitude |
[in] | lat | - the latitude |
[out] | v | - the value at specified position |
double BBTopography_getXDim | ( | BBTopography_t * | self | ) |
Return the x-scale in radians.
[in] | self | - self |
double BBTopography_getYDim | ( | BBTopography_t * | self | ) |
Return the y-scale in radians.
[in] | self | - self |
int BBTopography_setData | ( | BBTopography_t * | self, |
long | ncols, | ||
long | nrows, | ||
void * | data, | ||
RaveDataType | type ) |
Sets the data in the topography field.
[in] | self | - self |
[in] | ncols | - the column count |
[in] | nrows | - the row count |
[in] | data | - the data |
[in] | type | - the data type |
int BBTopography_setDatafield | ( | BBTopography_t * | self, |
RaveData2D_t * | datafield ) |
Sets the rave data 2d field.
This will create a clone from the provided data field.
[in] | self | - self |
[in] | datafield | - the data field to use (MAY NOT BE NULL) |
void BBTopography_setNodata | ( | BBTopography_t * | self, |
double | nodata ) |
Sets the nodata value.
[in] | self | - self |
[in] | nodata | - the nodata value |
void BBTopography_setUlxmap | ( | BBTopography_t * | self, |
double | ulxmap ) |
Sets the upper left x-coordinate (longitude) in the topography map (in radians).
[in] | self | - self |
[in] | ulxmap | - the upper left x-coordinate (longitude in radians)) |
void BBTopography_setUlymap | ( | BBTopography_t * | self, |
double | ulymap ) |
Sets the upper left y-coordinate (latitude) in the topography map (in radians).
[in] | self | - self |
[in] | ulxmap | - the upper left y-coordinate (latitude in radians)) |
int BBTopography_setValue | ( | BBTopography_t * | self, |
long | col, | ||
long | row, | ||
double | value ) |
Sets the value at specified position.
[in] | self | - self |
[in] | col | - the column |
[in] | row | - the row |
[in] | value | - the value to be set at specified coordinate |
void BBTopography_setXDim | ( | BBTopography_t * | self, |
double | xdim ) |
Sets the x-scale in radians.
[in] | self | - self |
[in] | xdim | - the x-scale (step-size) in radians |
void BBTopography_setYDim | ( | BBTopography_t * | self, |
double | ydim ) |
Sets the y-scale in radians.
[in] | self | - self |
[in] | ydim | - the y-scale (step-size) in radians |
RaveCoreObjectType BBTopography_TYPE |
Type definition to use when creating a rave object.