<html><head></head><body><div class="ydpb35015e5yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div></div>
        <div>Thanks Rick.  I noticed the email didn't maintain the formatting as I looked at the archives page. Perhaps I'll switch to gmail.</div><div><br></div>
        
        </div><div id="yahoo_quoted_9742196174" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Friday, February 1, 2019, 11:15:38 AM MST, Rick Brownrigg <brownrig@ucar.edu> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="yiv8461114009"><div><div dir="ltr"><div>Hi John,</div><div><br clear="none"></div><div>Apologies for the delay in response -- for whatever reason, it happens frequently that mail from the <a rel="nofollow" shape="rect" target="_blank" href="http://yahoo.com">yahoo.com</a> domain ends up in our spam boxes :-/</div><div><br clear="none"></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 clear="none"></div><div><br clear="none"></div><div>Rick</div><div><br clear="none"></div></div><br clear="none"><div class="yiv8461114009gmail_quote"><div class="yiv8461114009yqt6182747545" id="yiv8461114009yqt84609"><div class="yiv8461114009gmail_attr" dir="ltr">On Tue, Jan 29, 2019 at 11:51 PM John H. <<a rel="nofollow" shape="rect" ymailto="mailto:hinsberj@yahoo.com" target="_blank" href="mailto:hinsberj@yahoo.com">hinsberj@yahoo.com</a>> wrote:<br clear="none"></div><blockquote class="yiv8461114009gmail_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 clear="none"></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 clear="none"></div><div>I'm using NCL Version 6.5.0, and am at my wit's end! </div><div><br clear="none"></div><div><br clear="none"></div><div>printVarSummary(t)</div><div><span></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 clear="none"></div><br clear="none"></div><div>My code:</div><div> </div><div><span></span><div>begin</div><div><br clear="none"></div><div>fils=systemfunc("ls *.nc")</div><div>a=addfile(fils(0),"r")</div><div><br clear="none"></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 clear="none"></div><div>wks=gsn_open_wks("png","Temp")</div><div>res = True</div><div>res@mpProjection = "LambertConformal"</div><div><br clear="none"></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 clear="none"></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 clear="none"></div><div>plot = gsn_csm_contour_map(wks,(t({40:50},{-125:-105})),res)</div><div><br clear="none"></div><div>end</div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><img class="yiv8461114009gmail-m_-3932380921751835040yahoo-inline-image" title="Inline image" alt="Inline image" src="cid:pEiMulFUTCMTRCs5Ttv6" yahoo_partid="2" style="max-width:800px;width:100%;" data-id="<4bfbbd7b-8967-97a2-4d0e-415f19c0ef66@yahoo.com>"><br clear="none"><br clear="none"></div><div>Regards-</div><div>John</div><div class="yiv8461114009gmail-m_-3932380921751835040ydp1491253cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"></div></div>_______________________________________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">
</blockquote></div></div></div></div></div>
            </div>
        </div></body></html>