hello greg,

> I did try to post this on sourceforge (several times) - it appears to

> be broken. Feel free to farm it out to anyone who you think may assist.

since you tried sf, i'll answer this personally.

but sf works for tens of 1000s of people, so followup here.

> I'm trying to obtain the mean of two variables using

>

> ncflint tmax.nc tmin.nc tmean.nc

>

> The inputs are float variables (with scale and offset values). The

> output is reported as a float (using ncdump -h) but stored as (unscaled)

> integer values. That is, the result is "correct" to within a floor

> operation (validated with 3rd party software).

>

> Is this intended behaviour?

No, this is unintended.

Arithmetic operators are intended to store the results as

the unpacked type of the inputs.

Thanks for pointing it out.

It's now TODO nco1078. I'll try to fix before next release.

I've already created a regression test to demonstrate the problem.

>Can you suggest how to get genuine

> float-valued means?

For now the only workaround is to unpack the variables before

using ncflint, i.e., use ncpdq -U first, then do ncflint.

cz

>

> Thanks,

> Greg