Project

General

Profile

gtc and ltc on packed variables

Added by Barbara Tencer over 10 years ago

Hi,

I have a nc file with a packed variable (the variable is type short and it has a scale_factor type float). By applying functions such as gtc or ltc I get 0 and 1.000000014901161 instead of 0 and 1 as I should get, even though there's no warning or error message.

But if I unpack the variable before applying the function, the result is as expected.

Is there anything I'm doing wrong? Am I always suppose to work with the unpacked version of the variables?

Thanks for your help,
Bárbara


Replies (1)

RE: gtc and ltc on packed variables - Added by Jaison-Thomas Ambadan over 10 years ago

Hi,

try with the "-b F64" option

See the doc: https://code.zmaw.de/embedded/cdo/1.6.1/cdo.html#x1-70001.2.1 for more info

Cheers,
J

    (1-1/1)