Skip to main content

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.

Metadata

Release files for lofargeotiff 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lofargeotiff 0.1
File Size Uploaded
lofargeotiff-0.1.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lofargeotiff 0.1
File Interpreter ABI Platform
lofargeotiff-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.2 kB

Release files / lofargeotiff-0.1.tar.gz

Download URL lofargeotiff-0.1.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b75f1f99ac484b090f13b96cd4d4f9bf868cf48bc121d40f84793768af032879
BLAKE2b-256 checksum
How to use checksums
fbb9ce27eadadd8d7cb0046cf546f3128391aada789e7f531378f5762ee54ee4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

Release files / lofargeotiff-0.1-py3-none-any.whl

Download URL lofargeotiff-0.1-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2938fa3c56abf0edac39c58d001f22bd3db7df34ae7d1ba476603a44952f4c05
BLAKE2b-256 checksum
How to use checksums
f9689f0238e1812fd8f77472dce66b33c65562d13e5cf9253e94d4eee01bf65f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page