StreamObs Data Files#
This directory contains large data files required for stream simulations. These files are not tracked in the git repository due to their size. They must be downloaded separately from Zenodo.
Downloading Data#
Quick Start#
After cloning the repository, download all required data files:
python bin/download_data.py
The script will:
Download a compressed archive from Zenodo
Extract it to the
data/directoryClean up temporary and system files
Verify the installation
Available Commands#
Check Current Data#
View what data is currently installed:
python bin/download_data.py --list
Output shows:
Subdirectories in the data folder
Number of files per subdirectory
Total size of installed data
Force Re-download#
If data is corrupted or you need to update:
python bin/download_data.py --force
This will:
Re-download the archive even if data exists
Overwrite existing files
Clean up unwanted files
Custom Data Location#
Specify a different data directory:
python bin/download_data.py --data-dir /path/to/custom/data
Keep Archive#
Save the downloaded zip file after extraction:
python bin/download_data.py --keep-archive
The archive will be saved as data.zip in the repository root.
Custom Data URL#
Use a different data source:
python bin/download_data.py --url https://custom-server.edu/data.zip
Troubleshooting Data Download#
Problem: Download fails with “404 Not Found”#
Solution: The data URL may have changed. Check the latest URL at:
Zenodo record: the one
BASE_DATA_URLinbin/download_data.pypoints at (that file is the single source of truth for which record is current)Or update
BASE_DATA_URLinbin/download_data.py
Problem: Extraction fails#
Solution:
Check disk space: The extracted data requires ~ 800 MB
Check write permissions in the installation directory
Try re-downloading with
--force
Problem: Data directory is empty after download#
Solution:
Run
python bin/download_data.py --listto check statusVerify the archive was extracted correctly
Check for error messages during extraction
Problem: Missing specific survey data#
Solution:
Verify which surveys are included:
python bin/download_data.py --listIf a survey is missing, check if it’s in the Zenodo archive
You may need to download additional survey-specific data separately
Data Storage and DOI#
The data files are hosted on Zenodo with a persistent DOI for citation and long-term access.
DOI: 10.5281/zenodo.22764339
URL: whichever record BASE_DATA_URL in bin/download_data.py names. Do not
hardcode a record id here — it has drifted from the code before. As of this
writing the code points at 18298544, which still serves the previous product
set; the archive described in Product verification — des/yr6 and delve/dr3_gold has not yet been
uploaded, and BASE_DATA_URL must be bumped when it is.
Version: 1.0
Last Updated: see the record itself; the shipped product set is the one
manifested in Product verification — des/yr6 and delve/dr3_gold.
Data Organization#
Required Data Files#
The data directory is organized into three main categories:
1. Survey-Specific Data (surveys/)#
Each survey subdirectory holds that release’s magnitude-limit (maglim) maps plus its selection-function tables:
Purpose: define observational depth and footprint per band, and the detection / classification / photometric-error model keyed to
delta_magFormat: HEALPix maps as either HealSparse
.hspor gzipped FITS.fits.gz, depending on the release; tables as CSVContent: 5σ point-source magnitude limits per band, and the product set described in Selection-Function Derivation Methodology
Usage: determines which stars would be observable, and with what completeness and photometric error
Current releases, with the resolution and format of their maglim maps:
directory |
release |
bands |
maglim map |
|---|---|---|---|
|
DES Y6 Gold |
griz |
nside 128, |
|
DELVE DR3 Gold |
griz |
nside 128, |
|
LSST DC2 |
g, r |
nside 128, |
|
LSST baseline v5.0.0, years 1–5 |
g, r |
nside 128, |
|
LSST DP2 |
g, r |
nside 128, |
|
Roman DC2 |
F106, F129, F158 |
nside 128, |
|
Roman HLWAS tiers |
F158 (F106 for |
nside 128, |
The DECam releases (des_yr6, delve_dr3_gold) are derived from Balrog
synthetic-source injections — see DES, DELVE and
Selection functions from Balrog (DECam surveys). The LSST and Roman releases are described in
LSST and Roman.
Additional surveys can be added by placing their products in a new subdirectory — see Adding a New Photometric Survey.
2. Auxiliary Data (others/)#
Common data files required for all simulations:
Dust Extinction Map (
ebv_sfd98_fullres_nside_4096_ring_equatorial.fits):E(B-V) values from Schlegel, Finkbeiner & Davis (1998)
Full-resolution HEALPix map (nside=4096)
Used to apply Galactic extinction corrections to stellar magnitudes
Survey Completeness (
stellar_efficiency_cutr.csv):Detection and classification efficiencies as a function of difference between apparent magnitude and magnitude limit
Accounts for photometric pipeline completeness
Used to model realistic detection probabilities
Photometric Errors (
photoerror_r.csv):Photometric uncertainties as a function of difference between apparent magnitude and magnitude limit
Used to add realistic observational noise to simulated photometry
3. Stream Models (root directory)#
Reference data for specific stream models:
erkal_2016_pal_5_input.csvpatrick_2022_splines.csv
These are small reference files (<100 KB) and are tracked in git.
For Developers#
Informations to modify the data base can be found in Update data page, which can be usefull to add new survey.