wgs84_to_geotiff_pixels¶
-
pycraf.pathprof.wgs84_to_geotiff_pixels(geotiff, lons, lats)[source] [edit on github]¶ Convert WGS84 (longitude, latitude) to pixel space of a GeoTiff.
This is purely a convenience function, which internally calls
pyprojwith the appropriate CRS of the GeoTiff file. The GeoTiff file must be opened with the Python package Rasterio- Parameters
- Returns
- xpix, ypix
ndarrayof float64 Pixel coordinates (floating point!) of the provided geographic position(s) in the given GeoTiff raster map.
- xpix, ypix