simspin
SimSpin - A package for the kinematic analysis of galaxy simulations
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.9%) to scientific vocabulary
Keywords
Repository
SimSpin - A package for the kinematic analysis of galaxy simulations
Basic Info
- Host: GitHub
- Owner: kateharborne
- License: lgpl-3.0
- Language: R
- Default Branch: main
- Homepage: https://kateharborne.github.io/SimSpin/
- Size: 563 MB
Statistics
- Stars: 25
- Watchers: 2
- Forks: 6
- Open Issues: 13
- Releases: 14
Topics
Metadata Files
README.md
SimSpin

v2.10.5 - A package for producing mock observations:
SimSpin allows you to take a simulation of a galaxy and produce a data cube in the style of an Integral Field Spectroscopy (IFS) instrument. You can find the live documentation for this code at the following website.
A mock observation is produced using three simple steps:
- Read in your particle data and produce the relevant spectra using the
make_simspin_filefunction. - Setup the observation by defining your
telescopeandobserving_strategy. - Build your data cube using the
build_datacube.
The data cube produced can be saved as a FITS file for ease of comparison with real observations. This package, once installed, is fully documented and tested.
Another implementation of this code (SimSpin v1.1.3) written in Julia is also available at SimSpin.jl developed by Gerry Gralton.
Package installation
To install directly into R:
install.packages("devtools")
library(devtools)
install_github("kateharborne/SimSpin")
Else, please fork a copy of this repository for your own development using the code button to the upper right.
Package examples
The following lines will take you from a particle simulation of a galaxy, an example of which is included in this package, through to the production of a mock-IFS data cube.
ss_file = make_simspin_file(filename = system.file("extdata","SimSpin_example_Gadget",
package = "SimSpin"),
write_to_file = FALSE) # generate a spectra file
SAMI = telescope(type="SAMI") # initialise a telescope
strategy = observing_strategy(dist_z = 0.05) # initialise obsering conditions
cube = build_datacube(simspin_file = ss_file, # build data cube
telescope = SAMI,
observing_strategy = strategy,
method = "spectral")
For a longer example of how each function can be used, please take a look at the documentation for the package. Short examples for each function are provided in each function's documentation, as well as an explanation of each of the possible input variables.
From within R, you can display the package documentation by typing ?SimSpin and select "Index" at the bottom of the page to view all available functions. Alternatively, type ? followed by the function name to see function specific documentation.
Longer examples are published online and demonstrate a walk-through the basic code operation for SimSpin v2.5.0.
If you have any further questions or requests for features in the code, report an issue or drop an email to katherine.e.harborne\@durham.ac.uk.
Citation
If you use this code in any of your own published research, please make sure to include the following citations in your bibliography:
NEW PUBLICATION K.E. Harborne, A. Serene, E.J.A. Davies, C. Derkenne, S. Vaughan, A.I. Burdon, C. del P. Lagos, R. McDermid, S. O'Toole, C. Power, A.S.G Robotham, G. Santucci, R. Tobar (2023), SimSpin v2.6.0—constructing synthetic spectral IFU cubes for comparison with observational surveys, Publications of the Astronomical Society of Australia, Volume 40, article id. e048
K.E. Harborne, C.Power and A.S.G. Robotham, (2020), "SIMSPIN - Constructing mock IFS kinematic data cubes", Publications of the Astronomical Society of Australia, Volume 37, article id. e016
K.E. Harborne, (2019), "SimSpin: Kinematic analysis of galaxy simulations", Astrophysics Source Code Library, record ascl:1903.006
Owner
- Name: Katherine Harborne
- Login: kateharborne
- Kind: user
- Location: Perth, Australia
- Website: https://www.icrar.org/people/kharborne/
- Repositories: 2
- Profile: https://github.com/kateharborne
Citation (CITATION.cff)
# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!
cff-version: 1.2.0
title: 'SimSpin: Kinematic analysis of simulated galaxies'
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- given-names: Katherine
family-names: Harborne
email: katherine.harborne@uwa.edu.au
affiliation: The University of Western Australia
orcid: 'https://orcid.org/0000-0002-2043-7985'
identifiers:
- type: doi
value: 10.1017/pasa.2023.47
description >-
Publications of the Astronomical Society of Australia,
Volume 40, article id. e048, Oct 2023
- type: other
value: 'ascl:1903.006'
description: Astrophysics Source Code Library
- type: doi
value: 10.1017/pasa.2020.8
description: >-
Publications of the Astronomical Society of Australia,
Volume 37, article id. e016, May 2020
repository-code: >-
https://github.com/kateharborne/SimSpin/releases/tag/v2.6.0
url: 'https://kateharborne.github.io/SimSpin/'
repository: 'https://github.com/kateharborne/SimSpin'
abstract: >-
In this work, we present a methodology and a corresponding
code-base for constructing mock integral field
spectrograph (IFS) observations of simulated galaxies in a
consistent and reproducible way. Such methods are
necessary to improve the collaboration and comparison of
observation and theory results, and accelerate our
understanding of how the kinematics of galaxies evolve
over time. This code, SimSpin, is an open-source package
written in R, but also with an API interface such that the
code can be interacted with in any coding language.
Documentation and individual examples can be found at the
open-source website connected to the online repository.
SimSpin is already being utilised by international IFS
collaborations, including SAMI and MAGPI, for generating
comparable data sets from a diverse suite of cosmological
hydrodynamical simulations.
keywords:
- 'virtual observatory tools '
- 'galaxies: evolution'
- 'galaxies: kinematics and dynamics'
- 'methods: numerical'
license: LGPL-3.0
commit: >-
https://github.com/kateharborne/SimSpin/commit/76fd5c260d9567a964f65299f9334629f7715161
version: v2.6.0
date-released: '2023-07-19'
GitHub Events
Total
- Issues event: 8
- Watch event: 3
- Delete event: 8
- Issue comment event: 4
- Push event: 83
- Pull request event: 21
- Fork event: 4
- Create event: 9
Last Year
- Issues event: 8
- Watch event: 3
- Delete event: 8
- Issue comment event: 4
- Push event: 83
- Pull request event: 21
- Fork event: 4
- Create event: 9
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 6
- Total pull requests: 8
- Average time to close issues: 3 months
- Average time to close pull requests: 4 days
- Total issue authors: 3
- Total pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 6
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 5
- Pull requests: 8
- Average time to close issues: 3 days
- Average time to close pull requests: 4 days
- Issue authors: 3
- Pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 6
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- kateharborne (7)
- stellardisk (2)
- amandaeac (1)
- NilanjanaNandi (1)
Pull Request Authors
- kateharborne (24)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- actions/checkout v2 composite
- actions/upload-artifact main composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- R >= 4.0 depends
- foreach * depends
- ProFit * imports
- RColorBrewer * imports
- Rcpp * imports
- Rfits * imports
- celestial * imports
- cmocean * imports
- data.table * imports
- doParallel * imports
- fields * imports
- grDevices * imports
- graphics * imports
- hdf5r * imports
- magicaxis * imports
- methods * imports
- plotrix * imports
- pracma * imports
- sphereplot * imports
- stats * imports
- stringr * imports
- utils * imports
- knitr * suggests
- rmarkdown * suggests
- testthat * suggests