<div dir="ltr">Hello,<div><br></div><div>I am trying to plot WRF data using NCL 6.1.2 without using the built-in WRF functions.  The reason I am doing this is because what I really want to do is plot streamlines, and when I had problems doing that I tried to simplify what I was doing first.</div><div><br></div><div>I found the examples page for plotting WRF using the gsn functions.  I started with the wrf_gsn_2.ncl example.  All I did was change the WRF input file to point to mine. The output looked like the map was CylindralEquidistant (the specified mapping) but the data are in LambertConformal, so the height field is not plotted as rectangular.  So you get the curved shape of my domain on the rectangular map where the lines of latitude are horizontal.   This isn&#39;t want I want, but the script seems to be doing what it should for my domain.</div><div><br></div><div>What I found strange is that when I looked at the output of wrf_map_resources, that it says the Projection is LambertConformal.</div><div><br></div><div>So I tried changing the mpProjection to LambertConformal.  When I did this I got something that looked more StereoGraphic.  The plot was centered at the north pole.</div><div><br></div><div>When I compare the output of wrf_map_resources between this script and my script that uses wrf_map_overlays, the contents are identical.</div><div><br></div><div>So how do I get NCL to plot my data using the GSN functions in the same projection as using wrf_map_overlays?</div><div><br></div><div>Here is the script that I ran:</div><div><br></div><div><div>;----------------------------------------------------------------------</div><div>; wrf_gsn_2.ncl</div><div>;----------------------------------------------------------------------</div><div>; Concepts illustrated:</div><div>;   - Using gsn_csm_contour_map to plot WRF-ARW data</div><div>;----------------------------------------------------------------------</div><div>; This example is similar to wrf_gsn_1.ncl, except more plot resources</div><div>; are set to:</div><div>;   - explicitly set the contour levels</div><div>;   - change the look of the map outlines</div><div>;   - change the color map</div><div>;   - make the labelbar vertical</div><div>;----------------------------------------------------------------------;</div><div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;</div><div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;</div><div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl&quot;</div><div><br></div><div>begin</div><div>;---Open WRF output file.</div><div>  dir      = &quot;/scratch2/portfolios/BMC/winds/Craig.Tierney/theia/wrf/windswrf/trunk/conusplus-wrf-6day/201308010000/nowfp-nocu/wrf/&quot;</div><div>  filename = &quot;wrfout_d01_2013-08-04_00:00:00&quot;</div><div>  a = addfile(dir + filename + &quot;.nc&quot;,&quot;r&quot;)</div><div><br></div><div>;---Read terrain height and lat/lon off file.</div><div>  it        = 0     ; first time step</div><div>  hgt       = wrf_user_getvar(a,&quot;HGT&quot;,it)    ; Terrain elevation</div><div>  hgt@lat2d = wrf_user_getvar(a,&quot;XLAT&quot;,it)   ; latitude/longitude</div><div>  hgt@lon2d = wrf_user_getvar(a,&quot;XLONG&quot;,it)  ; required for plotting</div><div><br></div><div>  wks = gsn_open_wks(&quot;png&quot;,&quot;wrf_gsn&quot;)</div><div><br></div><div>;---Set some basic plot options</div><div>  res               = True</div><div><br></div><div>  res@gsnMaximize   = True   ; maximize plot in frame</div><div><br></div><div>  res@tiMainString  = filename</div><div><br></div><div>  res@cnFillOn      = True</div><div>  res@cnFillPalette = &quot;OceanLakeLandSnow&quot;</div><div>  res@cnLinesOn     = False</div><div><br></div><div> res@mpProjection = &quot;CylindricalEquidistant&quot;</div><div>;  res@mpProjection  = &quot;LambertConformal&quot; </div><div><br></div><div>;---Zoom in on plot</div><div>  res@mpMinLatF     = min(hgt@lat2d)</div><div>  res@mpMaxLatF     = max(hgt@lat2d)</div><div>  res@mpMinLonF     = min(hgt@lon2d)</div><div>  res@mpMaxLonF     = max(hgt@lon2d)</div><div><br></div><div>;---Additional resources desired</div><div>  res@pmTickMarkDisplayMode = &quot;Always&quot;   ; nicer tickmarks</div><div><br></div><div>  res@mpDataBaseVersion     = &quot;MediumRes&quot;       ; better and more map outlines</div><div>  res@mpDataSetName         = &quot;Earth..4&quot;</div><div>  res@mpOutlineBoundarySets = &quot;AllBoundaries&quot;</div><div>  res@mpOutlineOn           = True</div><div><br></div><div>  res@lbOrientation         = &quot;Vertical&quot;</div><div>  res@tiMainOffsetYF        = -0.03           ; Move the title down</div><div><br></div><div>;---Change contour levels to better match the color map being used</div><div>  res@cnLevelSelectionMode = &quot;ExplicitLevels&quot;</div><div>  res@cnLevels = (/2,100,200,400,600,800,1000,1200,1400,1600,1800,2000,2200/)</div><div><br></div><div><br></div><div>  contour = gsn_csm_contour_map(wks,hgt,res)</div><div><br></div><div>;</div><div>; This is for debugging purposes only. It shows what map resources the</div><div>; wrf_map_overlays routine would have use, if you had called that routine</div><div>; to do the plotting. This can be useful if you are trying to reproduce</div><div>; an original WRF-ARW plot.</div><div>;</div><div>  dbgres = True</div><div>  dbgres = wrf_map_resources(a,dbgres)</div><div>  print(dbgres)</div><div>end</div></div><div><br></div><div>Craig</div><div><br></div></div>