Skip to content

Commit

Permalink
updated usage document
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenpawley committed Jun 1, 2024
1 parent 85ce5f0 commit 9fc5760
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 167 deletions.
165 changes: 0 additions & 165 deletions docs/geoprocessing.qmd

This file was deleted.

Binary file removed docs/icon.png
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/usage.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ Methods contained within RasterLayer objects are specifically designed to be app

## Principles of working with Rasters

Methods that are applied to Raster objects are generally designed to be applied to the entire stack of raster datasets. For example, the `crop` method will crop all raster datasets in the stack to a common extent, and the `mask` method will apply a mask to all raster datasets in the stack. These methods always return a new Raster object, and do not modify the original Raster object by default.
Methods that are applied to Raster objects are generally designed to be applied to the entire stack of raster datasets. For example, the `crop` method will crop all raster datasets in the stack to a common extent, and the `mask` method will apply a mask to all raster datasets in the stack. These methods always return a new Raster object, and do not modify the original Raster object by default. Subsetting of individual bands uses the same principles as the `pandas` library, where the `loc` method is used to subset bands based on their names, and the `iloc` method is used to subset bands based on their index. Also similarly to `pandas`, subsetting a single band will return the object itself, in this case, a RasterLayer object, while subsetting multiple bands will return a new Raster object.

In contrast, methods that apply to individual RasterLayers are mostly related to extracting or summarizing metadata from the individual bands. For other methods that users may want to apply to individual bands, it is recommended to work with `rasterio` directly.
Methods that apply to individual RasterLayers are mostly related to extracting or summarizing metadata from the individual bands. For other methods that users may want to apply to individual bands, it is recommended to work with `rasterio` directly.

0 comments on commit 9fc5760

Please sign in to comment.