[ncl-talk] How to read multipl files from OPeNDAP server

Najib Yusuf najibgal at yahoo.com
Sat Oct 10 15:01:31 MDT 2020


Dear all,
Using an example in ncl web page (see below) I was able to read a file from the OPeNDAP server, i tried to read multiple files (12) using similar approach by separating the files wth comma(/" ", " "," "," "/) but it didnt work for me though when i test run the files one after the other it reads well. Also, I tried "systemfunc" and "wildcards *) but is like both doesn't work for OPeNDAP. Kindly guide me how to read multiple files from OPeNDAP server. Thank you

 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" ; BRH
 begin
;--- Using the data files from url NASA_URL  = "https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/2013.12.01/MOP03JM-201312-L3V95.6.3.he5" ;    f = addfile(NASA_URL,"r")  exists = isfilepresent(NASA_URL)  if(.not.exists) then    print("OPeNDAP test unsuccessful.")    print("Either the file doesn't exist, or NCL does")    print("not have OPeNDAP cabilities on this system.")  else    f = addfile(NASA_URL,"r")    vnames = getfilevarnames(f)    print(vnames)  end ifend
Thank you
Najib Yusuf GaladanciCAR-NASRDA. Nigeria234 80 3871 4158
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20201010/e07623f4/attachment.html>


More information about the ncl-talk mailing list