Coder Social home page Coder Social logo

factor's Introduction

Factor: Facet Calibration for LOFAR

Installation

Factor is currently installed on the LOFAR CEP3 cluster. Users on CEP3 should run the following command before using Factor:

source ~rafferty/init_factor

If you want to install Factor yourself, follow the instructions below.

Dependencies

Factor requires the following:

  • The LOFAR offline trunk from the LOFAR software repository (version 2.16.4 or later)
  • CASA (version 4.2 or version 4.5 -- versions 4.3, 4.4, and 4.6 do not work; note that CASA requires Java for the buildmytasks script that is needed by Factor, so you will need Java as well)
  • WSClean (version 1.10 or later)
  • LSMTool (version 1.1 or later)
  • jinja2
  • Shapely
  • APLpy (version 1.0 or later)
  • pyds9 (optional, to allow checkfactor to interface with ds9)

Downloading and Installing

Get the latest developer version by cloning the git repository:

git clone https://github.com/lofar-astron/factor.git

Then install with:

cd factor
python setup.py install

Code Structure

The top-level directories are:

  • bin: contains the runfactor and checkfactor executables
  • docs: contains the documentation
  • examples: contains example parset and directions file
  • factor: main code tree

Factor may be thought of as a tool to set up and run LOFAR pipeline scripts that perform facet calibration. As such, the main code tree is comprised of the following directories:

  • lib: contains general classes used to define operations, etc.
  • operations: contains the operations to perform selfcal, etc.
  • parsets: contains parsets used by executables called by the pipeline, such as DPPP, etc.
  • pipeline: contains all the pipeline files, such as pipeline parsets, configuration files, and task definitions
  • scripts: contains custom scripts called by the pipeline
  • skymodels: contains generic sky models needed by the pipeline

In addition, the factor directory contains the following files:

  • check_progress.py: runs the interactive progress tool
  • cluster.py: handles the compute cluster setup
  • directions.py: handles the setup of directions (facets)
  • parset.py: handles the reading of the Factor parset
  • process.py: performs the actual processing (running of pipelines, etc.)

Usage

The Factor executable (named runfactor) can be used from the command line with a parset that defines the parameters of the run. E.g.:

$ runfactor factor.parset

You can check the progress of a run with checkfactor:

$ checkfactor factor.parset

The parset defines the data and working directories, various options, etc. Factor handles all the initialization and sets up the directories, pipeline parsets, etc.

For details on the usage, please see the full documentation and the examples in the examples directory.

factor's People

Contributors

darafferty avatar ahorneffer avatar revoltek avatar mhardcastle avatar wndywllms avatar nudomarinero avatar rvweeren avatar joshuaalbert avatar tammojan avatar

Watchers

James Cloos avatar  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.