Re: reading many files

From: Shrikant Pargaonkar <shrikantmp_at_nyahnyahspammersnyahnyah>
Date: Tue Jul 23 2013 - 05:20:15 MDT

Thank you Dennis.
Guilherme, I don't have a file descriptor. Any help to concatenate using
CDO will be much appreciated.

Shrikant

On Sun, Jul 21, 2013 at 10:25 PM, Dennis Shea <shea@ucar.edu> wrote:

> [0] If you are "new to NCL", please read
>
> http://www.ncl.ucar.edu/**Document/Manuals/<http://www.ncl.ucar.edu/Document/Manuals/>
>
> In particular the *Mini-Language Manual*
>
> ---
>
>
> [1] please read the documentation for the following
>
> http://www.ncl.ucar.edu/**Document/Functions/Built-in/**systemfunc.shtml<http://www.ncl.ucar.edu/Document/Functions/Built-in/systemfunc.shtml>
> See examples 3 & 4
>
> diri = "./"
> fili = systemfunc ("cd " + diri + " ; ls *foo*")
> nfil = dimsizes(fili)
>
> ---
>
> [2]
> http://www.ncl.ucar.edu/**Document/Functions/Built-in/**fbinrecread.shtml<http://www.ncl.ucar.edu/Document/Functions/Built-in/fbinrecread.shtml>
> http://www.ncl.ucar.edu/**Document/Functions/Built-in/**fbindirread.shtml<http://www.ncl.ucar.edu/Document/Functions/Built-in/fbindirread.shtml>
>
> dp nf=0,nfil-1
> x = fbinrecread(diri_fili(nf),....**...)
> or
> x = fbindirread(diri_fili(nf),....**...)
> end do
>
> Also of interest if
>
> ---
> [3]
> http://www.ncl.ucar.edu/**Document/Functions/Built-in/**
> setfileoption.shtml<http://www.ncl.ucar.edu/Document/Functions/Built-in/setfileoption.shtml>
>
> read about BigEndian and LittleEndisn
>
>
> On 7/21/13 10:18 AM, Shrikant Pargaonkar wrote:
>
>> Hi,
>> I am new to NCL. I have a very large number (3700) of binary files. I want
>> to read them and make a climatology. I want to know if it is possible
>> 1. to make list of names of the files
>> 2. then open this list and read the file names (in a loop)
>> 3. assign the name to a variable so that it can open this file and read
>> the
>> data in it
>>
>> If there is any other way to read such a large number of binary files
>> (using a loop), please suggest.
>>
>> Thanks in advance.
>>
>> Shrikant
>>
>>
>>
>> ______________________________**_________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/**mailman/listinfo/ncl-talk<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 Tue Jul 23 05:20:28 2013

This archive was generated by hypermail 2.1.8 : Thu Jul 25 2013 - 21:02:42 MDT