Skip to content

Assign and map a CRS in one step #29

Open
@benbovy

Description

@benbovy

This might be a question out of the scope of the PR, but I'm wondering about the need to raise a warning or something if assign_crs is used without subsequently calling map_crs to avoid getting into logically inconsistent situations. Maybe link map_crs in the assign_crs API docs too?

For example, you can assign_crs without warning or error, but then as soon as you try to access one of the .crs values you hit:

ValueError: found multiple CRS in Dataset or DataArray:
spatial_ref: EPSG:32610
lat: EPSG:4326

Originally posted by @scottyhq in #27 (comment)

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