Skip to content

Commit

Permalink
update loading doc
Browse files Browse the repository at this point in the history
  • Loading branch information
deastwoo committed Dec 1, 2021
1 parent f4d145a commit 8bed1f9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions doc/source/Loading.rst
Expand Up @@ -107,3 +107,19 @@ what the base image is.
LC08_L2SP_171060_20210227_20210304_02_T1_QA_PIXEL
>>> print (ds.parameter_filename)
Landsat-8_sample_L2/LC08_L2SP_171060_20210227_20210304_02_T1_QA_PIXEL.TIF
Specifying your Coordinate Reference System
-------------------------------------------

At load you can also specify what coordinate reference system (CRS) you want to handle your dataset in.

.. code-block:: python
>>> import yt
>>> import yt.extensions.georaster
>>> filenames = glob.glob("Landsat-8_sample_L2/*.TIF") + \
... glob.glob("M2_Sentinel-2_test_data/*.jp2")
>>> ds = yt.load(*filenames, crs="epsg:32736")
This should work for all projected systems. Instead of using the CRS of your base image the dataset is assigned the CRS you provide and yt will convert everything into this coordinate reference system as you query that data.

0 comments on commit 8bed1f9

Please sign in to comment.