Skip to content

Commit 855befb

Browse files
committed
ENH: improve docstrings for sun products
1 parent 2402cc2 commit 855befb

File tree

1 file changed

+42
-15
lines changed

1 file changed

+42
-15
lines changed

src/pyrad_proc/pyrad/prod/process_product.py

Lines changed: 42 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def generate_occurrence_products(dataset, prdcfg):
6767
threshold.
6868
User defined parameters:
6969
voltype: str
70-
name of the pyrad variable to use, it must be available in the dataset in the dataset
70+
name of the pyrad variable to use, it must be available in the dataset
7171
quant_min: float
7272
Minimum frequency of occurrence in percentage to keep the
7373
gate as valid. Default 95.
@@ -364,38 +364,70 @@ def generate_icon_to_radar_products(dataset, prdcfg):
364364
def generate_sun_hits_products(dataset, prdcfg):
365365
"""
366366
generates sun hits products. Accepted product types:
367+
All the products of the 'VOL' dataset group
367368
'PLOT_SUN_HITS': Plots in a sun-radar azimuth difference-sun-radar
368369
elevation difference grid the values of all sun hits obtained
369370
during the processing period
370371
User defined parameters:
371372
voltype: str
372-
name of the pyrad variable to use, it must be available in the dataset in the dataset
373+
name of the pyrad variable to use, it must be available in the dataset
373374
'PLOT_SUN_RETRIEVAL': Plots in a sun-radar azimuth difference-sun-
374375
radar elevation difference grid the retrieved sun pattern
375376
User defined parameters:
376377
voltype: str
377-
name of the pyrad variable to use, it must be available in the dataset in the dataset
378+
name of the pyrad variable to use, it must be available in the dataset
378379
'PLOT_SUN_RETRIEVAL_TS': Plots time series of the retrieved sun
379380
pattern parameters
380381
User defined parameters:
381382
voltype: str
382-
name of the pyrad variable to use, it must be available in the dataset in the dataset
383+
name of the pyrad variable to use, it must be available in the dataset
383384
dpi: int
384385
The pixel density of the plot. Default 72
385386
add_date_in_fname: Bool
386387
If true the year is added in the plot file name
387388
'PLOT_SUNSCAN': Plots a constant range radar azimuth-elevation of the
388389
sunscan field data
389390
'WRITE_SUN_HITS': Writes the information concerning possible sun hits
390-
in a csv file
391+
in a csv file. The written data has the following columns
392+
"time",
393+
"ray",
394+
"NPrng",
395+
"rad_el",
396+
"rad_az",
397+
"sun_el",
398+
"sun_az",
399+
"dBm_sun_hit",
400+
"std(dBm_sun_hit)",
401+
"NPh",
402+
"NPhval",
403+
"dBmv_sun_hit",
404+
"std(dBmv_sun_hit)",
405+
"NPv",
406+
"NPvval",
407+
"ZDR_sun_hit",
408+
"std(ZDR_sun_hit)",
409+
"NPzdr",
410+
"NPzdrval"
391411
'WRITE_SUN_RETRIEVAL': Writes the retrieved sun pattern parameters in
392412
a csv file.
393413
User defined parameters:
394414
add_date_in_fname: Bool
395415
If true the year is added in the csv file name
396-
'WRITE_SUNSCAN': Writes the sunscan parameters in a csv file
397-
398-
All the products of the 'VOL' dataset group
416+
'WRITE_SUNSCAN': Writes the sunscan parameters in a csv file. The written data has the following
417+
columns
418+
"sun_az": [deg] Azimuth sun position,
419+
"sun_el": [deg] Elevation sun position,
420+
"noise_pwr": [dBm] Noise power",
421+
"sun_maxpwr_noise": [dBm] sun maximal power sample (including noise),
422+
"sun_maxpwr_nonoise": [dBm] sun maximal power sample without noise,
423+
"sun_maxpwr_fit": [dBm] sun maximal fitted power (without noise),
424+
"sun_maxpwr_toa": [dBm] sun maximal power at top of atmosphere,
425+
"az_offset": [deg] Azimuth shift of fitted maxima to sun azimuth,
426+
"el_offset": [deg] Elevation shift of fitted maxima to sun elevation,
427+
"az_phi3db": [deg] Half-power beam width in azimuth,
428+
"el_phi3db": [deg] Half-power beam width in elevation,
429+
"fit_stddev": [dBm] Standard deviation (fit to samples),
430+
"num_samples": [#] Number of samples used for the sun power fitting
399431
400432
Parameters
401433
----------
@@ -875,12 +907,7 @@ def generate_sun_hits_products(dataset, prdcfg):
875907

876908
def generate_qvp_products(dataset, prdcfg):
877909
"""
878-
Generates quasi vertical profile-like products. Quasi vertical profiles
879-
come from azimuthal averaging of polarimetric radar data. With the
880-
variable 'qvp_type' the user decides if the product has to be generated
881-
at the end of the processing period ('final') or instantaneously
882-
('instant')
883-
Accepted product types:
910+
Generates quasi vertical profile-like products, from azimuthal averaging of polarimetric radar data. Accepted product types:
884911
All the products of the 'VOL' dataset group
885912
886913
Parameters
@@ -1101,7 +1128,7 @@ def generate_vpr_products(dataset, prdcfg):
11011128
of the VPR profile retrieval into a text file
11021129
User defined parameters:
11031130
voltype: name of the pyrad variable to use, it must be available
1104-
in the dataset
1131+
11051132
All the products of the 'VOL' dataset group
11061133
11071134
Parameters

0 commit comments

Comments
 (0)