Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok after quite a bit of searching I am well on my way.... However can't figure out how to ANIMATE .... and as yet create a Sum ( Accumulation) of all the Arrays? </p> <pre><code> import os import sys import glob import numpy as np from scipy.io import netcdf import pylab as pl from easygui import * import fnmatch import matplotlib.pyplot as plt print 'START...' cur_dir= os.getcwd() top_dir = os.path.dirname(cur_dir) print cur_dir print top_dir print 'Present Directory Open...' title = "Select Directory to Read Multiple rainfall .nc files" msg = "This is a test of the diropenbox.\n\nPick the directory that you wish to open." d = diropenbox(msg, title) fromdir = d rootPath = fromdir pattern = '*.nc' for root, dirs, files in os.walk(rootPath): for filename in fnmatch.filter(files, pattern): #print( os.path.join(root, filename)) print filename # Now read NetCDF file and Plot the Radar Rainfall Array """ data = NetCDFFile(filename, netcdf_mode_r) print 'VARIABLES:' print data.variables """ data = netcdf.NetCDFFile(os.path.join(root, filename), 'r') #print 'VARIABLES:' #print data.variables try: precip = data.variables['precipitation'].data x = data.variables['x_loc'].data y = data.variables['y_loc'].data except: precip = data.variables['precip'].data x = data.variables['x_loc'].data y = data.variables['y_loc'].data #raw_input('hold..') #print x plt.title('RADAR RAINFALL'+filename, size=20) plt.imshow(precip, origin='lower', interpolation='bicubic',extent=(x.min(), x.max(), y.min(), y.max())) plt.colorbar() plt.show() </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload