Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cdutil.ANNUALCYCLE.departures lopping off the final month #36

Closed
chaosphere2112 opened this issue Nov 22, 2016 · 0 comments
Closed

cdutil.ANNUALCYCLE.departures lopping off the final month #36

chaosphere2112 opened this issue Nov 22, 2016 · 0 comments
Assignees
Labels
Milestone

Comments

@chaosphere2112
Copy link
Contributor

@chaosphere2112 chaosphere2112 commented Nov 22, 2016

LWP_forCharles.nc.zip

@doutriaux1
There seems to be an issue with cdutil.ANNUALCYCLE.departures. It is lopping off the final month, like so:

In [1]: import cdms2 as cdms

In [2]: f=cdms.open('LWP_forCharles.nc')

In [5]: LWP_grd.shape
Out[5]: (252, 45, 180)

In [9]: anomLWP_grd = cdutil.ANNUALCYCLE.departures(LWP_grd)

In [10]: anomLWP_grd.shape
Out[10]: (251, 45, 180)

In [11]: LWP_grd.getTime()
Out[11]:
id: axis_229493
Designated a time axis.
units: months since 1988-01-01
Length: 252
First: 0.0
Last: 251.0
Other axis attributes:
calendar: gregorian
axis: T
realtopology: linear
Python id: 0x7fa604766890

In [12]: anomLWP_grd.getTime()
Out[12]:
id: time
Designated a time axis.
units: months since 1988-01-01
Length: 251
First: 0.0
Last: 250.0
Other axis attributes:
calendar: gregorian
axis: T
Python id: 0x7fa60431ee90

Note how the first dimension is shortened by 1.

Migrated from: CDAT/cdat#2014

@doutriaux1 doutriaux1 added the bug label Jan 9, 2017
@dnadeau4 dnadeau4 added the invalid label Apr 20, 2017
@dnadeau4 dnadeau4 closed this Apr 20, 2017
@doutriaux1 doutriaux1 modified the milestone: 2.10 May 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants