Giter Site home page Giter Site logo

ep2txt's Introduction

This program converts episodic StellarNet spectra to text files.

Usage:
	ep2txt <infile.ep1> <outfile.txt>
		- OR -
	ep2txt <infile.ep1> <outfile.txt> <c1> <c2> <c3> <c4>

where c1..c4 are manually set wavelength polynome coefficients,

	wavelength, nm = c3 + c1*i + c2*i*i + c4*i*i*i

Library usage:
Pass float[4] of wavelength coefficients (or NULL if you want to use the file)
and pointers to size_t number_of_spectra, float * wavelengths, ** intensities.
Intensities[i] will contain 2051 points of each captured frame (i).
After you're finished, don't forget to free the data:
free(wavelengths);
for (i = 0; i < num_spectra; i++) free(intensities[i]);
free(intensities);

On errors all memory the library may have allocated is freed but the contents
of the variables you passed to it are not defined.

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.