Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Fit models to your data in Python with Sherpa.

License

NotificationsYou must be signed in to change notification settings

sherpa/sherpa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status: CondaBuild Status: PipDocumentation StatusDOIGPLv3+ LicensePython version

Table of Contents

Sherpa

Sherpa is a modeling and fitting application for Python. It contains apowerful language for combining simple models into complex expressionsthat can be fit to the data using a variety of statistics andoptimization methods. It is easily extensible to include user models,statistics, and optimization methods. It provides a high-level UserInterface for interactive data-analysis work, such as within aJupyter notebook, and it can also be used as a library component,providing fitting and modeling capabilities to an application.

What can you do with Sherpa?

  • fit 1D (multiple) data including: spectra, surface brightness profiles, light curves, general ASCII arrays
  • fit 2D images/surfaces in Poisson/Gaussian regime
  • build complex model expressions
  • import and use your own models
  • use appropriate statistics for modeling Poisson or Gaussian data
  • import new statistics, with priors if required by analysis
  • visualize the parameter space with simulations or using 1D/2D cuts of the parameter space
  • calculate confidence levels on the best fit model parameters
  • choose a robust optimization method for the fit: Levenberg-Marquardt, Nelder-Mead Simplex or Monte Carlo/Differential Evolution.

Documentation for Sherpa is available atRead The Docsand also forSherpa in CIAO.

AQuick Start Tutorialis included in thenotebooks folder and can be opened with anipython notebook.

Acknowledging or Citing Sherpa

If you use Sherpa for work/research presented in a publication please cite the Sherpa papers:

Sherpa Paper 2024 (ADS BibTex)

Sherpa Paper 2007 (ADS BibTex )

Sherpa Paper 2001 (ADS BibTex)

If you are using AASTeX and plan to submit an article to one of the AAS journals, we recommend adding a \software{...} tag to your manuscript that cites Sherpa (see theAASTeX guide for more information), e.g.:

\software{Sherpa \citep{2001SPIE.4477...76F,2007ASPC..376..543D,2024arXiv240910400S}}

License

This program is free software: you can redistribute it and/or modify it underthe terms of the GNU General Public License as published by the Free SoftwareFoundation, either version 3 of the License, or (at your option) any laterversion. A copy of the GNU General Public License can be found in theLICENSE file provided with the source code, or from theFree Software Foundation.

How To Install Sherpa

Full installation instructionsare part of theRead The Docsdocumentation, and should be read if the following is not sufficient.

It is strongly recommended that some form ofvirtual environment isused with Sherpa.

Sherpa is tested against Python versions 3.10 and 3.11 with experimental support for Python 3.12.

The last version of Sherpa which supported Python 2.7 isSherpa 4.11.1.

Using Conda

Sherpa is provided for both Linux and macOS operating systems runningPython 3.10, 3.11, and (experimental) 3.12. It can be installed with thecondapackage manager by saying

$ conda install -c https://cxc.cfa.harvard.edu/conda/sherpa -c conda-forge sherpa

Using pip

Sherpa is also availableon PyPI and so can be installedwith the following command (which requires that the NumPy package isalready installed).

% pip install sherpa

Building from source

Source installation is available for platforms incompatible with thebinary builds, or for when the default build options are not sufficient(such as including support for theXSPEC model library).The steps are described in thebuilding from sourcedocumentation.

History

Sherpa is developed by theChandra X-rayObservatory to provide fitting and modellingcapabilities to theCIAO analysis package. Ithas been released ontoGitHub for users toextend (whether to other areas of Astronomy or in other domains).

Release History

4.17.0: 09 October 2024DOI

4.16.1: 21 May 2024DOI

4.16.0: 17 October 2023DOI

4.15.1: 18 May 2023DOI

4.15.0: 11 October 2022DOI

4.14.1: 20 May 2022DOI

4.14.0: 07 October 2021DOI

4.13.1: 18 May 2021DOI

4.13.0: 08 January 2021DOI

4.12.2: 27 October 2020DOI

4.12.1: 14 July 2020DOI

4.12.0: 30 January 2020DOI

4.11.1: 1 August 2019DOI

4.11.0: 20 February 2019DOI

4.10.2: 14 December 2018DOI

4.10.1: 16 October 2018DOI

4.10.0: 11 May 2018DOI

4.9.1: 01 August 2017DOI

4.9.0: 27 January 2017DOI

4.8.2: 23 September 2016DOI

4.8.1: 15 April 2016DOI

4.8.0: 27 January 2016DOI


[8]ページ先頭

©2009-2025 Movatter.jp