<div dir="ltr">See attached<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 26, 2019 at 5:11 PM Stefane Fonseca Freitas <<a href="mailto:fane.freitas@hotmail.com">fane.freitas@hotmail.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 dir="ltr">
<div style="font-family:Arial,Helvetica,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<span style="font-size:10pt;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif">Hi users,</span></div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:10pt;color:rgb(0,0,0)">
</div>
<span style="font-size:10pt;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif">I'm trying to subset a satellite swath data (2D latitude and longitude) in a region box. However, when I output the subsetted lat/lon range, it does not match the
range I set in the script.</span>
<div><font face="Arial, Helvetica, sans-serif" color="#000000"><span style="font-size:13.3333px"><br>
</span></font></div>
<div><font face="Arial, Helvetica, sans-serif" color="#000000"><span style="font-size:13.3333px">Any suggestions would be greatly appreciated.</span></font></div>
<div>
<h1 style="margin-top:0px;color:rgb(17,17,17);font-family:Roboto,Arial,sans-serif;font-size:1.375rem;line-height:1.2;margin-bottom:0px;text-align:left;background-color:rgb(255,255,255)">
</h1>
<br>
</div>
<div><font face="Arial, Helvetica, sans-serif" color="#000000"><span style="font-size:13.3333px"><br>
</span></font>
<div><font face="Arial, Helvetica, sans-serif" color="#000000"><span style="font-size:13.3333px">
<div style="margin:0px;font-size:16px;color:rgb(51,51,51)">
<font face="Arial, Helvetica, sans-serif" color="#000000"><span style="margin:0px;font-size:13.3333px">*********************************************************************************************************************</span></font></div>
<br>
</span></font></div>
<div><font face="Arial, Helvetica, sans-serif" color="#000000"><span style="font-size:13.3333px">Script:</span></font></div>
<div><font face="Arial, Helvetica, sans-serif" color="#000000"><span style="font-size:13.3333px"><br>
</span></font></div>
<div><font face="Arial, Helvetica, sans-serif" color="#000000"><span style="font-size:13.3333px"><span>begin<br>
</span>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div> varname="pr_2a23_hfreez2A23" <br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div> f=addfile("/media/stefane/Seagate Expansion Drive/TRMM-PF/199801/1Z09.19980102.00560.7.HDF", "r")<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div> var=short2flt_hdf(f->$varname$) ; produto 2A23 altura do nível de congelamento em metros<br>
</div>
<div><br>
</div>
<div> var@_FillValue =-9999.<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div> lat_dbz=short2flt_hdf(f->pr_lat)/100.<br>
</div>
<div><br>
</div>
<div> lon_dbz=short2flt_hdf(f->pr_lon)/100.<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>;---------------------------------------------------------------------------------------------------------<br>
</div>
<div>;Subscript para selecionar dados apenas dentro de área de interesse<br>
</div>
<div>;<br>
</div>
<div>;*****Caixa na Amazõnia coordenadas*************<br>
</div>
<div><br>
</div>
<div> latS = -11. <br>
</div>
<div> latN = 2.<br>
</div>
<div><br>
</div>
<div> lonW = -72.<br>
</div>
<div> lonE = -45.<br>
</div>
<div><br>
</div>
<div> ji= region_ind(lat_dbz, lon_dbz, latS, latN, lonW, lonE)<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div> jStrt = ji(0) ; lat start<br>
</div>
<div> jLast = ji(1) ; lat last<br>
</div>
<div> iStrt = ji(2) ; lon start<br>
</div>
<div> iLast = ji(3) ; lon last<br>
</div>
<div><br>
</div>
<div> lat = lat_dbz(jStrt:jLast,iStrt:iLast)<br>
</div>
<div> lon = lon_dbz(jStrt:jLast,iStrt:iLast)<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div> printMinMax(lat, True)<br>
</div>
<div><br>
</div>
<div> printMinMax(lon, True)<br>
</div>
<div><br>
</div>
<div>sub=var(jStrt:jLast,iStrt:iLast)<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>sub@lat2d=lat<br>
</div>
<div>sub@lon2d=lon<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div> lat@units="degrees_north"<br>
</div>
<div> lon@units="degrees_east"<br>
</div>
<div><br>
</div>
<div><br>
</div>
<span>end</span></span></font></div>
<div><font face="Arial, Helvetica, sans-serif" color="#000000"><span style="font-size:13.3333px"><br>
</span></font></div>
<div><font face="Arial, Helvetica, sans-serif" color="#000000"><span style="font-size:13.3333px">*********************************************************************************************************************</span></font></div>
<div><font face="Arial, Helvetica, sans-serif" color="#000000"><span style="font-size:13.3333px">print</span></font></div>
<div><font face="Arial, Helvetica, sans-serif" color="#000000"><span style="font-size:13.3333px"><br>
</span></font></div>
<div><span style="font-family:Arial,Helvetica,sans-serif;font-size:10pt;color:rgb(0,0,0)">latitude:</span></div>
<div><br>
</div>
<div><font face="Arial, Helvetica, sans-serif" color="#000000"><span style="font-size:13.3333px">
<div>(0) min=-3.43 max=3.55<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>longitude:</div>
<div><br>
</div>
<div>(0) min=-73.12 max=-64.89<br>
</div>
<span></span></span></font></div>
<div><font face="Arial, Helvetica, sans-serif" color="#000000"><span style="font-size:13.3333px">************************************************************************************************************************************************************<br>
</span></font>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<br>
</div>
<div id="gmail-m_-6308559012509791628signature">
<div id="gmail-m_-6308559012509791628divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif">
<div><font face="Corbel, sans-serif" color="#ac193d"><span style="color:rgb(0,0,0);font-size:12pt;font-family:Arial,Helvetica,sans-serif">Stefane Fonseca Freitas</span></font></div>
<div><font face="Corbel, sans-serif" color="#ac193d"><b><br>
</b></font></div>
<div><font class="gmail-m_-6308559012509791628ecxApple-style-span" face="Arial" color="#ac193d"></font><span style="color:rgb(0,0,0);font-size:10pt;font-family:Arial,Helvetica,sans-serif"></span>
<div><font face="Arial" color="#ac193d"><font style="font-size:15px" face="tahoma, sans-serif" color="#0000ff"><span style="color:rgb(0,0,0);font-size:10pt;font-family:Arial,Helvetica,sans-serif">Doutoranda
</span><span style="color:rgb(0,0,0);font-size:10pt;font-family:Arial,Helvetica,sans-serif">em Meteorologia</span><span style="color:rgb(0,0,0);font-size:10pt;font-family:Arial,Helvetica,sans-serif"> - </span></font></font><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:10pt">PGMET
- CPTEC / INPE</span><font face="Arial" color="#ac193d">
<div style="color:rgb(33,33,33);font-size:15px">
<div><font face="tahoma, sans-serif" color="#0000ff">
<div dir="ltr"><span style="color:rgb(0,0,0);font-size:10pt;font-family:Arial,Helvetica,sans-serif">Centro de Previsão de Tempo e Estudos Climáticos / Instituto Nacional de Pesquisas Espaciais</span></div>
<span style="color:rgb(0,0,0);font-size:10pt;font-family:Arial,Helvetica,sans-serif">Cachoeira Paulista - SP - Brasil</span></font></div>
<div><br>
<span style="font-family:tahoma,sans-serif;font-size:12.8px;color:rgb(0,0,0)"></span></div>
</div>
</font></div>
<div><font face="Arial" color="#ac193d"></font></div>
</div>
</div>
</div>
</div>
</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>