GithubHelp home page GithubHelp logo

tesch1 / mtagipack Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 40 KB

c and matlab routines for reading varian/agilent nmr/mri data files

License: Other

Makefile 0.24% C 94.24% C++ 4.51% MATLAB 1.02%
agilent varian agilent-nmr mri nmr nmr-spectroscopy

mtagipack's Introduction

mtagipack

c and matlab routines for reading varian/agilent nmr/mri data files

The contents of mtagipack:

  • mtagipack_setup.m Build the mex files before using them in matlab
  • mexLoadAgilentParams.c Load agilent 'procpar' variables into a struct
  • mexLoadAgilentTraces.c Load agilent(/varian) fid file data
  • mexSaveAgilentTraces.c Save agilent(/varian) fid file data

Where to find mtagipack

Setup

It maybe necessary to use 'mex -setup' in matlab to adjust your mex compilation flags to REMOVE the '-ansi' flag. Practically nobody has written "ansi C" since the mid-80s.

Get the tarball/zip, and do the following:

tesch$ tar xzvf mtagipack-1.6.7.tgz 
tesch$ matlab -nojvm
...
>> path(path,'.../.../path/to/mtagipack-1.6.7');
>> which mtagipack_setup
.../mtagipack-1.6.7/mtagipack_setup.m
>> mtagipack_setup
setup mex in .../mtagipack-1.6.7
*** if you get errors, make sure to remove "-ansi" from mexopts.sh (see mex -setup) ***
compiling mexLoadAgilentTraces...
compiling mexLoadAgilentParams...
return to /wherever you were/
>> mexLoadAgilentTraces
Error using mexLoadAgilentTraces
usage: [traces mainh blockh] = mexLoadAgilentTraces(filename)

>> [traces mainh blockh] = mexLoadAgilentTraces('.../data2/djswiDD_16kview_test_dataset.fid/');  
read blocks:8 traces:24576 samples:6291456 channel:0/1
>> size(traces)

ans =

         256        3072           8

>> mainh

mainh = 

      nblocks: 8
      ntraces: 3072
           np: 256
       ebytes: 4
       tbytes: 2048
       bbytes: 6291484
       status: 73
      vers_id: 0
    nbheaders: 1

>> 

mtagipack's People

Contributors

tesch1 avatar

Watchers

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