Skip to content

division on loading loses grid #190

@doutriaux1

Description

@doutriaux1
import cdms2, os, sys
f=cdms2.open(os.path.join(sys.prefix,"share","cdutil","navy_land.nc"))
navy_frac = f("sftlf")
navy_frac.getGrid()

gives

Grid has Python id 0x7f0b03574d68.
Gridtype: generic
Grid shape: (1080, 2160)
Order: yx

Also:

navy_frac = navy_frac / 100.
navy_frac.getGrid()

gives

Grid has Python id 0x7f0b03574d68.
Gridtype: generic
Grid shape: (1080, 2160)
Order: yx

But:

navy_frac = f("sftlf")/100.
navy_frac.getGrid()

gives

None

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions