Skip to content

Instantly share code, notes, and snippets.

View augustfly's full-sized avatar

August Muench augustfly

View GitHub Profile
@taldcroft
taldcroft / play-tables-from-apj-html.ipynb
Created December 14, 2023 15:03
Try to get an ApJ data table programmatically
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@max-mapper
max-mapper / bibtex.png
Last active November 19, 2025 13:01
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
@barentsen
barentsen / compute-arxiv-usage-rates-by-journal.py
Created March 4, 2016 18:12
Computes the fraction of astronomical papers that are uploaded to arXiv as a function of their journal.
"""Computes the arXiv usage rates as a function of journal.
This is a rough script used for the sake of providing the numbers for one tweet:
https://twitter.com/GeertHub/status/705788341531201537
I may turn this into a webservice that reports on the use of arXiv every month?
What do you think?
"""
import ads
import json
@barentsen
barentsen / 2015-apj-papers-not-on-arxiv.txt
Created March 4, 2016 16:40
Bibcodes and titles of ApJ papers published in 2015 that have not been uploaded to arXiv (yet?)
2015ApJ...803...27P Prognosis of Gles of Relativistic Solar Protons
2015ApJ...803L...7L Radial and Azimuthal Oscillations of Halo Coronal Mass Ejections in the Sun
2015ApJS..217...10M A Laboratory Study of C<SUB>3</SUB>H<SUP>+</SUP> and the C<SUB>3</SUB>H Radical in Three New Vibrationally Excited <SUP>2</SUP>Σ States Using a Pin-Hole Nozzle Discharge Source
2015ApJ...799...31F Modulation of Galactic Cosmic Rays Observed at L1 in Solar Cycle 23
2015ApJ...800...32L Hercules X-1: Using Eclipse to Measure the X-Ray Corona
2015ApJ...798...72S Benzene Formation on Interstellar Icy Mantles Containing Propargyl Alcohol
2015ApJ...798...36S Observations of Warm Carbon Chain Chemistry in NGC 3576
2015ApJ...799...80G Diffusive Shock Acceleration of High-energy Charged Particles at Fast Interplanetary Shocks: A Parameter Survey
2015ApJ...800...87C Whistler Turbulence Forward Cascade versus Inverse Cascade: Three-dimensional Particle-in-cell Simulations
2015ApJ...807..164N Properties of Cyclotron Lines in a Line-forming R
@Goutte
Goutte / x3ditor.py
Last active August 29, 2015 14:24
Quick and Dirty X3D edition tools.
import math
import numpy
import BeautifulSoup # pip install --user BeautifulSoup
# The purpose of this lib is to fix X3D files exported via the `vtkExporter`,
# for example using mayavi, in order to feed them to `x3dom.js`.
# Tasks :
# - `add_axes()`
# Create axes with labels and ticks (works best if you have an outline)
@taldcroft
taldcroft / 10-startup.py
Last active September 10, 2017 01:28
IPython startup magic
# ~/.ipython/profile_default/startup/10-mystartup.py
import numpy as np
ip = get_ipython()
def import_astropy(self, arg):
ip.ex('import astropy')
ip.ex('print(astropy.__version__)')
ip.ex('from astropy.io import ascii')
@eteq
eteq / adsjson_to_orcid.py
Last active August 29, 2015 14:11
A script to grab ADS private libraries and send them to ORCID
from __future__ import division, print_function
"""
This script takes in the URL to the JSON version of an ADS private library, and outputs a bibtex file suitable for importing into ORCiD
"""
import json
import urllib2
@arfon
arfon / lowe2014.geojson
Created April 20, 2014 00:31
Stuart Lowe, RTW 2014 current location
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lpsinger
lpsinger / scrape_mrt.py
Last active August 29, 2015 13:59
Scrape AAS Machine Readable Table creator form
#!/usr/bin/env python
"""
Convert an Astropy table (an instance of astropy.table.Table) to a
Machine Readable Table (MRT) by scraping ApJ's machine readable table creator
web site (http://authortools.aas.org/MRT/upload.html).
See also:
https://aas.org/authors/online-only-materials-guidelines
http://vizier.u-strasbg.fr/doc/catstd.htx
@schmurfy
schmurfy / gist:3199254
Created July 29, 2012 14:33
Install pandoc Mac OS X 10.8
# Install MacTex: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg
$ sudo chown -R `whoami` /usr/local/texlive
$ tlmgr update --self
$ tlmgr install ucs
$ tlmgr install etoolbox
# Install pandoc view homebrew