Project

General

Profile

Problem while merging .grb file

Added by DS Bisht almost 10 years ago

Hi all,

I need to create a annual time series of Noah simulated variables. While downloading these file from GLDAS I am getting 2900+ files as it gives 8 files for each day for 3-hourly data. After storing all these file in a folder I am using "*cdo merge $(ls .grb) 2013TS.grb" command to create a single file of annual Time series. But, it is ending up with an error "*too many open file*".
How to merge these files in such condition ?
I would like to also mention here that when I create 4 subsets from these files in order to lessen the number of files being merged using this command, it works, however, again merging those 4 merged file into a single file is giving vague result.

Any help will be highly appreciated.

Thanks and Regards.


Replies (3)

RE: Problem while merging .grb file - Added by Uwe Schulzweida almost 10 years ago

merge is the wrong operator for this task. Try it with the operator cat:

rm -f 2013TS.grb
cdo cat $(ls .grb) 2013TS.grb

RE: Problem while merging .grb file - Added by DS Bisht almost 10 years ago

Thanks for the reply, and yeah it worked with cat.
Could you please tell me how these two operators are different and when to use which one ?

RE: Problem while merging .grb file - Added by Uwe Schulzweida almost 10 years ago

cat should be used for files with the same variables on different timesteps and
merge is for files with different variables on the same timesteps.

    (1-3/3)