forked from 3rdparty/wrf-python
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
416 B
19 lines
416 B
from __future__ import (absolute_import, division, print_function, |
|
unicode_literals) |
|
|
|
from wrf import getvar |
|
from netCDF4 import Dataset as nc |
|
|
|
ncfile = nc("/Users/ladwig/Documents/wrf_files/wrfout_d01_2016-10-07_00_00_00") |
|
|
|
|
|
def gen_seq(): |
|
wrfseq = [ncfile, ncfile, ncfile] |
|
for wrf in wrfseq: |
|
yield wrf |
|
|
|
|
|
p_gen = getvar(gen_seq(), "P", method="join") |
|
|
|
print(p_gen) |
|
del p_gen
|
|
|