예제 #1
0
import calendar
import time
import matplotlib.pyplot as plt

sys.path.append('/uufs/chpc.utah.edu/common/home/u0737349/gitprojects/')

from DKE_settings import Settings
from WEM.postWRF import WRFEnviron
import WEM.utils as utils

# Time script
scriptstart = time.time()

# Initialise settings and environment
config = Settings()
p = WRFEnviron(config)

# User settings
init_time = utils.string_from_time('dir', (2009, 9, 10, 0, 0, 0),
                                   strlen='hour')
rootdir = '/uufs/chpc.utah.edu/common/home/horel-group2/lawson2/'
outdir = '/uufs/chpc.utah.edu/common/home/u0737349/public_html/paper2/'

# Create lists of all fig, ax, cb objects
figs = {}
axes = {}
cbs = {}

ensnames = ['c00'] + ['p{0:02d}'.format(n) for n in range(1, 11)]

#for rundate in ('25','27','29'):
예제 #2
0
import sys
import numpy as N
import pdb
import matplotlib as M
import os
M.use('gtkagg')
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable

sys.path.append('/home/jrlawson/gitprojects/')

from WEM.postWRF import WRFEnviron

p = WRFEnviron()

outdir = ('/home/jrlawson/public_html/')
ncdir = ('/chinook2/jrlawson/')
nct = (2014, 7, 7, 12, 0, 0)

plot2D = 1
streamlines = 0

# Create list of times
times = [
    (2014, 7, 7, 18, 0, 0),
]
levels = (2000, )
vrbls = ('RAINNC', )

# Plot standard 2D plots
if plot2D: