Closed bnlawrence closed 8 years ago
Hi Bryan,
I think David changed cf-python hasbounds to isbounded a while back. If you are using the latest cf-python then I think you shouldn't see this error.
Cheers Andy
On 10/17/14 21:13, Bryan Lawrence wrote:
This code
|import cf import cfplot as cfp #
script generated by cfgui version 0.0.1
# # dataset=cf.read('../../Data/ggap199006200600.nc') # fields=[dataset[i] for i in [9]] sfield=fields[0] kwargs={} kwargs['dim2']=cf.wi(-89.1415,89.1415) kwargs['dim3']=cf.wi(0.0,358.875) kwargs['dim0']=cf.wi(0.0,0.0) kwargs['dim1']=cf.wi(1.0,1000.0) sfield=sfield.subspace(kwargs) plotOptions={'mapset': {'proj': 'cyl'}, 'gopen': {'rows': 1, 'columns': 2}, 'nup': 2, 'con': {'colorbar': None, 'blockfill': 1, 'fill': None, 'ylog': None, 'negative_line style': None, 'xlog': None, 'colorbar_orientation': None, 'lines': None, 'ptype': Non e, 'line_labels': True}} cfp.gopen(plotOptions['gopen']) plotOptions['con']['title']=sfield.file cfp.gpos(1) plotOptions['con']['title']=' long_name:p:1000.0 ' slicer={'dim1': 1000.0} cfp.con(sfield.subspace(slicer),plotOptions['con']) |
generates the error
python2.7 debug.py Traceback (most recent call last): File "debug.py", line 24, in cfp.con(sfield.subspace(slicer),plotOptions['con']) File "/usr/lib/python2.7/site-packages/cfplot/cfplot.py", line 312, in con if f[0].coord('lon').isbounded: AttributeError: 'DimensionCoordinate' object has no attribute 'isbounded' — Reply to this email directly or view it on GitHub https://github.com/ajheaps/CF-View/issues/6.
Andy Heaps
National Centre for Atmospheric Science (NCAS)
Meteorology Department,
Reading University,
Earley Gate,
PO Box 243,
Reading RG6 6BB,
U.K.
tel: 0118 378 7840
fax: 0118 378 8316
e-mail: a.j.heaps@rdg.ac.uk
Closed as this no longer occurs as per previous comment.
This code
generates the error