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

Javier Jimenez Shaw j1 at jimenezshaw.com
Tue Jul 30 05:43:49 PDT 2024


That seems to be an XYZ raster format
https://gdal.org/drivers/raster/xyz.html

Maybe some of the tests could help you:
gdal/autotest/gdrivers/xyz.py

Cheers

On Tue, 30 Jul 2024 at 11:03, Stefan Gofferje via gdal-dev <
gdal-dev at lists.osgeo.org> wrote:

> 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
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240730/f1b6ad6d/attachment.htm>


More information about the gdal-dev mailing list