Skip to content

Latest commit

 

History

History
82 lines (66 loc) · 2.94 KB

README.md

File metadata and controls

82 lines (66 loc) · 2.94 KB

la_palma_overview

Make nightly overview videos of the Roque observatory on La Palma or just save single overview images

img

Video

Usage
user@machine:~$ la_palma_overview_video

Creates a directory structure as year/month/night and saves overview images all night long. At the end of the night it creates a video from the images.

user@machine:~$ la_palma_overview_video --output /path/where/to/save/the/videos --working_path /path/where/to/store/raw/images --trash_images

Working directory, output directory and trashing the raw images can be specified.

Images

Usage
user@machine:~$ la_palma_overview

When called without a specific output path [-o], the image filename will be created using a timestamp like 'la_palma_yyyymmdd_HHMMSS.jpg'

or in python:

import la_palma_overview as lpo
lpo.save_image('/home/user/my_la_palma_image.jpg')

img

or when you feel sad:

import la_palma_overview as lpo

config = {
    'img': {'rows': 480, 'cols': 640},
    'stacked_image': {'rows': 3, 'cols': 4},
    'image_urls': [
        'http://goodmorningkitten.com/media/kittypix/1/kitten1151.jpg',
        'http://goodmorningkitten.com/media/kittypix/12/kitten12065.jpgg',
        'http://goodmorningkitten.com/media/kittypix/12/kitten12063.jpg',
        'http://goodmorningkitten.com/media/kittypix/12/kitten12063_02.jpg', 
        'http://goodmorningkitten.com/media/kittypix/12/kitten12063_05.jpg',
        'http://goodmorningkitten.com/media/kittypix/12/kitten12063_07.jpg',
        'http://goodmorningkitten.com/media/kittypix/12/kitten12050.jpg',
        'http://goodmorningkitten.com/media/kittypix/12/kitten12056.jpg',
        'http://goodmorningkitten.com/media/kittypix/12/kitten12057.jpg',
        'http://goodmorningkitten.com/media/kittypix/12/kitten12061.jpg'
    ]
}

lpo.save_image(output_path='/home/user/now_i_feel_better.jpg', overview_config=config)

img

Dependencies

How

collects several different images as all sky cam footage:

and on site footage as e.g.:

but also plots like e.g.:

Further there is a UTC time stamp and the FACT telescope status appended. When an image can not be downloaded within 15s it is skipped and becomes black.