TychoCam

The Technology

 Measuring the Alpaca Required Observing Conditions

The TychoCam leverages several hardware technologies and software techniques to determine the ASCOM Observing Conditions and to present these in a meaningful and useful manner both on the website and on the APIs The API is in compliance with the ASCOM standards.

Hardware  Gauges and Measurements

Hardware technologies to precisely measure conditions at a geographic location are attached to the Tychocam. The TychoCam integrates the following hardware (with a considerable amount of supporting custom software):

Ambient Temperature Infrared Sky Temperature Wind Speed and Direction
Relative Humidity Rain Intensity Barometric Pressure
Sky Brightness LUX Sky Quality Bortle
Wind Gust 

Calculated Observed Conditions

StarFWHM Cloudiness

These conditions are created from comparing the image to the Bright Star Catalog. This resultant measurements are provided in the required format and measures (LUX, Bortle, arc-secs, metric, etc). This data is available on the user web site as well as the API's.

As backup to the local conditions reporting hardware, the TychoCam will query the local National Weather Service to provide for the missing data.  

Image Processing - Astronomical Night

An image is taken every 30 ms to 60 seconds with the 1816x1816 color astronomy camera and  fish-eye lens. The image is processed as follows (simple explanation):

  • Transform the Bright Star Catalog according to location, magnitude and  time, and other parameters (altitude...).
  • Transform the image per a transform matrix (rotation, fisheye mapping)
  • Find likely stars in the image
  • Flatten the fisheye image to match the star catalog
  • Create and apply moon and user provided masking
  • Calculate average starFWHM from a selection of stars
  • Plot the image with likely, found, and not found stars
  • Calculate cloudiness by comparing found/not found catalog stars
  • Plot constellation or range rings
  • Add optional data to the image legend for convenience; Cloudcover, temperatures, dewpoint, skytemperature...

Image Processing - Daytime

An example of the complexity in describing mother nature is modeling and computing the conditions as shown in the below image of a cloudy daytime. Cloudcover is computed in real time using atmospheric modeling. The thicker the atmosphere, the more light reddens and dims because of scattering. This is important in order to create a model of how the sky should look without any clouds.

As the result, the code creates an image of an idealized cloudless sky for a given sun position. Then we subtract this image from the actual camera's image to highlight clouds, and after that, we calculate all pixels marked as clouds to get the percentage of cloudiness.

The code creates a model that leverages scattering and attenuation of light rays in the atmosphere. This list of tasks below is not complete, only to show that measuring cloudiness involves significant computations.

The image below is a processed daytime image, as opposed to  astronomical night. The sun and moon are masked out to eliminate light colored pixels from the sun rays. A transformation matrix has been used to rotate and align pixels with their true position in the sky, to compensate for the position skewed by the fish eye lens.  

Some data values have been optionally superimposed over the image to provide additional relevant information. The constellations, also shown optionally, are superimposed in their correct location for that geographic location and time.

The trees and other obstacles are subtracted from the cloudiness calculation as needed by the particulars of the site. Optional masking of objects, such as an antenna or dome, can be masked by the system administrator.

  • Describe the  scattering and attenuation of light rays in the atmosphere
  • Describe single ray of light
  • Change the behavior of incident light functions depending on Sun's zenith value. Two modes:
    Day Mode - simpler and faster approach for high Sun (zen < 70 deg)
    Night Mode - additional light attenuation for low Sun (zen > 70 deg)
  • Calculate the intensity of the light ray scattered in the atmosphere along the way
  • Estimated total optical depth for Rayleigh and Mie components
  • Consider the anisotropy of the medium (aerosol)
  • Calculate Rayleigh phase function
  • Calculate Mie phase function (single-lobed Henyey–Greenstein approximate analytic phase function)
  • Calculate atmosphere density coefficients
  • Calculate the total reduction of light intensity
  • Compensate for low altitude flux attenuation (dust etc.)
  • Calculate total flux in given point
  • Add sky's base glow constant for a night mode
  • Render the image of the sky(atmosphere) depending on Sun position and resolution of the model (width, height, sampling)
  • Render the sky and the Sun (ray's intensity) pixel-wise
  • Return the cloudiness percentage based on the amount of black and white pixels(clouds)

Gallery of Images

These are Images from TychoCams at Different Locations