comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Assigning Coordinates in NetCDF
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Assigning Coordinates in NetCDF [message #64196] Sun, 07 December 2008 13:39
Mark[1] is currently offline  Mark[1]
Messages: 66
Registered: February 2008
Member
The usual practice in netCDF to describe position along a dimension is
to create a variable that varies in that dimension and has the same
name as that dimension. Variables that satisfy these conditions are
called coordinate variables.

Thus in your case

xvarid=ncdf_vardef(data, 'west_east', xid, /float)
yvarid=ncdf_vardef(data, 'south_north', xid, /float)

and then put your coordinate data into those variables.

I must say that 'west_east' and 'north_south' are unusual names for
variables. Personally, I would be inclined to call them "x" and "y"
and give each one a long_name attribute that describes it in more
detail.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: interpolation for resizing
Next Topic: Why so serious?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Tue Mar 31 02:03:42 PDT 2026

Total time taken to generate the page: 0.26280 seconds