Giter Club home page Giter Club logo

robospect's Introduction

This is ROBOSPECT, a program to automatically measure spectral line
profiles with minimal user interaction.  

Current availability and documentation are available at
http://www.ifa.hawaii.edu/users/watersc1/robospect.html

Email <[email protected]> or <[email protected]> for
more information.

*** Installation Instructions *** 

The following libraries are used by ROBOSPECT:

  * libgsl : required. Tested to work with versions > v1.9.
  * libcfitsio : optional requirement to allow FITS image input.
  * libplplotd : optional requirement to produce line fit plots.

Compilation is done by simply running:
./configure && make

This produces a binary file src/robospect which can then be installed
into the user's path.

Further documentation is available in the doc directory.

*** Compilation problems ***

The two most common issues that prevent compilation are missing
libraries and incompatible build tools.  These should be reasonably
easy to fix.  Missing library locations can be appended to the
AM_CFLAGS variable in the src/Makefile.am file.  libgsl supplies a
gsl-config command that can provide information about the installation
state.  gsl-config --cflags and/or gsl-config --libs should give the
information needed.

In the case of build incompatibility, the easiest solution is to run
the command sequence:

aclocal
autoconf
automake --add-missing

to ensure that the local build matches the tools installed.

*** Usage ***

The default parameters for ROBOSPECT should produce useful results,
but here are a few examples to illustrate standard uses:

## Print help page with all command line parameters
robospect -h

## Run a normal fit on input stellar absorption spectra example.dat,
## saving results to rs.out.  ROBOSPECT will attempt to find all lines
## to fit.  robospect -F -P rs.out example.dat

## As above, but using a specified linelist to fit from.
robospect -L lines.dat -F -P rs.out example.dat

## As above, with verbosity increased to show line fitting activity
robospect -L lines.dat -F -P rs.out example.dat -v line -v screen

## Fit a flux calibrated spectrum, changing the continuum size to match
## an increase in resolution:
robospect -L lines.dat -F -P rs.out fc_example.dat --loosen --flux_calibrated -V 10

robospect's People

Contributors

czwa avatar

Watchers

James Cloos avatar

robospect's Issues

Compilation

I tried to compile robospect under the latest Linux Mint. I got this error:
gsllm-multigauss.c: In function ‘lm_multigauss’:
gsllm-multigauss.c:180:25: error: ‘gsl_multifit_fdfsolver’ {aka ‘struct <anonymous>’} has no member named ‘J’
180 | gsl_multifit_covar(S->J,0.0,covar);
| ^~
# cc1 0.06 0.01

I think it's related with different version of libgsl. I have v2.5 in which used structure
typedef struct
{
const gsl_multifit_fdfsolver_type * type;
gsl_multifit_function_fdf * fdf ;
gsl_vector * x;
gsl_vector * f;
gsl_matrix * J;
gsl_vector * dx;
void *state;
}
gsl_multifit_fdfsolver;
changed to
typedef struct
{
const gsl_multifit_fsolver_type * type;
gsl_multifit_function * function ;
gsl_vector * x ;
gsl_vector * f ;
gsl_vector * dx ;
void *state;
}
gsl_multifit_fsolver;
It's without matrix J.

How to modify robospect file nlls-multigauss.c to work also with newer versions of libgsl?

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.