-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
kind/bugBug in the softwareBug in the software
Description
As discussed in an email with @doutriaux1 and @dnadeau4 the same function works in cdutil 2.10, while failed in cdutil 3.1.0
Below is the code:
import cdms2
import cdutil
filename = 'test_data_amip_r1i1p1_mo_regrid_3x3_sgp.nc'
fin = cdms2.open(filename)
var = fin('tas')
cdutil.setTimeBoundsMonthly(var)
var_season = cdutil.ANNUALCYCLE.climatology(var).squeeze()
Below is the error:
Traceback (most recent call last):
File "cdutil_test.py", line 8, in <module>
var_season = cdutil.ANNUALCYCLE.climatology(var).squeeze()
File "/Users/zhang40/anaconda2/envs/arm_diags_env_0207_1/lib/python2.7/site-packages/cdms2/avariable.py", line 1706, in squeeze
return(MV.squeeze(self))
File "/Users/zhang40/anaconda2/envs/arm_diags_env_0207_1/lib/python2.7/site-packages/cdms2/MV2.py", line 352, in squeeze
maresult, axes=axes, attributes=attributes, grid=grid, id=id)
File "/Users/zhang40/anaconda2/envs/arm_diags_env_0207_1/lib/python2.7/site-packages/cdms2/tvariable.py", line 203, in __init__
self.initDomain(axes, copyaxes=copyaxes)
File "/Users/zhang40/anaconda2/envs/arm_diags_env_0207_1/lib/python2.7/site-packages/cdms2/tvariable.py", line 357, in initDomain
raise CDMSError("Wrong number of axes to initialize domain.")
cdms2.error.CDMSError: Wrong number of axes to initialize domain.
Metadata
Metadata
Assignees
Labels
kind/bugBug in the softwareBug in the software