gibsGridfunction
The Geographic (EPSG:4326) tile matrix NASA's imagery service publishes, read from its capabilities on 2026-11-13.
A pixel is 0.5625 / 2^level degrees. Tiles are 512 pixels, the corner of column 0 and row 0 is longitude -180 and latitude 90, and a level has as many tiles as it takes to cover the Earth, so levels 0, 1 and 2 run past it.
Import it
import { gibsGrid } from "@johnmorrisdotca/chikyu-earth/door";
Definition
function gibsGrid(matrix: "31.25m" | "250m" | "500m"): MapGrid
Parameters
| Name | Type | Description |
|---|---|---|
matrix | "31.25m" | "250m" | "500m" |
|
Returns
MapGrid
The grid.
Examples
import { gibsGrid } from "@johnmorrisdotca/chikyu-earth/door";
console.log(gibsGrid("250m").levels[3]);{
level: 3,
width: 5120,
columns: 10,
rows: 5,
west: -180,
north: 90,
tileLon: 36,
tileLat: 36
}What it prints (run when this page was built)