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