GithubHelp home page GithubHelp logo

ececcotti / astro-pysec Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 32 KB

Useful python scripts for astronomical purposes.

Python 100.00%
astronomy fits-files interferometry data-analysis python-scripts

astro-pysec's Introduction

astro-pysEC

A collection of Python scripts useful for astronomical and radio-interferometric purposes.

Installation

The repository can be downloaded with

git clone https://github.com/ececcotti/astro-pysEC

The following Python packages are required to run all the scripts:

These can be installed on Ubuntu with

pip install astropy h5py matplotlib numpy python-casacore pandas regions

If you do not need all the scripts, you can check what are the required packages in each one. The scripts are developed using Python 3.8, but some of them might also work with Python 2.7 โ€“ verify by checking the scripts description.

Scripts description

  • flagManager.py: it saves or replaces the FLAG column in Measurement Set files using a numpy array (Python 2.7 or later).

  • h5sol_utils.py: a set of tools to manage and plot HDF5 files containing LOFAR calibration solutions; currently, it is draft version to plot the amplitude of complex gains as a function of the baseline length (Python 3.8 or later).

  • plot_fits.py: it generates plots of a FITS image using WCS coordinates. The output image can be saved in PDF or PNG format. Other plotting options can be listed with python plot_fits.py -h (Python 3.8 or later).

  • reg_info.py: it gets useful information (e.g. sum, mean and rms) from one or more regions of an image. Multiple FITS images are accepted, but only one region file. However, it can be a collection of more than one region; in this case, individual and global information will be given. DS9 (REG), CASA (CRTF) and FITS region file formats are all allowed. Other options (e.g. plotting) can be listed with python reg_info.py -h (Python 3.8 or later).

astro-pysec's People

Contributors

ececcotti 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.