gt_from_dim_bbox() computes geotransform coefficients from raster
dimensions and a bounding box. The resulting geotransform will always be
north-up (no rotation).
Examples
# 1-degree global grid
gt <- gt_from_dim_bbox(c(360, 180), c(-180, -90, 180, 90))
gt
#> [1] -180 1 0 90 0 -1
# verify round-trip
bbox_from_dim_gt(c(360, 180), gt)
#> [1] -180 -90 180 90