On Mon, Nov 7, 2011 at 10:11 AM, Arlindo Meque <span dir="ltr">&lt;<a href="mailto:mequitomz@yahoo.com.br">mequitomz@yahoo.com.br</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family:times new roman, new york, times, serif;font-size:12pt">
<div> Dear  all,<br><br><br>1. I have a forecast file (1.875X1.25)  with 192 points in x-direction and 145 points in y-direction. I am trying to regrid the file to match the observation (2.5X2.5) with 144 points in x-direction and 72 points on y-direction<br>

<br><br>2. I am able to create the  regridded file, the problem is  that the dimensions of the regridded file do not much those of the observation file, so I am not able to make the diffidence between the forecast and the observation.<br>

<br>3. Please find attached the forecast and observed file along with the regriding script.<br><br></div></div></div></div></div></blockquote><div><br></div><div>This more of a question for Jeniffer as I am not sure how sdfwrite figures out the coordinate variables of the output file (does it use the coordinates of the default file?). Now, a simple way to produce a file interpolated to this particular grid is to use lats4d:</div>
<div><br></div><div>% lats4d.sh -i <a href="http://forecast.nc">forecast.nc</a> -o fcstregridded -ncep2.5 -v</div><div><br></div><div>This is going to the standard NCEP 2.5x2.5 grid (which is not exactly what you had on your re() line). Are you sure your re() line is correct? It is kind of an unusual grid. In any event, if you would like to modify the output from ncep2.5 there is a simple way, but let me hear from you first.</div>
<div><br></div><div>      (the other) Arlindo</div></div><div><br></div>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>