Skip to content

Commit

Permalink
ENH: Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamTheisen committed Feb 29, 2024
1 parent db5fcfe commit 7b05a85
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 41 deletions.
2 changes: 2 additions & 0 deletions afc_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,12 @@ def get_da(site, dsname, dsname2, data_path, t_delta, d, dqr, c_start, c_end):
files = glob.glob('/'.join([data_path, site, ds, ds + '*' + d + '*nc']))
if len(files) == 0:
files = glob.glob('/'.join([data_path, site, ds, ds + '*' + d + '*cdf']))

files = sorted(files)
# Set time delta to 1 minute if not specified
if t_delta is None:
t_delta = 1

# Read data for primary datastream
if len(files) > 0:
try:
Expand Down
34 changes: 0 additions & 34 deletions conf/epc_aos.py

This file was deleted.

2 changes: 1 addition & 1 deletion conf/kcg_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'outname': '/home/theisen/Code/AFC_Summary/images/kcg/kcg_data_avail.pdf', #options are png, pdf, etc
'chart_style': 'linear',
'info_style': 'simple',
'data_path': '/data/archive',
'data_path': '/data/datastream',
'dqr_table': True,
'doi_table': True, #this will remove the DOI from besides the plots
'instruments':{
Expand Down
12 changes: 6 additions & 6 deletions conf/test_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
# t_delta: Script will resample data to 1 min. If gaps are longer set this appropriately
# workers: Set to 1 in the case of radar data so it doesn't crash the system
conf = {
'site': 'epc',
'site': 'kcg',
'facility': 'M1',
'start_date': '2023-02-15',
'end_date': '2024-02-14',
'outname': '/home/theisen/Code/AFC_Summary/images/epc/epc_data_avail.pdf', #options are png, pdf, etc
'start_date': '2024-02-21',
'end_date': '2025-06-14',
'outname': '/home/theisen/Code/AFC_Summary/images/kcg/kcg_data_avail.pdf', #options are png, pdf, etc
'chart_style': 'linear',
'info_style': 'simple',
'data_path': '/data/archive',
'dqr_table': True,
'doi_table': True, #this will remove the DOI from besides the plots
'instruments':{
'ecor': {'dsname': '30ecorM1.b1', 't_delta': 30},
'met': {'dsname': 'metM1.b1'},
'ceil': {'dsname': 'ceilM1.b1'},
'irt': {'dsname': 'irtsstM1.b1'},
}
}
Binary file modified images/kcg/kcg_data_avail.pdf
Binary file not shown.

0 comments on commit 7b05a85

Please sign in to comment.