# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3 (ipykernel)
#     language: python
#     name: python3
# ---

# This notebook shows how to check whether a field can be safely observed with UVIT. The safety of the VIS, FUV, and NUV (currently not functional) channels can be checked for various filters.

# The following Python script depends on the Python package Canuvit. If you do not have it installed, please install it. If you are using Colab/Binder, uncomment the cell below and run to install the package for the online interactive session.

# +
# # !pip install canuvit
# -

# Import the canuvit package.

import canuvit

# As an example, we will try to check which filters are safe to observe in the VIS, FUV, and NUV (currently not functional) channels of UVIT for the field containing HZ 4 https://simbad.u-strasbg.fr/simbad/sim-id?protocol=html&Ident=HZ4&NbIdent=1&. UVIT is the primary instrument selected. Note that the script may take ~1 minute to run.

canuvit.observe('uvit', '03:55:22', '09:47:18')

# If GALEX images are available for the field, the script will produce images with brightest 5 sources marked. Please check the working directory for the output GALEX images. For the example field containing HZ 4, you should find a pair of FUV and NUV images.
#
# <img src="images/WDST_HZ_4-nd-int.png" width="400"> <img src="images/WDST_HZ_4-fd-int.png" width="400"/> 

StarcoderdataJupyterScriptsDedupFiltered