You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 -
importcdms2incat=cdms2.open('catalog.xml', 'r') # A catalog made with cdscan.invar=incat['var_name']
invar.dtype# dtype(float32)outfile=cdms2.open('newfile.nc', 'w')
outfile.createVariableCopy(invar)
outvar=outfile['var_name']
outvar.dtype# dtype(float64)
Thanks
The text was updated successfully, but these errors were encountered:
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 -
Thanks
The text was updated successfully, but these errors were encountered: