Beam-blockage analysis.
More...
#include "rave_object.h"
#include "rave_field.h"
#include "polarscan.h"
Go to the source code of this file.
|
RaveCoreObjectType | BeamBlockage_TYPE |
| Type definition to use when creating a rave object.
|
|
Beam-blockage analysis.
- Author
- Lars Norin (Swedish Meteorological and Hydrological Institute, SMHI)
-
Anders Henja (SMHI, refactored to work together with rave)
- Date
- 2011-11-10
◆ BeamBlockage_t
Defines a beam blockage object.
◆ BeamBlockage_getBlockage()
RaveField_t * BeamBlockage_getBlockage |
( |
BeamBlockage_t * | self, |
|
|
PolarScan_t * | scan, |
|
|
double | dBlim ) |
Gets the blockage for the provided scan.
- Parameters
-
[in] | self | - self |
[in] | scan | - the scan to check blockage |
[in] | dBlim | - Limit of Gaussian approximation of main lobe |
- Returns
- the beam blockage field
◆ BeamBlockage_getCacheDirectory()
Returns the cache directory.
Default is the value specified in the internal config.h file. If NULL is returned it means that caching is disabled.
- Parameters
-
- Returns
- the cache directory or NULL
◆ BeamBlockage_getRewriteCache()
Returns if the cache is recreated each time.
- Parameters
-
- Returns
- if cache is recreated or not. Defaults to 0 which is no
◆ BeamBlockage_getTopo30Directory()
Returns the topo30 directory.
- Parameters
-
- Returns
- the topo30 directory
◆ BeamBlockage_restore()
int BeamBlockage_restore |
( |
PolarScan_t * | scan, |
|
|
RaveField_t * | blockage, |
|
|
const char * | quantity, |
|
|
double | threshold ) |
When you have retrieved the beam blockage field you can restore the specified parameter for the scan.
- Parameters
-
[in] | scan | - the scan that was provided to the getBlockage function |
[in] | blockage | - the result from the call to getBlockage |
[in] | quantity | - the parameter to be restored. If NULL, it defaults to DBZH |
[in] | threshold | - the percentage threshold |
◆ BeamBlockage_setCacheDirectory()
int BeamBlockage_setCacheDirectory |
( |
BeamBlockage_t * | self, |
|
|
const char * | cachedir ) |
Sets the cache directory.
Default is the value specified in the internal config.h file. If set to NULL, then caching is disabled.
- Parameters
-
[in] | self | - self |
[in] | cachedir | - the cache directory |
- Returns
- 1 on success otherwise 0
◆ BeamBlockage_setRewriteCache()
void BeamBlockage_setRewriteCache |
( |
BeamBlockage_t * | self, |
|
|
int | recreateCache ) |
Sets if the cache should be recreated all the time.
(Default 0)
- Parameters
-
[in] | self | - self |
[in] | recreateCache | - if cache should be recreated, defaults to 0 which is no |
◆ BeamBlockage_setTopo30Directory()
int BeamBlockage_setTopo30Directory |
( |
BeamBlockage_t * | self, |
|
|
const char * | topodirectory ) |
Sets the topo30 directory.
- Parameters
-
[in] | self | - self |
[in] | topodirectory | - the topo directory |
- Returns
- 1 on success otherwise 0
◆ BeamBlockage_TYPE
RaveCoreObjectType BeamBlockage_TYPE |
|
extern |
Type definition to use when creating a rave object.