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
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
of float64 Pixel coordinates (floating point!) of the provided geographic position(s) in the given GeoTiff raster map.
- xpix, ypix