grids

geodetic_engine.catalog.grids(*, authority=None, name=None, kind=None, installed=None, check_remote=False, remote_available=None, format=None, direct_download=None, open_license=None, used=None, operation=None, area_of_interest=None, contains=False, area_name=None, limit=None, offset=0)[source]

List the grid files the operations in the active database read.

Also those PROJ’s grid_alternatives table knows that no operation reads. Read from proj.db; nothing is downloaded. Every filter given must hold.

Parameters:
  • authority (str | Iterable[str] | None, default: None) – Only grids read by an operation of these authorities.

  • name (TextFilter | None, default: None) – Text the PROJ file name or an original name contains, without case, or a pattern.

  • kind (str | GridKind | Iterable[str | GridKind] | None, default: None) – Only these kinds, for example "vertical".

  • installed (bool | None, default: None) – True for only grids PROJ finds on this machine, False for only those it does not; see GridEntry.installed.

  • check_remote (bool, default: False) – Ask PROJ’s content delivery network which grids it publishes, to fill in GridEntry.remote_available. The only listing that uses the network; read once per process.

  • remote_available (bool | None, default: None) – True for only grids the network publishes, False for those it does not. Implies check_remote.

  • format (str | Iterable[str] | None, default: None) – Only these file formats, by name without case, for example "GTiff".

  • direct_download (bool | None, default: None) – True for only grids downloadable without registering, False for none.

  • open_license (bool | None, default: None) – True for only openly licensed grids, False for those that are not; a grid of unknown licence matches neither.

  • used (bool | None, default: None) – True for only grids some operation reads, False for those none does.

  • operation (ReferenceFilter | None, default: None) – Only grids these operations read, by code or entry.

  • area_of_interest (AreaFilter | None, default: None) – (west, south, east, north) in degrees, tested against the areas of use of the operations reading the grid.

  • contains (bool, default: False) – With area_of_interest, only grids with an area of use containing it entirely, rather than intersecting it.

  • area_name (TextFilter | None, default: None) – Text an area of use’s description contains, or a pattern.

  • limit (int | None, default: None) – At most this many entries.

  • offset (int, default: 0) – Skip this many entries first.

Return type:

Listing[GridEntry]

Returns:

The grids, ordered by file name.

Raises:

Example

>>> from geodetic_engine import catalog
>>> found = catalog.grids(operation="EPSG:15851")
>>> sorted(grid.name for grid in found)
['us_noaa_conus.tif']