49#define FRACDATA (0.70)
52#define GASATTN (0.016)
59#define WAVELENGTH (0.053)
63#define PULSEWIDTH (2.0)
74#define DEG2RAD (0.017453293)
75#define RAD2DEG (57.29578)
78#define RADIUS43 (8495.0)
84#define EARTHRAD (6371.0)
216void datetime(
long date1,
long time1,
long ss,
long *date2,
long *time2);
246void solar_elev_azim(
double lon,
double lat,
long yyyymmdd,
long hhmmss,
double *elev,
double *azim,
double *relev);
Defines the functions available when working with polar scans.
Defines the functions available when working with polar volumes.
Allocation routines for keeping track on memory.
Used for keeping track on attributes.
Defines the functions for debugging rave.
Functions for performing rave related IO operations, mostly ODIM-formatted HDF5 files.
Implementation of a simple list.
Generic implementation of an object that is used within rave.
Type definitions for RAVE.
Rave_ObjectType
Object types that defines the /what/object in the ODIM format.
Definition rave_types.h:82
int getDoubleArrayAttribute(PolarScan_t *scan, const char *aname, double **array, PolarScanParam_t *param)
Returns a double attribute array from a polar scan object.
Definition scansun.c:77
int getDoubleAttribute(RaveCoreObject *obj, const char *aname, double *tmpd)
Returns a double attribute value from any polar object type.
Definition scansun.c:58
void outputMeta(SCANMETA *meta)
Debug function that writes metadata to file.
Definition scansun.c:592
int processScan(PolarScan_t *scan, SCANMETA *meta, RaveList_t *list)
Helper function that calls processReflectivity for each of a number of given parameters/quantities.
Definition scansun.c:624
double refraction(double *elev)
This function calculates the refraction correction of the solar position.
Definition scansun.c:307
void solar_elev_azim(double lon, double lat, long yyyymmdd, long hhmmss, double *elev, double *azim, double *relev)
This function calculates the solar elevation and azimuth using the geographical position,...
Definition scansun.c:325
void datetime(long date1, long time1, long ss, long *date2, long *time2)
This function returns the date/time of (date1,time1) and 'ss' later.
Definition scansun.c:278
int processData(PolarScan_t *scan, SCANMETA *meta, RaveList_t *list)
Finds sun hits in reflectivity data.
Definition scansun.c:422
void fill_meta(PolarScan_t *scan, PolarScanParam_t *dbzh, SCANMETA *meta)
Reads metadata into the SCANMETA structure from volume, scan, param.
Definition scansun.c:178
int scansunFromObject(RaveCoreObject *object, Rave_ObjectType ot, RaveList_t *list, char **source)
Masterminds the scanning of polar data and determination of sun hits, from object in memory.
Definition scansun.c:657
double ElevHeig2Rang(double elev, float heig)
This function calculates the height and range from the Radar corresponding to a point with a known el...
Definition scansun.c:269
int scansun(const char *filename, RaveList_t *list, char **source)
Masterminds the scanning of polar data and determination of sun hits.
Definition scansun.c:689
ZdrType
Different value types for whether ZDR is its own quantity or must be calculated.
Definition scansun.h:91
@ ZdrType_READ
ZDR is in its own quantity and can be read as such.
Definition scansun.h:93
@ ZdrType_None
Non-existant.
Definition scansun.h:92
@ ZdrType_CALCULATE
Vertical reflectivity is read and ZDR needs to be calculated.
Definition scansun.h:94
void fill_toplevelmeta(RaveCoreObject *object, SCANMETA *meta)
Reads metadata into the SCANMETA structure from top-level object, whether it be volume or scan,...
Definition scansun.c:103
void readoutTiming(SCANMETA *meta, int ia, long *date, long *time, double *timer)
Determines the exact observation times based on acquired readout times for each ray.
Definition scansun.c:400
Represents one param in a scan.
Definition polarscanparam.c:41
Represents one scan in a volume.
Definition polarscan.c:47
Represents a list.
Definition rave_list.c:36
The basic raveobject that contains the header information for all rave objects.
Definition rave_object.h:42