ppt - MMM - UCAR
ppt - MMM - UCAR
ppt - MMM - UCAR
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Arithmetic operations on arrays, like f90<br />
• May not need to loop over arrays to do calculations<br />
• Arrays need to be same size, but scalars can be used any time<br />
• Highest “type” will be assigned to variable on left of “=”<br />
; Can do arithmetic like Fortran 90<br />
ch4 = ch4 * 1e6 ; convert to ppm, assign to same var<br />
A = data_DJF - data_JJA ; A will be same size<br />
zlev = (-7*log(lev/10^3)) ; evaluated as<br />
; (-7)*log(lev/(10^3))<br />
Metadata not copied to A or zlev<br />
; Use “conform” to promote an array<br />
; “Twk” is (time,lat,lon,lev), “ptp” is (lat,lon)<br />
ptropWk = conform(Twk, ptp, (/1,2/)) ; time,lat,lon,lev<br />
NCL & WRF-NCL � WRF User’s User s Event � June 22-25, 2010