python-srtm icon indicating copy to clipboard operation
python-srtm copied to clipboard

Issue for places below sea level

Open quan787 opened this issue 3 years ago • 1 comments

For the srtm datasets, elevations of places below sea level (e.g. dead sea) are slightly smaller than 65535, which means (obviously) they are 65535 based. So would you add the feature that automatically output negative values? Or is it prefered to provide only the raw data?

quan787 avatar May 26 '21 07:05 quan787

Its an easy fix.

Line 76 in heights_maps.py is return int.from_bytes( self.raster[byte_number : byte_number + 2], byteorder="big" ) but should be return int.from_bytes( self.raster[byte_number : byte_number + 2], byteorder="big",signed=True )

I fixed it, but I don't have permissions. @adamcharnock Can you please add me

yehudarav avatar May 20 '23 18:05 yehudarav