GithubHelp home page GithubHelp logo

nadvornikjiri / hiss-cube Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 207.84 MB

Software package for handling multi-dimensional multi-resolution data within Database.

Jupyter Notebook 98.45% Python 1.45% C 0.08% C++ 0.01% Shell 0.01%

hiss-cube's Introduction

HiSS-Cube

Software package for processing astronomical photometric and spectroscopic Hierarchical Semi-Sparse data within HDF5. Can be extended to any kind of multidimensional data combination and information retrieval.

The whole framework and its usage are described in detail in the Astronomy&Computing article, while the parallel version is described in this IEEE Xplore article.

Installation instructions

  1. Installing dependencies
apt-get update
apt-get install -y python3-pip libbz2-dev libsm6 libfontconfig1 libxrender1 libopenmpi-dev ffmpeg libsm6 libxext6

Development version - parallel implementation with MPIO

  1. Download h5py and hdf5 into ext_lib folder within the SDSSCube git folder.
  2. mkdir h5py && cd h5py && git clone https://github.com/h5py/h5py.git .
  3. Latest tar release of HDF5 from here: https://www.hdfgroup.org/downloads/hdf5/source-code/.
  4. Build & Install HDF5 parallel
./configure --enable-build-mode=debug --enable-parallel --enable-codestack
make -j8
make install
  1. Build & Install h5py
export CC=mpicc
export HDF5_MPI="ON"
export HDF5_DIR=~/SDSSCube/ext_lib/hdf5-1.12.1/
export LD_LIBRARY_PATH=~/SDSSCube/ext_lib/hdf5-1.12.1/hdf5/lib:$LD_LIBRARY_PATH
python setup_configure.py --mpi
pip uninstall h5py
python setup.py install
  1. Download code
mkdir SDSSCube
cd SDSSCube
git clone https://github.com/nadvornikjiri/HiSS-Cube.git .

4.Create virtual environment

pip3 install virtualenv
python3 -m virtualenv venv
source venv/bin/activate
pip3 install -r requirements.txt

Download data from Zenodo

Download the "data.tar.gz" from Zenodo HiSS Cube and extract the contentse ìnside the git repository. The "data" folder should afterwards contain "galaxy_small", "images", "spectra", etc. All of the tests in the scripts/tests folder will pass afterwards and the Ipython notebook pre-set paths will work as well.

Running the IPython notebook

  1. Run the IPython notebook
jupyter notebook
  1. Open the SDSS Cube.ipynb file.

  2. Run all of the cells. Note that you should have already opened TOPCAT if running the last cell that tries to send the data via SAMP.

hiss-cube's People

Contributors

nadvornikjiri avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar Ondřej Podsztavek 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.