Code Monkey home page Code Monkey logo

sfr-toolbox's Introduction

# -- -- -- - SFRepos -- -- -- --
Version: 1.0.1

This toolbox can be used to access scientific data from a variety of different file-formats using standardized syntax. The toolbox assumes that your scientific data consists of continuous data on multiple channels which can be represented by a large 2D array of numerics. In addition, the files may contain some attributes describing the data, which could be loaded into a Matlab structure.

Each data set, which could consist of 1 or more files on disk, is represented by a single object. The file-type and location of the files is stored in a flexible way in the object which allows the user to work from different locations.

The GETDATA method determines which method should be used to load the data based on the fileType. The GETATTR method does the same for the attributes. A third method allows the user to specify, per filetype, which additional attributes the user has to supply to the GETDATA method in order to correctly return the data (i.e. The precision of the data).

The toolbox allows the user to temporarily store variables in the object in order to maximize the efficiency of the getData method. For example, the user can decide to store memmapfiles in the object during the first call of the 'data' property. In subsequent calls, the memmapfile can be retrieved from the object, significantly increasing the speed. Furthermore, the user could decide to use the object to cache some of the returned data in the object for quick retrieval during a subsequent call.

The toolbox currently provides a way to load data from binary data sets where each channel is stored in a separate file. To get the first 100 values on all channels, the user can simply call:

>> repos.data(1:1000,:);

The getMethod for the filetype: BinaryByChannel, automatically loads the correct data form the various files and returns this as a single 2D array of numerics.



# Installation
1.  Download the SCIFILEREPOS - Project and place the downloaded folder on the 
    Matlab path.
2.  Copy the 'sample_ReposFile.xml' and open the file using a text-editor.
3.  Change the path attribute of the line that starts with 
    <REPOS id="SFRroot"...> to the location where you saved the SCIFILEREPOS
    project.

# Viewing the example data.    
1.  Start Matlab and browse to the \SFRExample folder.
2.  Set your SFR-location using: 
      > sfrsetlocation()
3.  Load the 'repos.mat' file in matlab.
4.  View the data using: 
      > repos.data(1:1000, 1:4)

sfr-toolbox's People

Watchers

M Eldosuky 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.