Variable full of nan's

From: Larsen, Jesper <jlar_at_nyahnyahspammersnyahnyah>
Date: Fri, 11 Jan 2008 12:10:25 +0100

Hi PyNIO people,

I have encountered a problem when reading in one of the UNIDATA NetCDF
example files:

The variables (or at least some of them) seem to be full of nan's when
reading it in using PyNIO. But if I use for example the ncview
application they seem to contain valid data. My Nio version is 1.2.0 and
my system (uname -a) is:

Linux dmu-ws-202 #1 SMP Thu May 17 14:00:09 UTC 2007
i686 i686 i386 GNU/Linux

I have attached a script which (at least on my computer) shows the
problem. A am wondering if this is due to a bug in PyNIO or something

Kind regards,

import Nio
print Nio.__version__
file = Nio.open_file('')
var = file.variables['Geopotential_height']
print var[:] # Full of nan's

pyngl-talk mailing list
Received on Fri Jan 11 2008 - 04:10:25 MST

This archive was generated by hypermail 2.2.0 : Thu Jan 31 2008 - 22:46:32 MST