Re: OPeNDAP question

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri Mar 23 2012 - 06:47:23 MDT

Hi Ruben,

I was unable to access the file even without the subscripting.

Does the segmentation fault occur every single time you run the script, or only occasionally?

--Mary

On Mar 22, 2012, at 2:23 AM, Ruben van Hooidonk wrote:

> 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

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Mar 23 06:47:31 2012

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