Skip to main content

script that makes a WCS solution for a regular image (N up, E left) with some additional rotation.

Project description

mkwcs

mkwcs is a short and simple library I did to obtain astrometric solution for fits images. For the fits images (single HDU) it is assumed the East is at left and North is up, but there could be some arbitrary rotation on this configuration.

To install mkwcs is as simple as:

sudo pip install mkwcs

The library brings some scripts ready to use. For example, if you have an image, with the standard configuration (East left, North up) but with North direction rotated $\alpha$ counter-clockwise in the image, where you know that $0< \alpha < 20$, then you run:

mkwcs_with_angle_range  image.fits  0.5  120.354  -35.847  0 20 0.1

where, after the image name, the 3 next parameters are the pixel size, and coordinates of the image center (just approximately, in degrees), then the angle range ends and a $\delta \alpha$ increment to sample the range.

If the arbitrary rotation is known (let's say 12.1 degrees), you just run the other script:

mkwcs_with_angle  image.fits  0.5  120.354  -35.847  12.1 

If the field is poor in stars you can increase the limit magnitude (19 by default) for the catalog search cut, adding an extra parameter:

mkwcs_with_angle  image.fits  0.5  120.354  -35.847  12.1 20

There are other functionalities that can be used too. The scripts are: mkwcs_with_angle, mkwcs_with_angle_range and get_angle; and they self explain when run without arguments. Other functionalities can be obtained from the library as well.

Hope it is useful!

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

mkwcs-0.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkwcs-0.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mkwcs-0.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.2

File hashes

Hashes for mkwcs-0.1.tar.gz
Algorithm Hash digest
SHA256 1e92f3f7da9d105c8103c9db7fae616a7e4eb0eed7b1b9c5f5ea589a0a03f78d
MD5 a0d947fa53e202ff1a2d81df6dd90b3d
BLAKE2b-256 1ecbf1fdc6e10870346b2bfb0ebef8cf0f4023a984d0b1c6c441428004a5937b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mkwcs-0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.2

File hashes

Hashes for mkwcs-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8a1f1cc044f6ecb23d93afa5690d5a052bc88d0c3a6db56f044ee75fd668e40a
MD5 808c258ea54cd5d6ecbed78b6b796e96
BLAKE2b-256 5f76b2ad90fccd24a8d50653910e29cef75625671eb9bf499c62c61dcc1b7720

See more details on using hashes here.

Supported by

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