[gdal-dev] Python-GDAL - How do I create a GeoTIFF from this array?

Stefan Gofferje lists at home.gofferje.net
Tue Jul 30 02:03:13 PDT 2024


Hi all,

I'm still learning Python and GDAL.

I'm pulling the NOAA Aurora forecast in Python and create an array from 
it in this format:

[ [lon, lat, value], [lon, lat, value], [lon, lat, value] ...]

like

[ [-180,-90,0], [-180,-89,0], ... , [359, 89, 0], [359, 90, 0] ]

I would like to write this into a 1 band GeoTIFF but I'm missing some 
understanding of data types apparently.
I was wondering if somebody could point me in the right direction...

-Stefan

-- 
  (o_   Stefan Gofferje            | SCLT, MCP, CCSA
  //\   Reg'd Linux User #247167   | VCP #2263
  V_/_  https://www.gofferje.net   | https://www.saakeskus.fi



More information about the gdal-dev mailing list