czwa / robospect Goto Github PK
View Code? Open in Web Editor NEWAutomated equivalent width measurement software. Described in http://adsabs.harvard.edu/abs/2013PASP..125.1164W
License: GNU General Public License v2.0
Automated equivalent width measurement software. Described in http://adsabs.harvard.edu/abs/2013PASP..125.1164W
License: GNU General Public License v2.0
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
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.