ztf_sim

:telescope: Zwicky Transient Facility survey scheduler

https://github.com/zwickytransientfacility/ztf_sim

Science Score: 65.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
    Found 3 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
    Organization zwickytransientfacility has institutional domain (ztf.caltech.edu)
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.0%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

:telescope: Zwicky Transient Facility survey scheduler

Basic Info
  • Host: GitHub
  • Owner: ZwickyTransientFacility
  • License: bsd-3-clause
  • Language: Jupyter Notebook
  • Default Branch: master
  • Homepage:
  • Size: 7.79 MB
Statistics
  • Stars: 13
  • Watchers: 2
  • Forks: 8
  • Open Issues: 1
  • Releases: 0
Created almost 11 years ago · Last pushed 12 months ago
Metadata Files
Readme License Citation

README.md

ztf_sim

:telescope: Scheduling library for the Zwicky Transient Facility.

Implements the Integer Linear Programming scheduling algorithm described in Bellm et al. 2019 (PASP 131, 1000).

Installation

You will need a license for the Gurobi optimizer on the machine you want to run simulations on. Free academic licenses are readily available.

You are strongly encouraged to use conda and a conda environment for the installation.

``` conda create -n ztfsimtest

conda activate ztfsimtest

conda install python=3.11

conda config --add channels conda-forge conda config --add channels http://conda.anaconda.org/gurobi conda install pip numpy scipy astropy astroplan pandas scikit-learn xgboost sqlalchemy gurobi

pip install sklearn_pandas pip install transitions

pip install -e git+https://github.com/ZwickyTransientFacility/ztfsim.git#egg=ztfsim ```

(To remove the environment, use conda remove --name ztf_sim_test --all.)

Configuration

Scheduler Configuration

The scheduler configuration determines which observing programs will run (fields, filters, cadences, etc.)

An example set of scheduler configuration file is provided in sims/.

You can copy them locally with wget https://raw.githubusercontent.com/ZwickyTransientFacility/ztf_sim/master/sims/example_scheduler_config.json wget https://raw.githubusercontent.com/ZwickyTransientFacility/ztf_sim/master/sims/survey_180501.json wget https://raw.githubusercontent.com/ZwickyTransientFacility/ztf_sim/master/sims/reference_building.json

Simulation Configuration

The simulation configuration determines which nights to simulate, which historical weather to use, and whether to overwrite the existing simulated database.

An example configuration file is provided in config/default.cfg.

You can copy it locally with wget https://raw.githubusercontent.com/ZwickyTransientFacility/ztf_sim/master/config/default.cfg

Running

run_ztf_sim --help summarizes the argument of the command line driver for the simulations. Assuming you've copied the configuration files to your current directory, you should now be able to run

run_ztf_sim example_scheduler_config.json default.cfg

which will write an sqlite database file named example_ztf_schedule.db to the current directory.

Output

The simulated schedule is written to a SQLite database in the LSST Operations Simulator format with a few additional columns. Example code for reading and summarizing the simulated schedule is located in the bin/ directory, and can be run as

analyze_ztf_sim example_ztf_schedule.db

The simulator also writes a logfile, which may be monitored while the simulation is running with tail -f example_ztf_schedule_log.txt

Owner

  • Name: Zwicky Transient Facility
  • Login: ZwickyTransientFacility
  • Kind: organization
  • Location: Pasadena, CA

The Zwicky Transient Facility is a next-generation astronomical survey at Palomar Observatory.

Citation (CITATION)

@ARTICLE{2019PASP..131f8003B,
   author = {{Bellm}, E.~C. and {Kulkarni}, S.~R. and {Barlow}, T. and {Feindt}, U. and 
	{Graham}, M.~J. and {Goobar}, A. and {Kupfer}, T. and {Ngeow}, C.-C. and 
	{Nugent}, P. and {Ofek}, E. and {Prince}, T.~A. and {Riddle}, R. and 
	{Walters}, R. and {Ye}, Q.-Z.},
    title = "{The Zwicky Transient Facility: Surveys and Scheduler}",
  journal = {\pasp},
     year = 2019,
    month = jun,
   volume = 131,
   number = 6,
    pages = {068003},
      doi = {10.1088/1538-3873/ab0c2a},
   adsurl = {http://adsabs.harvard.edu/abs/2019PASP..131f8003B},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

GitHub Events

Total
  • Issues event: 2
  • Watch event: 2
  • Push event: 34
  • Fork event: 1
  • Create event: 2
Last Year
  • Issues event: 2
  • Watch event: 2
  • Push event: 34
  • Fork event: 1
  • Create event: 2