Skip to content

Commit

Permalink
corrections ch04
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldorman committed Oct 11, 2024
1 parent 968b17d commit 8d2d873
Show file tree
Hide file tree
Showing 23 changed files with 43 additions and 4,912 deletions.
4 changes: 2 additions & 2 deletions 04-geometry-operations.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ The opposite operation, namely disaggregation, is when we increase the resolutio
Either of the supported resampling methods (see @sec-raster-resampling) can be used.
However, since we are not actually summarizing information but transferring the value of a large pixel into multiple small pixels, it makes sense to use either:
- Nearest neighbor resampling (`rasterio.enums.Resampling.nearest`), when want to keep the original values as-is, since modifying them would be incorrect (such as in categorical rasters)
- Nearest neighbor resampling (`rasterio.enums.Resampling.nearest`), when we want to keep the original values as-is, since modifying them would be incorrect (such as in categorical rasters)
- Smoothing techniques, such as bilinear resampling (`rasterio.enums.Resampling.bilinear`), when we would like the smaller pixels to reflect gradual change between the original values, e.g., when the disaggregated raster is used for visualization purposes
To disaggregate a raster, we go through exactly the same workflow as for aggregation, only using a different scaling factor, such as `factor=5` instead of `factor=0.2`, i.e., *increasing* the number of raster pixels instead of decreasing.
Expand Down Expand Up @@ -1293,7 +1293,7 @@ Possible arguments for `resampling` include:
- `rasterio.enums.Resampling.min`---Minimum
- `rasterio.enums.Resampling.max`---Maximum
- `rasterio.enums.Resampling.med`---Median
- `rasterio.enums.Resampling.sum`---Median
- `rasterio.enums.Resampling.sum`---Sum
Let's demonstrate resampling into a destination grid which is specified through numeric constraints, such as the extent and resolution.
Again, these could have been specified manually (such as here), or obtained from a template raster metadata that we would like to match.
Expand Down
Binary file modified output/plot_geopandas.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified output/plot_rasterio.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
82 changes: 41 additions & 41 deletions output/plot_rasterio2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified output/w_many_features.gpkg
Binary file not shown.
Binary file modified output/w_many_layers.gpkg
Binary file not shown.
Binary file modified output/world.gpkg
Binary file not shown.
2,078 changes: 0 additions & 2,078 deletions site_libs/bootstrap/bootstrap-icons.css

This file was deleted.

Binary file removed site_libs/bootstrap/bootstrap-icons.woff
Binary file not shown.
12 changes: 0 additions & 12 deletions site_libs/bootstrap/bootstrap.min.css

This file was deleted.

7 changes: 0 additions & 7 deletions site_libs/bootstrap/bootstrap.min.js

This file was deleted.

7 changes: 0 additions & 7 deletions site_libs/clipboard/clipboard.min.js

This file was deleted.

9 changes: 0 additions & 9 deletions site_libs/quarto-html/anchor.min.js

This file was deleted.

6 changes: 0 additions & 6 deletions site_libs/quarto-html/popper.min.js

This file was deleted.

205 changes: 0 additions & 205 deletions site_libs/quarto-html/quarto-syntax-highlighting.css

This file was deleted.

Loading

0 comments on commit 8d2d873

Please sign in to comment.