Re: OpeNDAP can't work

From: L <dxlds_at_nyahnyahspammersnyahnyah>
Date: Sun Sep 02 2012 - 19:23:57 MDT

Wei,
This is my output:

ncl 0> url = "http://test.opendap.org/opendap/data/nc/"
ncl 1> filename = url + "123.nc"
ncl 2>
ncl 3> exists = isfilepresent(filename)
ncopen: filename "http://test.opendap.org/opendap/data/nc/123.nc": NetCDF: Unknown file format
ncl 4> print(exists)

Variable: exists
Type: logical
Total Size: 4 bytes
            1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
(0) False
ncl 5>
ncl 6> f = addfile(filename, "r")
fatal:NetCDF: Unknown file format
fatal:Could not open (http://test.opendap.org/opendap/data/nc/123.nc)
ncl 7> print(f)

Variable: f
Type: file
(0) File Missing Value : -1

Regards,
Dongsheng

ÔÚ 2012-09-01 09:11:40£¬L <dxlds@163.com> дµÀ£º

Wei,

Thanks for your reply.

Sorry I can't send you the exact output message right now, as I am not with the working computer.
I am wondering, if there is any other equirement except the libdap? like, should I compile the netcdf with the ¨Cenable-dap flag ?
The isfilepresent command with an url file in my computer seems not trying to connect to the Internet, and it sends the message 'unknow file format' back to the sceen immediately.

Dongsheng

At 2012-09-01 06:58:22,"Wei Huang" <huangwei@ucar.edu> wrote:
Dongsheng,

Can you try this script:

 url = "http://test.opendap.org/opendap/data/nc/"
 filename = url + "123.nc"

 exists = isfilepresent(filename)
 print(exists)

 f = addfile(filename, "r")
 print(f)

And send the output/error message to us?

(This script runs fine on my system).

Wei

huangwei@ucar.edu
VETS/CISL
National Center for Atmospheric Research
P.O. Box 3000 (1850 Table Mesa Dr.)
Boulder, CO 80307-3000 USA
(303) 497-8924

On Aug 31, 2012, at 12:55 AM, L wrote:

 Hi
I have a problem about OpeNDAP.
The NCL precompiled binary file I downloaded is ncl_ncarg-6.1.0-beta.Linux_Debian_x86_64_gcc445.tar.gz.
By typing ncl on the command line, it just shows:
---------------------------------------------------------
 Copyright (C) 1995-2012 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.1.0-beta
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
ncl 0>
---------------------------------------------------------

no such words like :ncl: error while loading shared libraries: libdap.so.4: cannot open shared object file: No such file or directory

But when I follow the test
------------------------------
 url = "http://test.opendap.org/opendap/data/nc/"
 filename = url + "123.nc"
 exists = isfilepresent(filename)
ncopen: filename "http://test.opendap.org/opendap/data/nc/123.nc": NetCDF: Unknown file format
-------------------------------
Also I have added the libdap library to the LD_LIBRARY_PATH.

Can anyone give me some suggestion?
Thanks.
Regards.

Dongsheng

_______________________________________________
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 Sun Sep 2 19:24:20 2012

This archive was generated by hypermail 2.1.8 : Tue Sep 11 2012 - 15:30:42 MDT