Giter Site home page Giter Site logo

hbsnmyj / arraybridge Goto Github PK

View Code? Open in Web Editor NEW
4.0 8.0 0.0 37.15 MB

CMake 1.96% Makefile 0.03% Shell 3.78% Python 9.89% HTML 0.53% C++ 76.37% C 0.03% Fortran 0.42% Java 5.17% Protocol Buffer 0.08% Pawn 0.23% LLVM 0.19% Yacc 0.41% PLpgSQL 0.22% SQLPL 0.07% Objective-C 0.10% XSLT 0.19% R 0.01% Perl 0.34%

arraybridge's Introduction

ArrayBridge

Installation

  • Install the HDF5 library

        ./configure --enable-hl --enable-build-mode=production
        make
        sudo make install
    

    You can also install the HDF5 library to non-default location:

    ./configure --prefix=$PREFIX --enable-hl --enable-build-mode=production
    make -j12
    make PREFIX="$PREFIX" install
    

    In that case, make sure HDF5 can be found by CMake:

    export CMAKE_PREFIX_PATH=$PREFIX:$CMAKE_PREFIX_PATH
    
  • Following SciDB's installation guide to install SciDB.

Usage

scan_hdf5() operator

  • Create an array in SciDB:
create_array(array0, <val:double>[i=0:9999,1000,0]);
  • Create a configuration file with the path of the HDF5 file and the attribute/dataset mapping (optional). If the attribute/dataset mapping is not available, ArrayBridge looking for the dataset with the same name.
path_to_hdf5_file
attribute0 dataset0
attribute1 dataset1
  • Use scan_hdf5() operator to access the external array.
scan_hdf5(array0, path_to_config_file);

If the second parameter is omitted, ArrayBridge looks for the file $HOME/scidb_hdf5.config

save() operator

Use 'hdf5' format to save as HDF5 dataset:

save(array0, 'test1.hdf5:dataset', -2, 'hdf5');

arraybridge's People

Contributors

hbsnmyj avatar

Stargazers

 avatar XY avatar Alex Poliakov avatar Jonathan Rivers avatar

Watchers

 avatar Alex Poliakov avatar  avatar Paul G. Brown avatar  avatar Suren Byna avatar Jonathan Rivers avatar Kriti Sen Sharma 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.