I am trying to write data and it keeps giving me an error and exiting.
(note this assumes the reader is familiar with the pdb python debugging
program)
***********************************************************
-> self.ncfh.variables[self.grib2cdf_name[var]].assign_value(v)
(Pdb) v
array([[ 25.03199959, 25.14284134, 25.25346947, ..., 24.76436043,
24.65281487, 24.54107094],
[ 25.16628456, 25.27758026, 25.38866425, ..., 24.8975563 ,
24.7855587 , 24.67336464],
[ 25.30053139, 25.41228294, 25.52382088, ..., 25.03071022,
24.91825867, 24.80561066],
...,
[ 24.69640923, 24.80612564, 24.91562653, ..., 24.43147659,
24.32105255, 24.21042633],
[ 24.5620079 , 24.67127609, 24.78032875, ..., 24.29815102,
24.18817329, 24.07799339],
[ 24.42757988, 24.53640175, 24.64500618, ..., 24.16479492,
24.05526161, 23.94552612]], dtype=float32)
(Pdb) len(v), len(v[0])
(465, 385)
(Pdb) self.ncfh.dimensions
{'latitude': 465, 'longitude': 385, 'time': 1}
(Pdb) self.ncfh.variables['latitude'].dimensions
('latitude', 'longitude')
(Pdb) var
'gridlat_0'
(Pdb) c
*********************************************************************
At this point I'm seeing one of two errors:
ncendef: ncid 65536: HDF error
or else I get a dimensional mismatch error. (But as you can see, the
dimensions are identical.)
-- -- Daniel Gilmore (AceInfo Solutions) PGB/MDL/OST/NWS/NOAA Office #: SSMC2-10357 Phone: 301.713.0224 x101 Cell: 703.232.9603
_______________________________________________
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Mon Mar 26 12:27:21 2012
This archive was generated by hypermail 2.1.8 : Wed Apr 11 2012 - 14:41:42 MDT