Skip to content

Question on using .crs - Rioxarray Help #113

Answered by giswqs
minananada asked this question in Q&A
Discussion options

You must be logged in to vote

The output you’re seeing from data.rio.crs is the complete Well-Known Text (WKT) representation of the Coordinate Reference System (CRS), which includes detailed information about the projection, datum, and units.

If you're expecting a simpler output like EPSG:32611, you can use the to_epsg() method to extract the EPSG code directly. Here’s how you can do it:

epsg_code = data.rio.crs.to_epsg()
print(epsg_code)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@GeoVISLAB2024
Comment options

@minananada
Comment options

Answer selected by minananada
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants