[ncl-install] Adding multiple files to NCL

Dawit Abebe dawit.kan at gmail.com
Mon Mar 27 07:59:00 MDT 2017


Dear Mary

I’m having a challenge to read multiple files ranging from 190101 - 201412 to NCL. 

Command used

	diri = "./"                     
ncl 29> files = systemfunc("ls *.nc")   
ncl 30> f     = addfiles(diri+files, "r")

Return message for all files

warning:_NclOpenFile: Can not open file <pre_199501_mondat.nc>; file format not supported or file is corrupted


The command and return for single file seems working as showed bellow: 

ncl 10> diri = "./"
ncl 11> fili = "pre_201412_mondat.nc"  
ncl 12> f    = addfile(diri+fili, "r")
ncl 13> prc = f->pre                                                
ncl 14> printVarSummary(prc)

Variable: prc
Type: double
Total Size: 288 bytes
            36 values
Number of Dimensions: 3
Dimensions and sizes:	[time | 1] x [lat | 4] x [lon | 9]
Coordinates: 
            time: [41987..41987]
            lat: [3.75..5.25]
            lon: [36.75..40.75]
Number Of Attributes: 5
  correlation_decay_distance :	 450
  long_name :	precipitation
  units :	mm/month
  missing_value :	9.96920996839e+36
  _FillValue :	9.96920996839e+36

Where is my problem?

Thanks
Dawit

---------------------------------------------------------------------------
> On Mar 22, 2017, at 10:25 PM, Mary Haley <haley at ucar.edu> wrote:


> 
> It helps if you can provide us with as much information as possible when you have a problem with NCL:
> 
> - How did you install NCL?
> 
> - What version of NCL did you install?
> 
> - What kind of system do you have? (Be as detailed as possible: is this a 64-bit system, what flavor and version of LINUX or MacOS, etc)
> 
> - Did you try googling this message?
> 
>   This is a system error you're getting, and you can usually find some really useful answers by googling something like " librtmp.so.0: cannot open shared object file"
> 
> Here are some possible solutions that I found:
> 
> https://ubuntuforums.org/showthread.php?t=2079130 <https://ubuntuforums.org/showthread.php?t=2079130>
> http://askubuntu.com/questions/887970/error-while-loading-shared-libraries-librtmp-so-0 <http://askubuntu.com/questions/887970/error-while-loading-shared-libraries-librtmp-so-0>
> https://bugs.launchpad.net/ubuntu/+source/pycurl/+bug/982436 <https://bugs.launchpad.net/ubuntu/+source/pycurl/+bug/982436>
> 
> --Mary
> 
> 
> On Wed, Mar 22, 2017 at 11:47 AM, Bashiru Yahaya <b.yahaya at aims.edu.gh <mailto:b.yahaya at aims.edu.gh>> wrote:
> 
> On Wed, Mar 22, 2017 at 3:19 PM, Mary Haley <haley at ucar.edu <mailto:haley at ucar.edu>> wrote:
> ncl -V
> 
> Hello to All
> I am having similar situation, but i have followed the command , and this is my error after typing
> 
> ncl -V
> 
> ncl: error while loading shared libraries: librtmp.so.0: cannot open shared object file: No such file or directory
> 
> -- 
> Bashiru Yahaya
> African Institute For Mathematical Science- Ghana(AIMS-Ghana)
> 23A Awulen Kojo Street
> +233(0) 262525315 <tel:+233%2026%20252%205315>
> +233(0) 242525315 <tel:+233%2024%20252%205315>
> www.aims.edu.gh <http://www.aims.edu.gh/>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20170327/5fc2b100/attachment.html 


More information about the ncl-install mailing list