Skip to content

Instantly share code, notes, and snippets.

View pllim's full-sized avatar
💭
Clickety clack clack. ⌨

P. L. Lim pllim

💭
Clickety clack clack. ⌨
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pllim
pllim / pyastro2018_synphot.ipynb
Created May 1, 2018 21:21
pyastro2018 synphot/stsynphot lightning talk
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pllim
pllim / pysynphot_issue_81.ipynb
Created March 15, 2018 17:10
PySynphot Issue 81
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pllim
pllim / read_asdf_2.log
Created March 13, 2018 18:40
Attempt to extract WCS from JWST spectrum
In [1]: import astropy
In [2]: astropy.__version__
Out[2]: '3.1.dev21573'
In [3]: import asdf
In [4]: asdf.__version__
Out[4]: '2.0.0.dev1248'
@pllim
pllim / read_asdf.log
Created March 13, 2018 14:32
Attempt to get GWCS out of ASDF
In [1]: import asdf
In [2]: fa = asdf.open('miri_wcs.asdf')
.../yamlutil.py:248: UserWarning: tag:stsci.edu:gwcs/step-1.0.0 is not recognized, converting to raw Python data structure
"data structure".format(tag_name))
.../asdf/yamlutil.py:248: UserWarning: tag:stsci.edu:jwst_pipeline/v23tosky-0.7.0 is not recognized, converting to raw Python data structure
"data structure".format(tag_name))
.../asdf/yamlutil.py:248: UserWarning: tag:stsci.edu:gwcs/celestial_frame-1.0.0 is not recognized, converting to raw Python data structure
"data structure".format(tag_name))
.../asdf/yamlutil.py:248: UserWarning: tag:stsci.edu:gwcs/wcs-1.0.0 is not recognized, converting to raw Python data structure
@pllim
pllim / synphot_units.ipynb
Created February 20, 2018 21:56
synphot: Flat spectrum is not really flat in other units
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pllim
pllim / Conesearch_AKARI.ipynb
Last active October 20, 2017 01:27
Cone Search Example using AKARI/FIS All-Sky Survey Bright Source Catalogue
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pllim
pllim / FootPrints_10613.ipynb
Created October 6, 2017 14:56
PySynphot example: Calculation in ABMAG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pllim
pllim / redo.py
Created September 11, 2017 16:40
Script written by @dborncamp to create CRC files for post-SM4 WFC subarrays
import os
import logging
import datetime
import shutil
import glob
from astropy.io import fits
from acstools import acs_destripe
from acstools import acsccd
from acstools import acscte