Write LOFAR near field images as GeoTIFF
Project description
LOFAR GeoTIFF
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.
Installation
pip install lofargeotiff
Usage
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 rasterio.open
, 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
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)
Built Distribution
Close
Hashes for lofargeotiff-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2938fa3c56abf0edac39c58d001f22bd3db7df34ae7d1ba476603a44952f4c05 |
|
MD5 | f9ee6eb9fcfad0dd91c531aa61436820 |
|
BLAKE2b-256 | f9689f0238e1812fd8f77472dce66b33c65562d13e5cf9253e94d4eee01bf65f |