# Changes between Version 11 and Version 12 of NCLExamples

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

--

Unmodified
Removed
Modified
• ## NCLExamples

v11 v12
1111=== Passing in 3 1D arrays ===
1212
13 [[Image(data_ne9np8_zeta.png)]]
14 abbreviated NCL code for above:
13[[Image(data_ne9np8_zeta.png)]]
1514{{{
15    (abbreviated code)
1717    zeta    = sfile->zeta

2626=== Using connectivity information ===
2727[[Image(data_ne9np8-connect-array.png)]]
28{{{
30  el_corners = f1->element_corners
31  t_el = el_corners(ncells|:,ncorners|:)
32  size = dimsizes(t_el)
33  tri_el = new((/2 * size(0),3/), integer)
34  tri_el(::4,:) = t_el(::2,(/0,1,2/))           !  convert the quads into triangles
35  tri_el(1::4,:) = t_el(::2,(/2,3,0/))
36  tri_el(2::4,:) = t_el(1::2,(/1,2,3/))
37  tri_el(3::4,:) = t_el(1::2,(/3,0,1/))
38
39   res@sfXArray            = lon1d        ; Required to tell NCL where to
40   res@sfYArray            = lat1d        ; overlay data on globe.
41   res@sfElementNodes      = tri_el
42   res@sfFirstNodeIndex    = 1
43
44    plot   = gsn_csm_contour_map(wks,zeta(lasttime,20,:),res)
45}}}
46
2847
2948==  Plotting data after interpolation to lat/lon grid ==
30 === Interpolate internally in HOMME ===
49=== Interpolate internally in HOMME to 192x384 grid ===
3150
3251[[Image(baroInternalInterp.png)]]