Skip to content

Instantly share code, notes, and snippets.


Arfon Smith arfon

View GitHub Profile
arfon / repo-cleanup.rb
Created May 17, 2020
GitHub repo cleanup
View repo-cleanup.rb
require 'octokit'
GH_TOKEN = "xxxxxxxxxxxxxxxxxxxxxxxx"
GITHUB = => true, :access_token => GH_TOKEN)
repositories = GITHUB.repositories('arfon')
puts "Working with #{repositories.size} repositories"
repositories.each do |r|
arfon / example-joss.yaml
Created Feb 5, 2020
Example JOSS metadata
View example-joss.yaml
# Complete worked example here:
title: 'Gala: A Python package for galactic dynamics'
- Python
- astronomy
- dynamics
- galactic dynamics
- milky way
arfon / new
Created Feb 14, 2019
Adding a new JOSS editor
View new

New JOSS editors

To add you to the JOSS editorial team we need:

  • Your GitHub username
  • Your editorial topic areas/specialisms
  • A picture for the JOSS site
  • A short biography, including your professional affiliation
  • An email address for the JOSS Google group.
  • Your ORCID

Background and Purpose

Over the last four decades, AURA has driven a science model where astronomers and astrophysicists from any University or Institution, through rigorous peer-review, can access forefront facilities without having to be “black-belt” experts in the complex machinery of modern ground or space based telescopes. AURA’s most successful model of this broad engagement has been the Hubble Space Telescope, which, when measured by the metric of number of refereed papers/year integrated over the lifetime of the Observatory, has become the most productive science facility in history. Today, AURA confronts a new challenge: they are building a number of new facilities, which are specifically designed to generate huge data sets, most notably the Large Synoptic Survey Telescope (LSST). LSST will continuously survey the entire Southern sky every three nights, generating over 15 trillion bytes of raw data per night. The over-arching science goals driving this facility are well known: The Nature of Dark

arfon / repo-cleanup.rb
Created Jan 17, 2019
GitHub repo cleanup
View repo-cleanup.rb
require 'octokit'
GITHUB = => true, :access_token => GH_TOKEN)
repositories = GITHUB.repositories('arfon')
puts "Working with #{repositories.size} repositories"
repositories.each do |r|
View goofys.bash
# Install go
$ sudo apt-get install golang-go
# Download goofys package
$ go get
# Install goofys
$ go install
# Copy the goofys binary to somewhere in your path
arfon /
Last active Nov 6, 2021
Query TESS data at MAST
# This script queries MAST for TESS FFI data for a single sector/camera/chip
# combination and downloads the data from the AWS public dataset rather than
# from MAST servers.
# Working with
# Make sure you're running the latest version of Astroquery:
# pip install
from astroquery.mast import Observations
import boto3
arfon / LICENSE
Last active Apr 16, 2020
How to make TESS FITS cubes using Astrocut and MAST
BSD 3-Clause License
Copyright (C) 2010-2018 Association of Universities for Research in Astronomy (AURA)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
arfon / LICENSE
Last active Jul 3, 2018
Ruby class for validating ORCID formats and checksums
The MIT License (MIT)
Copyright (c) 2018 Arfon Smith
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is