pyrad.io.read_idrisi_data#
- pyrad.io.read_idrisi_data(fname, fill_value=None)[source]#
Reads DEM data from an IDRISI .rst file
- Parameters:
fname (str) – name of the file to read
field_name (str) – name of the readed variable
fill_value (float) – The fill value
projparams (projection transform as can be used by pyproj, either a) – EPSG code integer (21781 for CH1903 for example), or a OGC WKT or Proj4 string, see epsg.io for a list, if not provided will be infered from the idrisi file
- Returns:
dem (dict) – A dictionary with the following keys: - data : array
data within the DEM
- metadatadict
a dictionary containing the metadata
- projparamsstr
projection parameters in proj4 format