Report a list of the DPR.CATG
, DPR.TECH
and DPR.TYPE
keywords from FITS frames.
Just copy the script into the directory of frames and run:
sh report_fits_keywords_for_directory.sh .
Report a list of the DPR.CATG
, DPR.TECH
and DPR.TYPE
keywords from FITS frames.
Just copy the script into the directory of frames and run:
sh report_fits_keywords_for_directory.sh .
#!/usr/local/bin/python | |
# encoding: utf-8 | |
""" | |
*Scrape and download Kurucz atom lists* | |
:Author: | |
David Young | |
:Date Created: | |
October 8, 2019 |
drop table scheduler_api_calls; | |
CREATE TABLE `scheduler_api_calls` ( | |
`primaryId` bigint(20) NOT NULL AUTO_INCREMENT, | |
`transientBucketId` bigint(20) NOT NULL, | |
`objectName` varchar(50) NOT NULL, | |
`magnitude` double DEFAULT NULL, | |
`limitingMagnitude` tinyint(4) DEFAULT NULL, | |
`apiCallType` varchar(45) DEFAULT NULL, | |
`triggerTime` datetime NOT NULL, |
Once FITS frames are added to the ESO Archive they are renamed with a standardised format. The original names are often more informative. This is a bash script to rename ESO fits files back to their original names.
This script will run on a folder of ZTF avro alerts (e.g. an unarchived bundle from the ZTF nightly archives).
Create a conda environment within which to run the script:
conda create -n avro_speed_test python=2.7 pip
#!/usr/bin/env python | |
import glob | |
import re | |
import string | |
import os | |
import ntt |
#!/usr/local/bin/python | |
# encoding: utf-8 | |
""" | |
*Given a folder of images, generate an markdown displaying the images and a pre-generated MMD link to that image for use with nvAlt.* | |
:Author: | |
David Young | |
:Date Created: | |
December 10, 2013 |
#!/usr/local/bin/python | |
# encoding: utf-8 | |
""" | |
*Generate books of the bible and chapters as nested folders* | |
:Author: | |
David Young | |
:Date Created: | |
August 14, 2015 |
#!/bin/bash | |
display_usage() { | |
echo "\nUsage:\n${0##*/} [fileExt(s)] \n" | |
} | |
# if less than two arguments supplied, display usage | |
if [ $# -le 0 ] | |
then | |
display_usage |
find . -maxdepth 5 -mindepth 2 -type d | while read dir; do | |
printf "%-25.25s : " "$dir" | |
find "$dir" -type f | wc -l | |
done |