This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'polymode) | |
(defcustom pm-host/test | |
(pm-bchunkmode "test" | |
:mode 'fundamental-mode) | |
"Test host chunkmode" | |
:group 'hostmodes | |
:type 'object) | |
(defcustom pm-inner/pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# convolve - convolve a FITS cube with a gaussian beam | |
import sys | |
import os | |
import getopt | |
import gzip | |
from numpy import * | |
from astropy.convolution import convolve_fft, Gaussian2DKernel | |
from astropy.io import fits as pyfits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# fitscat -- concatenate several FITS spectra together | |
import sys | |
import os | |
import getopt | |
from astropy.io import fits as pyfits | |
from numpy import * | |
from scipy import interpolate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -r --no-parent --cut-dirs=2 --no-host-directories --reject "index.html*" -N -e robots=off http://almasciencedl.eso.org/almadata/sciver/HLTauBand6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vamdc_query.py -- Search for lines in the CDMS through VAMDC | |
import urllib2 | |
import xml.etree.ElementTree as ET | |
species = "CO" | |
fmin = 109e9 | |
fmax = 111e9 | |
einstein = - 1 | |
energy = -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[files] | |
source = source.mdl | |
chem = osu2009.chm | |
# Physical paramaters | |
[phys] | |
grain_size = 0.1 | |
grain_gas_mass_ratio = 0.0001 | |
# Solver parameters | |
[solver] | |
ti = 1e-6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[files] | |
source = source.mdl | |
chem = network.chm | |
# Initial abundances | |
[abundances] | |
H2 = 0.5 | |
CO = 1e-6 | |
#grain = 1.0e-12 | |
# Output | |
[output] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from astrochem.wrapper import * | |
import numpy as np | |
p = phys() | |
initial_abundances = {} | |
c = cell(av=20, nh=1e3, tgas=10, tdust=10) | |
s = solver(c, "network.chm", p , 1e-15, 1e-6, initial_abundances, 1e3, 0) |
OlderNewer