Code Monkey home page Code Monkey logo

enlib's Introduction

Quick Install

Very basic but critical functionality can be obtained by following these steps:

  • git clone this repo into your directory of choice $DIR (Note: this means enlib will be in $DIR/enlib. For e.g. the path to this file will be $DIR/enlib/README.md)
  • add $DIR to your $PYTHONPATH

This should allow you to import and use many enlib modules assuming that basic dependencies like numpy are present on your system.

Dependencies

Enlib consists of a collection of relatively independend modules, so if you don't need all of them you don't need to install all dependencies. I've split the modules into groups based on typical use cases and list the dependencies of each. Some modules require compiling via f2py. This requires a fortran and C compiler, which settings are specified in the compile_opts directory. Which settings file is used is specified via the ENLIB_COMP environment variable. You will probably want to make your own file with settings for your computer, for example foo.mk, and then export ENLIB_COMP=foo in your .bashrc or similar.

Misc. utils

  • Primary modules: utils, cg, colors, bins, errors
  • Internal dependencies: None
  • External dependencies: python2, numpy

Coordinate transformation

  • Primary modules: coordinates
  • Internal dependencies: iers + [misc utils]
  • External dependencies: pyephem, astropy
  • To build: make coordinates

Flat-sky maps

  • Primary modules: enmap, powspec
  • Internal dependencies: fft, array_ops, utils, wcs, slice + [misc utils]
  • External dependencies: scipy, pyfftw, astropy, h5py, lapack
  • To build: make array_ops

Curved-sky maps

  • Primary modules: curvedsky, lensing
  • Internal dependencies: sharp + [flat-sky maps]
  • External dependencies: libsharp, cython
  • To build: make sharp

Mapmaking

  • Primary modules: zgetdata, map_equation, scan, scansim, gapfill, rangelist
  • Internal dependencies: [misc. utils, coordinate transformation, flat-sky maps]
  • External dependencies: mpi4py, pygetdata, zipfile, tempfile, shutil
  • To build: make

enlib's People

Contributors

amaurea avatar msyriac avatar guanyilun avatar aiolasimone avatar

Watchers

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