pyrad.prod.generate_sun_hits_products#
- pyrad.prod.generate_sun_hits_products(dataset, prdcfg)[source]#
- generates sun hits products. Accepted product types:
All the products of the ‘VOL’ dataset group ‘PLOT_SUN_HITS’: Plots in a sun-radar azimuth difference-sun-radar
elevation difference grid the values of all sun hits obtained during the processing period User defined parameters:
- voltype: str
name of the pyrad variable to use, it must be available in the dataset
- ‘PLOT_SUN_RETRIEVAL’: Plots in a sun-radar azimuth difference-sun-
radar elevation difference grid the retrieved sun pattern User defined parameters:
- voltype: str
name of the pyrad variable to use, it must be available in the dataset
- ‘PLOT_SUN_RETRIEVAL_TS’: Plots time series of the retrieved sun
pattern parameters User defined parameters:
- voltype: str
name of the pyrad variable to use, it must be available in the dataset
- dpi: int
The pixel density of the plot. Default 72
- add_date_in_fname: Bool
If true the year is added in the plot file name
- ‘PLOT_SUNSCAN’: Plots a constant range radar azimuth-elevation of the
sunscan field data
- ‘WRITE_SUN_HITS’: Writes the information concerning possible sun hits
in a csv file. The written data has the following columns “time”, “ray”, “NPrng”, “rad_el”, “rad_az”, “sun_el”, “sun_az”, “dBm_sun_hit”, “std(dBm_sun_hit)”, “NPh”, “NPhval”, “dBmv_sun_hit”, “std(dBmv_sun_hit)”, “NPv”, “NPvval”, “ZDR_sun_hit”, “std(ZDR_sun_hit)”, “NPzdr”, “NPzdrval”
- ‘WRITE_SUN_RETRIEVAL’: Writes the retrieved sun pattern parameters in
a csv file. User defined parameters:
- add_date_in_fname: Bool
If true the year is added in the csv file name
- ‘WRITE_SUNSCAN’: Writes the sunscan parameters in a csv file. The written data has the following
columns “sun_az”: [deg] Azimuth sun position, “sun_el”: [deg] Elevation sun position, “noise_pwr”: [dBm] Noise power”, “sun_maxpwr_noise”: [dBm] sun maximal power sample (including noise), “sun_maxpwr_nonoise”: [dBm] sun maximal power sample without noise, “sun_maxpwr_fit”: [dBm] sun maximal fitted power (without noise), “sun_maxpwr_toa”: [dBm] sun maximal power at top of atmosphere, “az_offset”: [deg] Azimuth shift of fitted maxima to sun azimuth, “el_offset”: [deg] Elevation shift of fitted maxima to sun elevation, “az_phi3db”: [deg] Half-power beam width in azimuth, “el_phi3db”: [deg] Half-power beam width in elevation, “fit_stddev”: [dBm] Standard deviation (fit to samples), “num_samples”: [#] Number of samples used for the sun power fitting
- Parameters:
dataset (tuple) – radar object and sun hits dictionary
prdcfg (dictionary of dictionaries) – product configuration dictionary of dictionaries
- Returns:
filename (str) – the name of the file created. None otherwise