energy_data_retrieval.sources.srtm.client#

NASA SRTMGL1 one-arcsecond HGT tiles from ESA’s public SNAP auxiliary mirror.

energy_data_retrieval.sources.srtm.client.tile_name(latitude, longitude)[source]#

Southwest tile name; negative coordinates use floor, never truncation.

Parameters:
  • latitude (float)

  • longitude (float)

Return type:

str

class energy_data_retrieval.sources.srtm.client.SRTMClient(http)[source]#

Bases: object

Download the finest public SRTM grid: 1 arcsecond, approximately 30 m.

This is not 1 m terrain. HGT samples are 3601 x 3601 signed big-endian int16 posts, including shared boundary posts. Heights remain EGM96 metres; no SNAP ellipsoid correction is applied. Missing tiles raise retrieval errors; absent land or mirror coverage is never replaced by zero.

Parameters:

http (HTTPClient)

download_tile(directory, *, latitude, longitude, expected_sha256=None)[source]#
Parameters:
  • directory (Path)

  • latitude (float)

  • longitude (float)

  • expected_sha256 (str | None)

Return type:

tuple[Path, RequestRecord]