OPeNDAP question

From: Ruben van Hooidonk <rubski_at_nyahnyahspammersnyahnyah>
Date: Thu Mar 22 2012 - 01:23:56 MDT

Hi,

When I try to read in a file using OPeNDAP I get a segmentation fault.
When I wget the file, and then open it using NCL all is okay. Why do I
get the segmentation fault, and what can I do about it?

Here is the code:

filename = "http://data.nodc.noaa.gov/opendap/cortad/Version3/cortadv3_row04_col14.h5?Latitude[0:1:0][0:1:511],Longitude[0:1:0][0:1:511],TSA_DHW[0:1:511][0:1:511][0:1:1461],Time[0:1:0][0:1:1461]"
a =addfile(filename,"r") ; read in the file name
tsa_dhw = a->TSA_DHW ; read in actual TSA_DHW data
lat = a->Latitude ; read in Latitudes
lon = a->Longitude ; read in Longitudes
time = a->Time ; read in Time

I've tried this on a new mac, and on a linux box with NCL 6.0.0, same
result on both machines.
Linux box:
2.6.18-238.19.1.el5 #1 SMP Sun Jul 10 08:43:41 EDT 2011 x86_64 x86_64
x86_64 GNU/Linux with gcc version 4.5.1
OS X:
11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012;
root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64 i386 iMac11,1 Darwin, with
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build
2336.9.00)

The file is big, it is 1.9GB.

Thanks for any suggestions, or help.
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Mar 22 01:24:07 2012

This archive was generated by hypermail 2.1.8 : Tue Mar 27 2012 - 08:50:24 MDT