Skip to content

Instantly share code, notes, and snippets.

View alekseygenerozov's full-sized avatar

alekseygenerozov

View GitHub Profile
### MATPLOTLIBRC FORMAT
# This is a sample matplotlib configuration file - you can find a copy
# of it on your system in
# site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it
# there, please note that it will be overwritten in your next install.
# If you want to keep a permanent local copy that will not be
# overwritten, place it in HOME/.matplotlib/matplotlibrc (unix/linux
# like systems) and C:\Documents and Settings\yourname\.matplotlib
# (win32 systems).
import numpy as np
# from matplotlib.dates import date2num
# from datetime import datetime
import math
from math import atan2
OFFDEF=0.05
ALDEF=True
#Label line with line2D label data
/**
* General central force.
*
* This example shows how to add a general central force.
* If you have GLUT installed for the visualization, press 'w' and/or 'c' for a clearer view of
* the whole orbit.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
import rebound
import numpy as np
import matplotlib.pyplot as plt
import rebound
import argparse
parser=argparse.ArgumentParser(description='Make a movie from rebound SimlationArchive')
parser.add_argument('loc',help='Data location')
parser.add_argument('--xlim', type=float, default=1)
#!/usr/bin/env python
import rebound
import reboundx
import numpy as np
import astropy.constants as const
##Constants
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
% Encoding: ISO-8859-1
@ARTICLE{warren_brown+2005,
author = {{Brown}, Warren R. and {Geller}, Margaret J. and {Kenyon}, Scott J. and
{Kurtz}, Michael J.},
title = "{Discovery of an Unbound Hypervelocity Star in the Milky Way Halo}",
journal = {\apjl},
keywords = {Galaxy: Center, Galaxy: Halo, Galaxy: Kinematics and Dynamics, Galaxy: Stellar Content, Stars: Early-Type, Astrophysics},
year = 2005,
month = mar,
This file has been truncated, but you can view the full file.
% Encoding: ISO-8859-1
@ARTICLE{warren_brown+2005,
author = {{Brown}, Warren R. and {Geller}, Margaret J. and {Kenyon}, Scott J. and
{Kurtz}, Michael J.},
title = "{Discovery of an Unbound Hypervelocity Star in the Milky Way Halo}",
journal = {\apjl},
keywords = {Galaxy: Center, Galaxy: Halo, Galaxy: Kinematics and Dynamics, Galaxy: Stellar Content, Stars: Early-Type, Astrophysics},
year = 2005,
month = mar,
This file has been truncated, but you can view the full file.
% Encoding: ISO-8859-1
@ARTICLE{warren_brown+2005,
author = {{Brown}, Warren R. and {Geller}, Margaret J. and {Kenyon}, Scott J. and
{Kurtz}, Michael J.},
title = "{Discovery of an Unbound Hypervelocity Star in the Milky Way Halo}",
journal = {\apjl},
keywords = {Galaxy: Center, Galaxy: Halo, Galaxy: Kinematics and Dynamics, Galaxy: Stellar Content, Stars: Early-Type, Astrophysics},
year = 2005,
month = mar,
0.1941270 -0.1768342 0.02727309 -8.919556E-05 -41.33913 -373.5527 -10.28116
0.1944491 -0.1678166 0.04850729 0.003843993 -72.53477 -367.9770 -17.21083
0.1939210 -0.1702354 -0.02401889 -0.0001671892 30.36688 -383.4660 -9.748456
0.1937463 -0.1771617 -0.0003014427 -0.003683434 1.575235 -378.4593 -10.52932
0.1938591 -0.09231016 -0.06016516 -0.002454171 173.0788 -418.3998 -15.03503
0.1939945 -0.1025092 -0.05646149 -0.002598923 150.3160 -414.4616 -23.63825
0.1946313 -0.1096692 -0.06134095 -0.003649463 142.4533 -404.8588 -14.25440
0.1940908 -0.08829807 -0.07838709 -0.003549725 221.0327 -374.1881 -9.602917