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 turbustat.statistics import psds | |
| import pylab as pl | |
| import numpy as np | |
| def plotpsd(image, pixscale=None, mask=None): | |
| if isinstance(image, str): | |
| ia.open(image) | |
| data = ia.getchunk().squeeze() | |
| ia.close() | |
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.
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.
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
| $ python setup.py install_radex install_myradex build install | |
| /Users/adam/miniconda3/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'install_requires' | |
| warnings.warn(msg) | |
| running install_radex | |
| Downloading RADEX | |
| Download succeeded, or at least didn't obviously fail. | |
| Extracting RADEX source from file /Users/adam/.astropy/cache/download/py3/1defa05c60c0df7c847ebc33345310c6 | |
| Reading fortran codes... | |
| Reading file 'main.f' (format:fix,strict) | |
| Reading file 'radex.inc' (format:fix) |
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
| import numpy as np | |
| import pylab as pl | |
| import pandas | |
| def plotdata(csvfile, linestyle='-', marker=None): | |
| if isinstance(csvfile, pandas.DataFrame): | |
| dat = csvfile | |
| else: | |
| dat = pandas.read_csv(csvfile) | |
| if 'Unnamed: 0.1' in dat: |
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
| #!/Users/adam/anaconda/envs/astropy35/bin/python | |
| import os | |
| import datetime | |
| import co2meter.co2meter | |
| import pylab as pl | |
| mon = co2meter.co2meter.CO2monitor() | |
| mon.start_monitoring(interval=10) |
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
| # cached metadata database retrieval | |
| import json | |
| import requests | |
| cache = {} | |
| def get_db(): | |
| if 'db' not in cache: | |
| db_rslt = requests.get("https://mtgatool.com/database/database.json") |