Re: Dimensions in NetCDF files created by IDL [message #59149] |
Tue, 11 March 2008 06:36 |
Kenneth P. Bowman
Messages: 585 Registered: May 2000
|
Senior Member |
|
|
In article
<6cb856a8-f604-468e-8129-602f96094175@b1g2000hsg.googlegroups.com>,
Tolly <gua@dmi.dk> wrote:
> Hello,
> I have created NetCDF file for variable with
> dimenstion (t,x,y,mon) using following code,
> but the problem is that when looking at the file with
> ncdump the dimensions of the variable have the
> the opposite order, (mon,y,x,t)
> Does anyone have an idea what the problem is
> when writing the variable?
> cheers,
> Tolly
Ncdump uses the C convention to write array dimensions (least-
rapidly-varying dimension first). This is the opposite to
IDL's convention (most-rapidly-varying dimension first). Your arrays
are OK, it is just that ncdump lists them in the "backwards"
order.
Ken Bowman
|
|
|