Re: OPeNDAP

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed Sep 19 2012 - 14:17:04 MDT

Hi Mingxuan,

The file you indicated does not exist, because I've never built a binary for MacOS 10.8.

Can you please verify the correct file name so I can check it here?

I have verified that these three binaries are all working fine with regard to OPeNDAP:

  ncl_ncarg-6.1.0-beta.MacOS_10.6_i686_64bit_gcc460.tar.gz
  ncl_ncarg-6.1.0-beta.MacOS_10.7_i686_64bit_gcc450.tar.gz
  ncl_ncarg-6.1.0-beta.MacOS_10.7_x86_64_gcc421.tar.gz

This is the short NCL script I used to test this:

  url = "http://apdrc.soest.hawaii.edu:80/dods/public_data/ERA-40/"
  filename = "daily-surface"
 
  exists = isfilepresent(url+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")
    status_exit(1)
  else
    print("OPeNDAP isfilepresent test successful.")
    f = addfile(url + filename,"r")
    variables = getfilevarnames(f)
    print(variables)
  end if

--Mary

On Sep 19, 2012, at 12:00 PM, Mingxuan Chen wrote:

> 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

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

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