Skip to content

cdutil climos fail on file variables. #1391

@doutriaux1

Description

@doutriaux1
>>> o3tor_anom = cdutil.ANNUALCYCLE.departures(o3tor) this is where I get the error. 


Here is the complete error stack:

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdutil/times.py", line 1303, in departures

    u=self.month_fix(slab)

  File "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdutil/times.py", line 1257, in month_fix

    t.toRelativeTime("months since "+str(tc))

  File "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdms2/axis.py", line 852, in toRelativeTime

    self[i]=tmp2

  File "/usr/local/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdms2/axis.py", line 1903, in __setitem__

    return apply(self._obj_.setitem,(index,numpy.ma.filled(value)))

IOError: cdunif: write access to read-only file


The complete info for the "o3tor" variable is given below, just in case you think there is something wrong with the variable:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions