pywasp.lincom.open_raster

pywasp.lincom.open_raster(mapfilename, srs=None)[source]

Reads grid from raster file

Warning

This function is experimental and its signature may change.

Parameters:
  • mapfilename (Path) – Path to the rasterfile to be opened

  • srs (int, dict, str, or pyproj.CRS) – Value to create pyproj.CRS object or an existing pyproj.CRS object. (Default: use the CRS from the file.)

Returns:

DataArray – DataArray containing the topographic data of interest

Notes

Open a rasterio file and rename dimensions to match PyWAsP Requirements. Also ensure that the raster is ordered from lower-left not upper-left.