Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default CRS and nodata #35

Open
davidbrochart opened this issue Jan 16, 2021 · 0 comments
Open

Default CRS and nodata #35

davidbrochart opened this issue Jan 16, 2021 · 0 comments

Comments

@davidbrochart
Copy link
Collaborator

When a DataArray is passed without any CRS, we could assume that it is WGS 84 and write it automatically. Same for nodata, we could assume it's np.nan (if the type of the data is floating-point):

da = da.rio.write_crs(4326)  # WGS 84
da = da.rio.write_nodata(np.nan)

See #34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant