The Technology
Rather than relying on heuristic thresholds, the system uses a physically informed, parameterized clear-sky model combined with image differencing to identify clouds under daylight conditions. This approach balances physical realism with computational efficiency, enabling continuous, unattended operation in support of ALPACA observing conditions reporting.
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):
Image Processing — Daytime Cloud Detection
Daytime cloud detection presents a fundamentally different problem from nighttime astronomical imaging. The observed sky brightness is dominated by solar illumination, atmospheric scattering, and wavelength-dependent attenuation, requiring a model-based approach rather than direct thresholding.
To address this, the system computes an idealized clear-sky radiance model for the current observing geometry and compares it to the observed camera image in real time.
Clear-Sky Reference Modeling
The clear-sky model estimates the expected sky radiance as a function of:
The model accounts for the fact that shorter wavelengths are scattered more strongly, causing the sky to redden and dim as optical depth increases. This behavior is approximated using parameterized Rayleigh and aerosol (Mie) scattering components suitable for real-time computation.
Two illumination regimes are used:
This separation is an engineering optimization that preserves accuracy while maintaining real-time performance.
Image Differencing and Cloud Isolation
For each frame:
The remaining high-intensity regions are classified as cloud pixels.
Cloud Fraction Estimation
Cloudiness is reported as a fractional sky coverage, computed as the percentage of sky pixels exceeding the modeled clear-sky radiance threshold after masking and correction.
This approach provides:
Optional Overlays and Diagnostics
For diagnostic and visualization purposes, optional overlays may be rendered, including:
These overlays do not affect cloud detection calculations.