Demo Notebooks
Below we provide Jupyter notebooks that demonstrate Sorcha's capabilities and validate various functions and components within Sorcha. These notebooks are automatically generated in the online documentation so you can view the contents and output of the notebooks by clicking on the link to each notebook.
In addition to installing Sorcha and its dependencies, you will need to install (through pip/conda/mamba) the following additional packages to run all of the demo notebooks:
jupyter
seaborn
sorcha-addons
rubin_sim (only required for demo_CalculateLSSTColours.ipynb) and the associated filter/optical system throughputs via (running
scheduler_download_dataon the command line)
Note
These packages are installed (except for rubin_sim) if you install Sorcha from the source code via pip in editable development mode as described in the Installing Sorcha in Development Mode page.
Tip
The easiest way to run the notebooks is to clone the repository and install Sorcha from the source code via pip in editable development mode as described in the Installing Sorcha in Development Mode page. Then move to the docs/notebooks directory and run the notebooks from the there. We also provide the data files used below so you can try individual notebooks out without running them all or cloning the full repository.
Demo Notebooks
- LSST Camera Footprint and Various Other Sorcha Related Fields-of-View
- Apparent Magnitude Validation
- Circle Footprint Filter
- LSST Camera Footprint Filter
- Coordinate Transformation Example
- Detection Efficiency (Fading Function) Validation
- Estimating Colors in LSST Filters From Optical/NIR Spectra
- SSP Linking Filter
- Magnitude and SNR Cuts
- Trailing Losses Validation
- Trailed Source Magnitude Versus PSF Magnitude
- Uncertainties and Randomization
- Vignetting Demo
- Light curve Demo
- Cometary Activity Demo
- miniDifi Validation
- Sorcha End-to-End Verification
Supplementary Files Required To Run the Notebooks Individually
Tip
The easiest way to run the notebooks is to clone the repository and install Sorcha from the source code via pip in editable development mode as described in the Installing Sorcha in Development Mode page. Then move to the docs/notebooks directory and run the notebooks from the there. We also provide the data files used below so you can try individual notebooks out without running them all or cloning the full repository.
LSST Camera Footprint and Various Other Sorcha Related Fields-of-View
Circle Footprint Filter
LSST Camera Footprint Filter
Estimating Colors in LSST Filters From Optical/NIR Spectra
Vignetting Demo
- Sorcha End-to-End Verification