Skip to content

eas342/pixeltime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixel Time Series

This set of scripts is designed to create a time series of the pixels within an image

Installation

git clone https://github.com/eas342/pixeltime
cd pixeltime
python setup.py install

Basic Usage

Here's how to get a table of the pixel

import pixeltime
import numpy as np

## here we make up fake data where the flux is the Y or X coordinate
## in reality, you could put measured data here
y, x = np.mgrid[0:2048,0:2048]
outT = pixeltime.main.all_pixels_tser(y)

outT is an astropy table with a time column and the flattend data for each output amplifier

You can plot the time series like so:

import matplotlib.pyplot as plt
plt.plot(outT['time'],outT['Amp 0 Val'])
plt.show()

About

Make time series of pixels from image data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages