Skip to content

Commit

Permalink
added function to mask all data not belonging to a ROI. Added rectang…
Browse files Browse the repository at this point in the history
…ular ROI.
  • Loading branch information
jfigui committed Dec 5, 2023
1 parent 4f43bf9 commit 2555e68
Show file tree
Hide file tree
Showing 5 changed files with 430 additions and 9 deletions.
2 changes: 2 additions & 0 deletions src/pyrad_proc/pyrad/flow/flow_aux.py
Original file line number Diff line number Diff line change
Expand Up @@ -1086,6 +1086,8 @@ def _create_cfg_dict(cfgfile):
if 'RadarPosition' in cfg:
fltarr_list = ['latitude', 'longitude', 'altitude']
for param in fltarr_list:
if param not in cfg['RadarPosition']:
continue
if isinstance(cfg['RadarPosition'][param], float):
cfg['RadarPosition'][param] = [cfg['RadarPosition'][param]]

Expand Down
2 changes: 1 addition & 1 deletion src/pyrad_proc/pyrad/io/read_data_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1781,7 +1781,7 @@ def get_sensor_data(date, datatype, cfg):
sensor_datatype = datatype

datapath = (
f'{cfg["disdropath"]}{cfg["sensorid"]}/disdro-1min/'
f'{cfg["disdropath"]}{cfg["sensorid"]}/Disdro-1min/'
f'{date.strftime("%Y")}/')
datafile = f'{date.strftime("%Y%m%d")}.csv'

Expand Down
Loading

0 comments on commit 2555e68

Please sign in to comment.