[ncl-talk] Can anyone help me on how to read multiple files from OPeNDAP server

Najib Yusuf najibgal at yahoo.com
Thu Oct 15 07:39:56 MDT 2020


Dear NCL experts,
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 with comma like (/"https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/2013.01.01/MOP03JM-201301-L3V95.6.3.he5","https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/2013.01.02/MOP03JM-201302-L3V95.6.3.he5","https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/2013.01.03/MOP03JM-201303-L3V95.6.3.he5"/) 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. I also tried another approach (see attach file) but still didnt work. 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 for you help.
Najib Yusuf GaladanciCAR-NASRDA. Nigeria234 80 3871 4158________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20201015/46cfad8c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MOPITCO_OPeNDAP.ncl
Type: application/octet-stream
Size: 4121 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20201015/46cfad8c/attachment.obj>


More information about the ncl-talk mailing list