pouet.LaSilla package¶
Submodules¶
pouet.config.LaSilla module¶
-
class
config.LaSilla.
AllSky
[source]¶ Bases:
object
Station-specific class that handles the all sky image and its transformation of the sky.
Class constructor that saves some important all sky parameters as a class attribute.
-
get_image_coordinates
(az, elev)[source]¶ Converts the azimuth and elevation of a target in pixel coordinates
Parameters: - az – azimuth (in rad)
- elev – elevation (in rad)
Returns: x and y position
-
-
class
config.LaSilla.
WeatherReport
(name='LaSilla')[source]¶ Bases:
object
This class is dedicated to recovering the weather report at the La Silla site and feeding the wind direction, wind speed, temperature and humidity back to pouet. It must contain at least a get method that returns the above variable.
Class constructor. Loads the LaSilla.cfg configuration file and saves it as attribute.
Parameters: name – name of the cfg file, only included for completeness. -
get
(debugmode, FLAG=-9999)[source]¶ Get method that reads the weather reports off the web. In the LaSilla case, it download a meteo.last and interprets the data.
Parameters: - debugmode – whether or not POUET is in debugmode. If true, it ought to return some static and dummy data
- FLAG – what to return in case the weather report cannot be downloaded or treated. Currently, POUET expect -9999 as a placeholder.
Returns: Wind direction, speed, temperature and humidity
Warning
Such a method must return the following variables in that precise order: wind direction, wind speed, temperature and humidity
-