<div dir="ltr"><div>Hi John,</div><div><br></div><div>Apologies for the delay in response -- for whatever reason, it happens frequently that mail from the <a href="http://yahoo.com">yahoo.com</a> domain ends up in our spam boxes :-/</div><div><br></div><div>I don't know the answer offhand to your issue. But if I understand correctly what you are doing, you've synthesized a rectilinear grid from a curvilinear grid on the variable t. I can believe that would cause registration problems, although perhaps not to the extent seen here.<br></div><div><br></div><div>Rick</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 29, 2019 at 11:51 PM John H. <<a href="mailto:hinsberj@yahoo.com">hinsberj@yahoo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>Hello-</div><div><br></div><div>I'm trying to plot the National Blend Model (NBM) from NOAA. I can plot the entire domain using mpLimitMode="Corners"</div><div>and it looks beautiful!  However, when I "zoom in" to the area I'm interested in, the data is plotted clearly offset from the map (image attached).</div><div><br></div><div>I'm using NCL Version 6.5.0, and am at my wit's end! </div><div><br></div><div><br></div><div>printVarSummary(t)</div><div><span><div>Variable: t</div><div>Type: float</div><div>Total Size: 14979860 bytes</div><div>            3744965 values</div><div>Number of Dimensions: 2</div><div>Dimensions and sizes:<span style="white-space:pre-wrap"> </span>[ygrid_0 | 1597] x [xgrid_0 | 2345]</div><div>Coordinates: </div><div>            ygrid_0: [19.229..53.05043]</div><div>            xgrid_0: [-126.2766..-69.20848]</div><div>Number Of Attributes: 14</div><div>  initial_time :<span style="white-space:pre-wrap">     </span>01/28/2019 (03:00)</div><div>  forecast_time_units :<span style="white-space:pre-wrap">       </span>hours</div><div>  forecast_time :<span style="white-space:pre-wrap">  </span>1</div><div>  level :<span style="white-space:pre-wrap">      </span> 2</div><div>  level_type :<span style="white-space:pre-wrap">        </span>Specified height level above ground (m)</div><div>  parameter_template_discipline_category_number :<span style="white-space:pre-wrap">        </span>( 0, 0, 0, 0 )</div><div>  parameter_discipline_and_category :<span style="white-space:pre-wrap">     </span>Meteorological products, Temperature</div><div>  grid_type :<span style="white-space:pre-wrap">       </span>Lambert Conformal can be secant or tangent, conical or bipolar</div><div>  coordinates :<span style="white-space:pre-wrap">   </span>gridlat_0 gridlon_0</div><div>  _FillValue :<span style="white-space:pre-wrap">       </span>9999</div><div>  units :<span style="white-space:pre-wrap">   </span>K</div><div>  long_name :<span style="white-space:pre-wrap">  </span>Temperature</div><div>  production_status :<span style="white-space:pre-wrap">        </span>Operational products</div><div>  center :<span style="white-space:pre-wrap">  </span>US National Weather Service - NCEP (WMC)</div><div><br></div></span><br></div><div>My code:</div><div> </div><div><span><div>begin</div><div><br></div><div>fils=systemfunc("ls *.nc")</div><div>a=addfile(fils(0),"r")</div><div><br></div><div>t=a->TMP_P0_L103_GLC0</div><div>lat2d=a->gridlat_0</div><div>lon2d=a->gridlon_0</div><div>lat=lat2d(:,0)</div><div>lon=lon2d(0,:)</div><div>t&ygrid_0=lat</div><div>t&xgrid_0=lon</div><div>t@_FillValue=9999</div><div><br></div><div>wks=gsn_open_wks("png","Temp")</div><div>res = True</div><div>res@mpProjection = "LambertConformal"</div><div><br></div><div>res@mpFillOn = False</div><div>res@cnFillOn = True</div><div>res@cnLinesOn = False</div><div>res@cnFillPalette = "amwg256"</div><div>res@tfDoNDCOverlay = True</div><div>res@gsnAddCyclic = False</div><div><br></div><div>res@mpMinLatF = 40.0</div><div>res@mpMaxLatF = 50.0</div><div>res@mpMinLonF = -125.0</div><div>res@mpMaxLonF = -105.0</div><div>res@gsnMaskLambertConformal = True</div><div><br></div><div>plot = gsn_csm_contour_map(wks,(t({40:50},{-125:-105})),res)</div><div><br></div><div>end</div><div><br></div><div><br></div><div><br></div></span><img title="Inline image" alt="Inline image" src="cid:168aa42da53b4f9392f1" class="gmail-m_-3932380921751835040yahoo-inline-image" style="max-width: 800px; width: 100%;"><br><br></div><div>Regards-</div><div>John</div><div class="gmail-m_-3932380921751835040ydp1491253cyahoo-style-wrap" style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px"></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>