Coder Social home page Coder Social logo

astrosica / astrolic Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 13.39 MB

Line Integral Convolution (LIC) for astrophysics polarization.

Python 1.28% Jupyter Notebook 98.72%
astronomy astrophysics astronomical-images polarization polarimetry python python3

astrolic's Introduction

astroLIC

An implementation of LicPy using astronomical polarimetry. An example is given in a Jupyter notebook which reproduces Figure 2 in Campbell et al. (2020).

Dependencies

Required packages for LicPy:

Additional required packages for astroLIC:

There is currently a bug with using the latest version of tensorflow that results in the error AttributeError: module 'tensorflow' has no attribute 'placeholder' when running LicPy. To work around this, you'll want to open the lic.py file; for me this is located in /opt/anaconda3/lib/python3.7/site-packages/licpy-0.2-py3.7-macosx-10.9-x86_64.egg/licpy/. When the error is raised, you should be able to read off the directory that is causing the error. Then, simply change import tensorflow as tf to the following:

import tensorflow.compat.v1 as tf tf.disable_v2_behavior().

Installation

TBA.

Usage

astroLIC(I_dir,Q_dir,U_dir,length=0.25,toIAU=False,wcs=True)

Notes

This is a particular implementation of LIC meant for astronomical polarimetry which uses a specific coordinate system (IAU convention) not used in many other data sets. Therefore, astro-LIC is only meant to be used for astronomical polarization data and will not provide the correct orientation if used with other data sets.

astrolic's People

Contributors

astrosica avatar

Watchers

 avatar

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.