Skip to main content

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
  • opencv2

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 

Data Acquisition

The code may be sensitive to strong changes in exposure time, readout mode, etc. So the user may want to keep the data as uniform as possible. For that, here is the configuration used in most of the tests:

Flamingos2 component

  • Filter: K-short
  • Read Mode: Bright
  • Exposure Time: 12 s
  • Disperser: None
  • Lyot Wheel: f/16 (open)

Sequence component: Manual Flat Daytime Calibration

  • Lamp: IR grey body - high
  • Shutter: closed
  • Filter: ND4-5
  • Diffuser: IR
  • Coadds: 1. (Default/Only mode for F2)

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.

Release files for f2-probe-detector 0.3.11

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

Source distribution (sdist)

Source distribution for f2-probe-detector 0.3.11
File Size Uploaded
f2_probe_detector-0.3.11.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for f2-probe-detector 0.3.11
File Interpreter ABI Platform
f2_probe_detector-0.3.11-py3-none-any.whl Python 3 none any Details

Total release size:12.9 kB

Release files / f2_probe_detector-0.3.11.tar.gz

Download URL f2_probe_detector-0.3.11.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9d22f646c81e75c2542542e65b2aeb4ec00e6e49a7f6fea6ceeed8ea92433cfb
BLAKE2b-256 checksum
How to use checksums
2e76003190b262b5f94f0f780c0b5f5bdb65cf93cdb707c16bda8ea880c911f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

Release files / f2_probe_detector-0.3.11-py3-none-any.whl

Download URL f2_probe_detector-0.3.11-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9fe00c6c1bcb3acf9a991c9e4992efff2a2ac390ffc9c05c3295274697f52fb6
BLAKE2b-256 checksum
How to use checksums
1f49b51987649795f9396444a42b53d267e31606fb019a3769b0cd29ef666979
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.3.11 This release

2 release files

0.3.10

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.1

2 release files

0.2.54

2 release files

0.2.53

2 release files

0.2.52

2 release files

0.2.5

2 release files

0.2.1

2 release files

0.2

3 release files

0.1.20

2 release files

0.1.18

2 release files

0.1.12

1 release file

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