This code has been rehomed in this github repo.
#!/usr/local/bin/python | |
# encoding: utf-8 | |
""" | |
*Tidy up Pinboard Tags* | |
:Author: | |
David Young | |
:Date Created: | |
November 8, 2017 |
gmail: | |
username: "david.young@pessto.org" | |
password: "mypass" |
The gist containing this content and be found here.
conda create -n kindle python=3.7 pip six fuzzysearch fundamentals tabulate pandas
conda activate kindle
pip install PyMuPDF
The gist containing this content and be found here.
Use this script to stitch together the simulated SOXS data (from E2E simulator) with official SOXS FITS headers (from NGC controller software).
conda create -n soxsim python=3.7 pip six pandas tabulate astropy
Here is the gist for the script and an example AVRO packet.
To generate a lightcurve from the AVRO alert packet for the ZTF object run the plot_ztf_lightcurve_from_avro.py
script with the following usage:
python plot_ztf_lightcurve_from_avro [-o] <avrofile>
In ZTF speak a candidate is a single detection and an object is a collection of associated candidates. I wanted to visualise (see plot above) the distribution of the number of candidates (ncand
) that go into making a ZTF object.
To generate the CANDIDATE table distribution data in candidate_ncand_dist.csv
I run the following query on Lasair (April 8, 2020):
SELECT
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
*Ingest FITS data downloaded from MAST into Sherlock Database* | |
:Author: | |
David Young | |
:Date Created: | |
January 9, 2020 |
I use this script on my linux machines to whitelist a single folder located in my ~/Dropbox/server-sync
directory. Here I have a separate folder for each of my servers.
To run the script use:
dropbox_whitelist [options] <serverName>
-k|--keep keep all byproduct files (use for debugging)