Changes between Version 3 and Version 4 of ParCALPrototype


Ignore:
Timestamp:
04/12/11 11:57:22 (8 years ago)
Author:
jacob
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ParCALPrototype

    v3 v4  
    11== Prototype == 
     2 
     3What running ParNCL will look like. 
     4 
     5Now: 
     6  
     7 
     8prompt> ncl  average.ncl 
     9 
     10Future: 
     11 
     12prompt> mpiexec -np 4  parncl average.ncl 
     13 
    214 
    315We agreed that the following simple NCL script will be the first thing we try to do with ParCAL 
     
    1931}}} 
    2032 
    21 Now: 
    22   
    2333 
    24 prompt> ncl  average.ncl 
     34The above with graphics output 
    2535 
    26 Future: 
     36{{{ 
     37diri = "/fusion/group/climate/jacob/" 
    2738 
    28 prompt> mpiexec -np 4  parncl average.ncl 
     39fili = "b40.1850.track1.1deg.006.cam1.T.0100-0110.nc"          ; one file with 132 months of data. 
    2940 
     41f = addfile(diri+fili, "r")                  ; open the file for reading 
     42 
     43T = f->T                 ; read Temperature field T with dimensions 
     44                                   ;[time|132]x[lev|26]x[lat|192]x[lon|288] 
     45 
     46 
     47Tavg=dim_avg_n(T,0)   ;average T over the 0th dimension which is time. 
     48 
     49wks  = gsn_open_wks("ps","parvis_1")               ; open a PS file 
     50plot = gsn_csm_contour_map(wks,Tavg(0,:,:),False) 
     51}}} 
     52