https://github.com/mickaelrigault/skysurvey

Simulate transients within the sky

https://github.com/mickaelrigault/skysurvey

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.4%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Simulate transients within the sky

Basic Info
  • Host: GitHub
  • Owner: MickaelRigault
  • License: apache-2.0
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 4.53 MB
Statistics
  • Stars: 12
  • Watchers: 1
  • Forks: 9
  • Open Issues: 18
  • Releases: 0
Created almost 4 years ago · Last pushed 11 months ago
Metadata Files
Readme License

README.md

PyPI Documentation Status

skysurvey

Simulate transients within the sky

skysurvey relies on sncosmo for bandpass and lightcurve generations. (https://sncosmo.readthedocs.io/en/stable/)

See documentation on read the docs

Install

bash pip install skysurvey or bash git clone https://github.com/MickaelRigault/skysurvey.git cd skysurvey pip install .

Quick Start

You need to create a Target and a Survey to then simulate how your survey would observe your targets ; aka a DataSet.

Here is a quick example:

Step 1: targets (truth)

python import skysurvey snia = skysurvey.SNeIa() data = snia.draw(size=50_000, tstart=56_000, tstop=56_100, inplace=True) # see options data.head(5) # also snia.data

Step 2: Survey (pointing and observing conditions)

```python import numpy as np from skysurvey.tools import utils

size = 10_000

footprint

from shapely import geometry sq_footprint = geometry.box(-1, -1, +1, +1)

Observing data

ra, dec = utils.randomradec(size=size, rarange=[200,250], dec_range=[-20,10])

data = {} data["ra"] = ra data["dec"] = dec data["gain"] = 1 data["zp"] = 30 data["skynoise"] = np.random.normal(size=size, loc=150, scale=20) data["mjd"] = np.random.uniform(56000-10, 56100 + 10, size=size) data["band"] = np.random.choice(["desg","desr","desi"], size=size)

Build the survey

survey = skysurvey.Survey.frompointings(data, footprint=sqfootprint) survey.data ```

Step 3: Dataset

And now let's build the dataset. The simulated lightcurves are in dset.data, the input survey is stored in dset.survey, the input targets is stored in dset.targets

python from skysurvey import dataset dset = dataset.DataSet.from_targets_and_survey(snia, survey) dset.data

Owner

  • Name: Mickael Rigault
  • Login: MickaelRigault
  • Kind: user
  • Location: Lyon
  • Company: IN2P3 | CNRS

GitHub Events

Total
  • Issues event: 7
  • Watch event: 3
  • Delete event: 1
  • Issue comment event: 11
  • Push event: 25
  • Pull request event: 2
  • Create event: 2
Last Year
  • Issues event: 7
  • Watch event: 3
  • Delete event: 1
  • Issue comment event: 11
  • Push event: 25
  • Pull request event: 2
  • Create event: 2

Committers

Last synced: over 3 years ago

All Time
  • Total Commits: 67
  • Total Committers: 1
  • Avg Commits per committer: 67.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
MickaelRigault m****t@g****m 67

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 24
  • Total pull requests: 21
  • Average time to close issues: 25 days
  • Average time to close pull requests: 2 days
  • Total issue authors: 9
  • Total pull request authors: 5
  • Average comments per issue: 0.88
  • Average comments per pull request: 1.24
  • Merged pull requests: 16
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 10
  • Pull requests: 3
  • Average time to close issues: 21 days
  • Average time to close pull requests: about 3 hours
  • Issue authors: 4
  • Pull request authors: 1
  • Average comments per issue: 0.6
  • Average comments per pull request: 0.0
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • mginolin (7)
  • MickaelRigault (4)
  • AntoineGillesLordet (3)
  • dylankuhn (2)
  • mcoughlin (2)
  • bap37 (1)
  • AkshayPanayada (1)
  • Theodlz (1)
  • zvanderbosch (1)
Pull Request Authors
  • mcoughlin (6)
  • MickaelRigault (6)
  • AkshayPanayada (5)
  • mginolin (5)
  • ConstanceGanot (1)
Top Labels
Issue Labels
enhancement (3)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 167 last-month
  • Total dependent packages: 1
  • Total dependent repositories: 0
  • Total versions: 61
  • Total maintainers: 1
pypi.org: skysurvey

Simulating Transient in the sky and how to observe them

  • Versions: 61
  • Dependent Packages: 1
  • Dependent Repositories: 0
  • Downloads: 167 Last month
Rankings
Dependent packages count: 6.6%
Downloads: 18.4%
Average: 22.2%
Forks count: 23.2%
Dependent repos count: 30.6%
Stargazers count: 32.3%
Maintainers (1)
Last synced: 11 months ago

Dependencies

docs/requirements.txt pypi
  • astropy *
  • dask *
  • geopandas *
  • healpy *
  • matplotlib *
  • myst-nb *
  • nbsphinx *
  • numpy *
  • numpydoc *
  • pandas *
  • scipy *
  • shapely *
  • sncosmo *
  • sphinx-book-theme *
  • sphinx_copybutton *
  • ztfquery *
requirements.txt pypi
  • astropy *
  • dustmaps *
  • extinction *
  • healpy *
  • modeldag *
  • numpy *
  • pandas *
  • scipy *
  • sncosmo *
  • ztffields *
setup.py pypi