Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
blaylockbk committed Sep 6, 2018
1 parent 38828eb commit 73f765d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions HRRR_downloads/download_operational_hrrr.py
Expand Up @@ -169,10 +169,11 @@ def get_grib2(DATE, model, field, fxx, DIR, idx=True, png=True, PATH='default',

if __name__ == '__main__':

DATE = datetime.now()
DATE = datetime(2018, 8, 29, 12)
model = 'hrrr'
field = 'nat'
field = 'sfc'
fxx = 0
DIR = '/uufs/chpc.utah.edu/common/home/horel-group7/Pando/'

get_grib2(DATE, model, field, fxx, DIR, idx=True, png=True, source='PARA')
get_grib2(DATE, model, field, fxx, DIR, idx=True, png=True, source='NOMADS')

4 changes: 2 additions & 2 deletions HRRR_downloads/risk_old_hrrr.py
Expand Up @@ -14,7 +14,7 @@
I am RISKING the following:
F04, F05, F07, F08, F10, F11, F13, F14, F16, F17
The risk files will only be removed if they are older than 760 days (25 months, or two years)
The risk files will only be removed if they are older than 600 days (23 months)
"""

from datetime import datetime, timedelta
Expand All @@ -30,7 +30,7 @@
# List of dates from archive begining to 25 months ago. These are the dates we
# want to risk on the Pando archive and not backup on horel-group7.
sDATE = datetime(2016, 7, 15)
eDATE = datetime.now()-timedelta(days=760)
eDATE = datetime.now()-timedelta(days=600)
DATES = [sDATE + timedelta(days=d) for d in range((eDATE-sDATE).days)]

# In each DATE directory, remove the files we want to risk
Expand Down

0 comments on commit 73f765d

Please sign in to comment.