Skip to main content

Write LOFAR near field images as GeoTIFF

Project description


This package provides a simple function to write LOFAR near field images as a GeoTIFF file. This makes sure that some metadata is kept, in particular the location of the image.


pip install lofargeotiff


Using as input a two-dimensional numpy array of pixel values, and the PQ coordinates of the (center of the) lower left and upper right pixel, the following command writes a GeoTIFF:

from lofargeotiff import write_geotiff
import numpy as np

data = np.random.rand(400, 400)
lowerleft = (-200, -200)
upperright = (200, 200)

write_geotiff(data, "test.tif", lowerleft, upperright,
              obsdate="2016-02-12 08:00:00",
              tags={"Author": "Tammo Jan Dijkema",
                    "Project": "EOR"})

The resulting file can be read back into python using, or any other package that reads TIFF. The metadata can be inspected on the command line with exiftool.

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lofargeotiff-0.1.tar.gz (6.9 kB view hashes)

Uploaded source

Built Distribution

lofargeotiff-0.1-py3-none-any.whl (3.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page