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 hidden or 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 toasty import toast, healpix_sampler, normalizer | |
| from astropy.io import fits | |
| import logging | |
| #print progress | |
| FORMAT = ' %(asctime)-15s %(message)s' | |
| logging.basicConfig(format=FORMAT) | |
| logger = logging.getLogger('toasty.tile') | |
| logger.setLevel(logging.DEBUG) |
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 hidden or 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 spectral_cube import read | |
| mycube = read("ant_COline_5kms_evenbeam.fits") | |
| my_cube.get_data(views, fill='min') # nan replacement fill='min'/'max' | |
| my_cube.flatten(views) # flat, reject nans | |
| my_cube.spectral_slab(30 * u.km / u.s, 50 * u.km / u.s) |
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 hidden or 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 glue import qglue | |
| from glue.core.data_factories import panda_process | |
| import pandas as pd | |
| df = pd.read_csv(...) | |
| data = panda_process(df) # convert to Glue data, detect categorical components | |
| qglue(data=data) #start ui | |
| #alternatively, from the GUI, choose file->open data set, and choose file type=Pandas table |
This file contains hidden or 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 astrodendro import Dendrogram, ppv_catalog | |
| from astropy.io import fits | |
| from astropy import units as u | |
| data = fits.getdata('DHT21_Taurus_mom.fits') | |
| dg = Dendrogram.compute(data, verbose=True, | |
| min_value=0.01, | |
| min_delta = 0.005, | |
| min_npix = 20) |
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer