You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: latest/.doctrees/nbsphinx/getting_started/crs_management.ipynb
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@
43
43
"If you have opened a dataset and the Coordinate Reference System (CRS) can be determined, you can access it via the `rio.crs` accessor.\n",
44
44
"\n",
45
45
"#### Search order for the CRS (DataArray and Dataset):\n",
46
-
"1. Look in attributes (`attrs`) of your data array for the `grid_mapping` coordinate name.\n",
46
+
"1. Look in `encoding` of your data array for the `grid_mapping` coordinate name.\n",
47
47
" Inside the `grid_mapping` coordinate first look for `spatial_ref` then `crs_wkt` and lastly the CF grid mapping attributes.\n",
48
48
" This is in line with the Climate and Forecast (CF) conventions for storing the CRS as well as GDAL netCDF conventions.\n",
49
49
"2. Look in the `crs` attribute and load in the CRS from there. This is for backwards compatibility with `xarray.open_rasterio`, which is deprecated since version 0.20.0. We recommend using `rioxarray.open_rasterio` instead.\n",
Copy file name to clipboardExpand all lines: latest/_sources/getting_started/crs_management.ipynb.txt
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@
43
43
"If you have opened a dataset and the Coordinate Reference System (CRS) can be determined, you can access it via the `rio.crs` accessor.\n",
44
44
"\n",
45
45
"#### Search order for the CRS (DataArray and Dataset):\n",
46
-
"1. Look in attributes (`attrs`) of your data array for the `grid_mapping` coordinate name.\n",
46
+
"1. Look in `encoding` of your data array for the `grid_mapping` coordinate name.\n",
47
47
" Inside the `grid_mapping` coordinate first look for `spatial_ref` then `crs_wkt` and lastly the CF grid mapping attributes.\n",
48
48
" This is in line with the Climate and Forecast (CF) conventions for storing the CRS as well as GDAL netCDF conventions.\n",
49
49
"2. Look in the `crs` attribute and load in the CRS from there. This is for backwards compatibility with `xarray.open_rasterio`, which is deprecated since version 0.20.0. We recommend using `rioxarray.open_rasterio` instead.\n",
<h3>Search order for the CRS (DataArray and Dataset):<aclass="headerlink" href="#Search-order-for-the-CRS-(DataArray-and-Dataset):" title="Link to this heading"></a></h3>
123
123
<olclass="arabic simple">
124
-
<li><p>Look in attributes (<codeclass="docutils literal notranslate"><spanclass="pre">attrs</span></code>) of your data array for the <codeclass="docutils literal notranslate"><spanclass="pre">grid_mapping</span></code> coordinate name. Inside the <codeclass="docutils literal notranslate"><spanclass="pre">grid_mapping</span></code> coordinate first look for <codeclass="docutils literal notranslate"><spanclass="pre">spatial_ref</span></code> then <codeclass="docutils literal notranslate"><spanclass="pre">crs_wkt</span></code> and lastly the CF grid mapping attributes. This is in line with the Climate and Forecast (CF) conventions for storing the CRS as well as GDAL netCDF conventions.</p></li>
124
+
<li><p>Look in <codeclass="docutils literal notranslate"><spanclass="pre">encoding</span></code> of your data array for the <codeclass="docutils literal notranslate"><spanclass="pre">grid_mapping</span></code> coordinate name. Inside the <codeclass="docutils literal notranslate"><spanclass="pre">grid_mapping</span></code> coordinate first look for <codeclass="docutils literal notranslate"><spanclass="pre">spatial_ref</span></code> then <codeclass="docutils literal notranslate"><spanclass="pre">crs_wkt</span></code> and lastly the CF grid mapping attributes. This is in line with the Climate and Forecast (CF) conventions for storing the CRS as well as GDAL netCDF conventions.</p></li>
125
125
<li><p>Look in the <codeclass="docutils literal notranslate"><spanclass="pre">crs</span></code> attribute and load in the CRS from there. This is for backwards compatibility with <codeclass="docutils literal notranslate"><spanclass="pre">xarray.open_rasterio</span></code>, which is deprecated since version 0.20.0. We recommend using <codeclass="docutils literal notranslate"><spanclass="pre">rioxarray.open_rasterio</span></code> instead.</p></li>
126
126
</ol>
127
127
<p>The value for the <codeclass="docutils literal notranslate"><spanclass="pre">crs</span></code> is anything accepted by <codeclass="docutils literal notranslate"><spanclass="pre">rasterio.crs.CRS.from_user_input()</span></code></p>
Copy file name to clipboardExpand all lines: latest/getting_started/crs_management.ipynb
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@
43
43
"If you have opened a dataset and the Coordinate Reference System (CRS) can be determined, you can access it via the `rio.crs` accessor.\n",
44
44
"\n",
45
45
"#### Search order for the CRS (DataArray and Dataset):\n",
46
-
"1. Look in attributes (`attrs`) of your data array for the `grid_mapping` coordinate name.\n",
46
+
"1. Look in `encoding` of your data array for the `grid_mapping` coordinate name.\n",
47
47
" Inside the `grid_mapping` coordinate first look for `spatial_ref` then `crs_wkt` and lastly the CF grid mapping attributes.\n",
48
48
" This is in line with the Climate and Forecast (CF) conventions for storing the CRS as well as GDAL netCDF conventions.\n",
49
49
"2. Look in the `crs` attribute and load in the CRS from there. This is for backwards compatibility with `xarray.open_rasterio`, which is deprecated since version 0.20.0. We recommend using `rioxarray.open_rasterio` instead.\n",
0 commit comments