Skip to content

Commit

Permalink
ENH: download new sounding only if elapsed time is sufficient
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfidan committed Oct 22, 2024
1 parent f63d67f commit 5477c09
Show file tree
Hide file tree
Showing 6 changed files with 547 additions and 1,087 deletions.
4 changes: 2 additions & 2 deletions src/pyrad_proc/pyrad/flow/flow_aux.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
from ..io.io_aux import get_datetime, get_file_list, get_scan_list
from ..io.io_aux import get_dataset_fields, get_datatype_fields
from ..io.io_aux import get_new_rainbow_file_name, get_fieldname_pyart
from ..io.io_aux import get_datatype_from_pyart
from ..io.io_aux import get_file_list_s3
from ..io.trajectory import Trajectory
from ..io.read_data_other import read_last_state, read_proc_periods
Expand Down Expand Up @@ -520,7 +521,6 @@ def _process_datasets(

# manual garbage collection after processing each radar volume
gc.collect()

return dscfg, traj


Expand Down Expand Up @@ -1819,7 +1819,7 @@ def _add_dataset(
return 0

for field in new_dataset["radar_out"].fields:
print("Adding field: {}".format(field))
print(f"Adding field: {field} (pyrad abbr: {get_datatype_from_pyart(field)})")
radar_list[ind_rad].add_field(
field, new_dataset["radar_out"].fields[field], replace_existing=True
)
Expand Down
Loading

0 comments on commit 5477c09

Please sign in to comment.