Skip to content
Snippets Groups Projects
Commit c4c37347 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 149ac15b
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,8 @@ from metpy import *
#import cartopy.crs as ccrs
import random
gfs_directory = '/apollo/cloud/Ancil_Data/clavrx_ancil_data/dynamic/gfs/'
#gfs_directory = '/apollo/cloud/Ancil_Data/clavrx_ancil_data/dynamic/gfs/'
gfs_directory = '/Users/tomrink/data/gfs/'
gfs_date_format = '%y%m%d'
lon360 = True
......@@ -35,8 +36,8 @@ def get_bounding_gfs_files(timestamp):
dt_obj1 = dt_obj0 + datetime.timedelta(days=1)
date_str_1 = dt_obj1.strftime(gfs_date_format)
flist_0 = glob.glob(gfs_directory+'gfs.'+date_str+'??_F012.hdf')
flist_1 = glob.glob(gfs_directory+'gfs.'+date_str_1+'00_F012.hdf')
flist_0 = glob.glob(gfs_directory+'gfs.'+date_str+'??_F012.h5')
flist_1 = glob.glob(gfs_directory+'gfs.'+date_str_1+'00_F012.h5')
if (len(flist_0) == 0) or (len(flist_1) == 0):
return None, None, None, None
filelist = flist_0 + flist_1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment