comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: NetCDF support within IDL
items: Re: netCDF

NetCDF support within IDL
type: item
description: 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
creator: bowman
date: 1992-09-08T19:02:47-00:00

Re: netCDF
type: item
description: 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.
creator: ryba
date: 1993-02-19T20:54:58-00:00