Skip to content

Add option to return dataset on cmod_functions format #132

@Sosnowsky

Description

@Sosnowsky
grid_r, grid_z = np.meshgrid(ds.x.values, ds.y.values)
ds = xr.Dataset(
        {"frames": (["y", "x", "time"], ds.n.values)},
        coords={
            "R": (["y", "x"], grid_r),
            "Z": (["y", "x"], grid_z),
            "time": (["time"], ds.t.values),
        },
    )
return ds

Metadata

Metadata

Assignees

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