Sounds like an out-of-memory error. Before defining your variable, make sure the size of the array isn't so large as to take up too much memory. Set your dimension environment to something smaller. For example, if you are looking at a vertical profile, you surely will not need two horizontally varying dimensions. You will need to make sure you are varying in the vertical, though. If you're averaging over time you probably should have a fixed time environment. See if any of that helps.<br>
<br>Jeff Duda<br><br><div class="gmail_quote">On Mon, Oct 3, 2011 at 3:25 AM, saeed bayat <span dir="ltr"><<a href="mailto:saeedbayat7276@gmail.com">saeedbayat7276@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear GrADS Users,<br>I am using RegCM4 outputs in GrADS 2.0.a9 oga(Linux OS) and have problem in<br>creating vertical profile map. When I define something(e.g define u1=ave(u,t=1,t=124)<br>for my data, I got this error:<br>
<br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">Define Error: Unable to allocate data memory</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)"> Size of request was -171990 grid elements</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">*** glibc detected *** /media/38794f14-fe58-45f0-b455-cef817dcc56a/Contents/Linux/Versions/2.0.a9.oga.1/x86_64/grads: double free or corruption (!prev): 0x0000000001ed54a0 ***</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">======= Backtrace: =========</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">/lib/libc.so.6(+0x775b6)[0x7f382f9b65b6]</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">/lib/libc.so.6(cfree+0x73)[0x7f382f9bce83]</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">/media/38794f14-fe58-45f0-b455-cef817dcc56a/Contents/Linux/Versions/2.0.a9.oga.1/x86_64/grads(gadef+0xe0a)[0x50b70a]</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">/media/38794f14-fe58-45f0-b455-cef817dcc56a/Contents/Linux/Versions/2.0.a9.oga.1/x86_64/grads(gacmd+0x192c)[0x51e30c]</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">/media/38794f14-fe58-45f0-b455-cef817dcc56a/Contents/Linux/Versions/2.0.a9.oga.1/x86_64/grads(Main+0x629)[0x495e39]</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">/lib/libc.so.6(__libc_start_main+0xfd)[0x7f382f95dc4d]</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">/media/38794f14-fe58-45f0-b455-cef817dcc56a/Contents/Linux/Versions/2.0.a9.oga.1/x86_64/grads[0x494da9]</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">======= Memory map: ========</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">00400000-00c71000 r-xp 00000000 08:05 16515127 /media/38794f14-fe58-45f0-b455-cef817dcc56a/Contents/Linux/Versions/2.0.a9.oga.1/x86_64/grads</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">00e71000-00e92000 rwxp 00871000 08:05 16515127 /media/38794f14-fe58-45f0-b455-cef817dcc56a/Contents/Linux/Versions/2.0.a9.oga.1/x86_64/grads</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">00e92000-011bd000 rwxp 00000000 00:00 0 </span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">01e3b000-01f44000 rwxp 00000000 00:00 0 [heap]</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f3828000000-7f3828021000 rwxp 00000000 00:00 0 </span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f3828021000-7f382c000000 ---p 00000000 00:00 0 </span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382e4ed000-7f382e6d6000 rwxp 00000000 00:00 0 </span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382e6d6000-7f382e6db000 r-xp 00000000 08:01 3410741 /usr/lib/libXfixes.so.3.1.0</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382e6db000-7f382e8da000 ---p 00005000 08:01 3410741 /usr/lib/libXfixes.so.3.1.0</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382e8da000-7f382e8db000 r-xp 00004000 08:01 3410741 /usr/lib/libXfixes.so.3.1.0</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382e8db000-7f382e8dc000 rwxp 00005000 08:01 3410741 /usr/lib/libXfixes.so.3.1.0</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382e8dc000-7f382e8e5000 r-xp 00000000 08:01 3410761 /usr/lib/libXrender.so.1.3.0</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382e8e5000-7f382eae4000 ---p 00009000 08:01 3410761 /usr/lib/libXrender.so.1.3.0</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382eae4000-7f382eae5000 r-xp 00008000 08:01 3410761 /usr/lib/libXrender.so.1.3.0</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382eae5000-7f382eae6000 rwxp 00009000 08:01 3410761 /usr/lib/libXrender.so.1.3.0</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382eae6000-7f382eaef000 r-xp 00000000 08:01 3410733 /usr/lib/libXcursor.so.1.0.2</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382eaef000-7f382ecee000 ---p 00009000 08:01 3410733 /usr/lib/libXcursor.so.1.0.2</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382ecee000-7f382ecef000 r-xp 00008000 08:01 3410733 /usr/lib/libXcursor.so.1.0.2</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382ecef000-7f382ecf0000 rwxp 00009000 08:01 3410733 /usr/lib/libXcursor.so.1.0.2</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382ecf0000-7f382ecf4000 r-xp 00000000 08:01 7602319 /lib/libuuid.so.1.3.0</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382ecf4000-7f382eef3000 ---p 00004000 08:01 7602319 /lib/libuuid.so.1.3.0</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382eef3000-7f382eef4000 r-xp 00003000 08:01 7602319 /lib/libuuid.so.1.3.0</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382eef4000-7f382eef5000 rwxp 00004000 08:01 7602319 /lib/libuuid.so.1.3.0</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382eef5000-7f382eefa000 r-xp 00000000 08:01 3410737 /usr/lib/libXdmcp.so.6.0.0</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382eefa000-7f382f0f9000 ---p 00005000 08:01 3410737 /usr/lib/libXdmcp.so.6.0.0</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382f0f9000-7f382f0fa000 r-xp 00004000 08:01 3410737 /usr/lib/libXdmcp.so.6.0.0</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382f0fa000-7f382f0fb000 rwxp 00005000 08:01 3410737 /usr/lib/libXdmcp.so.6.0.0</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382f0fb000-7f382f0fd000 r-xp 00000000 08:01 3410726 /usr/lib/libXau.so.6.0.0</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382f0fd000-7f382f2fd000 ---p 00002000 08:01 3410726 /usr/lib/libXau.so.6.0.0</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382f2fd000-7f382f2fe000 r-xp 00002000 08:01 3410726 /usr/lib/libXau.so.6.0.0</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382f2fe000-7f382f2ff000 rwxp 00003000 08:01 3410726 /usr/lib/libXau.so.6.0.0</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382f2ff000-7f382f316000 r-xp 00000000 08:01 3410691 /usr/lib/libICE.so.6.3.0</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382f316000-7f382f515000 ---p 00017000 08:01 3410691 /usr/lib/libICE.so.6.3.0</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382f515000-7f382f516000 r-xp 00016000 08:01 3410691 /usr/lib/libICE.so.6.3.0</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382f516000-7f382f517000 rwxp 00017000 08:01 3410691 /usr/lib/libICE.so.6.3.0</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382f517000-7f382f51a000 rwxp 00000000 00:00 0 </span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382f51a000-7f382f522000 r-xp 00000000 08:01 3410720 /usr/lib/libSM.so.6.0.1</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382f522000-7f382f721000 ---p 00008000 08:01 3410720 /usr/lib/libSM.so.6.0.1</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382f721000-7f382f722000 r-xp 00007000 08:01 3410720 /usr/lib/libSM.so.6.0.1</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382f722000-7f382f723000 rwxp 00008000 08:01 3410720 /usr/lib/libSM.so.6.0.1</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382f723000-7f382f73e000 r-xp 00000000 08:01 3411732 /usr/lib/libxcb.so.1.1.0</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382f73e000-7f382f93d000 ---p 0001b000 08:01 3411732 /usr/lib/libxcb.so.1.1.0</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382f93d000-7f382f93e000 r-xp 0001a000 08:01 3411732 /usr/lib/libxcb.so.1.1.0</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382f93e000-7f382f93f000 rwxp 0001b000 08:01 3411732 /usr/lib/libxcb.so.1.1.0</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382f93f000-7f382fab9000 r-xp 00000000 08:01 7602477 /lib/<a href="http://libc-2.11.1.so" target="_blank">libc-2.11.1.so</a></span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382fab9000-7f382fcb8000 ---p 0017a000 08:01 7602477 /lib/<a href="http://libc-2.11.1.so" target="_blank">libc-2.11.1.so</a></span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382fcb8000-7f382fcbc000 r-xp 00179000 08:01 7602477 /lib/<a href="http://libc-2.11.1.so" target="_blank">libc-2.11.1.so</a></span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382fcbc000-7f382fcbd000 rwxp 0017d000 08:01 7602477 /lib/<a href="http://libc-2.11.1.so" target="_blank">libc-2.11.1.so</a></span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382fcbd000-7f382fcc2000 rwxp 00000000 00:00 0 </span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382fcc2000-7f382fcd8000 r-xp 00000000 08:01 7602255 /lib/libgcc_s.so.1</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382fcd8000-7f382fed7000 ---p 00016000 08:01 7602255 /lib/libgcc_s.so.1</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382fed7000-7f382fed8000 r-xp 00015000 08:01 7602255 /lib/libgcc_s.so.1</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382fed8000-7f382fed9000 rwxp 00016000 08:01 7602255 /lib/libgcc_s.so.1</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f382fed9000-7f382ffcf000 r-xp 00000000 08:01 3411631 /usr/lib/libstdc++.so.6.0.13</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f382ffcf000-7f38301cf000 ---p 000f6000 08:01 3411631 /usr/lib/libstdc++.so.6.0.13</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f38301cf000-7f38301d6000 r-xp 000f6000 08:01 3411631 /usr/lib/libstdc++.so.6.0.13</span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f38301d6000-7f38301d8000 rwxp 000fd000 08:01 3411631 /usr/lib/libstdc++.so.6.0.13</span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f38301d8000-7f38301ed000 rwxp 00000000 00:00 0 </span><br style="color:rgb(204, 0, 0)">
<span style="color:rgb(204, 0, 0)">7f38301ed000-7f383026f000 r-xp 00000000 08:01 7602481 /lib/<a href="http://libm-2.11.1.so" target="_blank">libm-2.11.1.so</a></span><br style="color:rgb(204, 0, 0)"><span style="color:rgb(204, 0, 0)">7f383026f000-7f383046e000 ---p 00082000 08:01 7602481 /lib/<a href="http://libm-2.11.1.so" target="_blank">libm-2.11.1.so</a></span><br>
and X11 window disappear from screen.<br>So I decide to share my problem, maybe someone could help me what is wrong<br><br>Thanks in Advance<br><font color="#888888"><br>Saeed Bayat<br>M.A Student of Climatology<br>
</font><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Iowa State University<br>Meteorology Graduate Student<br><a href="http://www.meteor.iastate.edu/%7Ejdduda" target="_blank">www.meteor.iastate.edu/~jdduda</a><br>