This seems like the perfect case for a new function that we are in the process of developing called loadFile. This function has a variety of parameters that include:
filename - String specifying the full path to NetCDF/HDF/Grib files on disk. time - Interger specifying the time index desired, or a full date/time string e.g. '2000-01-24 18:00:00 UTC' level - String specifying the level and units of a 3D field e.g. '500 hPa' field - String for the shortname of the field to display (macro that appears when you mouse over a field in the Field Selector xRange and yRange - Like a region subset - values are just indicies into the grid xStride and yStride - Sets a stride/skip in the horizontal latLonBounds - specify a rectangle for subsetting the part of the grid you want to display, specified as (UL Lat, UL Lon, LR Lat, LR Lon)
An example script that uses loadFile to specify one time and a geographical subset of South America would be:
# dictionary to pass through loadFile params = dict( filename = '/Users/rcarp/data/grib/FD/GFS_Global_2.5deg_20140609_0600.nc', time = '2014-06-18 06:00:00Z', field = 'Temperature_tropopause', latLonBounds=(15,-85,-60,-30), ) # loadFile command tempTrop = loadFile(**params) # build window, display data from loadFile and adjust the display panel=buildWindow(height=800,width=1000) layer1=panel[0].createLayer('Color-Filled Contour Plan View', tempTrop) layer1.setEnhancement('Temperature', range=(-20,-90)) layer1.setColorScale(placement='Left', color='White', size=20, showUnit=True) panel[0].setProjection('South America') panel[0].setWireframe(False)
This is currently available in the McIDAS-V nightly build. Note that the nightly is not fully tested and has all programming changes from the previous day. I'll send you an email with the url and logon information to access the 1.5beta1 nightly build.