Package: vaster 0.6.0

Michael Sumner

vaster: Tools for Raster Grid Logic

Provides raster grid logic, operations that describe a discretized rectangular domain and do not require access to materialized data. Grids are arrays with dimension and extent, and many operations are functions of dimension only: number of columns, number of rows, or they are a combination of the dimension and the extent the range in x and the range in y in that order. Here we provide direct access to this logic without need for connection to any materialized data or formats. Grid logic includes functions that relate the cell index to row and column, or row and column to cell index, row, column or cell index to position. These methods are described in Loudon, TV, Wheeler, JF, Andrew, KP (1980) <doi:10.1016/0098-3004(80)90015-1>, and implementations were in part derived from Hijmans R (2024) <doi:10.32614/CRAN.package.terra>.

Authors:Michael Sumner [aut, cre], Robert Hijmans [ctb]

vaster_0.6.0.tar.gz
vaster_0.6.0.zip(r-4.7)vaster_0.6.0.zip(r-4.6)vaster_0.6.0.zip(r-4.5)
vaster_0.6.0.tgz(r-4.6-x86_64)vaster_0.6.0.tgz(r-4.6-arm64)vaster_0.6.0.tgz(r-4.5-x86_64)vaster_0.6.0.tgz(r-4.5-arm64)
vaster_0.6.0.tar.gz(r-4.7-arm64)vaster_0.6.0.tar.gz(r-4.7-x86_64)vaster_0.6.0.tar.gz(r-4.6-arm64)vaster_0.6.0.tar.gz(r-4.6-x86_64)
vaster_0.6.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
vaster/json (API)

# Install 'vaster' in R:
install.packages('vaster', repos = c('https://hypertidy.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/hypertidy/vaster/issues

Pkgdown/docs site:https://hypertidy.github.io

On CRAN:

Conda:

raster

7.81 score 8 stars 4 packages 45 scripts 513 downloads 64 exports 0 dependencies

Last updated from:63ba4759e9. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK131
linux-devel-x86_64OK160
source / vignettesOK158
linux-release-arm64OK120
linux-release-x86_64OK120
macos-release-arm64OK88
macos-release-x86_64OK179
macos-oldrel-arm64OK120
macos-oldrel-x86_64OK194
windows-develOK74
windows-releaseOK73
windows-oldrelOK90
wasm-releaseOK133

Exports:adjacencyalign_extentbuffer_extentcell_from_colcell_from_extentcell_from_rowcell_from_row_colcell_from_rowcol_combinecell_from_xycol_from_cellcol_from_xdraw_extentextent_dim_to_gtextent_dimensionextent_from_cellextent_vrtfit_dimsfrom_xyzgdal_tegdal_tsgeo_transform0geo_world0geotransform_to_worldgt_dim_to_extentintersect_extentn_celln_coln_roworiginplot_extentraster_sfiorasterio_idxrasterio_to_sfiorasterio0row_from_cellrow_from_yrowcol_from_cellsfio_to_rasteriosnap_extentts_tevaster_boundaryvaster_boundary_cellvaster_listxyzvaster_longvcropworld_to_geotransformx_centrex_cornerx_from_cellx_from_colx_maxx_minx_resxlimxyxy_from_celly_centrey_cornery_from_celly_from_rowy_maxy_miny_resylim

Dependencies:

Grid Fundamentals & Concepts
What is vaster? | The Virtual Grid Model | Cell Numbering Convention | Resolution and Origin | Extent Properties | Coordinate Arrays | Comparison with raster/terra | Next Steps

Last update: 2026-02-27
Started: 2026-02-26

Cell Operations
Overview | Cell Indexing | Cells ↔ Coordinates | From cells to coordinates | From coordinates to cells | Cells ↔ Row/Column | From cells to row/column | From row/column to cells | Rows/Columns ↔ Coordinates | Cells ↔ Extents | Extent from cells | Cells from extent | Handling Invalid Inputs | Practical Example: Sampling Grid Points | See Also

Last update: 2026-02-26
Started: 2026-02-26

Extent Alignment & Cropping
Overview | The Alignment Problem | align_extent() | snap_extent() | Grid Origin | vcrop() | intersect_extent() | extent_dimension() | Practical Example: Pre-computing Crop Parameters | GDAL Integration | Summary

Last update: 2026-02-26
Started: 2026-02-26

GDAL Interoperability
Introduction | GDAL GeoTransform | Converting to GeoTransform | Converting from GeoTransform | World Files | Converting to World File Format | GDAL RasterIO | Converting Extent to RasterIO Window | Using with vapour or stars | Converting to sf-style RasterIO | VRT Files | Extracting Extent from VRT | Practical Example: Pre-computing Read Parameters | Practical Example: Creating Aligned Grids | Summary

Last update: 2026-02-26
Started: 2026-02-26

grid-logic
Grid logic | Another example

Last update: 2025-08-04
Started: 2025-08-04

Readme and manuals

Help Manual

Help pageTopics
vaster: Tools for Raster Grid Logicvaster-package vaster
Cell adjacencyadjacency
Crop an extent, snapped to the grainalign_extent
Cellscells cell_from_col cell_from_extent cell_from_row cell_from_rowcol_combine cell_from_row_col cell_from_xy col_from_cell extent_from_cell rowcol_from_cell row_from_cell xy_from_cell x_from_cell y_from_cell
Coordinatescol_from_x coordinates row_from_y xy x_centre x_corner x_from_col y_centre y_corner y_from_row
Draw extentdraw_extent
Create geotransform from extent and dimensionextent_dim_to_gt
Dimension for an aligned extentextent_dimension
Extents from VRT (virtual raster data set of GDAL)extent_vrt
Aspect ratio of dimension conflated with bboxfit_dims
Derive a grid from XYZ pointsfrom_xyz
Geo transform parameter creatorgeo_transform0
World file parameter creatorgeotransform_to_world geo_world0
Gridgrid n_cell n_col n_row xlim x_max x_min x_res ylim y_max y_min y_res
Determine extent from geotransform vector and dimensiongt_dim_to_extent
Intersect extentintersect_extent
Origin of grid alignmentorigin
Plot an extentplot_extent
RasterIO index windowrasterio_idx raster_sfio
The sf/stars RasterIO listrasterio_to_sfio
GDAL RasterIO parameter creatorrasterio0
sf package RasterIO from RasterIO window vectorsfio_to_rasterio
Snap extent to resolution (buffer extent)buffer_extent snap_extent
Target size and extent for GDAL command linegdal_te gdal_ts ts_te
Grid boundary in native resolutionvaster_boundary
Grid boundary cell indexvaster_boundary_cell
Image xyz listvaster_listxyz
Convert to long form coordinatesvaster_long
Virtual grid modificationvcrop
Create geotransform from world vectorworld_to_geotransform