Skip to main content

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

This version

0.1

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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file lofargeotiff-0.1.tar.gz.

File metadata

  • Download URL: lofargeotiff-0.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for lofargeotiff-0.1.tar.gz
Algorithm Hash digest
SHA256 b75f1f99ac484b090f13b96cd4d4f9bf868cf48bc121d40f84793768af032879
MD5 9833a3f12a7d0eb978823ee223c1a247
BLAKE2b-256 fbb9ce27eadadd8d7cb0046cf546f3128391aada789e7f531378f5762ee54ee4

See more details on using hashes here.

File details

Details for the file lofargeotiff-0.1-py3-none-any.whl.

File metadata

  • Download URL: lofargeotiff-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for lofargeotiff-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2938fa3c56abf0edac39c58d001f22bd3db7df34ae7d1ba476603a44952f4c05
MD5 f9ee6eb9fcfad0dd91c531aa61436820
BLAKE2b-256 f9689f0238e1812fd8f77472dce66b33c65562d13e5cf9253e94d4eee01bf65f

See more details on using hashes here.

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