GithubHelp home page GithubHelp logo

tomasstolker / implaneia Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anand0xff/implaneia

0.0 0.0 0.0 32.12 MB

Tools for fitting (image plane fringes), calibrating, and analyzing NRM data across multiple instruments and modes

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

implaneia's Introduction

nrm_analysis README (WIP)

Original package development led by Alexandra Greenbaum following legacy code by Greenbaum, Anand Sivaramakrishnan, and Laurent Pueyo. Further design changes and contributions from Sivaramakrishnan, Deepashri Thatte, Johannes Sahlmann, Anthony Soulain, Rachel Cooper.

The package implements the algorithm in 2015ApJ...798...68G

It extracts interferometric observables from JWST MIRISS aperture masking interferometry (AMI) images/interferograms. The principal task writes out multiple-slice and averaged oifits files.

The subdirectory nrm_analysis contains the code. scripts/exampleDriver.py is a current, maintained, working sample script (TBD).

Major changes from Alex Greenbaum's ImPlaneIA

Calibration of a target's raw oifits by another observation's raw oifits is supported by this package, and model-fitting has been removed. Original format text files of observables are still written out, along with oifits files.

The scripts directory contains scripts that were used during code dvelopment. Some calls may have changed so they might not all work. Reorg required at some point.

  • TBD 1: Put an exampledDriver.py, including calibrating two observations against each other, into scripts.
  • TBD 2: Put small sample data into a cleanly-defined supporting data directory. Existing bad-pixel-free and with-bad-pixels AB Dor and a caibrator are good examples.
  • Create a requirements file for use by pip

WebbPSF, pysynphot, and supporting data files
Routines from WebbPSF's Poppy. and supporting JWST filter data. Installing WebbPSF (just using conda or pip) by itself, and pysynphot, and supporting JWST filter, aperture, and spectral data ensure better ImPlaneIA model fidelity. In bash an environment variable - e.g.: WEBBPSF_PATH=/Users/mylogin/anaconda3/envs/py38/share/webbpsf-data
informs ImPlaneIA where WebbPSF's data files live. Without these files your ImPlaneIA will default to top-hat filter proiles and nominal primary object spectra, and use slow integration methods over filters. Pysynphot uses the environment variable where a wide range of stellar and other objects' spectra are stored:
PYSYN_CDBS=/Users/mylogin/data/cdbs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.