Giter VIP home page Giter VIP logo

frame-movies's Introduction

# Frame movies

This code takes a series of FITS files on the command line and spits out a .mp4.

It automatically scales the images to +=20% around the median and plots a time series of the median values as a function of time. Above the image is the image_id if present.

If the images have the shape 2048x2088 then the image is assumed to be raw and the overscan strips are removed. Otherwise they are not.

Usage

The main script is create_movie.py which takes each file to add on the command line as arguments, along with the output filename with the -o/--output flag. Full usage is shown below.

The images require the mjd header card to be present unless the --no-sort argument is supplied, then the order the files are passed to the script is used for rendering the image.

usage: create_movie.py [-h] [-o OUTPUT] [--no-sort] [-f FPS]
                       [--no-multiprocessing] [-d IMAGES_DIR]
                       [--no-delete-tmpdir] [--use-mencoder] [--verbose]
                       filename [filename ...]

positional arguments:
  filename

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        Output movie name
  --no-sort             Do not sort by mjd
  -f FPS, --fps FPS     Frames per second
  --no-multiprocessing  Run serially
  -d IMAGES_DIR, --images-dir IMAGES_DIR
                        Custom directory to put the intermediate images
  --no-delete-tmpdir    Do not delete temporary directory of pngs
  --use-mencoder        Use mencoder instead of ffmpeg
  --verbose             Verbose logging

Installation

All code is written in Python. I recommend the Anaconda python distribution for installation. The code either requires ffmpeg (preferred) or mencoder to render movies.

Python dependencies

  • matplotlib
  • astropy
  • numpy

frame-movies's People

Contributors

jmccormac01 avatar simonrw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.