[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #42353] ncread reading data incorrectly
From: |
Muhali |
Subject: |
[Octave-bug-tracker] [bug #42353] ncread reading data incorrectly |
Date: |
Wed, 14 May 2014 12:21:32 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 |
URL:
<http://savannah.gnu.org/bugs/?42353>
Summary: ncread reading data incorrectly
Project: GNU Octave
Submitted by: muhali
Submitted on: Wed 14 May 2014 05:21:30 AM PDT
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
The following example illustrates that ncread reads data incorrect:
pkg load netcdf
url =
"http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/udel.airt.precip/precip.mon.total.v301.nc"
x = ncread(url, "precip",[1 1 1], [720 360 1], [1 1 1]);
xm = max(x(:))
max(x(x~=xm))
which gives xm = 3276.7 and max(x(x~=xm)) = 99.5. The latter value is the
correct maximum, as one can test with other netcdf packages (e.g. cdo).
I suspect that the error occurs because the missing value
undef = ncinfo(file).Variables(4).Attributes(3)
is not recognized as such; it is an int16 variable with value 32767, which
after scaling results in the maximum value of 3276.7.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42353>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #42353] ncread reading data incorrectly,
Muhali <=