title: Python | How do i get the pixel values from an geotiff map by coordinate
body: <p>I'm trying to get pixel values (RGB) with coordinates from a geotiff map.</p>
  
  <p>I have downloaded a raster map here:
  <a href="https://www.naturalearthdata.com/downloads/10m-raster-data/10m-natural-earth-2/" rel="nofollow noreferrer">https://www.naturalearthdata.com/downloads/10m-raster-data/10m-natural-earth-2/</a></p>
  
  <p>And I would like to get for example the pixel value of these coordinates
  <code>lat: 41.902782</code>, <code>lon: 12.496366</code> (this should be rome)</p>
  
  <p>I have already tried rasterio and gdal but had no success. The download comes with a .tfw file but I couldn't include it so I wondered if the coordinates in my Python script were accurate.</p>
  
  <p>So in the end I could get rgb values of every square meter in the world
  But a simple print of the rgb values for a coordinate would be a good start</p>
  
  <p>I would be happy about every answer :)</p>