Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ncap2 make_bounds exceeded memory limit #251

Open
chrisdane opened this issue Dec 7, 2021 · 1 comment
Open

ncap2 make_bounds exceeded memory limit #251

chrisdane opened this issue Dec 7, 2021 · 1 comment

Comments

@chrisdane
Copy link

chrisdane commented Dec 7, 2021

Hi

ncap2 -O -4 -s 'defdim("bnds",2); time_bnds=make_bounds(time,$bnds,"time_bnds");' ncfile ncfile

(ncap2 version 4.9.3) of a 2.9G ncfile (ncdump -k = 64-bit offset; cdo showformat = NetCDF2) with

        time = UNLIMITED ; // (3780 currently)
...
        double time(time) ;
                time:standard_name = "time" ;
                time:units = "days since 2686-1-31 00:00:00" ;
                time:calendar = "proleptic_gregorian" ;
                time:axis = "T" ;
...

yields

exceeded memory limit (3006140416 > 2684354560), being killed

and the incomplete file ncfile.pid21269.ncap2.tmp is the result.

Is there a solution to this except running the command chunkwise and/or getting a bigger computer?

Thanks a lot!
Chris

@czender
Copy link
Member

czender commented Dec 7, 2021

Your command looks correct. The error message appears to come from your system, not from NCO. I think you may need to toy with the ulimits setting in your shell, if possible. Try ulimit -u unlimited, or talking to your sysadmin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants