# Set up dictionary for loadGrid function. This function # accepts 'filename' as either a local grid (e.g. *.nc) or # as a remote grid, such as one on a URL. We are also # specifying the field to load, the 3D Temperature_isobaric, # as well as the vertical pressure level, 850 hPa gridParms = dict( filename = 'http://thredds.ucar.edu/thredds/dodsC/grib/NCEP/GFS/CONUS_80km/GFS_CONUS_80km_20190918_1800.grib1', field = 'Temperature_isobaric', level = '850 hPa', ) # Initialize an empty list. The next for loop loops through # positions 0 - 9 and creates individual data objects for each # timestep. This data object returned from loadGrid is called # "data". All of these "data" objects are appended to the # gridList list. gridList = [] for x in range(0,10): data = loadGrid(time=x, **gridParms) gridList.append(data) # print out message to Jython Shell when each data object # is added to the gridList list print ('Poition %s added to the list' % x) # Build a window and display the data panel = buildWindow() layer = panel[0].createLayer('Color-Filled Contour Plan View', gridList)