Skip to content

Problem witg accessing 3D Slice files. #88

@kriboe90

Description

@kriboe90

When reading a 3D SLCF by

slc = sim.slices.get_by_id("SMOKE_DENSITY_3D")
smoke_density_array = slc.to_global()

I get "ValueError: could not broadcast input array from shape (20,20,21) into shape (20,20,20)".

Looks like it has to do with the cell_centered = True state.
If I manually override it by
slc.cell_centered = False
it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions