Hello,
My machine is in Mac OS X 10 8.1, ncl version is 6.1.0-beta and I want to access OPENDAP data.
I tried opendap.ncl
--------------------------------------
ncopen: filename "http://test.opendap.org/data/nc/123.nc": NetCDF: Unknown file format
(0) OPeNDAP isfilepresent test unsuccessful.
(0) Either file doesn't exist, or NCL does not have OPeNDAP capabilities on this system
---------------------
What is wrong?
Thank you for your help!
Mingxuan
------opendap.ncl-----------------
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/diagnostics_cam.ncl"
begin
url= "http://test.opendap.org/data/nc/"
filename = url + "123.nc"
print(filename)
exists = isfilepresent(filename)
if(.not.exists) then
print("OPeNDAP isfilepresent test unsuccessful.")
print("Either file doesn't exist, or NCL does not have OPeNDAP capabilities on this system")
else
print("OPeNDAP isfilepresent test successful.")
f = addfile(filename,"r")
vars = getfilevarnames(f)
print(vars) ; should be (in any order): "l","j","i","cross","aloan",
; "shot","order","bears"
end if
end
-----------------
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Sep 19 10:08:30 2012
This archive was generated by hypermail 2.1.8 : Fri Sep 21 2012 - 16:22:30 MDT