<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body 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 color="#000000" face="Arial, Helvetica, sans-serif"><span style="font-size: 13.3333px;"><br>
</span></font></div>
<div><font color="#000000" face="Arial, Helvetica, sans-serif"><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 color="#000000" face="Arial, Helvetica, sans-serif"><span style="font-size: 13.3333px;"><br>
</span></font>
<div><font color="#000000" face="Arial, Helvetica, sans-serif"><span style="font-size: 13.3333px;">
<div style="margin: 0px; font-size: 16px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; color: rgb(51, 51, 51)">
<font color="#000000" face="Arial, Helvetica, sans-serif"><span style="margin: 0px; font-size: 13.3333px">*********************************************************************************************************************</span></font></div>
<br>
</span></font></div>
<div><font color="#000000" face="Arial, Helvetica, sans-serif"><span style="font-size: 13.3333px;">Script:</span></font></div>
<div><font color="#000000" face="Arial, Helvetica, sans-serif"><span style="font-size: 13.3333px;"><br>
</span></font></div>
<div><font color="#000000" face="Arial, Helvetica, sans-serif"><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 color="#000000" face="Arial, Helvetica, sans-serif"><span style="font-size: 13.3333px;"><br>
</span></font></div>
<div><font color="#000000" face="Arial, Helvetica, sans-serif"><span style="font-size: 13.3333px;">*********************************************************************************************************************</span></font></div>
<div><font color="#000000" face="Arial, Helvetica, sans-serif"><span style="font-size: 13.3333px;">print</span></font></div>
<div><font color="#000000" face="Arial, Helvetica, sans-serif"><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 color="#000000" face="Arial, Helvetica, sans-serif"><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 color="#000000" face="Arial, Helvetica, sans-serif"><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="signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Arial,Helvetica,sans-serif">
<div><font color="#ac193d" face="Corbel, sans-serif"><span style="color:rgb(0,0,0); font-size:12pt; font-family:Arial,Helvetica,sans-serif">Stefane Fonseca Freitas</span></font></div>
<div><font color="#ac193d" face="Corbel, sans-serif"><b><br>
</b></font></div>
<div><font class="ecxApple-style-span" color="#ac193d" face="Arial"></font><span style="color:rgb(0,0,0); font-size:10pt; font-family:Arial,Helvetica,sans-serif"></span>
<div><font color="#ac193d" face="Arial"><font face="tahoma, sans-serif" color="#0000ff" style="font-size:15px"><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 color="#ac193d" face="Arial">
<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 color="#ac193d" face="Arial"></font></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>