Skip to content

Instantly share code, notes, and snippets.

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.
@bmorris3
bmorris3 / cubeviz-io-demo.ipynb
Created April 10, 2023 21:00
Draft demo for the @spacetelescope 2023 Spring Symposium
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bmorris3
bmorris3 / auto-config-helper.ipynb
Last active March 29, 2023 19:19
Can we identify the correct jdaviz helper with only a data product's URI?
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.
import matplotlib.pyplot as plt
import astropy.units as u
from astropy.table import Table
from astropy.time import Time
from astropy.utils.data import download_file
url = 'https://exoplanetarchive.ipac.caltech.edu/data/ExoData/0113/0113357/data/UID_0113357_RVC_003.tbl'
rv_table = Table.read(download_file(url), format='ipac')
time = Time(rv_table['JD'].value, format='jd')
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bmorris3
bmorris3 / JDAT-2724.ipynb
Last active November 9, 2022 16:28
Demo for spectral extractions from non-flat traces with specreduce
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bmorris3
bmorris3 / custom_viewer_hack.ipynb
Last active February 23, 2023 18:28
jdaviz viewer mangling demonstration for @havok2063 for spacetelescope/jdaviz#1725
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bmorris3
bmorris3 / find_available_voila_templates.py
Last active October 14, 2022 13:20
Voila template help for @rosteen, related issue: spacetelescope/jdaviz#1729
import sys
import os
from glob import glob
prefix_targets = [
"nbconvert/templates",
"voila/templates",
]
def user_dir():