# Changes between Version 11 and Version 12 of NCLExamples

Ignore:
Timestamp:
04/05/12 21:41:05 (6 years ago)
Comment:

--

Unmodified
Added
Removed
Modified
• ## NCLExamples

 v11 === Passing in 3 1D arrays === [[Image(data_ne9np8_zeta.png)]] abbreviated NCL code for above: [[Image(data_ne9np8_zeta.png)]] {{{ (abbreviated code) sfile   = addfile("data_ne9np8.nc","r") zeta    = sfile->zeta === Using connectivity information === [[Image(data_ne9np8-connect-array.png)]] {{{ f1 = addfile("ne9np8_metadata.nc","r") el_corners = f1->element_corners t_el = el_corners(ncells|:,ncorners|:) size = dimsizes(t_el) tri_el = new((/2 * size(0),3/), integer) tri_el(::4,:) = t_el(::2,(/0,1,2/))           !  convert the quads into triangles tri_el(1::4,:) = t_el(::2,(/2,3,0/)) tri_el(2::4,:) = t_el(1::2,(/1,2,3/)) tri_el(3::4,:) = t_el(1::2,(/3,0,1/)) res@sfXArray            = lon1d        ; Required to tell NCL where to res@sfYArray            = lat1d        ; overlay data on globe. res@sfElementNodes      = tri_el res@sfFirstNodeIndex    = 1 plot   = gsn_csm_contour_map(wks,zeta(lasttime,20,:),res) }}} ==  Plotting data after interpolation to lat/lon grid == === Interpolate internally in HOMME === === Interpolate internally in HOMME to 192x384 grid === [[Image(baroInternalInterp.png)]]