<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 14px;" lang="x-unicode">Dear helpers,
<br>
<br>
I'm trying to do summation of a 3D array using function (sum).
When the
<br>
data is 60x512x512 in dimension it works fine. However, with a
larger
<br>
data set of 60x1536x1536, the summation came to 4.29497e+09 which
is
<br>
definitely wrong. I had to use dim_sum_n to sum two dimension
first and
<br>
then another sum. I also find summation value varies if I
dim_sum_n
<br>
different dimensions first. This problem only stands out with
variable
<br>
QVAPOR (not QCLOUD or other mixing ratios) which have values at
every
<br>
grids.
<br>
<br>
The code is attached. I'm working on Yellowstone supercomputer.
The
<br>
script has my working directory. You should be able to run the
script on
<br>
Yellowstone. I'm using ncl/6.3.0.
<br>
<br>
Would you recommend a good way to do summation? I'm trying to
calculate
<br>
total mass.
<br>
<br>
I would appreciate any of your help! Thanks in advance.
<br>
<br>
Best,
<br>
Xia
<br>
<br>
<div class="moz-txt-sig"><span class="moz-txt-tag">-- <br>
</span>Xia Chu
<br>
<br>
PhD Candidate
<br>
Graduate Research Assistant
<br>
Department of Atmospheric Science
<br>
University of Wyoming
<br>
Dept. 3038, 1000 E. University Ave.
<br>
Laramie, Wyoming 82071
<br>
<br>
</div>
</div>
<br>
</body>
</html>