[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Re: Question about netCDF perl examples
- Subject: Re: Question about netCDF perl examples
- Date: Fri, 16 Feb 2007 10:45:07 +0100
Hi Russ,
it seems like I have confused the fortran and C order in the comment.
Shall I send the program once again, or can you exchange 'C' and
'fortran' there.
Best regards,
Heiko
Russ Rew wrote:
Hi Heiko,
A netCDF user who was looking at your simple_xy_wr.pl perl example from
http://www.unidata.ucar.edu/software/netcdf/examples/programs/
found this comment confusing:
# note that ncdump uses fortran order, while perl/PDL uses C order indices
# data(x,y) in ncdump switches to data(y,x) in perl
The CDL output of ncdump actually uses C order (last dimension varying
fastest). I think PDL may use Fortran order (first dimension varying
fastest), at least according to this document:
http://search.cpan.org/~dhunt/PDL-NetCDF-0.92/netcdf.pd
where it says:
... the 'put' function will write variables in FORTRAN order (as
before) and will reverse the dimension names so they fit this
order
I'm leaving your example alone, but if you want to clarify or change
the comment, please let me know. Thanks!
--Russ
--
Dr. Heiko Klein Tel. + 47 22 96 33 44
Air pollution Section/Research Department Fax. + 47 22 69 63 55
Norwegian Meteorological Institute http://www.met.no
P.O. Box 43 Blindern 0313 Oslo NORWAY http://www.emep.int