<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Think it's just a typo, you currently "re"ordered it to lon x lat</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12.800000190734863px">precip_r = precip(lon|:,lat|:)</span><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12.800000190734863px">should be </span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12.800000190734863px">precip_r = precip(lat|:,</span><span style="color:rgb(0,0,0);font-size:12.800000190734863px;font-family:arial,sans-serif">lon|:</span><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12.800000190734863px">)</span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12.800000190734863px"><br></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12.800000190734863px"><br></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12.800000190734863px">Alan</span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12.800000190734863px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 8, 2017 at 1:04 PM, Laura Fowler <span dir="ltr"><<a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello:<br>
<br>
I would like to re-order TRMM 3B42 data from [lon | 1440] x [lat |<br>
400] to [lat| 400] x [lon | 1440], but that does not seem to work?<br>
Before re-ordering, the original precipitation array is:<br>
<br>
Variable: precip<br>
Type: float<br>
Total Size: 2304000 bytes<br>
            576000 values<br>
Number of Dimensions: 2<br>
Dimensions and sizes: [lon | 1440] x [lat | 400]<br>
Coordinates:<br>
            lon: [-179.875..179.875]<br>
            lat: [-49.875..49.875]<br>
<br>
<br>
After applying:<br>
<br>
f = addfile("3B42_Daily.20151128.<wbr>7.nc4","r")<br>
precip   = f->precipitation<br>
precip_r = precip(lon|:,lat|:)<br>
<br>
I get the following for precip_r:<br>
<br>
Variable: precip_r<br>
Type: float<br>
Total Size: 2304000 bytes<br>
            576000 values<br>
Number of Dimensions: 2<br>
Dimensions and sizes: [lon | 1440] x [lat | 400]<br>
Coordinates:<br>
            lon: [-179.875..179.875]<br>
            lat: [-49.875..49.875]<br>
<br>
<br>
so it seems that it did not work. I am wondering if it is because the<br>
dimensions of precip are lon and lat which are the same as the<br>
coordinates lat and lon.<br>
<br>
I am not sure what to do next? If somebody would like to help me out,<br>
the ncl script and data are in /glade2/scratch2/laura/3B42. I am using<br>
ncl 6.4.0.<br>
<br>
<br>
Many thanks,<br>
Laura<br>
<br>
<br>
--<br>
!-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------<br>
Laura D. Fowler<br>
Mesoscale and Microscale Meteorology Division (MMM)<br>
National Center for Atmospheric Research<br>
P.O. Box 3000, Boulder CO 80307-3000<br>
<br>
e-mail: <a href="mailto:laura@ucar.edu">laura@ucar.edu</a><br>
phone: <a href="tel:303-497-1628" value="+13034971628">303-497-1628</a><br>
<br>
!-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------<br>
______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div>