Skip to main content

Flamingos 2 - Probe Detector

Project description

Flamingos 2 Probe Detector

This package contains a single script used to detect the position of the Flamingos 2 Guide Probe with sub-pixel accuracy. For that, it uses several morphological operations available inside the scipy.ndimage package.

The probe position, for now, is obtained using Center of Mass. That means that the whole probe image should be displayed. If the Probe Image touches the edge of the field of view, the results are unpredictable.

Requirements

Before you install this package, make sure your Python environment has all the required dependencies:

  • Python 3
  • astropy
  • matplotlib
  • numpy
  • scipy

The best way of having all of them at once is installing Anaconda and AstroConda.

Install

Once you are inside a conda environment, you can install this package by simply typing:

   # Make sure you activate your virtual environment
   $ source activate $MYENV  

   # Install using pip
   $ pip install f2_probe_detector

It is highly recommended that you install this package inside a Anaconda virtual environment. If possible, install is inside your "astroconda" venv.

Running

To get information about how to run this script, you can type:

   $ get_f2_probe_position --help 
   $ get_f2_probe_position file_1.fits file_2.fits ... file_n.fits

   filename                                 x          y         
--------------------------------------------------------------
...est_get_f2_probe_position/file_1.fits 1091.43815  583.93075
...est_get_f2_probe_position/file_2.fits 1091.43815  583.93075
...est_get_f2_probe_position/file_3.fits 1091.43815  583.93075
..._get_f2_probe_position/test_data.fits 1091.43815  583.93075

or

   $ get_f2_probe_position file_*.fits

   filename                                 x          y         
--------------------------------------------------------------
...est_get_f2_probe_position/file_1.fits 1091.43815  583.93075
...est_get_f2_probe_position/file_2.fits 1091.43815  583.93075
...est_get_f2_probe_position/file_3.fits 1091.43815  583.93075
..._get_f2_probe_position/test_data.fits 1091.43815  583.93075 

Known Issues

  1. get_f2_probe_position will not fail if cannot find a probe. If you get a very weird value, check the image.
  2. get_f2_probe_position will not work if the probe shadow touches the edge.

Project details


Download files

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

Source Distribution

f2_probe_detector-0.1.20.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

f2_probe_detector-0.1.20-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file f2_probe_detector-0.1.20.tar.gz.

File metadata

  • Download URL: f2_probe_detector-0.1.20.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for f2_probe_detector-0.1.20.tar.gz
Algorithm Hash digest
SHA256 2158b85ccc77bb4de61220bfdb0d1c21370c955f3e21afb784716cf87052fbe7
MD5 ae2700d7776862ebee859d8014572597
BLAKE2b-256 a27418c6390e1811e679df3b48a814e1dd2f16e99a13b5071a97500e27d4487d

See more details on using hashes here.

File details

Details for the file f2_probe_detector-0.1.20-py3-none-any.whl.

File metadata

  • Download URL: f2_probe_detector-0.1.20-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for f2_probe_detector-0.1.20-py3-none-any.whl
Algorithm Hash digest
SHA256 6af49cf914d4cf3719bd36447dbf6d6a3e5cf18022417ca4c7609cedadd02cf8
MD5 a3ca7ccf32304e8d17b756456e9c89b6
BLAKE2b-256 0271f464ca6b445c24d02082ccde7466e2b65c2c6abffe31df1acc3593cb3680

See more details on using hashes here.

Supported by

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