NetCDF support within IDL [message #521] |
Tue, 08 September 1992 12:02  |
bowman
Messages: 121 Registered: September 1991
|
Senior Member |
|
|
There was mention in this group a few weeks ago of pending
support for netCDF file access from within IDL. Has this
been announced or released? Will it be a built-in function
or library routines? And lastly, is it possible to get
it now?
Thanks for any help,
Ken Bowman
|
|
|
Re: netCDF [message #767 is a reply to message #521] |
Fri, 19 February 1993 12:54  |
ryba
Messages: 33 Registered: October 1992
|
Member |
|
|
In article <1m37u0$b3a@agate.berkeley.edu>, ryan@physics19.phys (Ryan McLean) writes:
|> I get bus errors and seg. faults when I try to do a ncdf_varget with
|> a range specified. Usually IDL is much more gracefull about such things.
|> I may track it down and post a summary later.
|>
|> Ryan
Ryan,
I assume you are using IDL 3.0. I had a similar problem using ncdf_varget
with the COUNT and OFFSET keywords. What I found is:
ncdf_varget,cdfid,varid,var,count=count,offset=start
will fail, despite the fact that both count and start are properly formed
long arrays. However, try:
ncdf_varget,cdfid,varid,var,count=[count],offset=[start]
That may work. I've done things with the bracket notation with explicit
numbers, numbers mixed with variables, and numbers mixed with arrays all
with good results. I think it has to do with IDL's parameter passing
mechanism-arrays are passed by reference, whereas the bracketed arrays
might be passed by value or some other means that sends them correctly.
Maybe the RSI people can comment further on this bug/feature. This problem
was *not* present with earlier versions of ncdf_varget (beta release under
2.4) that used COUNT and MINDEX.
--
Dr. Marty Ryba | Generation X:
Group 101 - Air Defense Techniques |
MIT Lincoln Laboratory | Too young to be cynical,
ryba@ll.mit.edu | too old to be optimistic.
|
|
|