Skip to content

Instantly share code, notes, and snippets.

View keflavich's full-sized avatar

Adam Ginsburg keflavich

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@keflavich
keflavich / install_rtlsdr.py
Last active July 25, 2020 00:24
Installation script for the rtlsdr on windows
import pkgutil
from pathlib import Path
import sys
import requests
import zipfile
from io import BytesIO
from ctypes import CDLL
from ctypes.util import find_library
import subprocess
import os
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Moment 0
[########################################] | 100% Completed | 9min 34.0s
[########################################] | 100% Completed | 9min 34.1s
[########################################] | 100% Completed | 9min 34.2s
[########################################] | 100% Completed | 9min 34.2s
[########################################] | 100% Completed | 9min 34.3s
[########################################] | 100% Completed | 9min 34.4s
[########################################] | 100% Completed | 9min 34.4s
/orange/adamginsburg/repos/radio-beam/build/lib.linux-x86_64-3.7/radio_beam/multiple_beams.py:261: UserWarning: Do not use the average beam for convolution! Use the smallest common beam from `Beams.common_beam()`.
warnings.warn("Do not use the average beam for convolution! Use the"
['G328.25_B3_spw0_7M12M_n2hp.image']
WARNING: BeamWarning: No beam information found in CASA image. [spectral_cube.io.casa_image]
WARNING: StokesWarning: Cube is a Stokes cube, returning spectral cube for I component [spectral_cube.io.core]
WARNING: StokesWarning: Cube is a Stokes cube, returning spectral cube for I component [spectral_cube.io.core]
DaskVaryingResolutionSpectralCube with shape=(217, 2000, 2240) and unit=Jy / beam:
n_x: 2240 type_x: RA---SIN unit_x: deg range: 239.440502 deg: 239.556884 deg
n_y: 2000 type_y: DEC--SIN unit_y: deg range: -53.996144 deg: -53.935064 deg
n_s: 217 type_s: FREQ unit_s: Hz range: 93179393746.250 Hz:93194833992.637 Hz
Elapsed: 0.9845466613769531
Spatial mad_std
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import os
# ## (1) Import the python application layer
from imagerhelpers.imager_base import PySynthesisImager
from imagerhelpers.input_parameters import ImagerParameters
try:
from tasks import exportfits
from taskinit import iatool
ia = iatool()
except ImportError:
astroquery/alfalfa/tests/test_alfalfa.py ... [ 0%]
astroquery/alma/tests/test_alma.py ...... [ 0%]
astroquery/alma/tests/test_alma_remote.py ..sss.ss.. [ 1%]
astroquery/alma/tests/test_alma_utils.py ..x [ 1%]
astroquery/astrometry_net/tests/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.