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

createVariableCopy() upcasting variables open from cdml catalog files. #186

timbedin opened this issue Jun 3, 2013 · 1 comment


Copy link

timbedin commented Jun 3, 2013

Calling the createVariableCopy() method on a newly created file object seems to create a double rather than a float variable when the variable to copy is open from a cdml catalog.
For example -

import cdms2

incat ='catalog.xml', 'r')  # A catalog made with cdscan.
invar  = incat['var_name'] 
invar.dtype  # dtype(float32)

outfile ='', 'w')

outvar = outfile['var_name'] 
outvar.dtype # dtype(float64)


@ghost ghost assigned doutriaux1 Jun 3, 2013
Copy link

Thx for pointing this out.

@doutriaux1 doutriaux1 added this to the 2.3 milestone Mar 2, 2015
doutriaux1 added a commit that referenced this issue Aug 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants