<commit_before>import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'astrometry.net.settings'
os.environ['PATH'] = '/bin:/usr/bin:/home/gmaps/test/quads:/home/gmaps/test/tilecache/render'

import logging
import os.path
import shutil
import sys

from django.db import models

from astrometry.net.portal.models import Job, Submission, DiskFile, Calibration, Tag
from astrometry.net.portal.log import log
from astrometry.net.portal.convert import convert, is_tarball, get_objs_in_field, FileConversionError
from astrometry.util.run_command import run_command

# mencoder -o sky.avi -ovc lavc -lavcopts vcodec=mpeg4:keyint=50:autoaspect mf://sky-0*.png -mf fps=10:type=png
# mencoder -o ann.avi -ovc lavc -lavcopts vcodec=mpeg4:keyint=50:autoaspect mf://ann-*.png -mf fps=10:type=png

if __name__ == '__main__':

    # FIREBall
    # subid = 'test-200804-28074176'
    # outdir = '/tmp/movie/B'

    # 
    subid = 'test-200804-68274868'
    outdir = '/tmp/movie/C'
    
    blankskyfn = os.path.join(outdir, 'sky-blank.png')

    render_sky = False
    render_ann = True

    ann_args = {
        #'grid': 10., # grid spacing in arcmin
        'grid': 600., # grid spacing in arcmin
        }

    ann_out_prefix = 'ann-'<commit_msg>log blind to stderr<commit_after>import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'astrometry.net.settings'
os.environ['PATH'] = '/bin:/usr/bin:/home/gmaps/test/quads:/home/gmaps/test/tilecache/render'

import logging
import os.path
import shutil
import sys

from django.db import models

from astrometry.net.portal.models import Job, Submission, DiskFile, Calibration, Tag
from astrometry.net.portal.log import log
from astrometry.net.portal.convert import convert, is_tarball, get_objs_in_field, FileConversionError
from astrometry.util.run_command import run_command

# http://www.techcrunch.com/get-youtube-movie/
# will get any youtube video as a local ".flv" download.
# mplayer -vo png foo.flv
# mencoder -o sky.avi -ovc lavc -lavcopts vcodec=mpeg4:keyint=50:autoaspect mf://sky-0*.png -mf fps=10:type=png
# mencoder -o ann.avi -ovc lavc -lavcopts vcodec=mpeg4:keyint=50:autoaspect mf://ann-*.png -mf fps=10:type=png

if __name__ == '__main__':

    # FIREBall
    # subid = 'test-200804-28074176'
    # outdir = '/tmp/movie/B'

    # 
    subid = 'test-200804-68274868'
    outdir = '/tmp/movie/C'
    
    blankskyfn = os.path.join(outdir, 'sky-blank.png')

    render_sky = False
    render_ann = True

    ann_args = {
        #'grid': 10., # grid spacing in arcmin
        'grid': 600., # grid spacing in arcmin
        }

    ann_out_prefix = 'ann-'
{'fraction_non_alphanumeric': 0.12828438948995363, 'fraction_numerical': 0.03400309119010819, 'mean_word_length': 3.606761565836299, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5068524', 'n_tokens_mistral': 1030, 'n_tokens_neox': 957, 'n_words': 207}