Re: OPeNDAP

From: Mingxuan Chen <chen_at_nyahnyahspammersnyahnyah>
Date: Wed Sep 19 2012 - 12:00:32 MDT

Wei,
   I think we install NCL from downloaded binary.
    sw_vers -productVersion: 10.8.1
   uname -m : x86_64
  the binary maybe is (it about 2 month old).
ncl_ncarg-6.1.0-beta.MacOS_10.8.1_x86_64_gcc421.tar.gz?
  Thanks
Mingxuan
On Sep 19, 2012, at 10:53 AM, Wei Huang <huangwei@ucar.edu> wrote:

> Mingxuan,
>
> Do you install NCL from source code, or download binary?
> If download binary, could you please let us know the binary you downloaded?
>
> Thanks,
>
> 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 Sep 19, 2012, at 10:40 AM, Mingxuan Chen wrote:
>
>> Wei,
>> Please see the following:
>> --------------------------------------------
>> ncopen: filename "http://nomads.ncep.noaa.gov:9090/dods/gfs_hd/gfs_hd20120907/gfs_hd_00z": NetCDF: Unknown file format
>> (0) File: <http://nomads.ncep.noaa.gov:9090/dods/gfs_hd/gfs_hd20120907/gfs_hd_00z>, existence: False
>> fatal:NetCDF: Unknown file format
>> fatal:Could not open (http://nomads.ncep.noaa.gov:9090/dods/gfs_hd/gfs_hd20120907/gfs_hd_00z)
>>
>> Variable: f
>> Type: file
>> (0) File Missing Value : -1
>> ------------------------------------
>> Thanks
>> Mingxaun
>>
>> On Sep 19, 2012, at 10:32 AM, Wei Huang <huangwei@ucar.edu> wrote:
>>
>>> Mingxuan,
>>>
>>> That server could have some problem.
>>>
>>> Can you try script:
>>>
>>> flnm = "http://nomads.ncep.noaa.gov:9090/dods/gfs_hd/gfs_hd20120907/gfs_hd_00z"
>>> exists = isfilepresent(flnm)
>>> print("File: <" + flnm + ">, existence: " + exists)
>>>
>>> f = addfile(flnm, "r")
>>> print(f)
>>>
>>> and let us know if there is any problem?
>>>
>>> Thanks,
>>>
>>> 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 Sep 19, 2012, at 10:07 AM, Mingxuan Chen wrote:
>>>
>>>> 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
>>>
>>
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Sep 19 12:01:14 2012

This archive was generated by hypermail 2.1.8 : Fri Sep 21 2012 - 16:22:30 MDT