diff --git a/.copier-answers.yml b/.copier-answers.yml new file mode 100644 index 000000000..97e90a94a --- /dev/null +++ b/.copier-answers.yml @@ -0,0 +1,21 @@ +# Changes here will be overwritten by Copier +_commit: v2.0.3 +_src_path: gh:lincc-frameworks/python-project-template +author_email: contact@cosmostatistics-initiative.org +author_name: The RESSPECT team +create_example_module: false +custom_install: true +enforce_style: [] +failure_notification: +- slack +include_benchmarks: true +include_docs: false +mypy_type_checking: none +package_name: resspect +project_license: MIT +project_name: resspect +project_organization: LSSTDESC +python_versions: +- '3.9' +- '3.10' +- '3.11' diff --git a/.git_archival.txt b/.git_archival.txt new file mode 100644 index 000000000..b1a286bbb --- /dev/null +++ b/.git_archival.txt @@ -0,0 +1,4 @@ +node: $Format:%H$ +node-date: $Format:%cI$ +describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ +ref-names: $Format:%D$ \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..343a75549 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +# For explanation of this file and uses see +# https://git-scm.com/docs/gitattributes +# https://developer.lsst.io/git/git-lfs.html#using-git-lfs-enabled-repositories +# https://lincc-ppt.readthedocs.io/en/latest/practices/git-lfs.html +# +# Used by https://github.com/lsst/afwdata.git +# *.boost filter=lfs diff=lfs merge=lfs -text +# *.dat filter=lfs diff=lfs merge=lfs -text +# *.fits filter=lfs diff=lfs merge=lfs -text +# *.gz filter=lfs diff=lfs merge=lfs -text +# +# apache parquet files +# *.parq filter=lfs diff=lfs merge=lfs -text +# +# sqlite files +# *.sqlite3 filter=lfs diff=lfs merge=lfs -text +# +# gzip files +# *.gz filter=lfs diff=lfs merge=lfs -text +# +# png image files +# *.png filter=lfs diff=lfs merge=lfs -text + +.git_archival.txt export-subst \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/0-general_issue.md b/.github/ISSUE_TEMPLATE/0-general_issue.md new file mode 100644 index 000000000..84bb0d72a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/0-general_issue.md @@ -0,0 +1,8 @@ +--- +name: General issue +about: Quickly create a general issue +title: '' +labels: '' +assignees: '' + +--- \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/1-bug_report.md b/.github/ISSUE_TEMPLATE/1-bug_report.md new file mode 100644 index 000000000..16b6b711b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/1-bug_report.md @@ -0,0 +1,17 @@ +--- +name: Bug report +about: Tell us about a problem to fix +title: 'Short description' +labels: 'bug' +assignees: '' + +--- +**Bug report** + + +**Before submitting** +Please check the following: + +- [ ] I have described the situation in which the bug arose, including what code was executed, information about my environment, and any applicable data others will need to reproduce the problem. +- [ ] I have included available evidence of the unexpected behavior (including error messages, screenshots, and/or plots) as well as a description of what I expected instead. +- [ ] If I have a solution in mind, I have provided an explanation and/or pseudocode and/or task list. diff --git a/.github/ISSUE_TEMPLATE/2-feature_request.md b/.github/ISSUE_TEMPLATE/2-feature_request.md new file mode 100644 index 000000000..908ff720e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/2-feature_request.md @@ -0,0 +1,18 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: 'Short description' +labels: 'enhancement' +assignees: '' + +--- + +**Feature request** + + +**Before submitting** +Please check the following: + +- [ ] I have described the purpose of the suggested change, specifying what I need the enhancement to accomplish, i.e. what problem it solves. +- [ ] I have included any relevant links, screenshots, environment information, and data relevant to implementing the requested feature, as well as pseudocode for how I want to access the new functionality. +- [ ] If I have ideas for how the new feature could be implemented, I have provided explanations and/or pseudocode and/or task lists for the steps. diff --git a/.github/dependabot.yml b/.github/dependabot.yml index fd49e1c27..3b5ca194b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,8 +1,10 @@ version: 2 updates: -- package-ecosystem: pip - directory: "/" - schedule: - interval: daily - time: "09:00" - open-pull-requests-limit: 10 \ No newline at end of file + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "monthly" diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 000000000..76e043caa --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,63 @@ + + +## Change Description + +- [ ] My PR includes a link to the issue that I am addressing + + + +## Solution Description + + + + +## Code Quality +- [ ] I have read the Contribution Guide +- [ ] My code follows the code style of this project +- [ ] My code builds (or compiles) cleanly without any errors or warnings +- [ ] My code contains relevant comments and necessary documentation + +## Project-Specific Pull Request Checklists + + +### Bug Fix Checklist +- [ ] My fix includes a new test that breaks as a result of the bug (if possible) +- [ ] My change includes a breaking change + - [ ] My change includes backwards compatibility and deprecation warnings (if possible) + +### New Feature Checklist +- [ ] I have added or updated the docstrings associated with my feature using the [NumPy docstring format](https://numpydoc.readthedocs.io/en/latest/format.html) +- [ ] I have updated the tutorial to highlight my new feature (if appropriate) +- [ ] I have added unit/End-to-End (E2E) test cases to cover my new feature +- [ ] My change includes a breaking change + - [ ] My change includes backwards compatibility and deprecation warnings (if possible) + +### Documentation Change Checklist +- [ ] Any updated docstrings use the [NumPy docstring format](https://numpydoc.readthedocs.io/en/latest/format.html) + +### Build/CI Change Checklist +- [ ] If required or optional dependencies have changed (including version numbers), I have updated the README to reflect this +- [ ] If this is a new CI setup, I have added the associated badge to the README + + + +### Other Change Checklist +- [ ] Any new or updated docstrings use the [NumPy docstring format](https://numpydoc.readthedocs.io/en/latest/format.html). +- [ ] I have updated the tutorial to highlight my new feature (if appropriate) +- [ ] I have added unit/End-to-End (E2E) test cases to cover any changes +- [ ] My change includes a breaking change + - [ ] My change includes backwards compatibility and deprecation warnings (if possible) diff --git a/.github/workflows/asv-main.yml b/.github/workflows/asv-main.yml new file mode 100644 index 000000000..8b497cf02 --- /dev/null +++ b/.github/workflows/asv-main.yml @@ -0,0 +1,71 @@ +# This workflow will run benchmarks with airspeed velocity (asv), +# store the new results in the "benchmarks" branch and publish them +# to a dashboard on GH Pages. +name: Run ASV benchmarks for main + +on: + push: + branches: [ main ] + +env: + PYTHON_VERSION: "3.10" + ASV_VERSION: "0.6.4" + WORKING_DIR: ${{github.workspace}}/benchmarks + +concurrency: + group: ${{github.workflow}}-${{github.ref}} + cancel-in-progress: true + +jobs: + asv-main: + runs-on: ubuntu-latest + permissions: + contents: write + defaults: + run: + working-directory: ${{env.WORKING_DIR}} + steps: + - name: Set up Python ${{env.PYTHON_VERSION}} + uses: actions/setup-python@v5 + with: + python-version: ${{env.PYTHON_VERSION}} + - name: Checkout main branch of the repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Install dependencies + run: pip install "asv[virtualenv]==${{env.ASV_VERSION}}" + - name: Configure git + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + - name: Create ASV machine config file + run: asv machine --machine gh-runner --yes + - name: Fetch previous results from the "benchmarks" branch + run: | + if git ls-remote --exit-code origin benchmarks > /dev/null 2>&1; then + git merge origin/benchmarks \ + --allow-unrelated-histories \ + --no-commit + mv ../_results . + fi + - name: Run ASV for the main branch + run: asv run ALL --skip-existing --verbose || true + - name: Submit new results to the "benchmarks" branch + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: benchmarks + folder: ${{env.WORKING_DIR}}/_results + target-folder: _results + - name: Generate dashboard HTML + run: | + asv show + asv publish + - name: Move the readme into the HTML directory. + run: | + cp ${{github.workspace}}/README.md ${{env.WORKING_DIR}}/_html/README.md + - name: Deploy to Github pages + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: gh-pages + folder: ${{env.WORKING_DIR}}/_html diff --git a/.github/workflows/asv-nightly.yml b/.github/workflows/asv-nightly.yml new file mode 100644 index 000000000..28b270ae8 --- /dev/null +++ b/.github/workflows/asv-nightly.yml @@ -0,0 +1,72 @@ +# This workflow will run daily at 06:45. +# It will run benchmarks with airspeed velocity (asv) +# and compare performance with the previous nightly build. +name: Run benchmarks nightly job + +on: + schedule: + - cron: 45 6 * * * + workflow_dispatch: + +env: + PYTHON_VERSION: "3.10" + ASV_VERSION: "0.6.4" + WORKING_DIR: ${{github.workspace}}/benchmarks + NIGHTLY_HASH_FILE: nightly-hash + +jobs: + asv-nightly: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ${{env.WORKING_DIR}} + steps: + - name: Set up Python ${{env.PYTHON_VERSION}} + uses: actions/setup-python@v5 + with: + python-version: ${{env.PYTHON_VERSION}} + - name: Checkout main branch of the repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Install dependencies + run: pip install "asv[virtualenv]==${{env.ASV_VERSION}}" + - name: Configure git + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + - name: Create ASV machine config file + run: asv machine --machine gh-runner --yes + - name: Fetch previous results from the "benchmarks" branch + run: | + if git ls-remote --exit-code origin benchmarks > /dev/null 2>&1; then + git merge origin/benchmarks \ + --allow-unrelated-histories \ + --no-commit + mv ../_results . + fi + - name: Get nightly dates under comparison + id: nightly-dates + run: | + echo "yesterday=$(date -d yesterday +'%Y-%m-%d')" >> $GITHUB_OUTPUT + echo "today=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT + - name: Use last nightly commit hash from cache + uses: actions/cache@v4 + with: + path: ${{env.WORKING_DIR}} + key: nightly-results-${{steps.nightly-dates.outputs.yesterday}} + - name: Run comparison of main against last nightly build + run: | + HASH_FILE=${{env.NIGHTLY_HASH_FILE}} + CURRENT_HASH=${{github.sha}} + if [ -f $HASH_FILE ]; then + PREV_HASH=$(cat $HASH_FILE) + asv continuous $PREV_HASH $CURRENT_HASH --verbose || true + asv compare $PREV_HASH $CURRENT_HASH --sort ratio --verbose + fi + echo $CURRENT_HASH > $HASH_FILE + - name: Update last nightly hash in cache + uses: actions/cache@v4 + with: + path: ${{env.WORKING_DIR}} + key: nightly-results-${{steps.nightly-dates.outputs.today}} \ No newline at end of file diff --git a/.github/workflows/asv-pr.yml b/.github/workflows/asv-pr.yml new file mode 100644 index 000000000..4499eb9fd --- /dev/null +++ b/.github/workflows/asv-pr.yml @@ -0,0 +1,70 @@ +# This workflow will run benchmarks with airspeed velocity (asv) for pull requests. +# It will compare the performance of the main branch with the performance of the merge +# with the new changes. It then publishes a comment with this assessment by triggering +# the publish-benchmarks-pr workflow. +# Based on https://securitylab.github.com/research/github-actions-preventing-pwn-requests/. +name: Run benchmarks for PR + +on: + pull_request: + branches: [ main ] + workflow_dispatch: + +concurrency: + group: ${{github.workflow}}-${{github.ref}} + cancel-in-progress: true + +env: + PYTHON_VERSION: "3.10" + ASV_VERSION: "0.6.4" + WORKING_DIR: ${{github.workspace}}/benchmarks + ARTIFACTS_DIR: ${{github.workspace}}/artifacts + +jobs: + asv-pr: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ${{env.WORKING_DIR}} + steps: + - name: Set up Python ${{env.PYTHON_VERSION}} + uses: actions/setup-python@v5 + with: + python-version: ${{env.PYTHON_VERSION}} + - name: Checkout PR branch of the repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Display Workflow Run Information + run: | + echo "Workflow Run ID: ${{github.run_id}}" + - name: Install dependencies + run: pip install "asv[virtualenv]==${{env.ASV_VERSION}}" lf-asv-formatter + - name: Make artifacts directory + run: mkdir -p ${{env.ARTIFACTS_DIR}} + - name: Save pull request number + run: echo ${{github.event.pull_request.number}} > ${{env.ARTIFACTS_DIR}}/pr + - name: Get current job logs URL + uses: Tiryoh/gha-jobid-action@v1 + id: jobs + with: + github_token: ${{secrets.GITHUB_TOKEN}} + job_name: ${{github.job}} + - name: Create ASV machine config file + run: asv machine --machine gh-runner --yes + - name: Save comparison of PR against main branch + run: | + git remote add upstream https://github.com/${{github.repository}}.git + git fetch upstream + asv continuous upstream/main HEAD --verbose || true + asv compare upstream/main HEAD --sort ratio --verbose | tee output + python -m lf_asv_formatter --asv_version "$(asv --version | awk '{print $2}')" + printf "\n\nClick [here]($STEP_URL) to view all benchmarks." >> output + mv output ${{env.ARTIFACTS_DIR}} + env: + STEP_URL: ${{steps.jobs.outputs.html_url}}#step:10:1 + - name: Upload artifacts (PR number and benchmarks output) + uses: actions/upload-artifact@v4 + with: + name: benchmark-artifacts + path: ${{env.ARTIFACTS_DIR}} \ No newline at end of file diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml deleted file mode 100644 index ba1eaf78e..000000000 --- a/.github/workflows/e2e-tests.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Run end-to-end tests - -on: - pull_request: - push: - workflow_dispatch: -# schedule: -# # Run every Sunday at 04:53 UTC -# - cron: 53 4 * * 0 - -jobs: - tests: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - uses: actions/setup-python@v4 - with: - python-version: 3.8 - - - name: Install package inside virtual environment - run: | - python3.8 -m venv venv - source venv/bin/activate - python -m pip install -U pip setuptools - python -m pip install . - - - name: Run pipeline for SNPCC - run: | - source venv/bin/activate - ./tests/run-snpcc-e2e.sh diff --git a/.github/workflows/pre-commit-ci.yml b/.github/workflows/pre-commit-ci.yml new file mode 100644 index 000000000..a57e2219a --- /dev/null +++ b/.github/workflows/pre-commit-ci.yml @@ -0,0 +1,35 @@ +# This workflow runs pre-commit hooks on pushes and pull requests to main +# to enforce coding style. To ensure correct configuration, please refer to: +# https://lincc-ppt.readthedocs.io/en/latest/practices/ci_precommit.html +name: Run pre-commit hooks + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + pre-commit-ci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: Install dependencies + run: | + sudo apt-get update + python -m pip install --upgrade pip + pip install .[dev] + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - uses: pre-commit/action@v3.0.1 + with: + extra_args: --all-files --verbose + env: + SKIP: "check-lincc-frameworks-template-version,no-commit-to-branch,check-added-large-files,validate-pyproject,sphinx-build,pytest-check" + - uses: pre-commit-ci/lite-action@v1.0.2 + if: failure() && github.event_name == 'pull_request' && github.event.pull_request.draft == false \ No newline at end of file diff --git a/.github/workflows/publish-benchmarks-pr.yml b/.github/workflows/publish-benchmarks-pr.yml new file mode 100644 index 000000000..45ed92805 --- /dev/null +++ b/.github/workflows/publish-benchmarks-pr.yml @@ -0,0 +1,53 @@ +# This workflow publishes a benchmarks comment on a pull request. It is triggered after the +# benchmarks are computed in the asv-pr workflow. This separation of concerns allows us limit +# access to the target repository private tokens and secrets, increasing the level of security. +# Based on https://securitylab.github.com/research/github-actions-preventing-pwn-requests/. +name: Publish benchmarks comment to PR + +on: + workflow_run: + workflows: ["Run benchmarks for PR"] + types: [completed] + +jobs: + upload-pr-comment: + runs-on: ubuntu-latest + if: > + github.event.workflow_run.event == 'pull_request' && + github.event.workflow_run.conclusion == 'success' + permissions: + issues: write + pull-requests: write + steps: + - name: Display Workflow Run Information + run: | + echo "Workflow Run ID: ${{ github.event.workflow_run.id }}" + echo "Head SHA: ${{ github.event.workflow_run.head_sha }}" + echo "Head Branch: ${{ github.event.workflow_run.head_branch }}" + echo "Conclusion: ${{ github.event.workflow_run.conclusion }}" + echo "Event: ${{ github.event.workflow_run.event }}" + - name: Download artifact + uses: dawidd6/action-download-artifact@v3 + with: + name: benchmark-artifacts + run_id: ${{ github.event.workflow_run.id }} + - name: Extract artifacts information + id: pr-info + run: | + printf "PR number: $(cat pr)\n" + printf "Output:\n$(cat output)" + printf "pr=$(cat pr)" >> $GITHUB_OUTPUT + - name: Find benchmarks comment + uses: peter-evans/find-comment@v3 + id: find-comment + with: + issue-number: ${{ steps.pr-info.outputs.pr }} + comment-author: 'github-actions[bot]' + body-includes: view all benchmarks + - name: Create or update benchmarks comment + uses: peter-evans/create-or-update-comment@v4 + with: + comment-id: ${{ steps.find-comment.outputs.comment-id }} + issue-number: ${{ steps.pr-info.outputs.pr }} + body-path: output + edit-mode: replace \ No newline at end of file diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml new file mode 100644 index 000000000..f7cecc2e2 --- /dev/null +++ b/.github/workflows/publish-to-pypi.yml @@ -0,0 +1,37 @@ +# This workflow will upload a Python Package using Twine when a release is created +# For more information see: https://github.com/pypa/gh-action-pypi-publish#trusted-publishing + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Upload Python Package + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + deploy: + + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml new file mode 100644 index 000000000..35e5a478e --- /dev/null +++ b/.github/workflows/smoke-test.yml @@ -0,0 +1,80 @@ +# This workflow will run daily at 06:45. +# It will install Python dependencies and run tests with a variety of Python versions. +# See documentation for help debugging smoke test issues: +# https://lincc-ppt.readthedocs.io/en/latest/practices/ci_testing.html#version-culprit + +name: Unit test smoke test + +on: + + # Runs this workflow automatically + schedule: + - cron: 45 6 * * * + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.9', '3.10', '3.11'] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + sudo apt-get update + python -m pip install --upgrade pip + pip install -e .[dev] + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: List dependencies + run: | + pip list + - name: Run unit tests with pytest + run: | + python -m pytest + - name: Send status to Slack app + if: ${{ failure() && github.event_name != 'workflow_dispatch' }} + id: slack + uses: slackapi/slack-github-action@v1 + with: + # For posting a rich message using Block Kit + payload: | + { + "blocks": [ + { + "type": "header", + "text": { + "type": "plain_text", + "text": "${{ github.repository }}" + } + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "GitHub Action build result: *${{ job.status }}* :${{ job.status }}:" + } + }, + { + "type": "divider" + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + } + } + ] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK \ No newline at end of file diff --git a/.github/workflows/testing-and-coverage.yml b/.github/workflows/testing-and-coverage.yml new file mode 100644 index 000000000..9d8522fdb --- /dev/null +++ b/.github/workflows/testing-and-coverage.yml @@ -0,0 +1,38 @@ +# This workflow will install Python dependencies, run tests and report code coverage with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Unit test and code coverage + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.9', '3.10', '3.11'] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + sudo apt-get update + python -m pip install --upgrade pip + pip install -e .[dev] + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Run unit tests with pytest + run: | + python -m pytest --cov=resspect --cov-report=xml + - name: Upload coverage report to codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 24df78bd2..292af7a49 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: 3.9 - name: Run Tox - run: pipx run tox -e py38 -v + run: pipx run tox -e py39 -v diff --git a/.gitignore b/.gitignore index b1fc6b3f9..235e6bd07 100644 --- a/.gitignore +++ b/.gitignore @@ -1,25 +1,152 @@ -resspect.egg-info/ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python build/ -build/lib/ +develop-eggs/ dist/ -work/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +pip-wheel-metadata/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST +_version.py + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ +_readthedocs/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +.python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ venv/ -resspect/__init__.pyc -resspect/__pycache__/ -resspect/scripts/__pycache__/ -resspect/actConfig/ -resspect/analysis_functions/ -resspect/snanapipe/ -data/SIMGEN_PUBLIC_DES/ -env.yml -examples/ -venv2/ -resspect/.ipynb_checkpoints/ -.ipynb_checkpoints/ -__pycache__/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# vscode +.vscode/ + +# dask +dask-worker-space/ + +# tmp directory +tmp/ + +# Mac OS +.DS_Store -# PyCharm Files -.idea +# Airspeed Velocity performance results +_results/ +_html/ +# Project initialization script +.initialize_new_project.sh auxiliary_files/cosmo auxiliary_files/cosmo.hpp diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..d128208a3 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,61 @@ + +repos: + # Compare the local template version to the latest remote template version + # This hook should always pass. It will print a message if the local version + # is out of date. + - repo: https://github.com/lincc-frameworks/pre-commit-hooks + rev: v0.1.2 + hooks: + - id: check-lincc-frameworks-template-version + name: Check template version + description: Compare current template version against latest + verbose: true + # Clear output from jupyter notebooks so that only the input cells are committed. + - repo: local + hooks: + - id: jupyter-nb-clear-output + name: Clear output from Jupyter notebooks + description: Clear output from Jupyter notebooks. + files: \.ipynb$ + exclude: ^docs/pre_executed + stages: [commit] + language: system + entry: jupyter nbconvert --clear-output + # Prevents committing directly branches named 'main' and 'master'. + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: no-commit-to-branch + name: Prevent main branch commits + description: Prevent the user from committing directly to the primary branch. + - id: check-added-large-files + name: Check for large files + description: Prevent the user from committing very large files. + args: ['--maxkb=500'] + # Verify that pyproject.toml is well formed + - repo: https://github.com/abravalheri/validate-pyproject + rev: v0.12.1 + hooks: + - id: validate-pyproject + name: Validate pyproject.toml + description: Verify that pyproject.toml adheres to the established schema. + # Verify that GitHub workflows are well formed + - repo: https://github.com/python-jsonschema/check-jsonschema + rev: 0.28.0 + hooks: + - id: check-github-workflows + args: ["--verbose"] + # Run unit tests, verify that they pass. Note that coverage is run against + # the ./src directory here because that is what will be committed. In the + # github workflow script, the coverage is run against the installed package + # and uploaded to Codecov by calling pytest like so: + # `python -m pytest --cov= --cov-report=xml` + - repo: local + hooks: + - id: pytest-check + name: Run unit tests + description: Run unit tests with pytest. + entry: bash -c "if python -m pytest --co -qq; then python -m pytest --cov=./src --cov-report=html; fi" + language: system + pass_filenames: false + always_run: true diff --git a/.setup_dev.sh b/.setup_dev.sh new file mode 100644 index 000000000..d8cd955c0 --- /dev/null +++ b/.setup_dev.sh @@ -0,0 +1,42 @@ +#!/usr/bin/env bash + +# This script should be run by new developers to install this package in +# editable mode and configure their local environment + +echo "Checking virtual environment" +if [ -z "${VIRTUAL_ENV}" ] && [ -z "${CONDA_PREFIX}" ]; then + echo 'No virtual environment detected: none of $VIRTUAL_ENV or $CONDA_PREFIX is set.' + echo + echo "=== This script is going to install the project in the system python environment ===" + echo "Proceed? [y/N]" + read -r RESPONCE + if [ "${RESPONCE}" != "y" ]; then + echo "See https://lincc-ppt.readthedocs.io/ for details." + echo "Exiting." + exit 1 + fi + +fi + +echo "Checking pip version" +MINIMUM_PIP_VERSION=22 +pipversion=( $(python -m pip --version | awk '{print $2}' | sed 's/\./ /g') ) +if let "${pipversion[0]}<${MINIMUM_PIP_VERSION}"; then + echo "Insufficient version of pip found. Requires at least version ${MINIMUM_PIP_VERSION}." + echo "See https://lincc-ppt.readthedocs.io/ for details." + exit 1 +fi + +echo "Installing package and runtime dependencies in local environment" +python -m pip install -e . > /dev/null + +echo "Installing developer dependencies in local environment" +python -m pip install -e .'[dev]' > /dev/null +if [ -f docs/requirements.txt ]; then python -m pip install -r docs/requirements.txt; fi + +echo "Installing pre-commit" +pre-commit install > /dev/null + +####################################################### +# Include any additional configurations below this line +####################################################### diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000..155187db7 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 The RESSPECT team + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index e11164798..6d22d7383 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,16 @@ -[![resspect](https://img.shields.io/badge/COIN--Focus-RESSPECT-red)](http://cosmostatistics-initiative.org/resspect/) -# RESSPECT +

+ +


+ +# Recommendation System for Spectroscopic follow-up -## Recommendation System for Spectroscopic follow-up +[![resspect](https://img.shields.io/badge/COIN--Focus-RESSPECT-red)](http://cosmostatistics-initiative.org/resspect/) +[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/LSSTDESC/RESSPECT/smoke-test.yml)](https://github.com/LSSTDESC/RESSPECT/actions/workflows/smoke-test.yml) +[![Benchmarks](https://img.shields.io/github/actions/workflow/status/LSSTDESC/RESSPECT/asv-main.yml?label=benchmarks)](https://LSSTDESC.github.io/RESSPECT/benchmarks) -This repository holds the pipeline of the RESSPECT project, built as part of the inter-collaboration activities developed by the Cosmostatistics Initiative ([COIN](cosmostatistics-initiative.org)) and the LSST Dark Energy Science Collaboration ([DESC](https://lsstdesc.org/)). +This repository holds the pipeline of the RESSPECT project, built as part of the inter-collaboration activities developed by the Cosmostatistics Initiative ([COIN](cosmostatistics-initiative.org)) and the LSST Dark Energy Science Collaboration ([DESC](https://lsstdesc.org/)). It was forked from the original RESSPECT repo that can be found here. This work grew from activities developed within the [COIN Residence Program #4](http://iaacoin.wix.com/crp2017), using as a starting point their [ActSNClass](https://github.com/COINtoolbox/ActSNClass) software. @@ -13,7 +18,7 @@ The active learning and telescope resources pipeline is described in [Kennamer e We kindly ask you to include the full citation for the above mentioned work if you use this material in your research. -Full documentation can be found at [readthedocs](https://resspect.readthedocs.io/en/latest/). +Full documentation can be found at [readthedocs](https://lsst-resspect.readthedocs.io/en/latest/). # Dependencies @@ -25,7 +30,6 @@ Full documentation can be found at [readthedocs](https://resspect.readthedocs.io - numpy >= 1.24.2 - pandas >= 1.5.3 - progressbar2 >= 4.2.0 - - pytest >= 7.2.1 - scikit_learn >= 1.2.1 - scipy >= 1.10.0 - seaborn >= 0.12.2 diff --git a/resspect/feature_extractors/__init__.py b/benchmarks/__init__.py similarity index 100% rename from resspect/feature_extractors/__init__.py rename to benchmarks/__init__.py diff --git a/benchmarks/asv.conf.json b/benchmarks/asv.conf.json new file mode 100644 index 000000000..5f7296d24 --- /dev/null +++ b/benchmarks/asv.conf.json @@ -0,0 +1,81 @@ + +{ + // The version of the config file format. Do not change, unless + // you know what you are doing. + "version": 1, + // The name of the project being benchmarked. + "project": "resspect", + // The project's homepage. + "project_url": "https://github.com/LSSTDESC/resspect", + // The URL or local path of the source code repository for the + // project being benchmarked. + "repo": "..", + // List of branches to benchmark. If not provided, defaults to "master" + // (for git) or "tip" (for mercurial). + "branches": [ + "HEAD" + ], + "install_command": [ + "python -m pip install {wheel_file}" + ], + "build_command": [ + "python -m build --wheel -o {build_cache_dir} {build_dir}" + ], + // The DVCS being used. If not set, it will be automatically + // determined from "repo" by looking at the protocol in the URL + // (if remote), or by looking for special directories, such as + // ".git" (if local). + "dvcs": "git", + // The tool to use to create environments. May be "conda", + // "virtualenv" or other value depending on the plugins in use. + // If missing or the empty string, the tool will be automatically + // determined by looking for tools on the PATH environment + // variable. + "environment_type": "virtualenv", + // the base URL to show a commit for the project. + "show_commit_url": "https://github.com/LSSTDESC/resspect/commit/", + // The Pythons you'd like to test against. If not provided, defaults + // to the current version of Python used to run `asv`. + "pythons": [ + "3.10" + ], + // The matrix of dependencies to test. Each key is the name of a + // package (in PyPI) and the values are version numbers. An empty + // list indicates to just test against the default (latest) + // version. + "matrix": { + "Cython": [], + "build": [], + "packaging": [] + }, + // The directory (relative to the current directory) that benchmarks are + // stored in. If not provided, defaults to "benchmarks". + "benchmark_dir": ".", + // The directory (relative to the current directory) to cache the Python + // environments in. If not provided, defaults to "env". + "env_dir": "env", + // The directory (relative to the current directory) that raw benchmark + // results are stored in. If not provided, defaults to "results". + "results_dir": "_results", + // The directory (relative to the current directory) that the html tree + // should be written to. If not provided, defaults to "html". + "html_dir": "_html/benchmarks", + // The number of characters to retain in the commit hashes. + // "hash_length": 8, + // `asv` will cache wheels of the recent builds in each + // environment, making them faster to install next time. This is + // number of builds to keep, per environment. + "build_cache_size": 8 + // The commits after which the regression search in `asv publish` + // should start looking for regressions. Dictionary whose keys are + // regexps matching to benchmark names, and values corresponding to + // the commit (exclusive) after which to start looking for + // regressions. The default is to start from the first commit + // with results. If the commit is `null`, regression detection is + // skipped for the matching benchmark. + // + // "regressions_first_commits": { + // "some_benchmark": "352cdf", // Consider regressions only after this commit + // "another_benchmark": null, // Skip regression detection altogether + // } +} \ No newline at end of file diff --git a/benchmarks/benchmarks.py b/benchmarks/benchmarks.py new file mode 100644 index 000000000..6bee935f7 --- /dev/null +++ b/benchmarks/benchmarks.py @@ -0,0 +1,83 @@ +"""Benchmarks to compute runtime and memory usage of core functions. + +To manually run the benchmarks use: asv run + +For more information on writing benchmarks: +https://asv.readthedocs.io/en/stable/writing_benchmarks.html.""" + +from pathlib import Path +import tempfile + +from resspect import fit_snpcc +from resspect.learn_loop import learn_loop +from resspect.loop_configuration import LoopConfiguration + + +_TEST_DATA_DIR = Path(__file__).parent.parent / "data" / "tests" + + +def time_feature_creation(): + """Benchmark how long it takes to read the example files and generate features.""" + input_file_path = _TEST_DATA_DIR / "DES_data" + with tempfile.TemporaryDirectory() as dir_name: + features_file = Path(dir_name) / "Malanchev.csv" + fit_snpcc( + path_to_data_dir=input_file_path, + features_file=str(features_file), + feature_extractor="malanchev" + ) + + +def time_learn_loop(ml_model, strategy): + """Benchmark how long it takes for a run of the learning loop.""" + # Use the precomputed features so we don't time their creation. + features_file = str(_TEST_DATA_DIR / "test_features.csv") + with tempfile.TemporaryDirectory() as dir_name: + metrics_file = str(Path(dir_name) / "metrics.csv") + output_queried_file = str(Path(dir_name) / "queried.csv") + learn_loop( + LoopConfiguration( + nloops=25, + features_method="malanchev", + classifier=ml_model, + strategy=strategy, + path_to_features=features_file, + output_metrics_file=metrics_file, + output_queried_file=output_queried_file, + training="original", + batch=1, + ) + ) + + +# Parameterize the ML models and strategies we benchmark. +time_learn_loop.params = [ + ["RandomForest", "KNN"], # The different ML methods + ["RandomSampling", "UncSampling"], # The different strategies. +] + + +def peakmem_learn_loop(ml_model): + """Benchmark how much memory it takes for a run of the learning loop.""" + # Use the precomputed features so we don't time their creation. + features_file = str(_TEST_DATA_DIR / "test_features.csv") + with tempfile.TemporaryDirectory() as dir_name: + metrics_file = str(Path(dir_name) / "metrics.csv") + output_queried_file = str(Path(dir_name) / "queried.csv") + learn_loop( + nloops=25, + features_method="malanchev", + classifier=ml_model, + strategy="RandomSampling", + path_to_features=features_file, + output_metrics_file=metrics_file, + output_queried_file=output_queried_file, + training="original", + batch=1, + ) + + +# Parameterize the ML models and strategies we benchmark. +peakmem_learn_loop.params = [ + ["RandomForest", "KNN"], # The different ML methods +] \ No newline at end of file diff --git a/data/SIMGEN_PUBLIC_DES.tar.gz b/data/SIMGEN_PUBLIC_DES.tar.gz deleted file mode 100644 index 787d1515c..000000000 Binary files a/data/SIMGEN_PUBLIC_DES.tar.gz and /dev/null differ diff --git a/data/tests/DES_data/DES_SN008623.DAT b/data/tests/DES_data/DES_SN008623.DAT new file mode 100644 index 000000000..ef1afa5dc --- /dev/null +++ b/data/tests/DES_data/DES_SN008623.DAT @@ -0,0 +1,161 @@ +SURVEY: DES +SNID: 8623 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 34.500000 deg +DECL: -5.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0227 MW E(B-V) +REDSHIFT_HELIO: 0.78619 +- 0.02250 (Helio, z_best) +REDSHIFT_FINAL: 0.78619 +- 0.02250 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 14896 +HOST_GALAXY_PHOTO-Z: 0.7862 +- 0.0225 + + + +SIM_MODEL: SALT2.K09_LAMOPEN 6 (name index) +SIM_NON1a: 0 (non1a index) +SIM_COMMENT: SN Type = Ia , MODEL = SALT2.K09_LAMOPEN +SIM_LIBID: 1 +SIM_REDSHIFT: 0.7867 +SIM_HOSTLIB_TRUEZ: 0.7900 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 14896 +SIM_DLMU: 43.457771 mag [ -5*log10(10pc/dL) ] +SIM_RA: 34.500000 deg +SIM_DECL: -5.500000 deg +SIM_MWEBV: 0.0189 (MilkyWay E(B-V)) +SIM_PEAKMAG: 25.68 23.92 23.39 23.58 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56296.500000 days +SIM_SALT2alpha: 0.110 +SIM_SALT2beta: 3.200 +SIM_SALT2x0: 4.651e-06 +SIM_SALT2x1: -0.0459 +SIM_SALT2c: -0.0412 +SIM_SALT2mB: 23.9661 +SIM_STRETCH: 0.954 +SIM_MAGDIM: 0.991 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -38.32 days +SIM_TRESTMAX: 30.50 days +SIM_RISETIME_SHIFT: -0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56296.430 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 99 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56228.031 g NULL -7.396e+00 2.612e+01 -0.28 99.000 5.000 98.726 +OBS: 56228.047 r NULL -1.611e+01 1.164e+01 -1.38 99.000 5.000 99.107 +OBS: 56228.156 i NULL 2.204e+00 5.178e+00 0.43 99.000 5.000 99.187 +OBS: 56228.188 z NULL 4.047e+00 2.843e+00 1.42 99.000 5.000 99.140 +OBS: 56229.031 g NULL -1.087e+01 3.074e+01 -0.35 99.000 5.000 98.726 +OBS: 56229.156 r NULL 3.169e+00 3.595e+00 0.88 99.000 5.000 99.107 +OBS: 56229.172 i NULL -6.104e-01 7.053e+00 -0.09 99.000 5.000 99.187 +OBS: 56229.199 z NULL -2.032e+00 2.926e+00 -0.69 99.000 5.000 99.140 +OBS: 56230.035 g NULL 5.499e+00 9.315e+00 0.59 99.000 5.000 98.726 +OBS: 56230.043 r NULL 2.283e+00 3.864e+00 0.59 99.000 5.000 99.107 +OBS: 56230.191 i NULL 6.341e+00 6.319e+00 1.00 99.000 5.000 99.187 +OBS: 56230.215 z NULL -4.538e+00 2.922e+00 -1.55 99.000 5.000 99.140 +OBS: 56231.035 g NULL -6.466e+00 7.695e+00 -0.84 99.000 5.000 98.726 +OBS: 56231.156 r NULL 9.904e-01 2.654e+00 0.37 99.000 5.000 99.107 +OBS: 56231.172 i NULL -2.263e+00 4.791e+00 -0.47 99.000 5.000 99.187 +OBS: 56231.191 z NULL 3.175e+00 3.018e+00 1.05 99.000 5.000 99.140 +OBS: 56235.145 g NULL 2.098e+00 3.787e+00 0.55 99.000 5.000 98.726 +OBS: 56235.160 r NULL -1.085e+00 1.756e+00 -0.62 99.000 5.000 99.107 +OBS: 56235.172 i NULL 2.830e+00 3.200e+00 0.88 99.000 5.000 99.187 +OBS: 56235.195 z NULL -5.183e+00 2.937e+00 -1.76 99.000 5.000 99.140 +OBS: 56236.160 g NULL 8.581e-01 2.000e+00 0.43 99.000 5.000 98.726 +OBS: 56236.172 r NULL -5.196e+00 1.877e+00 -2.77 99.000 5.000 99.107 +OBS: 56236.188 i NULL -2.514e+00 2.783e+00 -0.90 99.000 5.000 99.187 +OBS: 56236.207 z NULL 1.176e+00 3.190e+00 0.37 99.000 5.000 99.140 +OBS: 56237.176 g NULL -1.968e+00 3.438e+00 -0.57 99.000 5.000 98.726 +OBS: 56237.188 r NULL 3.184e-01 2.252e+00 0.14 99.000 5.000 99.107 +OBS: 56237.207 i NULL -2.682e+00 2.862e+00 -0.94 99.000 5.000 99.187 +OBS: 56237.238 z NULL -1.126e+00 3.867e+00 -0.29 99.000 5.000 99.140 +OBS: 56238.188 g NULL 1.282e-03 2.970e+00 0.00 99.000 5.000 98.726 +OBS: 56238.199 r NULL 1.468e+00 2.023e+00 0.73 99.000 5.000 99.107 +OBS: 56238.219 i NULL -1.424e+00 3.235e+00 -0.44 99.000 5.000 99.187 +OBS: 56238.250 z NULL 2.611e+00 4.861e+00 0.54 99.000 5.000 99.140 +OBS: 56243.203 g NULL 3.253e-01 1.689e+00 0.19 99.000 5.000 98.726 +OBS: 56243.211 r NULL 4.673e-01 1.223e+00 0.38 99.000 5.000 99.107 +OBS: 56243.223 i NULL -1.351e+00 1.848e+00 -0.73 99.000 5.000 99.187 +OBS: 56243.250 z NULL 1.439e+00 2.416e+00 0.60 99.000 5.000 99.140 +OBS: 56244.180 g NULL 4.408e-01 1.782e+00 0.25 99.000 5.000 98.726 +OBS: 56244.188 r NULL 2.326e+00 1.374e+00 1.69 99.000 5.000 99.107 +OBS: 56244.203 i NULL -2.765e+00 1.987e+00 -1.39 99.000 5.000 99.187 +OBS: 56244.223 z NULL -2.464e+00 2.231e+00 -1.10 99.000 5.000 99.140 +OBS: 56245.191 g NULL 3.534e+00 4.785e+00 0.74 99.000 5.000 98.726 +OBS: 56245.199 r NULL -5.092e-01 1.174e+00 -0.43 99.000 5.000 99.107 +OBS: 56245.219 i NULL 2.534e+00 2.077e+00 1.22 99.000 5.000 99.187 +OBS: 56245.246 z NULL -7.219e+00 5.919e+00 -1.22 99.000 5.000 99.140 +OBS: 56246.234 g NULL -1.284e-01 1.999e+00 -0.06 99.000 5.000 98.726 +OBS: 56246.246 r NULL 8.813e-01 3.167e+00 0.28 99.000 5.000 99.107 +OBS: 56246.262 i NULL -2.396e+00 5.640e+00 -0.42 99.000 5.000 99.187 +OBS: 56246.285 z NULL -1.252e+01 1.277e+01 -0.98 99.000 5.000 99.140 +OBS: 56248.207 g NULL 1.498e+00 1.752e+00 0.85 99.000 5.000 98.726 +OBS: 56248.215 r NULL -1.673e-01 1.325e+00 -0.13 99.000 5.000 99.107 +OBS: 56248.230 i NULL 3.177e+00 2.207e+00 1.44 99.000 5.000 99.187 +OBS: 56248.250 z NULL -3.091e+00 3.030e+00 -1.02 99.000 5.000 99.140 +OBS: 56258.242 g NULL -3.923e+00 8.081e+00 -0.49 99.000 5.000 98.726 +OBS: 56258.258 r NULL -3.110e+00 4.418e+00 -0.70 99.000 5.000 99.107 +OBS: 56259.160 i NULL -6.391e+00 4.542e+00 -1.41 99.000 5.000 99.187 +OBS: 56259.180 z NULL 1.085e+00 3.059e+00 0.35 99.000 5.000 99.140 +OBS: 56261.215 g NULL -3.538e+00 3.959e+00 -0.89 128.000 0.000 33.351 +OBS: 56261.230 r NULL 2.330e+00 1.853e+00 1.26 26.581 1.722 31.588 +OBS: 56267.156 i NULL 9.525e-01 2.211e+00 0.43 27.553 100.447 26.682 +OBS: 56267.180 z NULL -2.065e-01 3.049e+00 -0.07 128.000 0.000 26.800 +OBS: 56274.160 g NULL 2.714e+00 2.036e+00 1.33 26.416 1.505 27.145 +OBS: 56274.176 r NULL 5.522e+00 1.451e+00 3.80 25.645 0.331 25.514 +OBS: 56275.223 i NULL 1.634e+01 3.026e+00 5.40 24.467 0.222 24.823 +OBS: 56276.191 z NULL 8.082e+00 3.406e+00 2.37 25.231 0.595 24.800 +OBS: 56282.160 g NULL 3.118e+00 3.409e+00 0.91 26.265 101.735 25.745 +OBS: 56282.184 r NULL 2.192e+01 2.224e+00 9.86 24.148 0.116 24.245 +OBS: 56287.160 i NULL 3.739e+01 5.039e+00 7.42 23.568 0.157 23.568 +OBS: 56287.191 z NULL 2.972e+01 3.935e+00 7.55 23.817 0.154 23.774 +OBS: 56289.035 g NULL 1.448e+01 1.190e+01 1.22 24.598 1.870 25.483 +OBS: 56289.043 r NULL 3.426e+01 4.237e+00 8.09 23.663 0.143 23.882 +OBS: 56289.152 i NULL 3.724e+01 4.389e+00 8.48 23.573 0.136 23.487 +OBS: 56289.176 z NULL 2.776e+01 4.496e+00 6.17 23.892 0.192 23.705 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56297.039 g NULL 8.044e+00 1.598e+00 5.03 25.236 0.240 25.709 +OBS: 56297.047 r NULL 2.506e+01 1.323e+00 18.95 24.003 0.059 23.938 +OBS: 56297.062 i NULL 4.278e+01 2.042e+00 20.95 23.422 0.053 23.396 +OBS: 56297.090 z NULL 3.954e+01 2.249e+00 17.58 23.507 0.063 23.576 +OBS: 56305.094 g NULL 4.162e+00 1.652e+00 2.52 25.952 0.549 26.252 +OBS: 56305.102 r NULL 1.892e+01 1.359e+00 13.92 24.308 0.081 24.283 +OBS: 56305.113 i NULL 3.549e+01 2.301e+00 15.43 23.625 0.073 23.557 +OBS: 56306.043 z NULL 3.498e+01 2.791e+00 12.53 23.641 0.090 23.642 +OBS: 56313.047 g NULL -6.064e+00 5.962e+00 -1.02 128.000 0.000 26.822 +OBS: 56313.055 r NULL 1.494e+01 2.543e+00 5.87 24.564 0.202 24.733 +OBS: 56313.090 i NULL 2.808e+01 3.129e+00 8.97 23.879 0.128 23.883 +OBS: 56317.066 z NULL 2.755e+01 4.281e+00 6.44 23.900 0.183 23.945 +OBS: 56321.035 g NULL 4.188e-01 2.914e+00 0.14 28.445 99.555 27.385 +OBS: 56321.043 r NULL 8.223e+00 1.378e+00 5.97 25.212 0.199 25.356 +OBS: 56321.066 i NULL 1.463e+01 3.234e+00 4.53 24.587 0.272 24.334 +OBS: 56326.039 z NULL 1.661e+01 2.627e+00 6.32 24.449 0.188 24.256 +OBS: 56333.043 g NULL -3.226e+00 1.817e+00 -1.78 128.000 0.000 29.582 +OBS: 56333.051 r NULL 5.501e+00 1.388e+00 3.96 25.649 0.315 26.334 +OBS: 56334.043 i NULL 6.186e+00 2.182e+00 2.84 25.521 0.473 25.179 +OBS: 56335.043 z NULL 1.833e+01 3.399e+00 5.39 24.342 0.222 24.588 +OBS: 56344.992 g NULL 2.388e+00 4.327e+00 0.55 26.555 101.445 28.492 +OBS: 56345.000 r NULL 2.779e+00 1.862e+00 1.49 26.390 1.204 26.905 +OBS: 56345.016 i NULL 5.771e+00 3.453e+00 1.67 25.597 0.990 25.719 +OBS: 56345.992 z NULL 9.820e+00 3.704e+00 2.65 25.020 0.514 25.033 +OBS: 56349.996 g NULL -7.309e-01 3.963e+00 -0.18 128.000 0.000 28.690 +OBS: 56350.004 r NULL 3.626e+00 2.058e+00 1.76 26.101 0.910 27.197 +OBS: 56350.996 i NULL 4.300e+00 3.022e+00 1.42 25.916 1.317 25.978 +END: diff --git a/data/tests/DES_data/DES_SN018336.DAT b/data/tests/DES_data/DES_SN018336.DAT new file mode 100644 index 000000000..d6bca2aaf --- /dev/null +++ b/data/tests/DES_data/DES_SN018336.DAT @@ -0,0 +1,173 @@ +SURVEY: DES +SNID: 18336 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 52.500000 deg +DECL: -27.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0097 MW E(B-V) +REDSHIFT_HELIO: 0.65411 +- 0.03230 (Helio, z_best) +REDSHIFT_FINAL: 0.65411 +- 0.03230 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 15518 +HOST_GALAXY_PHOTO-Z: 0.6541 +- 0.0323 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 21 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-014450 +SIM_LIBID: 0 +SIM_REDSHIFT: 0.6574 +SIM_HOSTLIB_TRUEZ: 0.6600 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 15518 +SIM_DLMU: 42.980415 mag [ -5*log10(10pc/dL) ] +SIM_RA: 52.500000 deg +SIM_DECL: -27.500000 deg +SIM_MWEBV: 0.0087 (MilkyWay E(B-V)) +SIM_PEAKMAG: 24.83 24.08 24.37 24.43 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56290.648438 days +SIM_SALT2x0: 6.424e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -37.76 days +SIM_TRESTMAX: 36.47 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56290.930 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 117 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56228.059 g NULL 4.910e+00 7.693e+00 0.64 99.000 5.000 99.061 +OBS: 56228.066 r NULL -2.259e+00 2.390e+00 -0.94 99.000 5.000 99.050 +OBS: 56228.086 i NULL -1.379e+00 5.108e+00 -0.27 99.000 5.000 98.974 +OBS: 56228.109 z NULL -3.165e+00 4.134e+00 -0.77 99.000 5.000 99.032 +OBS: 56229.047 g NULL 2.155e+00 2.391e+01 0.09 99.000 5.000 99.061 +OBS: 56229.059 r NULL -1.829e+00 3.850e+00 -0.48 99.000 5.000 99.050 +OBS: 56229.074 i NULL 8.993e+00 5.426e+00 1.66 99.000 5.000 98.974 +OBS: 56229.102 z NULL 7.640e+00 4.850e+00 1.58 99.000 5.000 99.032 +OBS: 56230.059 g NULL 3.552e+00 6.571e+00 0.54 99.000 5.000 99.061 +OBS: 56230.102 r NULL 1.545e+00 2.916e+00 0.53 99.000 5.000 99.050 +OBS: 56230.113 i NULL 4.143e+00 5.175e+00 0.80 99.000 5.000 98.974 +OBS: 56230.145 z NULL 5.141e-01 2.664e+00 0.19 99.000 5.000 99.032 +OBS: 56231.043 g NULL 8.682e-01 6.044e+00 0.14 99.000 5.000 99.061 +OBS: 56231.059 r NULL -1.711e+00 2.550e+00 -0.67 99.000 5.000 99.050 +OBS: 56231.070 i NULL 3.488e+00 4.240e+00 0.82 99.000 5.000 98.974 +OBS: 56231.102 z NULL -3.376e+00 3.278e+00 -1.03 99.000 5.000 99.032 +OBS: 56235.039 g NULL -1.346e+00 5.184e+00 -0.26 99.000 5.000 99.061 +OBS: 56235.047 r NULL 4.219e-01 3.705e+00 0.11 99.000 5.000 99.050 +OBS: 56235.062 i NULL 5.767e+00 4.193e+00 1.38 99.000 5.000 98.974 +OBS: 56235.090 z NULL -8.049e+00 8.233e+00 -0.98 99.000 5.000 99.032 +OBS: 56236.047 g NULL -1.239e+00 4.872e+00 -0.25 99.000 5.000 99.061 +OBS: 56236.062 r NULL -3.600e+00 2.660e+00 -1.35 99.000 5.000 99.050 +OBS: 56236.074 i NULL 1.747e+00 5.222e+00 0.33 99.000 5.000 98.974 +OBS: 56236.105 z NULL 5.772e+00 5.320e+00 1.08 99.000 5.000 99.032 +OBS: 56237.039 g NULL -6.041e+00 3.166e+00 -1.91 99.000 5.000 99.061 +OBS: 56237.051 r NULL -3.795e-03 2.212e+00 -0.00 99.000 5.000 99.050 +OBS: 56237.094 i NULL -1.008e+00 2.491e+00 -0.40 99.000 5.000 98.974 +OBS: 56237.125 z NULL 5.046e+00 3.696e+00 1.37 99.000 5.000 99.032 +OBS: 56238.074 g NULL 6.148e-01 2.522e+00 0.24 99.000 5.000 99.061 +OBS: 56238.094 r NULL -3.339e-01 1.588e+00 -0.21 99.000 5.000 99.050 +OBS: 56238.109 i NULL 1.909e+00 2.722e+00 0.70 99.000 5.000 98.974 +OBS: 56238.129 z NULL -1.978e+00 3.106e+00 -0.64 99.000 5.000 99.032 +OBS: 56243.098 g NULL -1.273e+00 2.168e+00 -0.59 128.000 0.000 52.363 +OBS: 56243.109 r NULL 1.081e+00 1.654e+00 0.65 27.416 100.584 57.905 +OBS: 56243.125 i NULL 1.114e+00 2.564e+00 0.43 27.382 100.618 54.332 +OBS: 56243.152 z NULL -2.034e+00 2.550e+00 -0.80 128.000 0.000 51.544 +OBS: 56244.082 g NULL 1.620e+00 2.191e+00 0.74 26.976 101.024 52.302 +OBS: 56244.098 r NULL -1.247e+00 1.634e+00 -0.76 128.000 0.000 57.678 +OBS: 56244.109 i NULL 2.474e+00 2.589e+00 0.96 26.516 101.484 53.648 +OBS: 56244.133 z NULL -1.188e+00 2.982e+00 -0.40 128.000 0.000 51.275 +OBS: 56245.070 g NULL -1.475e+00 1.718e+00 -0.86 128.000 0.000 52.246 +OBS: 56245.082 r NULL 2.118e+00 1.353e+00 1.57 26.685 1.104 57.489 +OBS: 56245.109 i NULL 8.670e+00 3.215e+00 2.70 25.155 0.502 53.197 +OBS: 56245.137 z NULL -1.559e+00 2.836e+00 -0.55 128.000 0.000 51.048 +OBS: 56246.117 g NULL 6.242e+00 6.562e+00 0.95 25.512 102.488 52.192 +OBS: 56246.125 r NULL -7.403e-01 2.810e+00 -0.26 128.000 0.000 57.312 +OBS: 56246.152 i NULL 6.211e-01 1.959e+00 0.32 28.017 99.983 52.803 +OBS: 56246.180 z NULL 3.800e-01 1.933e+00 0.20 28.551 99.449 50.833 +OBS: 56247.281 g NULL 2.759e+00 1.489e+00 1.85 26.398 0.842 52.137 +OBS: 56247.297 r NULL 2.317e-01 1.132e+00 0.20 29.088 98.912 57.137 +OBS: 56247.316 i NULL 2.586e+00 1.974e+00 1.31 26.468 1.564 52.444 +OBS: 56247.340 z NULL -4.278e+00 2.491e+00 -1.72 128.000 0.000 50.616 +OBS: 56248.324 g NULL 8.956e-01 1.701e+00 0.53 27.620 100.380 52.093 +OBS: 56248.340 r NULL -1.280e+00 1.335e+00 -0.96 128.000 0.000 56.996 +OBS: 56258.035 i NULL -6.980e+00 9.886e+00 -0.71 128.000 0.000 49.648 +OBS: 56258.066 z NULL -2.665e+00 3.968e+00 -0.67 128.000 0.000 48.731 +OBS: 56258.215 g NULL 1.565e+00 4.947e+00 0.32 27.014 100.986 51.721 +OBS: 56258.227 r NULL 1.026e+00 2.381e+00 0.43 27.473 100.527 52.454 +OBS: 56261.098 g NULL 1.064e+01 8.830e+00 1.21 24.933 1.921 51.439 +OBS: 56261.102 r NULL 3.600e-02 3.394e+00 0.01 31.109 96.891 49.623 +OBS: 56261.125 i NULL 2.037e+00 3.853e+00 0.53 26.728 101.272 48.593 +OBS: 56261.156 z NULL 1.371e+00 3.086e+00 0.44 27.158 100.842 48.273 +OBS: 56273.160 g NULL -8.207e-01 1.754e+00 -0.47 128.000 0.000 27.882 +OBS: 56273.176 r NULL 1.023e+00 1.214e+00 0.84 27.476 100.524 27.945 +OBS: 56273.188 i NULL 2.162e+00 2.024e+00 1.07 26.663 2.989 27.057 +OBS: 56273.219 z NULL -3.501e-01 2.251e+00 -0.16 128.000 0.000 28.012 +OBS: 56281.160 g NULL 1.727e+01 2.120e+00 8.15 24.407 0.141 24.722 +OBS: 56281.184 r NULL 1.542e+01 1.316e+00 11.72 24.530 0.097 24.497 +OBS: 56281.203 i NULL 1.741e+01 1.834e+00 9.49 24.398 0.121 24.433 +OBS: 56281.227 z NULL 1.273e+01 2.305e+00 5.52 24.738 0.217 24.596 +OBS: 56288.086 g NULL 8.225e+00 4.861e+00 1.69 25.212 0.972 24.692 +OBS: 56288.094 r NULL 2.342e+01 2.167e+00 10.81 24.076 0.106 24.044 +OBS: 56288.109 i NULL 1.593e+01 3.078e+00 5.18 24.494 0.234 24.249 +OBS: 56288.141 z NULL 1.549e+01 2.602e+00 5.95 24.525 0.200 24.403 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56289.227 g NULL 1.959e+01 6.507e+00 3.01 24.270 0.438 24.750 +OBS: 56289.242 r NULL 2.120e+01 2.736e+00 7.75 24.184 0.150 24.058 +OBS: 56289.258 i NULL 1.907e+01 5.099e+00 3.74 24.299 0.338 24.303 +OBS: 56292.035 z NULL 1.857e+01 2.093e+00 8.87 24.328 0.129 24.440 +OBS: 56292.141 g NULL 1.538e+01 3.081e+00 4.99 24.533 0.242 24.918 +OBS: 56292.156 r NULL 2.176e+01 1.796e+00 12.12 24.156 0.094 24.121 +OBS: 56292.172 i NULL 1.478e+01 2.673e+00 5.53 24.576 0.217 24.445 +OBS: 56303.039 g NULL 4.470e+00 1.384e+00 3.23 25.874 0.402 25.992 +OBS: 56303.051 r NULL 1.597e+01 9.619e-01 16.60 24.492 0.068 24.466 +OBS: 56303.070 i NULL 1.444e+01 1.445e+00 9.99 24.601 0.114 24.702 +OBS: 56303.094 z NULL 1.886e+01 2.239e+00 8.43 24.311 0.137 24.523 +OBS: 56311.043 g NULL 1.585e+00 2.672e+00 0.59 27.000 101.000 26.803 +OBS: 56311.055 r NULL 1.116e+01 1.517e+00 7.36 24.881 0.159 24.824 +OBS: 56311.074 i NULL 1.035e+01 2.400e+00 4.31 24.963 0.287 24.775 +OBS: 56311.098 z NULL 1.148e+01 2.445e+00 4.70 24.850 0.261 24.605 +OBS: 56317.125 g NULL -2.085e+00 4.217e+00 -0.49 128.000 0.000 27.461 +OBS: 56317.141 r NULL 5.049e+00 1.866e+00 2.71 25.742 0.503 25.147 +OBS: 56318.109 i NULL 1.499e+01 2.797e+00 5.36 24.561 0.224 24.841 +OBS: 56318.141 z NULL 6.282e+00 2.979e+00 2.11 25.505 0.701 24.678 +OBS: 56321.090 g NULL 2.296e+00 6.628e+00 0.35 26.598 101.402 27.930 +OBS: 56321.098 r NULL 1.004e+01 2.898e+00 3.46 24.996 0.369 25.376 +OBS: 56321.109 i NULL 1.268e+01 3.414e+00 3.71 24.742 0.340 24.882 +OBS: 56321.141 z NULL 1.368e+01 2.970e+00 4.61 24.660 0.266 24.711 +OBS: 56332.039 g NULL -2.889e+00 1.460e+00 -1.98 128.000 0.000 29.230 +OBS: 56332.051 r NULL 3.068e+00 9.789e-01 3.13 26.283 0.418 25.983 +OBS: 56332.070 i NULL 9.794e+00 1.596e+00 6.14 25.023 0.193 25.048 +OBS: 56332.094 z NULL 1.284e+01 2.589e+00 4.96 24.728 0.244 24.844 +OBS: 56340.043 g NULL 3.203e+00 2.750e+00 1.16 26.236 2.121 30.252 +OBS: 56340.055 r NULL 3.892e+00 1.649e+00 2.36 26.025 0.598 26.437 +OBS: 56340.074 i NULL 8.894e+00 2.727e+00 3.26 25.127 0.397 25.214 +OBS: 56340.098 z NULL 1.051e+01 2.988e+00 3.52 24.946 0.363 24.948 +OBS: 56348.055 g NULL -3.294e+00 3.249e+00 -1.01 128.000 0.000 31.363 +OBS: 56348.070 r NULL 2.304e+00 2.100e+00 1.10 26.594 2.631 26.913 +OBS: 56349.004 i NULL 5.250e+00 2.357e+00 2.23 25.700 0.647 25.430 +OBS: 56349.027 z NULL 1.109e+01 2.437e+00 4.55 24.887 0.269 25.074 +OBS: 56350.043 g NULL -4.299e+00 3.836e+00 -1.12 128.000 0.000 31.626 +OBS: 56350.055 r NULL 3.739e+00 1.816e+00 2.06 26.068 0.721 27.032 +OBS: 56350.070 i NULL 9.706e+00 3.166e+00 3.07 25.032 0.428 25.457 +OBS: 56350.098 z NULL 6.700e+00 4.861e+00 1.38 25.435 1.405 25.089 +OBS: 56351.043 g NULL 2.159e+00 3.350e+00 0.64 26.665 101.335 31.759 +OBS: 56351.055 r NULL 7.485e-01 1.761e+00 0.43 27.814 100.186 27.093 +OBS: 56351.070 i NULL 7.561e+00 3.062e+00 2.47 25.303 0.563 25.482 +OBS: 56351.098 z NULL 1.020e+01 4.785e+00 2.13 24.979 0.687 25.103 +END: diff --git a/data/tests/DES_data/DES_SN029663.DAT b/data/tests/DES_data/DES_SN029663.DAT new file mode 100644 index 000000000..7726b9d57 --- /dev/null +++ b/data/tests/DES_data/DES_SN029663.DAT @@ -0,0 +1,103 @@ +SURVEY: DES +SNID: 29663 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 48.000000 deg +DECL: 0.000000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0713 MW E(B-V) +REDSHIFT_HELIO: 0.78955 +- 0.01250 (Helio, z_best) +REDSHIFT_FINAL: 0.78955 +- 0.01250 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 18978 +HOST_GALAXY_PHOTO-Z: 0.7896 +- 0.0125 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 27 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-015339 +SIM_LIBID: 3 +SIM_REDSHIFT: 0.8007 +SIM_HOSTLIB_TRUEZ: 0.8000 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 18978 +SIM_DLMU: 43.504742 mag [ -5*log10(10pc/dL) ] +SIM_RA: 48.000000 deg +SIM_DECL: 0.000000 deg +SIM_MWEBV: 0.0743 (MilkyWay E(B-V)) +SIM_PEAKMAG: 26.12 24.43 24.67 24.45 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56331.972656 days +SIM_SALT2x0: 3.964e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 2 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -39.27 days +SIM_TRESTMAX: 10.58 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56333.340 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 48 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56261.266 g NULL -4.626e+00 1.009e+01 -0.46 99.000 5.000 99.042 +OBS: 56261.273 r NULL 4.579e+00 4.185e+00 1.09 99.000 5.000 99.002 +OBS: 56261.281 i NULL -1.044e+01 7.032e+00 -1.48 99.000 5.000 99.012 +OBS: 56261.289 z NULL 4.340e+00 4.892e+00 0.89 99.000 5.000 98.946 +OBS: 56275.152 g NULL -6.900e+00 3.312e+00 -2.08 99.000 5.000 99.042 +OBS: 56275.172 r NULL -1.585e-01 2.239e+00 -0.07 99.000 5.000 99.002 +OBS: 56275.191 i NULL 3.319e+00 4.492e+00 0.74 99.000 5.000 99.012 +OBS: 56275.203 z NULL 1.967e+00 5.325e+00 0.37 99.000 5.000 98.946 +OBS: 56283.203 g NULL 3.365e+00 6.285e+00 0.54 26.183 101.817 57.710 +OBS: 56283.211 r NULL 6.598e+00 3.327e+00 1.98 25.452 0.761 60.856 +OBS: 56283.215 i NULL 7.250e+00 5.818e+00 1.25 25.349 1.760 60.611 +OBS: 56283.223 z NULL 2.346e+00 5.043e+00 0.47 26.574 101.426 59.669 +OBS: 56288.199 g NULL 2.971e+00 1.179e+01 0.25 26.318 101.682 48.699 +OBS: 56288.215 r NULL -7.529e+00 6.182e+00 -1.22 128.000 0.000 51.752 +OBS: 56289.109 i NULL 2.722e+00 7.080e+00 0.38 26.413 101.587 51.212 +OBS: 56289.125 z NULL 2.229e+00 5.422e+00 0.41 26.630 101.370 50.458 +OBS: 56292.098 g NULL 2.400e+00 1.165e+01 0.21 26.550 101.450 43.731 +OBS: 56292.102 r NULL 3.014e+00 4.826e+00 0.62 26.302 101.698 46.983 +OBS: 56292.191 i NULL 3.546e-01 5.599e+00 0.06 28.626 99.374 47.863 +OBS: 56292.199 z NULL 1.934e+00 5.158e+00 0.37 26.784 101.216 47.231 +OBS: 56304.051 g NULL -3.143e+00 2.480e+00 -1.27 128.000 0.000 33.081 +OBS: 56304.055 r NULL 2.655e+00 1.657e+00 1.60 26.440 1.062 33.783 +OBS: 56304.070 i NULL 1.726e-01 2.506e+00 0.07 29.408 98.592 37.573 +OBS: 56304.086 z NULL 4.328e-01 3.934e+00 0.11 28.409 99.591 34.932 +OBS: 56312.055 g NULL -3.804e+00 7.569e+00 -0.50 128.000 0.000 27.261 +OBS: 56312.066 r NULL 4.588e+00 2.967e+00 1.55 25.846 1.130 25.797 +OBS: 56312.090 i NULL -1.249e-01 5.021e+00 -0.02 128.000 0.000 26.352 +OBS: 56312.113 z NULL 1.733e-01 5.429e+00 0.03 29.403 98.597 27.044 +OBS: 56320.043 g NULL 2.274e+00 6.174e+00 0.37 26.608 101.392 26.072 +OBS: 56320.051 r NULL 2.079e+01 2.536e+00 8.20 24.205 0.141 24.394 +OBS: 56320.059 i NULL 3.866e+00 3.661e+00 1.06 26.032 3.219 24.837 +OBS: 56320.070 z NULL 1.248e+01 4.402e+00 2.84 24.759 0.472 25.164 +OBS: 56328.047 g NULL -6.552e-01 3.363e+00 -0.19 128.000 0.000 25.996 +OBS: 56328.055 r NULL 2.259e+01 2.459e+00 9.18 24.115 0.125 24.333 +OBS: 56328.070 i NULL 1.384e+01 4.061e+00 3.41 24.647 0.377 24.680 +OBS: 56328.086 z NULL 1.131e+01 6.787e+00 1.67 24.866 0.996 24.546 +OBS: 56336.062 g NULL 8.235e+00 3.712e+00 2.22 25.211 0.650 26.297 +OBS: 56336.082 r NULL 1.535e+01 3.033e+00 5.06 24.535 0.239 24.579 +OBS: 56337.062 i NULL 1.251e+01 2.946e+00 4.25 24.757 0.292 24.689 +OBS: 56337.078 z NULL 1.245e+01 3.757e+00 3.31 24.762 0.391 24.412 +OBS: 56345.039 g NULL 5.821e+00 7.142e+00 0.81 25.588 102.412 26.767 +OBS: 56345.055 r NULL 9.177e+00 3.780e+00 2.43 25.093 0.576 25.062 +OBS: 56346.055 i NULL 1.055e+01 5.994e+00 1.76 24.942 0.912 24.790 +OBS: 56348.027 z NULL 3.108e+01 5.055e+00 6.15 23.769 0.192 24.489 +OBS: 56350.023 g NULL 2.648e+00 6.832e+00 0.39 26.443 101.557 27.103 +OBS: 56350.027 r NULL 7.236e+00 3.943e+00 1.84 25.351 0.855 25.339 +OBS: 56350.035 i NULL 1.141e+01 6.689e+00 1.71 24.857 0.958 24.873 +OBS: 56351.023 z NULL 1.766e+01 6.108e+00 2.89 24.382 0.461 24.514 +END: diff --git a/data/tests/DES_data/DES_SN043274.DAT b/data/tests/DES_data/DES_SN043274.DAT new file mode 100644 index 000000000..6048bea4d --- /dev/null +++ b/data/tests/DES_data/DES_SN043274.DAT @@ -0,0 +1,166 @@ +SURVEY: DES +SNID: 43274 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: 1 +FILTERS: griz +RA: 36.750000 deg +DECL: -4.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0283 MW E(B-V) +REDSHIFT_HELIO: 0.62435 +- 0.00500 (Helio, z_best) +REDSHIFT_FINAL: 0.62435 +- 0.00500 (CMB) +REDSHIFT_SPEC: 0.62435 +- 0.00500 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 14944 +HOST_GALAXY_PHOTO-Z: 0.5772 +- 0.0311 + + + +SIM_MODEL: SALT2.K09_LAMOPEN 6 (name index) +SIM_NON1a: 0 (non1a index) +SIM_COMMENT: SN Type = Ia , MODEL = SALT2.K09_LAMOPEN +SIM_LIBID: 2 +SIM_REDSHIFT: 0.6235 +SIM_HOSTLIB_TRUEZ: 0.6200 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 14944 +SIM_DLMU: 42.840511 mag [ -5*log10(10pc/dL) ] +SIM_RA: 36.750000 deg +SIM_DECL: -4.500000 deg +SIM_MWEBV: 0.0236 (MilkyWay E(B-V)) +SIM_PEAKMAG: 25.01 23.41 23.15 23.10 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56270.667969 days +SIM_SALT2alpha: 0.110 +SIM_SALT2beta: 3.200 +SIM_SALT2x0: 4.772e-06 +SIM_SALT2x1: -0.3467 +SIM_SALT2c: 0.1327 +SIM_SALT2mB: 23.9383 +SIM_STRETCH: 0.653 +SIM_MAGDIM: 1.581 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -39.10 days +SIM_TRESTMAX: 48.25 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: -0.0 days + +SEARCH_PEAKMJD: 56271.219 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 104 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56207.188 g NULL -1.955e+00 4.365e+00 -0.45 99.000 5.000 98.502 +OBS: 56207.195 r NULL -2.838e+00 3.459e+00 -0.82 99.000 5.000 98.860 +OBS: 56207.203 i NULL 2.555e+00 6.247e+00 0.41 99.000 5.000 98.807 +OBS: 56207.219 z NULL 8.420e+00 5.954e+00 1.41 99.000 5.000 98.830 +OBS: 56215.195 g NULL 4.785e-01 2.681e+00 0.18 99.000 5.000 98.502 +OBS: 56215.203 r NULL 4.032e+00 2.172e+00 1.86 99.000 5.000 98.860 +OBS: 56215.211 i NULL -1.365e-01 2.633e+00 -0.05 99.000 5.000 98.807 +OBS: 56215.227 z NULL -5.145e-01 3.426e+00 -0.15 99.000 5.000 98.830 +OBS: 56221.090 g NULL -6.235e+00 6.269e+00 -0.99 99.000 5.000 98.502 +OBS: 56221.105 r NULL -3.596e+00 5.078e+00 -0.71 99.000 5.000 98.860 +OBS: 56221.113 i NULL -2.228e+00 5.576e+00 -0.40 99.000 5.000 98.807 +OBS: 56221.117 z NULL 1.580e+01 7.710e+00 2.05 99.000 5.000 98.830 +OBS: 56222.270 g NULL 3.049e+00 7.729e+00 0.39 99.000 5.000 98.502 +OBS: 56222.273 r NULL -1.659e+00 5.695e+00 -0.29 99.000 5.000 98.860 +OBS: 56222.281 i NULL -5.723e+00 1.698e+01 -0.34 99.000 5.000 98.807 +OBS: 56222.289 z NULL -2.606e+00 8.065e+00 -0.32 99.000 5.000 98.830 +OBS: 56228.234 g NULL -9.365e+00 1.234e+01 -0.76 99.000 5.000 98.502 +OBS: 56228.242 r NULL 4.208e+00 5.569e+00 0.76 99.000 5.000 98.860 +OBS: 56228.258 i NULL 1.093e+01 1.202e+01 0.91 99.000 5.000 98.807 +OBS: 56228.270 z NULL -1.015e+01 6.651e+00 -1.53 99.000 5.000 98.830 +OBS: 56229.258 g NULL 3.062e+01 1.722e+01 1.78 99.000 5.000 98.502 +OBS: 56229.270 r NULL -9.340e+00 8.065e+00 -1.16 99.000 5.000 98.860 +OBS: 56229.285 i NULL -1.108e+01 1.506e+01 -0.74 99.000 5.000 98.807 +OBS: 56229.297 z NULL -1.059e+01 8.901e+00 -1.19 99.000 5.000 98.830 +OBS: 56230.273 g NULL 1.220e+01 1.383e+01 0.88 99.000 5.000 98.502 +OBS: 56230.277 r NULL 5.703e+00 6.406e+00 0.89 99.000 5.000 98.860 +OBS: 56230.285 i NULL -9.516e+00 1.120e+01 -0.85 99.000 5.000 98.807 +OBS: 56230.293 z NULL 5.464e+00 6.157e+00 0.89 99.000 5.000 98.830 +OBS: 56231.242 g NULL -1.165e+01 9.779e+00 -1.19 99.000 5.000 98.502 +OBS: 56231.258 r NULL -1.144e+00 4.944e+00 -0.23 99.000 5.000 98.860 +OBS: 56231.273 i NULL -1.661e+01 9.661e+00 -1.72 99.000 5.000 98.807 +OBS: 56231.277 z NULL -5.676e+00 5.305e+00 -1.07 99.000 5.000 98.830 +OBS: 56235.242 g NULL -7.771e+00 6.867e+00 -1.13 99.000 5.000 98.502 +OBS: 56235.258 r NULL -1.268e+00 3.909e+00 -0.32 99.000 5.000 98.860 +OBS: 56235.270 i NULL -1.030e+01 7.250e+00 -1.42 99.000 5.000 98.807 +OBS: 56235.277 z NULL -2.037e+01 6.991e+00 -2.91 99.000 5.000 98.830 +OBS: 56236.258 g NULL -7.691e+00 6.536e+00 -1.18 99.000 5.000 98.502 +OBS: 56236.270 r NULL 2.851e+00 4.253e+00 0.67 99.000 5.000 98.860 +OBS: 56236.277 i NULL -1.690e+00 5.994e+00 -0.28 99.000 5.000 98.807 +OBS: 56236.285 z NULL 6.373e+00 7.805e+00 0.82 99.000 5.000 98.830 +OBS: 56237.289 g NULL 1.391e+01 2.675e+01 0.52 99.000 5.000 98.502 +OBS: 56237.297 r NULL -1.178e+01 4.068e+01 -0.29 99.000 5.000 98.860 +OBS: 56237.301 i NULL 1.022e+01 4.383e+01 0.23 99.000 5.000 98.807 +OBS: 56237.316 z NULL -1.935e+01 2.567e+01 -0.75 99.000 5.000 98.830 +OBS: 56238.301 g NULL -5.719e+01 4.136e+01 -1.38 128.000 0.000 34.651 +OBS: 56238.316 r NULL 4.802e+00 1.368e+01 0.35 25.796 102.204 32.604 +OBS: 56238.328 i NULL -4.508e+00 7.933e+00 -0.57 128.000 0.000 32.201 +OBS: 56243.027 z NULL -5.671e+00 7.822e+00 -0.73 128.000 0.000 26.972 +OBS: 56243.309 g NULL 2.293e+00 4.496e+00 0.51 26.599 101.401 29.124 +OBS: 56244.027 r NULL 8.282e-02 4.106e+00 0.02 30.205 97.795 26.929 +OBS: 56244.031 i NULL 5.977e+00 6.617e+00 0.90 25.559 102.441 26.626 +OBS: 56244.273 g NULL 1.985e+00 4.060e+00 0.49 26.755 101.245 28.737 +OBS: 56244.277 z NULL -1.943e+00 6.054e+00 -0.32 128.000 0.000 26.446 +OBS: 56245.293 g NULL -4.212e+00 1.378e+01 -0.31 128.000 0.000 28.390 +OBS: 56245.309 r NULL 1.207e-01 1.011e+01 0.01 29.796 98.204 26.491 +OBS: 56246.027 i NULL -2.088e+00 3.697e+00 -0.56 128.000 0.000 25.980 +OBS: 56246.035 z NULL 4.645e-02 4.293e+00 0.01 30.833 97.167 25.884 +OBS: 56247.207 g NULL 4.776e-02 2.990e+00 0.02 30.802 97.198 27.804 +OBS: 56247.215 r NULL 8.547e+00 2.291e+00 3.73 25.171 0.338 25.948 +OBS: 56254.160 i NULL 2.774e+01 4.952e+00 5.60 23.892 0.213 24.161 +OBS: 56254.172 z NULL 2.092e+01 4.039e+00 5.18 24.198 0.233 24.160 +OBS: 56258.125 g NULL 1.424e+00 1.063e+01 0.13 27.117 100.883 25.014 +OBS: 56258.141 r NULL 2.297e+01 5.087e+00 4.52 24.097 0.272 23.830 +OBS: 56261.035 i NULL 4.194e+01 6.152e+00 6.82 23.443 0.172 23.420 +OBS: 56261.043 z NULL 3.420e+01 4.668e+00 7.33 23.665 0.160 23.431 +OBS: 56261.242 g NULL 1.052e+01 7.755e+00 1.36 24.945 1.452 24.857 +OBS: 56261.258 r NULL 3.561e+01 3.998e+00 8.91 23.621 0.129 23.600 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56274.188 g NULL 9.442e+00 3.612e+00 2.61 25.062 0.523 25.263 +OBS: 56274.195 r NULL 4.968e+01 2.919e+00 17.02 23.260 0.065 23.477 +OBS: 56274.203 i NULL 5.447e+01 4.407e+00 12.36 23.160 0.092 23.178 +OBS: 56274.219 z NULL 5.791e+01 5.137e+00 11.27 23.093 0.101 23.094 +OBS: 56282.203 g NULL 4.287e+00 6.360e+00 0.67 25.920 102.080 25.877 +OBS: 56283.156 r NULL 3.102e+01 3.204e+00 9.68 23.771 0.118 23.903 +OBS: 56283.168 i NULL 5.050e+01 5.142e+00 9.82 23.242 0.116 23.422 +OBS: 56283.184 z NULL 4.606e+01 4.203e+00 10.96 23.342 0.104 23.277 +OBS: 56288.191 g NULL 1.179e+00 1.255e+01 0.09 27.321 100.679 26.267 +OBS: 56289.066 r NULL 1.629e+01 5.062e+00 3.22 24.470 0.404 24.287 +OBS: 56289.078 i NULL 2.657e+01 8.753e+00 3.04 23.939 0.434 23.723 +OBS: 56289.086 z NULL 3.582e+01 5.667e+00 6.32 23.615 0.187 23.508 +OBS: 56292.090 g NULL 2.131e+00 1.142e+01 0.19 26.678 101.322 26.602 +OBS: 56298.039 r NULL 1.113e+01 2.430e+00 4.58 24.884 0.267 25.028 +OBS: 56298.047 i NULL 1.868e+01 3.580e+00 5.22 24.321 0.231 24.243 +OBS: 56298.055 z NULL 3.222e+01 4.011e+00 8.03 23.730 0.144 23.754 +OBS: 56304.043 g NULL -5.173e+00 2.551e+00 -2.03 128.000 0.000 27.871 +OBS: 56306.102 r NULL 1.350e+00 3.212e+00 0.42 27.174 100.826 25.647 +OBS: 56306.113 i NULL 2.021e+01 4.327e+00 4.67 24.236 0.261 24.680 +OBS: 56306.121 z NULL 2.457e+01 5.413e+00 4.54 24.024 0.270 23.966 +OBS: 56312.047 g NULL 5.893e+00 9.604e+00 0.61 25.574 102.426 27.806 +OBS: 56318.066 r NULL 3.514e+00 4.572e+00 0.77 26.135 101.865 26.267 +OBS: 56318.078 i NULL 1.008e+01 7.974e+00 1.26 24.991 1.698 25.312 +OBS: 56318.086 z NULL 1.290e+01 6.374e+00 2.02 24.723 0.741 24.296 +OBS: 56320.035 g NULL 8.331e-01 1.145e+01 0.07 27.698 100.302 28.830 +OBS: 56327.039 r NULL 2.193e+00 2.798e+00 0.78 26.648 101.352 26.626 +OBS: 56327.047 i NULL 7.474e+00 4.176e+00 1.79 25.316 0.888 25.600 +OBS: 56327.055 z NULL 1.469e+01 4.761e+00 3.08 24.583 0.425 24.614 +OBS: 56328.039 g NULL -3.154e-01 3.701e+00 -0.09 128.000 0.000 29.559 +OBS: 56336.043 r NULL 2.013e+00 3.081e+00 0.65 26.741 101.259 26.811 +OBS: 56336.055 i NULL 2.713e+00 5.009e+00 0.54 26.416 101.584 25.799 +OBS: 56337.043 z NULL 1.223e+01 4.048e+00 3.02 24.781 0.436 24.888 +OBS: 56338.043 g NULL -3.229e+00 3.554e+00 -0.91 128.000 0.000 28.909 +OBS: 56347.996 r NULL 4.117e+00 2.481e+00 1.66 25.963 1.001 26.898 +OBS: 56348.004 i NULL 4.720e+00 4.867e+00 0.97 25.815 102.185 26.015 +OBS: 56348.008 z NULL 9.566e-01 6.562e+00 0.15 27.548 100.452 25.203 +OBS: 56348.996 g NULL 6.428e+00 5.505e+00 1.17 99.000 5.000 98.502 +END: diff --git a/data/tests/DES_data/DES_SN047753.DAT b/data/tests/DES_data/DES_SN047753.DAT new file mode 100644 index 000000000..c5365159f --- /dev/null +++ b/data/tests/DES_data/DES_SN047753.DAT @@ -0,0 +1,139 @@ +SURVEY: DES +SNID: 47753 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 36.750000 deg +DECL: -4.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0283 MW E(B-V) +REDSHIFT_HELIO: 0.43528 +- 0.03550 (Helio, z_best) +REDSHIFT_FINAL: 0.43528 +- 0.03550 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 17079 +HOST_GALAXY_PHOTO-Z: 0.4353 +- 0.0355 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 44 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-018892 +SIM_LIBID: 2 +SIM_REDSHIFT: 0.4347 +SIM_HOSTLIB_TRUEZ: 0.4300 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 17079 +SIM_DLMU: 41.898262 mag [ -5*log10(10pc/dL) ] +SIM_RA: 36.750000 deg +SIM_DECL: -4.500000 deg +SIM_MWEBV: 0.0253 (MilkyWay E(B-V)) +SIM_PEAKMAG: 23.81 24.22 24.11 24.07 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56165.285156 days +SIM_SALT2x0: 1.741e-17 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: 8.99 days +SIM_TRESTMAX: 66.89 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56165.445 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 83 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56178.188 g NULL 3.086e+01 9.438e+00 3.27 23.776 0.396 24.558 +OBS: 56178.195 r NULL 3.238e+01 7.205e+00 4.49 23.724 0.273 24.201 +OBS: 56178.203 i NULL 1.923e+01 6.849e+00 2.81 24.290 0.479 24.098 +OBS: 56178.211 z NULL 3.261e+01 7.945e+00 4.10 23.717 0.303 23.935 +OBS: 56180.172 g NULL 1.815e+01 4.057e+00 4.47 24.353 0.274 24.700 +OBS: 56180.188 r NULL 1.651e+01 3.204e+00 5.15 24.455 0.235 24.237 +OBS: 56180.195 i NULL 2.005e+01 4.421e+00 4.53 24.245 0.271 24.113 +OBS: 56180.203 z NULL 3.031e+01 5.000e+00 6.06 23.796 0.195 23.940 +OBS: 56188.148 g NULL 2.194e+01 1.797e+01 1.22 24.147 1.854 25.252 +OBS: 56188.289 r NULL 1.187e+01 4.016e+00 2.96 24.814 0.449 24.397 +OBS: 56188.297 i NULL 1.907e+01 8.151e+00 2.34 24.299 0.606 24.178 +OBS: 56188.312 z NULL 2.420e+01 5.417e+00 4.47 24.040 0.275 23.980 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56194.145 g NULL 3.989e+00 4.692e+00 0.85 25.998 102.002 25.612 +OBS: 56194.156 r NULL 1.388e+01 2.780e+00 4.99 24.644 0.243 24.517 +OBS: 56194.172 i NULL 2.573e+01 4.665e+00 5.52 23.974 0.217 24.231 +OBS: 56194.188 z NULL 2.402e+01 4.491e+00 5.35 24.049 0.225 24.022 +OBS: 56207.188 g NULL 2.584e+00 4.371e+00 0.59 26.469 101.531 26.415 +OBS: 56207.195 r NULL 9.874e+00 3.471e+00 2.84 25.014 0.471 24.791 +OBS: 56207.203 i NULL 2.053e+01 6.264e+00 3.28 24.219 0.395 24.347 +OBS: 56207.219 z NULL 2.859e+01 5.979e+00 4.78 23.859 0.254 24.115 +OBS: 56215.195 g NULL 3.659e+00 2.687e+00 1.36 26.092 1.439 26.932 +OBS: 56215.203 r NULL 7.616e+00 2.187e+00 3.48 25.296 0.368 24.954 +OBS: 56215.211 i NULL 1.285e+01 2.657e+00 4.84 24.728 0.252 24.417 +OBS: 56215.227 z NULL 1.500e+01 3.443e+00 4.36 24.560 0.284 24.175 +OBS: 56221.090 g NULL -3.210e+00 6.270e+00 -0.51 128.000 0.000 27.333 +OBS: 56221.105 r NULL 9.027e+00 5.087e+00 1.77 25.111 0.900 25.081 +OBS: 56221.113 i NULL 2.346e+01 5.600e+00 4.19 24.074 0.296 24.470 +OBS: 56221.117 z NULL 3.003e+01 7.728e+00 3.89 23.806 0.323 24.220 +OBS: 56222.270 g NULL -4.257e+00 7.732e+00 -0.55 128.000 0.000 27.412 +OBS: 56222.273 r NULL 4.176e+00 5.702e+00 0.73 25.948 102.052 25.106 +OBS: 56222.281 i NULL -1.190e+01 1.699e+01 -0.70 128.000 0.000 24.480 +OBS: 56222.289 z NULL 2.645e+01 8.083e+00 3.27 23.944 0.396 24.229 +OBS: 56228.234 g NULL 2.206e+01 1.235e+01 1.79 24.141 0.890 27.767 +OBS: 56228.242 r NULL 9.850e+00 5.575e+00 1.77 25.016 0.906 25.228 +OBS: 56228.258 i NULL 1.043e+01 1.203e+01 0.87 24.954 103.046 24.534 +OBS: 56228.270 z NULL 3.046e+01 6.676e+00 4.56 23.791 0.268 24.278 +OBS: 56229.258 g NULL -1.082e+01 1.721e+01 -0.63 128.000 0.000 27.826 +OBS: 56229.270 r NULL -2.679e+00 8.066e+00 -0.33 128.000 0.000 25.250 +OBS: 56229.285 i NULL -6.854e+00 1.507e+01 -0.45 128.000 0.000 24.543 +OBS: 56229.297 z NULL 1.485e+01 8.906e+00 1.67 24.571 0.995 24.287 +OBS: 56230.273 g NULL -1.090e+00 1.383e+01 -0.08 128.000 0.000 27.886 +OBS: 56230.277 r NULL -9.616e+00 6.410e+00 -1.50 128.000 0.000 25.271 +OBS: 56230.285 i NULL 2.397e+01 1.121e+01 2.14 24.051 0.684 24.552 +OBS: 56230.293 z NULL 2.335e+01 6.175e+00 3.78 24.079 0.333 24.295 +OBS: 56231.242 g NULL 1.210e+00 9.777e+00 0.12 27.293 100.707 27.945 +OBS: 56231.258 r NULL 1.867e+01 4.960e+00 3.76 24.322 0.334 25.293 +OBS: 56231.273 i NULL 3.694e-01 9.660e+00 0.04 28.581 99.419 24.561 +OBS: 56231.277 z NULL 1.306e+01 5.313e+00 2.46 24.710 0.568 24.304 +OBS: 56235.242 g NULL 1.780e+00 6.866e+00 0.26 26.874 101.126 28.181 +OBS: 56235.258 r NULL 2.984e+00 3.914e+00 0.76 26.313 101.687 25.381 +OBS: 56235.270 i NULL 9.359e+00 7.254e+00 1.29 25.072 1.621 24.596 +OBS: 56235.277 z NULL 1.002e+01 6.985e+00 1.43 24.998 1.299 24.337 +OBS: 56236.258 g NULL 3.691e+00 6.535e+00 0.56 26.082 101.918 28.243 +OBS: 56236.270 r NULL 1.207e+01 4.263e+00 2.83 24.796 0.472 25.404 +OBS: 56236.277 i NULL 9.949e+00 6.002e+00 1.66 25.006 1.005 24.605 +OBS: 56236.285 z NULL 2.837e+01 7.824e+00 3.63 23.868 0.350 24.346 +OBS: 56237.289 g NULL -1.748e+01 2.675e+01 -0.65 128.000 0.000 28.307 +OBS: 56237.297 r NULL -2.080e+01 4.068e+01 -0.51 128.000 0.000 25.427 +OBS: 56237.301 i NULL -1.999e+00 4.383e+01 -0.05 128.000 0.000 24.614 +OBS: 56237.316 z NULL -1.376e+01 2.567e+01 -0.54 128.000 0.000 24.355 +OBS: 56238.301 g NULL -4.072e+01 4.135e+01 -0.98 128.000 0.000 28.366 +OBS: 56238.316 r NULL 1.033e+01 1.369e+01 0.75 24.965 103.035 25.449 +OBS: 56238.328 i NULL 2.270e+01 7.949e+00 2.86 24.110 0.468 24.623 +OBS: 56243.027 z NULL 2.495e+01 7.837e+00 3.18 24.007 0.409 24.402 +OBS: 56243.309 g NULL -1.195e+00 4.496e+00 -0.27 128.000 0.000 28.679 +OBS: 56244.027 r NULL 5.914e+00 4.110e+00 1.44 25.570 1.289 25.573 +OBS: 56244.031 i NULL 1.485e+01 6.626e+00 2.24 24.571 0.641 24.672 +OBS: 56244.273 g NULL -8.222e-01 4.060e+00 -0.20 128.000 0.000 28.740 +OBS: 56244.277 z NULL 2.467e+01 6.074e+00 4.06 24.020 0.306 24.412 +OBS: 56245.293 g NULL -3.111e+00 1.378e+01 -0.23 128.000 0.000 28.808 +OBS: 56245.309 r NULL 2.204e+00 1.011e+01 0.22 26.642 101.358 25.602 +OBS: 56246.027 i NULL 1.460e+01 3.712e+00 3.93 24.589 0.318 24.689 +OBS: 56246.035 z NULL 1.985e+01 4.312e+00 4.60 24.255 0.266 24.426 +OBS: 56247.207 g NULL -1.179e+00 2.988e+00 -0.39 128.000 0.000 28.943 +OBS: 56247.215 r NULL 1.045e+01 2.295e+00 4.55 24.953 0.269 25.647 +OBS: 56254.160 i NULL 1.053e+01 4.925e+00 2.14 24.943 0.684 24.760 +OBS: 56254.172 z NULL 1.318e+01 4.026e+00 3.27 24.700 0.396 24.491 +OBS: 56258.125 g NULL -1.266e+01 1.062e+01 -1.19 128.000 0.000 29.534 +OBS: 56258.141 r NULL -3.540e+00 5.057e+00 -0.70 128.000 0.000 25.915 +OBS: 56261.035 i NULL 4.904e+00 6.091e+00 0.81 25.774 102.226 24.822 +OBS: 56261.043 z NULL 1.741e+01 4.630e+00 3.76 24.398 0.335 24.542 +OBS: 56261.242 g NULL 1.042e+01 7.742e+00 1.35 24.955 1.474 29.448 +OBS: 56261.258 r NULL 9.749e+00 3.927e+00 2.48 25.028 0.559 26.008 +END: diff --git a/data/tests/DES_data/DES_SN060962.DAT b/data/tests/DES_data/DES_SN060962.DAT new file mode 100644 index 000000000..6c75642be --- /dev/null +++ b/data/tests/DES_data/DES_SN060962.DAT @@ -0,0 +1,151 @@ +SURVEY: DES +SNID: 60962 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: 22 +FILTERS: griz +RA: 34.500000 deg +DECL: -5.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0227 MW E(B-V) +REDSHIFT_HELIO: 0.20405 +- 0.00500 (Helio, z_best) +REDSHIFT_FINAL: 0.20405 +- 0.00500 (CMB) +REDSHIFT_SPEC: 0.20405 +- 0.00500 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 14839 +HOST_GALAXY_PHOTO-Z: 0.2153 +- 0.0355 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 12 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-000018 +SIM_LIBID: 1 +SIM_REDSHIFT: 0.2031 +SIM_HOSTLIB_TRUEZ: 0.2000 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 14839 +SIM_DLMU: 39.993645 mag [ -5*log10(10pc/dL) ] +SIM_RA: 34.500000 deg +SIM_DECL: -5.500000 deg +SIM_MWEBV: 0.0204 (MilkyWay E(B-V)) +SIM_PEAKMAG: 22.89 23.13 22.97 23.36 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56276.984375 days +SIM_SALT2x0: 1.006e-16 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -39.86 days +SIM_TRESTMAX: 61.52 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56276.695 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 95 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56229.031 g NULL 3.293e+00 3.074e+01 0.11 99.000 5.000 101.241 +OBS: 56229.156 r NULL 2.425e+00 3.595e+00 0.67 99.000 5.000 101.198 +OBS: 56229.172 i NULL 2.703e+00 7.053e+00 0.38 99.000 5.000 101.167 +OBS: 56229.199 z NULL -9.358e-01 2.925e+00 -0.32 99.000 5.000 101.194 +OBS: 56230.035 g NULL 3.527e+00 9.315e+00 0.38 99.000 5.000 101.241 +OBS: 56230.043 r NULL 4.192e+00 3.864e+00 1.08 99.000 5.000 101.198 +OBS: 56230.191 i NULL 1.246e+01 6.322e+00 1.97 99.000 5.000 101.167 +OBS: 56230.215 z NULL 1.830e+00 2.921e+00 0.63 99.000 5.000 101.194 +OBS: 56231.035 g NULL -9.603e+00 7.696e+00 -1.25 99.000 5.000 101.241 +OBS: 56231.156 r NULL 1.053e-01 2.654e+00 0.04 99.000 5.000 101.198 +OBS: 56231.172 i NULL -3.163e+00 4.791e+00 -0.66 99.000 5.000 101.167 +OBS: 56231.191 z NULL -1.569e+00 3.017e+00 -0.52 99.000 5.000 101.194 +OBS: 56235.145 g NULL -4.376e+00 3.787e+00 -1.16 99.000 5.000 101.241 +OBS: 56235.160 r NULL 1.255e+00 1.757e+00 0.71 99.000 5.000 101.198 +OBS: 56235.172 i NULL 1.821e+00 3.200e+00 0.57 99.000 5.000 101.167 +OBS: 56235.195 z NULL -1.312e+00 2.936e+00 -0.45 99.000 5.000 101.194 +OBS: 56236.160 g NULL 2.145e+00 2.000e+00 1.07 99.000 5.000 101.241 +OBS: 56236.172 r NULL 1.493e-01 1.875e+00 0.08 99.000 5.000 101.198 +OBS: 56236.188 i NULL -3.223e+00 2.784e+00 -1.16 99.000 5.000 101.167 +OBS: 56236.207 z NULL 4.018e+00 3.191e+00 1.26 99.000 5.000 101.194 +OBS: 56237.176 g NULL -2.923e-01 3.438e+00 -0.09 99.000 5.000 101.241 +OBS: 56237.188 r NULL -1.834e+00 2.252e+00 -0.81 99.000 5.000 101.198 +OBS: 56237.207 i NULL 7.818e-01 2.861e+00 0.27 99.000 5.000 101.167 +OBS: 56237.238 z NULL 3.082e+00 3.868e+00 0.80 99.000 5.000 101.194 +OBS: 56238.188 g NULL -1.406e+00 2.970e+00 -0.47 99.000 5.000 101.241 +OBS: 56238.199 r NULL -6.238e+00 2.026e+00 -3.08 99.000 5.000 101.198 +OBS: 56238.219 i NULL -6.208e+00 3.237e+00 -1.92 99.000 5.000 101.167 +OBS: 56238.250 z NULL -9.765e-01 4.861e+00 -0.20 99.000 5.000 101.194 +OBS: 56243.203 g NULL 2.099e+00 1.689e+00 1.24 26.695 1.773 46.971 +OBS: 56243.211 r NULL -1.630e+00 1.224e+00 -1.33 128.000 0.000 46.871 +OBS: 56243.223 i NULL 2.232e+00 1.849e+00 1.21 26.628 1.912 47.708 +OBS: 56243.250 z NULL -6.912e-01 2.416e+00 -0.29 128.000 0.000 48.964 +OBS: 56244.180 g NULL 2.064e-01 1.782e+00 0.12 29.213 98.787 46.898 +OBS: 56244.188 r NULL -1.735e+00 1.373e+00 -1.26 128.000 0.000 46.830 +OBS: 56244.203 i NULL 4.477e-01 1.987e+00 0.23 28.372 99.628 47.651 +OBS: 56244.223 z NULL 4.702e+00 2.232e+00 2.11 25.819 0.698 48.869 +OBS: 56245.191 g NULL -5.259e+00 4.786e+00 -1.10 128.000 0.000 46.824 +OBS: 56245.199 r NULL 1.019e+00 1.174e+00 0.87 27.480 100.520 46.787 +OBS: 56245.219 i NULL -3.139e+00 2.077e+00 -1.51 128.000 0.000 47.594 +OBS: 56245.246 z NULL -6.212e-01 5.917e+00 -0.10 128.000 0.000 48.774 +OBS: 56246.234 g NULL 1.983e+00 2.000e+00 0.99 26.757 101.243 46.751 +OBS: 56246.246 r NULL -3.233e+00 3.168e+00 -1.02 128.000 0.000 46.745 +OBS: 56246.262 i NULL 5.896e+00 5.641e+00 1.05 25.574 3.407 47.537 +OBS: 56246.285 z NULL 1.277e+01 1.277e+01 1.00 24.734 8.401 48.681 +OBS: 56248.207 g NULL -3.442e-02 1.751e+00 -0.02 128.000 0.000 46.619 +OBS: 56248.215 r NULL -1.730e+00 1.325e+00 -1.31 128.000 0.000 46.670 +OBS: 56248.230 i NULL -6.875e-03 2.206e+00 -0.00 128.000 0.000 47.433 +OBS: 56248.250 z NULL 4.603e+00 3.030e+00 1.52 25.842 1.165 48.510 +OBS: 56258.242 g NULL 3.467e+00 8.081e+00 0.43 26.150 101.850 29.143 +OBS: 56258.258 r NULL 2.061e+00 4.418e+00 0.47 26.715 101.285 28.773 +OBS: 56259.160 i NULL -9.044e+00 4.543e+00 -1.99 128.000 0.000 28.428 +OBS: 56259.180 z NULL 1.822e+00 3.059e+00 0.60 26.848 101.152 28.992 +OBS: 56261.215 g NULL -2.272e-01 3.959e+00 -0.06 128.000 0.000 27.160 +OBS: 56261.230 r NULL 3.735e+00 1.855e+00 2.01 26.069 0.745 26.696 +OBS: 56267.156 i NULL 1.513e+01 2.233e+00 6.78 24.550 0.173 24.641 +OBS: 56267.180 z NULL 1.011e+01 3.056e+00 3.31 24.988 0.391 25.174 +OBS: 56274.160 g NULL 6.639e+01 2.465e+00 26.94 22.945 0.040 23.044 +OBS: 56274.176 r NULL 4.768e+01 1.717e+00 27.76 23.304 0.039 23.354 +OBS: 56275.223 i NULL 6.069e+01 3.225e+00 18.82 23.042 0.059 23.142 +OBS: 56276.191 z NULL 3.650e+01 3.472e+00 10.51 23.594 0.109 23.439 +OBS: 56282.160 g NULL 6.321e+01 3.663e+00 17.25 22.998 0.065 22.974 +OBS: 56282.184 r NULL 5.849e+01 2.457e+00 23.81 23.082 0.047 23.073 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56287.160 i NULL 7.524e+01 5.189e+00 14.50 22.809 0.077 22.874 +OBS: 56287.191 z NULL 5.826e+01 4.046e+00 14.40 23.086 0.078 23.123 +OBS: 56289.035 g NULL 6.477e+01 1.197e+01 5.41 22.972 0.221 23.297 +OBS: 56289.043 r NULL 4.885e+01 4.290e+00 11.39 23.278 0.100 23.234 +OBS: 56289.152 i NULL 5.581e+01 4.461e+00 12.51 23.133 0.092 22.913 +OBS: 56289.176 z NULL 5.133e+01 4.568e+00 11.24 23.224 0.102 23.145 +OBS: 56297.039 g NULL 2.927e+01 1.741e+00 16.81 23.834 0.068 23.669 +OBS: 56297.047 r NULL 4.523e+01 1.506e+00 30.03 23.362 0.036 23.408 +OBS: 56297.062 i NULL 5.754e+01 2.169e+00 26.53 23.100 0.042 23.082 +OBS: 56297.090 z NULL 4.935e+01 2.317e+00 21.30 23.267 0.052 23.276 +OBS: 56305.094 g NULL 2.543e+01 1.755e+00 14.49 23.987 0.077 24.090 +OBS: 56305.102 r NULL 3.597e+01 1.483e+00 24.26 23.610 0.046 23.617 +OBS: 56305.113 i NULL 4.798e+01 2.382e+00 20.15 23.297 0.056 23.259 +OBS: 56306.043 z NULL 3.380e+01 2.787e+00 12.13 23.678 0.095 23.477 +OBS: 56313.047 g NULL 1.642e+01 5.977e+00 2.75 24.462 0.491 24.524 +OBS: 56313.055 r NULL 2.505e+01 2.576e+00 9.72 24.003 0.119 23.835 +OBS: 56313.090 i NULL 3.809e+01 3.168e+00 12.02 23.548 0.095 23.439 +OBS: 56317.066 z NULL 3.705e+01 4.306e+00 8.60 23.578 0.134 23.737 +OBS: 56321.035 g NULL 1.313e+01 2.936e+00 4.47 24.704 0.274 24.951 +OBS: 56321.043 r NULL 2.296e+01 1.444e+00 15.90 24.098 0.071 24.052 +OBS: 56321.066 i NULL 3.365e+01 3.289e+00 10.23 23.683 0.112 23.622 +OBS: 56326.039 z NULL 2.937e+01 2.666e+00 11.02 23.830 0.103 23.928 +OBS: 56333.043 g NULL 6.730e+00 1.831e+00 3.68 25.430 0.345 25.584 +OBS: 56333.051 r NULL 1.639e+01 1.427e+00 11.49 24.463 0.099 24.370 +OBS: 56334.043 i NULL 3.198e+01 2.265e+00 14.12 23.738 0.079 23.917 +OBS: 56335.043 z NULL 2.404e+01 3.412e+00 7.05 24.048 0.166 24.103 +OBS: 56344.992 g NULL 2.347e+00 4.329e+00 0.54 26.574 101.426 26.190 +OBS: 56345.000 r NULL 1.475e+01 1.887e+00 7.81 24.578 0.148 24.679 +OBS: 56345.016 i NULL 2.271e+01 3.481e+00 6.52 24.109 0.181 24.151 +OBS: 56345.992 z NULL 1.746e+01 3.714e+00 4.70 24.395 0.260 24.291 +OBS: 56349.996 g NULL 4.061e+00 3.966e+00 1.02 25.978 4.074 26.435 +OBS: 56350.004 r NULL 1.209e+01 2.074e+00 5.83 24.794 0.204 24.822 +OBS: 56350.996 i NULL 1.517e+01 3.038e+00 4.99 24.547 0.243 24.273 +END: diff --git a/data/tests/DES_data/DES_SN117268.DAT b/data/tests/DES_data/DES_SN117268.DAT new file mode 100644 index 000000000..9d79591d5 --- /dev/null +++ b/data/tests/DES_data/DES_SN117268.DAT @@ -0,0 +1,200 @@ +SURVEY: DES +SNID: 117268 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 52.500000 deg +DECL: -27.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0097 MW E(B-V) +REDSHIFT_HELIO: 0.94371 +- 0.02180 (Helio, z_best) +REDSHIFT_FINAL: 0.94371 +- 0.02180 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 12104 +HOST_GALAXY_PHOTO-Z: 0.9437 +- 0.0218 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 24 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-014599 +SIM_LIBID: 0 +SIM_REDSHIFT: 0.9433 +SIM_HOSTLIB_TRUEZ: 0.9400 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 12104 +SIM_DLMU: 43.943626 mag [ -5*log10(10pc/dL) ] +SIM_RA: 52.500000 deg +SIM_DECL: -27.500000 deg +SIM_MWEBV: 0.0100 (MilkyWay E(B-V)) +SIM_PEAKMAG: 98.91 25.07 24.92 25.24 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56196.855469 days +SIM_SALT2x0: 2.646e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 2 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -10.63 days +SIM_TRESTMAX: 69.59 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56197.863 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 145 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56176.191 g NULL 1.734e+00 4.764e+00 0.36 99.000 5.000 98.910 +OBS: 56176.199 r NULL -2.682e+00 2.130e+00 -1.26 128.000 0.000 31.520 +OBS: 56176.215 i NULL 2.526e+00 3.146e+00 0.80 26.494 101.506 31.558 +OBS: 56176.238 z NULL 1.238e+00 2.483e+00 0.50 27.268 100.732 31.988 +OBS: 56179.188 g NULL 3.933e+00 2.585e+00 1.52 99.000 5.000 98.910 +OBS: 56179.195 r NULL -1.867e+00 1.710e+00 -1.09 128.000 0.000 29.419 +OBS: 56179.234 i NULL -3.791e+00 1.985e+00 -1.91 128.000 0.000 29.210 +OBS: 56179.266 z NULL 5.402e+00 3.730e+00 1.45 25.669 1.272 29.622 +OBS: 56180.266 g NULL 2.452e+00 2.550e+00 0.96 99.000 5.000 98.910 +OBS: 56180.281 r NULL -1.465e+00 1.301e+00 -1.13 128.000 0.000 28.949 +OBS: 56180.297 i NULL -2.937e+00 3.683e+00 -0.80 128.000 0.000 28.739 +OBS: 56180.328 z NULL -5.460e+00 4.487e+00 -1.22 128.000 0.000 29.154 +OBS: 56188.160 g NULL -1.170e+01 5.688e+00 -2.06 99.000 5.000 98.910 +OBS: 56188.176 r NULL 4.641e-01 5.572e+00 0.08 28.334 99.666 25.484 +OBS: 56188.211 i NULL 5.965e+00 4.522e+00 1.32 25.561 1.541 25.514 +OBS: 56188.238 z NULL 1.257e+00 3.400e+00 0.37 27.252 100.748 25.758 +OBS: 56189.254 g NULL -3.096e+00 2.285e+00 -1.36 99.000 5.000 98.910 +OBS: 56189.270 r NULL 7.248e+00 3.274e+00 2.21 25.349 0.653 25.273 +OBS: 56189.281 i NULL -2.783e-01 9.047e+00 -0.03 128.000 0.000 25.348 +OBS: 56189.312 z NULL 4.694e+00 2.966e+00 1.58 25.821 1.086 25.583 +OBS: 56194.258 g NULL 3.630e+00 2.637e+00 1.38 99.000 5.000 98.910 +OBS: 56194.270 r NULL 1.068e+01 1.506e+00 7.09 24.928 0.165 24.936 +OBS: 56194.285 i NULL 8.368e+00 2.300e+00 3.64 25.193 0.350 24.949 +OBS: 56194.305 z NULL 9.097e+00 2.391e+00 3.80 25.103 0.331 25.221 +OBS: 56202.160 g NULL -9.646e+00 4.794e+00 -2.01 99.000 5.000 98.910 +OBS: 56202.176 r NULL 8.700e+00 2.330e+00 3.73 25.151 0.338 25.402 +OBS: 56202.191 i NULL 9.793e+00 4.168e+00 2.35 25.023 0.602 25.018 +OBS: 56202.215 z NULL 7.384e+00 2.715e+00 2.72 25.329 0.498 25.382 +OBS: 56210.172 g NULL 3.340e+00 3.691e+00 0.91 99.000 5.000 98.910 +OBS: 56210.188 r NULL 1.034e+01 3.222e+00 3.21 24.963 0.404 25.903 +OBS: 56210.203 i NULL 2.685e+00 3.210e+00 0.84 26.428 101.572 25.194 +OBS: 56210.234 z NULL 5.599e+00 3.847e+00 1.46 25.630 1.262 25.515 +OBS: 56218.172 g NULL -1.891e+00 1.250e+00 -1.51 99.000 5.000 98.910 +OBS: 56218.191 r NULL 2.579e+00 9.596e-01 2.69 26.471 0.505 26.393 +OBS: 56218.211 i NULL 7.835e+00 1.510e+00 5.19 25.265 0.232 25.372 +OBS: 56219.156 z NULL 8.969e+00 1.941e+00 4.62 25.118 0.264 25.592 +OBS: 56221.273 g NULL -2.571e+00 3.910e+00 -0.66 99.000 5.000 98.910 +OBS: 56221.281 r NULL 2.270e+00 5.582e+00 0.41 26.610 101.390 26.567 +OBS: 56221.297 i NULL 5.899e+00 4.485e+00 1.32 25.573 1.551 25.456 +OBS: 56221.324 z NULL 5.286e+00 1.439e+01 0.37 25.692 102.308 25.609 +OBS: 56222.074 g NULL 4.862e+00 5.909e+00 0.82 99.000 5.000 98.910 +OBS: 56222.090 r NULL 3.331e+00 2.627e+00 1.27 26.193 1.687 26.611 +OBS: 56222.113 i NULL 4.719e+00 3.325e+00 1.42 25.815 1.325 25.480 +OBS: 56222.133 z NULL 2.333e+00 5.056e+00 0.46 26.580 101.420 25.616 +OBS: 56228.059 g NULL 1.591e+01 7.698e+00 2.07 99.000 5.000 98.910 +OBS: 56228.066 r NULL -3.640e+00 2.392e+00 -1.52 128.000 0.000 26.944 +OBS: 56228.086 i NULL 5.126e+00 5.110e+00 1.00 25.726 6.249 25.660 +OBS: 56228.109 z NULL 5.694e+00 4.135e+00 1.38 25.611 1.406 25.660 +OBS: 56229.047 g NULL 2.683e+01 2.392e+01 1.12 99.000 5.000 98.910 +OBS: 56229.059 r NULL 4.502e+00 3.851e+00 1.17 25.866 2.098 27.000 +OBS: 56229.074 i NULL 2.561e+00 5.424e+00 0.47 26.479 101.521 25.691 +OBS: 56229.102 z NULL 1.058e+01 4.852e+00 2.18 24.939 0.665 25.667 +OBS: 56230.059 g NULL 7.921e+00 6.572e+00 1.21 99.000 5.000 98.910 +OBS: 56230.102 r NULL 2.399e+00 2.916e+00 0.82 26.550 101.450 27.058 +OBS: 56230.113 i NULL 5.880e+00 5.176e+00 1.14 25.577 2.304 25.724 +OBS: 56230.145 z NULL 6.333e+00 2.668e+00 2.37 25.496 0.593 25.675 +OBS: 56231.043 g NULL -6.281e+00 6.045e+00 -1.04 99.000 5.000 98.910 +OBS: 56231.059 r NULL 1.694e+00 2.551e+00 0.66 26.928 101.072 27.113 +OBS: 56231.070 i NULL 7.576e+00 4.243e+00 1.79 25.301 0.891 25.754 +OBS: 56231.102 z NULL 4.737e+00 3.279e+00 1.44 25.811 1.280 25.683 +OBS: 56235.039 g NULL 5.664e+00 5.185e+00 1.09 99.000 5.000 98.910 +OBS: 56235.047 r NULL 4.798e+00 3.707e+00 1.29 25.797 1.607 27.338 +OBS: 56235.062 i NULL 4.692e+00 4.193e+00 1.12 25.822 2.433 25.885 +OBS: 56235.090 z NULL -1.058e+00 8.232e+00 -0.13 128.000 0.000 25.715 +OBS: 56236.047 g NULL -2.699e+00 4.872e+00 -0.55 99.000 5.000 98.910 +OBS: 56236.062 r NULL 3.020e-01 2.660e+00 0.11 28.800 99.200 27.394 +OBS: 56236.074 i NULL -5.297e+00 5.223e+00 -1.01 128.000 0.000 25.918 +OBS: 56236.105 z NULL 6.951e+00 5.321e+00 1.31 25.395 1.574 25.723 +OBS: 56237.039 g NULL 4.201e+00 3.165e+00 1.33 99.000 5.000 98.910 +OBS: 56237.051 r NULL 2.124e+00 2.212e+00 0.96 26.682 101.318 27.451 +OBS: 56237.094 i NULL 1.856e+00 2.492e+00 0.74 26.828 101.172 25.952 +OBS: 56237.125 z NULL 5.472e+00 3.697e+00 1.48 25.655 1.222 25.732 +OBS: 56238.074 g NULL -1.529e-01 2.522e+00 -0.06 99.000 5.000 98.910 +OBS: 56238.094 r NULL 1.924e+00 1.589e+00 1.21 26.790 1.897 27.509 +OBS: 56238.109 i NULL 7.334e+00 2.726e+00 2.69 25.337 0.504 25.984 +OBS: 56238.129 z NULL 5.302e+00 3.108e+00 1.71 25.689 0.958 25.741 +OBS: 56243.098 g NULL 3.815e+00 2.169e+00 1.76 99.000 5.000 98.910 +OBS: 56243.109 r NULL 1.115e+00 1.654e+00 0.67 27.382 100.618 27.787 +OBS: 56243.125 i NULL 2.400e+00 2.565e+00 0.94 26.550 101.450 26.137 +OBS: 56243.152 z NULL 4.135e+00 2.551e+00 1.62 25.959 1.042 25.785 +OBS: 56244.082 g NULL 1.462e+00 2.191e+00 0.67 99.000 5.000 98.910 +OBS: 56244.098 r NULL -1.948e+00 1.635e+00 -1.19 128.000 0.000 27.841 +OBS: 56244.109 i NULL 4.126e+00 2.590e+00 1.59 25.961 1.073 26.166 +OBS: 56244.133 z NULL 5.854e+00 2.984e+00 1.96 25.581 0.774 25.794 +OBS: 56245.070 g NULL 7.362e-01 1.718e+00 0.43 99.000 5.000 98.910 +OBS: 56245.082 r NULL -1.380e+00 1.353e+00 -1.02 128.000 0.000 27.895 +OBS: 56245.109 i NULL 3.733e+00 3.213e+00 1.16 26.070 2.140 26.195 +OBS: 56245.137 z NULL 2.860e+00 2.837e+00 1.01 26.359 5.296 25.803 +OBS: 56246.117 g NULL -2.782e+00 6.562e+00 -0.42 99.000 5.000 98.910 +OBS: 56246.125 r NULL -2.807e-01 2.810e+00 -0.10 128.000 0.000 27.951 +OBS: 56246.152 i NULL 4.399e+00 1.962e+00 2.24 25.892 0.641 26.224 +OBS: 56246.180 z NULL 4.639e+00 1.936e+00 2.40 25.834 0.586 25.813 +OBS: 56247.281 g NULL -1.738e-01 1.489e+00 -0.12 99.000 5.000 98.910 +OBS: 56247.297 r NULL -1.686e+00 1.133e+00 -1.49 128.000 0.000 28.015 +OBS: 56247.316 i NULL 3.129e+00 1.976e+00 1.58 26.262 1.084 26.258 +OBS: 56247.340 z NULL 2.015e+00 2.490e+00 0.81 26.739 101.261 25.824 +OBS: 56248.324 g NULL -4.591e+00 1.704e+00 -2.69 99.000 5.000 98.910 +OBS: 56248.340 r NULL 1.514e+00 1.336e+00 1.13 27.050 2.324 28.072 +OBS: 56258.035 i NULL -1.418e+01 9.889e+00 -1.43 128.000 0.000 26.584 +OBS: 56258.066 z NULL 5.743e+00 3.969e+00 1.45 25.602 1.275 25.937 +OBS: 56258.215 g NULL -3.305e+00 4.947e+00 -0.67 99.000 5.000 98.910 +OBS: 56258.227 r NULL -7.906e-01 2.381e+00 -0.33 128.000 0.000 28.617 +OBS: 56261.098 g NULL 8.901e+00 8.829e+00 1.01 99.000 5.000 98.910 +OBS: 56261.102 r NULL 1.085e+00 3.394e+00 0.32 27.412 100.588 28.775 +OBS: 56261.125 i NULL 4.651e+00 3.855e+00 1.21 25.831 1.915 26.679 +OBS: 56261.156 z NULL 7.201e+00 3.089e+00 2.33 25.357 0.608 25.972 +OBS: 56273.160 g NULL -3.141e+00 1.753e+00 -1.79 99.000 5.000 98.910 +OBS: 56273.176 r NULL -8.778e-01 1.213e+00 -0.72 128.000 0.000 29.456 +OBS: 56273.188 i NULL -1.848e+00 2.024e+00 -0.91 128.000 0.000 27.053 +OBS: 56273.219 z NULL 5.868e+00 2.254e+00 2.60 25.579 0.526 26.117 +OBS: 56281.160 g NULL 1.191e+00 2.074e+00 0.57 99.000 5.000 98.910 +OBS: 56281.184 r NULL -1.214e-01 1.273e+00 -0.10 128.000 0.000 29.902 +OBS: 56281.203 i NULL 1.202e+00 1.799e+00 0.67 27.301 100.699 27.292 +OBS: 56281.227 z NULL 6.646e+00 2.294e+00 2.90 25.444 0.459 26.218 +OBS: 56288.086 g NULL 9.422e-01 4.849e+00 0.19 99.000 5.000 98.910 +OBS: 56288.094 r NULL -2.401e+00 2.114e+00 -1.14 128.000 0.000 30.288 +OBS: 56288.109 i NULL 6.784e+00 3.061e+00 2.22 25.421 0.651 27.495 +OBS: 56288.141 z NULL 2.941e+00 2.585e+00 1.14 26.329 2.293 26.308 +OBS: 56289.227 g NULL 6.214e-01 6.491e+00 0.10 99.000 5.000 98.910 +OBS: 56289.242 r NULL -8.262e-01 2.701e+00 -0.31 128.000 0.000 30.353 +OBS: 56289.258 i NULL 4.482e+00 5.085e+00 0.88 25.871 102.129 27.529 +OBS: 56292.035 z NULL 6.528e+00 2.065e+00 3.16 25.463 0.412 26.360 +OBS: 56292.141 g NULL 4.015e-01 3.053e+00 0.13 99.000 5.000 98.910 +OBS: 56292.156 r NULL 1.064e+00 1.735e+00 0.61 27.432 100.568 30.515 +OBS: 56292.172 i NULL -2.402e-01 2.653e+00 -0.09 128.000 0.000 27.614 +OBS: 56303.039 g NULL 1.523e+00 1.371e+00 1.11 99.000 5.000 98.910 +OBS: 56303.051 r NULL -5.370e-01 8.995e-01 -0.60 128.000 0.000 31.124 +OBS: 56303.070 i NULL 2.527e-01 1.413e+00 0.18 28.993 99.007 27.928 +OBS: 56303.094 z NULL 1.121e+00 2.209e+00 0.51 27.376 100.624 26.507 +OBS: 56311.043 g NULL 2.868e+00 2.670e+00 1.07 99.000 5.000 98.910 +OBS: 56311.055 r NULL -4.341e-01 1.496e+00 -0.29 128.000 0.000 31.563 +OBS: 56311.074 i NULL -3.528e-02 2.388e+00 -0.01 128.000 0.000 28.159 +OBS: 56311.098 z NULL 7.482e+00 2.438e+00 3.07 25.315 0.427 26.615 +OBS: 56317.125 g NULL -1.623e+00 4.216e+00 -0.38 99.000 5.000 98.910 +OBS: 56317.141 r NULL 4.981e-01 1.860e+00 0.27 28.257 99.743 31.894 +OBS: 56318.109 i NULL 2.326e+00 2.781e+00 0.84 26.583 101.417 28.366 +OBS: 56318.141 z NULL 6.185e+00 2.977e+00 2.08 25.522 0.712 26.712 +OBS: 56321.090 g NULL 3.331e+00 6.627e+00 0.50 99.000 5.000 98.910 +OBS: 56321.098 r NULL -1.368e+00 2.887e+00 -0.47 128.000 0.000 32.109 +OBS: 56321.109 i NULL -2.403e-02 3.401e+00 -0.01 128.000 0.000 28.456 +OBS: 56321.141 z NULL 3.626e+00 2.958e+00 1.23 26.101 1.835 26.754 +OBS: 56332.039 g NULL 2.839e+00 1.460e+00 1.95 99.000 5.000 98.910 +OBS: 56332.051 r NULL 6.525e-01 9.738e-01 0.67 27.964 100.036 32.693 +OBS: 56332.070 i NULL -8.047e-01 1.581e+00 -0.51 128.000 0.000 28.789 +OBS: 56332.094 z NULL 4.440e-01 2.577e+00 0.17 28.381 99.619 26.910 +END: diff --git a/data/tests/DES_data/DES_SN129778.DAT b/data/tests/DES_data/DES_SN129778.DAT new file mode 100644 index 000000000..bdd9428c7 --- /dev/null +++ b/data/tests/DES_data/DES_SN129778.DAT @@ -0,0 +1,213 @@ +SURVEY: DES +SNID: 129778 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 52.500000 deg +DECL: -27.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0097 MW E(B-V) +REDSHIFT_HELIO: 0.64337 +- 0.02930 (Helio, z_best) +REDSHIFT_FINAL: 0.64337 +- 0.02930 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 12683 +HOST_GALAXY_PHOTO-Z: 0.6434 +- 0.0293 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 23 (non1a index) +SIM_COMMENT: SN Type = Ib , MODEL = SDSS-014492 +SIM_LIBID: 0 +SIM_REDSHIFT: 0.6811 +SIM_HOSTLIB_TRUEZ: 0.6800 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 12683 +SIM_DLMU: 43.074120 mag [ -5*log10(10pc/dL) ] +SIM_RA: 52.500000 deg +SIM_DECL: -27.500000 deg +SIM_MWEBV: 0.0079 (MilkyWay E(B-V)) +SIM_PEAKMAG: 28.18 25.32 25.09 24.68 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56245.769531 days +SIM_SALT2x0: 5.893e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -39.61 days +SIM_TRESTMAX: 62.66 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56247.047 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 157 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56179.188 g NULL 1.828e+00 2.584e+00 0.71 99.000 5.000 98.981 +OBS: 56179.195 r NULL 5.543e-01 1.709e+00 0.32 99.000 5.000 98.976 +OBS: 56179.234 i NULL 2.708e-02 1.984e+00 0.01 99.000 5.000 99.012 +OBS: 56179.266 z NULL 5.764e-01 3.729e+00 0.15 99.000 5.000 98.997 +OBS: 56180.266 g NULL 3.473e+00 2.551e+00 1.36 99.000 5.000 98.981 +OBS: 56180.281 r NULL 1.317e-01 1.300e+00 0.10 99.000 5.000 98.976 +OBS: 56180.297 i NULL 5.480e+00 3.684e+00 1.49 99.000 5.000 99.012 +OBS: 56180.328 z NULL -8.647e+00 4.489e+00 -1.93 99.000 5.000 98.997 +OBS: 56188.160 g NULL 4.529e+00 5.684e+00 0.80 99.000 5.000 98.981 +OBS: 56188.176 r NULL 6.747e-01 5.569e+00 0.12 99.000 5.000 98.976 +OBS: 56188.211 i NULL -5.775e+00 4.520e+00 -1.28 99.000 5.000 99.012 +OBS: 56188.238 z NULL 5.499e-01 3.399e+00 0.16 99.000 5.000 98.997 +OBS: 56189.254 g NULL 2.015e-01 2.284e+00 0.09 99.000 5.000 98.981 +OBS: 56189.270 r NULL 4.424e+00 3.268e+00 1.35 99.000 5.000 98.976 +OBS: 56189.281 i NULL 1.156e+01 9.048e+00 1.28 99.000 5.000 99.012 +OBS: 56189.312 z NULL 4.063e+00 2.965e+00 1.37 99.000 5.000 98.997 +OBS: 56194.258 g NULL -4.690e+00 2.637e+00 -1.78 99.000 5.000 98.981 +OBS: 56194.270 r NULL 3.641e-01 1.485e+00 0.25 99.000 5.000 98.976 +OBS: 56194.285 i NULL -1.259e+00 2.291e+00 -0.55 99.000 5.000 99.012 +OBS: 56194.305 z NULL -1.800e+00 2.384e+00 -0.75 99.000 5.000 98.997 +OBS: 56202.160 g NULL -4.217e+00 4.791e+00 -0.88 128.000 0.000 51.150 +OBS: 56202.176 r NULL -2.467e-01 2.322e+00 -0.11 128.000 0.000 49.622 +OBS: 56202.191 i NULL 3.220e+00 4.163e+00 0.77 26.230 101.770 50.053 +OBS: 56202.215 z NULL 2.991e+00 2.711e+00 1.10 26.310 2.569 50.198 +OBS: 56210.172 g NULL -5.474e-01 3.690e+00 -0.15 128.000 0.000 37.155 +OBS: 56210.188 r NULL -1.803e+00 3.215e+00 -0.56 128.000 0.000 34.867 +OBS: 56210.203 i NULL 1.028e+00 3.208e+00 0.32 27.470 100.530 33.624 +OBS: 56210.234 z NULL 3.261e-01 3.845e+00 0.08 28.717 99.283 32.968 +OBS: 56218.172 g NULL 1.039e+00 1.250e+00 0.83 27.459 100.541 32.408 +OBS: 56218.191 r NULL 4.501e-01 9.560e-01 0.47 28.367 99.633 31.296 +OBS: 56218.211 i NULL -1.452e-01 1.499e+00 -0.10 128.000 0.000 29.791 +OBS: 56219.156 z NULL 2.996e+00 1.933e+00 1.55 26.309 1.125 29.205 +OBS: 56221.273 g NULL 2.034e+00 3.910e+00 0.52 26.729 101.271 31.474 +OBS: 56221.281 r NULL 1.776e+00 5.580e+00 0.32 26.876 101.124 30.787 +OBS: 56221.297 i NULL 3.232e+00 4.482e+00 0.72 26.226 101.774 29.187 +OBS: 56221.324 z NULL 9.856e+00 1.439e+01 0.68 25.016 102.984 28.875 +OBS: 56222.074 g NULL -8.873e+00 5.911e+00 -1.50 128.000 0.000 31.295 +OBS: 56222.090 r NULL 5.352e+00 2.627e+00 2.04 25.679 0.732 30.672 +OBS: 56222.113 i NULL 5.823e+00 3.324e+00 1.75 25.587 0.918 29.067 +OBS: 56222.133 z NULL 1.212e+00 5.055e+00 0.24 27.292 100.708 28.773 +OBS: 56228.059 g NULL 1.424e+00 7.693e+00 0.19 27.116 100.884 30.314 +OBS: 56228.066 r NULL 1.081e-01 2.390e+00 0.05 29.916 98.084 28.706 +OBS: 56228.086 i NULL 1.747e-01 5.108e+00 0.03 29.394 98.606 27.933 +OBS: 56228.109 z NULL 4.286e+00 4.134e+00 1.04 25.920 3.620 27.738 +OBS: 56229.047 g NULL 1.300e+01 2.392e+01 0.54 24.716 103.284 30.000 +OBS: 56229.059 r NULL -2.376e+00 3.850e+00 -0.62 128.000 0.000 28.304 +OBS: 56229.074 i NULL 9.795e+00 5.427e+00 1.80 25.023 0.876 27.724 +OBS: 56229.102 z NULL 8.009e-01 4.848e+00 0.17 27.741 100.259 27.523 +OBS: 56230.059 g NULL 1.008e+00 6.571e+00 0.15 27.491 100.509 29.501 +OBS: 56230.102 r NULL -2.873e+00 2.916e+00 -0.99 128.000 0.000 27.801 +OBS: 56230.113 i NULL -7.185e-01 5.175e+00 -0.14 128.000 0.000 27.484 +OBS: 56230.145 z NULL 1.077e+00 2.664e+00 0.40 27.419 100.581 27.256 +OBS: 56231.043 g NULL -7.383e+00 6.046e+00 -1.22 128.000 0.000 29.104 +OBS: 56231.059 r NULL -6.359e-01 2.551e+00 -0.25 128.000 0.000 27.433 +OBS: 56231.070 i NULL 1.073e+00 4.240e+00 0.25 27.423 100.577 27.285 +OBS: 56231.102 z NULL 3.187e+00 3.278e+00 0.97 26.242 101.758 27.036 +OBS: 56235.039 g NULL -1.477e+00 5.184e+00 -0.28 128.000 0.000 27.768 +OBS: 56235.047 r NULL 1.635e+00 3.707e+00 0.44 26.966 101.034 26.170 +OBS: 56235.062 i NULL 2.763e+00 4.192e+00 0.66 26.396 101.604 26.451 +OBS: 56235.090 z NULL -4.791e+00 8.232e+00 -0.58 128.000 0.000 26.159 +OBS: 56236.047 g NULL 5.299e+00 4.874e+00 1.09 25.690 2.737 27.597 +OBS: 56236.062 r NULL 1.686e-01 2.661e+00 0.06 29.433 98.567 25.967 +OBS: 56236.074 i NULL 3.954e-01 5.222e+00 0.08 28.507 99.493 26.260 +OBS: 56236.105 z NULL -1.947e+00 5.320e+00 -0.37 128.000 0.000 25.967 +OBS: 56237.039 g NULL 5.098e+00 3.166e+00 1.61 25.731 1.053 27.513 +OBS: 56237.051 r NULL 5.891e+00 2.216e+00 2.66 25.575 0.512 25.806 +OBS: 56237.094 i NULL 3.954e+00 2.493e+00 1.59 26.007 1.081 26.055 +OBS: 56237.125 z NULL 7.193e+00 3.698e+00 1.95 25.358 0.783 25.771 +OBS: 56238.074 g NULL 4.792e+00 2.525e+00 1.90 25.799 0.812 27.462 +OBS: 56238.094 r NULL 6.398e+00 1.595e+00 4.01 25.485 0.311 25.666 +OBS: 56238.109 i NULL 5.313e+00 2.725e+00 1.95 25.687 0.781 25.871 +OBS: 56238.129 z NULL 1.376e+01 3.117e+00 4.41 24.654 0.278 25.592 +OBS: 56243.098 g NULL 1.321e+00 2.169e+00 0.61 27.198 100.802 27.822 +OBS: 56243.109 r NULL 8.458e+00 1.665e+00 5.08 25.182 0.238 25.315 +OBS: 56243.125 i NULL 1.107e+01 2.574e+00 4.30 24.889 0.287 25.210 +OBS: 56243.152 z NULL 9.752e+00 2.557e+00 3.81 25.027 0.330 24.884 +OBS: 56244.082 g NULL 6.905e-02 2.191e+00 0.03 30.402 97.598 27.948 +OBS: 56244.098 r NULL 7.669e+00 1.644e+00 4.66 25.288 0.262 25.298 +OBS: 56244.109 i NULL 6.533e+00 2.594e+00 2.52 25.462 0.550 25.144 +OBS: 56244.133 z NULL 1.014e+01 2.989e+00 3.39 24.985 0.380 24.791 +OBS: 56245.070 g NULL 1.640e+00 1.719e+00 0.95 26.963 101.037 28.080 +OBS: 56245.082 r NULL 5.294e+00 1.360e+00 3.89 25.690 0.323 25.305 +OBS: 56245.109 i NULL 1.523e+01 3.226e+00 4.72 24.543 0.258 25.104 +OBS: 56245.137 z NULL 1.262e+01 2.848e+00 4.43 24.748 0.278 24.721 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56246.117 g NULL 3.558e+00 6.563e+00 0.54 26.122 101.878 28.232 +OBS: 56246.125 r NULL 1.126e+01 2.822e+00 3.99 24.871 0.313 25.327 +OBS: 56246.152 i NULL 1.005e+01 1.971e+00 5.10 24.995 0.237 25.077 +OBS: 56246.180 z NULL 1.319e+01 1.951e+00 6.76 24.699 0.174 24.661 +OBS: 56247.281 g NULL -1.162e+00 1.490e+00 -0.78 128.000 0.000 28.414 +OBS: 56247.297 r NULL 6.754e+00 1.144e+00 5.90 25.426 0.202 25.386 +OBS: 56247.316 i NULL 6.716e+00 1.981e+00 3.39 25.432 0.380 25.077 +OBS: 56247.340 z NULL 9.926e+00 2.498e+00 3.97 25.008 0.316 24.617 +OBS: 56248.324 g NULL -1.406e+00 1.702e+00 -0.83 128.000 0.000 28.582 +OBS: 56248.340 r NULL 5.514e+00 1.343e+00 4.11 25.646 0.304 25.449 +OBS: 56258.035 i NULL -7.122e+00 9.886e+00 -0.72 128.000 0.000 25.607 +OBS: 56258.066 z NULL 6.056e+00 3.970e+00 1.53 25.545 1.159 24.927 +OBS: 56258.215 g NULL -2.211e+00 4.947e+00 -0.45 128.000 0.000 29.764 +OBS: 56258.227 r NULL 4.472e+00 2.384e+00 1.88 25.874 0.826 26.480 +OBS: 56261.098 g NULL -4.499e+00 8.828e+00 -0.51 128.000 0.000 29.975 +OBS: 56261.102 r NULL 6.148e+00 3.397e+00 1.81 25.528 0.872 26.807 +OBS: 56261.125 i NULL 1.137e+00 3.855e+00 0.29 27.361 100.639 25.820 +OBS: 56261.156 z NULL 8.884e+00 3.091e+00 2.87 25.129 0.464 25.107 +OBS: 56273.160 g NULL 3.030e-01 1.752e+00 0.17 28.796 99.204 31.388 +OBS: 56273.176 r NULL 1.003e+00 1.214e+00 0.83 27.497 100.503 27.865 +OBS: 56273.188 i NULL 3.611e+00 2.025e+00 1.78 26.106 0.893 26.623 +OBS: 56273.219 z NULL 2.998e+00 2.252e+00 1.33 26.308 1.511 25.875 +OBS: 56281.160 g NULL 7.931e-01 2.074e+00 0.38 27.752 100.248 32.304 +OBS: 56281.184 r NULL -1.545e+00 1.274e+00 -1.21 128.000 0.000 28.372 +OBS: 56281.203 i NULL 3.958e+00 1.801e+00 2.20 26.006 0.658 26.951 +OBS: 56281.227 z NULL 6.241e-01 2.291e+00 0.27 28.012 99.988 26.224 +OBS: 56288.086 g NULL -5.775e-01 4.849e+00 -0.12 128.000 0.000 33.136 +OBS: 56288.094 r NULL 2.381e+00 2.114e+00 1.13 26.558 2.375 28.708 +OBS: 56288.109 i NULL 2.353e-01 3.059e+00 0.08 29.071 98.929 27.120 +OBS: 56288.141 z NULL 1.252e+00 2.584e+00 0.48 27.256 100.744 26.505 +OBS: 56289.227 g NULL 1.590e+00 6.491e+00 0.24 26.997 101.003 33.279 +OBS: 56289.242 r NULL 1.598e-01 2.701e+00 0.06 29.491 98.509 28.759 +OBS: 56289.258 i NULL -2.343e+00 5.085e+00 -0.46 128.000 0.000 27.139 +OBS: 56292.035 z NULL 1.395e+00 2.062e+00 0.68 27.138 100.862 26.624 +OBS: 56292.141 g NULL -3.443e-01 3.053e+00 -0.11 128.000 0.000 33.648 +OBS: 56292.156 r NULL -2.235e-01 1.735e+00 -0.13 128.000 0.000 28.886 +OBS: 56292.172 i NULL 3.505e+00 2.654e+00 1.32 26.138 1.536 27.182 +OBS: 56303.039 g NULL -2.708e-01 1.371e+00 -0.20 128.000 0.000 35.065 +OBS: 56303.051 r NULL -7.338e-01 8.997e-01 -0.82 128.000 0.000 29.294 +OBS: 56303.070 i NULL -4.152e-01 1.413e+00 -0.29 128.000 0.000 27.292 +OBS: 56303.094 z NULL 8.874e-01 2.209e+00 0.40 27.630 100.370 26.864 +OBS: 56311.043 g NULL 5.346e+00 2.672e+00 2.00 25.680 0.751 36.349 +OBS: 56311.055 r NULL 1.740e+00 1.496e+00 1.16 26.898 2.131 29.574 +OBS: 56311.074 i NULL -3.674e+00 2.389e+00 -1.54 128.000 0.000 27.371 +OBS: 56311.098 z NULL 1.122e+00 2.434e+00 0.46 27.375 100.625 26.981 +OBS: 56317.125 g NULL -2.323e+00 4.216e+00 -0.55 128.000 0.000 37.161 +OBS: 56317.141 r NULL -1.546e+00 1.860e+00 -0.83 128.000 0.000 29.800 +OBS: 56318.109 i NULL -4.245e+00 2.782e+00 -1.53 128.000 0.000 27.451 +OBS: 56318.141 z NULL 9.704e-01 2.975e+00 0.33 27.533 100.467 27.042 +OBS: 56321.090 g NULL -3.031e-01 6.627e+00 -0.05 128.000 0.000 37.632 +OBS: 56321.098 r NULL -1.061e+00 2.887e+00 -0.37 128.000 0.000 29.963 +OBS: 56321.109 i NULL -7.184e-02 3.401e+00 -0.02 128.000 0.000 27.489 +OBS: 56321.141 z NULL 4.700e+00 2.958e+00 1.59 25.820 1.077 27.060 +OBS: 56332.039 g NULL -1.549e+00 1.459e+00 -1.06 128.000 0.000 38.870 +OBS: 56332.051 r NULL -4.847e-02 9.738e-01 -0.05 128.000 0.000 30.494 +OBS: 56332.070 i NULL 6.424e-01 1.582e+00 0.41 27.980 100.020 27.650 +OBS: 56332.094 z NULL 4.404e-01 2.577e+00 0.17 28.390 99.610 27.104 +OBS: 56340.043 g NULL -1.999e+00 2.749e+00 -0.73 128.000 0.000 39.757 +OBS: 56340.055 r NULL -1.679e+00 1.647e+00 -1.02 128.000 0.000 30.937 +OBS: 56340.074 i NULL -1.011e+00 2.720e+00 -0.37 128.000 0.000 27.788 +OBS: 56340.098 z NULL 6.501e+00 2.983e+00 2.18 25.468 0.666 27.130 +OBS: 56348.055 g NULL 2.785e+00 3.249e+00 0.86 26.388 101.612 40.555 +OBS: 56348.070 r NULL 7.822e-01 2.099e+00 0.37 27.767 100.233 31.427 +OBS: 56349.004 i NULL 4.273e-01 2.352e+00 0.18 28.423 99.577 27.960 +OBS: 56349.027 z NULL 2.237e+00 2.427e+00 0.92 26.626 101.374 27.161 +OBS: 56350.043 g NULL 9.714e+00 3.839e+00 2.53 25.032 0.545 40.756 +OBS: 56350.055 r NULL 1.556e+00 1.814e+00 0.86 27.020 100.980 31.554 +OBS: 56350.070 i NULL 1.063e+00 3.159e+00 0.34 27.434 100.566 27.982 +OBS: 56350.098 z NULL 5.938e-01 4.859e+00 0.12 28.066 99.934 27.166 +OBS: 56351.043 g NULL 5.691e+00 3.352e+00 1.70 25.612 0.964 40.846 +OBS: 56351.055 r NULL -4.694e-01 1.760e+00 -0.27 128.000 0.000 31.615 +OBS: 56351.070 i NULL 3.013e+00 3.058e+00 0.99 26.302 101.698 28.002 +OBS: 56351.098 z NULL 3.600e+00 4.781e+00 0.75 26.109 101.891 27.171 +END: diff --git a/data/tests/DES_data/DES_SN138365.DAT b/data/tests/DES_data/DES_SN138365.DAT new file mode 100644 index 000000000..d0976892f --- /dev/null +++ b/data/tests/DES_data/DES_SN138365.DAT @@ -0,0 +1,100 @@ +SURVEY: DES +SNID: 138365 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: 1 +FILTERS: griz +RA: 48.000000 deg +DECL: 0.000000 deg +MAGTYPE: LOG10 +MAGREF: +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0713 MW E(B-V) +REDSHIFT_HELIO: 0.44703 +- 0.00500 (Helio, z_best) +REDSHIFT_FINAL: 0.44703 +- 0.00500 (CMB) +REDSHIFT_SPEC: 0.44703 +- 0.00500 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 11985 +HOST_GALAXY_PHOTO-Z: 0.4510 +- 0.0401 + + + +SIM_MODEL: mlcs2k2.SNchallenge 3 (name index) +SIM_NON1a: 0 (non1a index) +SIM_COMMENT: SN Type = Ia , MODEL = mlcs2k2.SNchallenge +SIM_LIBID: 3 +SIM_REDSHIFT: 0.4480 +SIM_HOSTLIB_TRUEZ: 0.4500 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 11985 +SIM_DLMU: 41.975899 mag [ -5*log10(10pc/dL) ] +SIM_RA: 48.000000 deg +SIM_DECL: 0.000000 deg +SIM_MWEBV: 0.0897 (MilkyWay E(B-V)) +SIM_AVTAU: 0.250 (dN/dAV = exp(-AV/AVTAU)) +SIM_AV: 0.437 mag (host extinction at 5510 A) +SIM_RV: 2.536 (CCM89 extinction parameter) +SIM_PEAKMAG: 24.13 22.94 22.88 22.84 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56334.210938 days +SIM_DELTA: -0.138 mag (MLCS lumi-par) +SIM_STRETCH: 1.138 +SIM_MAGDIM: 0.556 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -35.23 days +SIM_TRESTMAX: 11.61 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: -0.0 days + +SEARCH_PEAKMJD: 56333.906 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 40 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56283.203 g NULL -4.899e+00 6.285e+00 -0.78 99.000 5.000 99.000 +OBS: 56283.211 r NULL 9.250e-01 3.325e+00 0.28 99.000 5.000 99.000 +OBS: 56283.215 i NULL -1.265e+01 5.821e+00 -2.17 99.000 5.000 99.000 +OBS: 56283.223 z NULL -8.016e+00 5.045e+00 -1.59 99.000 5.000 99.000 +OBS: 56288.199 g NULL 2.271e+01 1.180e+01 1.93 99.000 5.000 99.000 +OBS: 56288.215 r NULL -6.795e+00 6.182e+00 -1.10 99.000 5.000 99.000 +OBS: 56289.109 i NULL -4.247e+00 7.080e+00 -0.60 99.000 5.000 99.000 +OBS: 56289.125 z NULL 7.961e+00 5.424e+00 1.47 99.000 5.000 99.000 +OBS: 56292.098 g NULL -1.982e+01 1.165e+01 -1.70 99.000 5.000 99.000 +OBS: 56292.102 r NULL 2.695e+00 4.826e+00 0.56 99.000 5.000 99.000 +OBS: 56292.191 i NULL 1.651e-01 5.599e+00 0.03 99.000 5.000 99.000 +OBS: 56292.199 z NULL 6.639e+00 5.159e+00 1.29 99.000 5.000 99.000 +OBS: 56304.051 g NULL -1.849e+00 2.480e+00 -0.75 99.000 5.000 99.000 +OBS: 56304.055 r NULL 9.928e-01 1.657e+00 0.60 99.000 5.000 99.000 +OBS: 56304.070 i NULL 4.400e+00 2.507e+00 1.76 99.000 5.000 99.000 +OBS: 56304.086 z NULL 7.592e+00 3.936e+00 1.93 99.000 5.000 99.000 +OBS: 56312.055 g NULL 1.172e+01 7.573e+00 1.55 24.828 1.128 27.021 +OBS: 56312.066 r NULL 5.447e+00 2.970e+00 1.83 25.660 0.856 25.342 +OBS: 56312.090 i NULL 1.455e+01 5.030e+00 2.89 24.593 0.460 25.389 +OBS: 56312.113 z NULL -3.554e+00 5.430e+00 -0.65 128.000 0.000 25.302 +OBS: 56320.043 g NULL 5.716e+00 6.187e+00 0.92 25.607 102.393 24.887 +OBS: 56320.051 r NULL 3.147e+01 2.585e+00 12.17 23.755 0.093 23.805 +OBS: 56320.059 i NULL 3.317e+01 3.724e+00 8.91 23.698 0.129 23.767 +OBS: 56320.070 z NULL 3.287e+01 4.444e+00 7.40 23.708 0.158 23.633 +OBS: 56328.047 g NULL 2.259e+01 3.457e+00 6.53 24.115 0.181 23.958 +OBS: 56328.055 r NULL 5.956e+01 2.708e+00 21.99 23.063 0.051 23.030 +OBS: 56328.070 i NULL 6.292e+01 4.246e+00 14.82 23.003 0.076 23.020 +OBS: 56328.086 z NULL 6.818e+01 6.909e+00 9.87 22.916 0.116 22.955 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56336.062 g NULL 1.817e+01 3.773e+00 4.81 24.352 0.253 24.217 +OBS: 56336.082 r NULL 6.806e+01 3.314e+00 20.54 22.918 0.054 22.956 +OBS: 56337.062 i NULL 7.252e+01 3.270e+00 22.18 22.849 0.050 22.873 +OBS: 56337.078 z NULL 7.204e+01 3.995e+00 18.03 22.856 0.062 22.837 +OBS: 56345.039 g NULL 2.964e+01 7.174e+00 4.13 23.820 0.300 24.949 +OBS: 56345.055 r NULL 4.512e+01 3.895e+00 11.58 23.364 0.098 23.274 +OBS: 56346.055 i NULL 6.088e+01 6.115e+00 9.96 23.039 0.115 23.057 +OBS: 56348.027 z NULL 5.450e+01 5.132e+00 10.62 23.159 0.107 23.172 +OBS: 56350.023 g NULL 3.677e-01 6.840e+00 0.05 28.586 99.414 25.389 +OBS: 56350.027 r NULL 4.224e+01 4.038e+00 10.46 23.436 0.109 23.578 +OBS: 56350.035 i NULL 3.807e+01 6.737e+00 5.65 23.549 0.213 23.230 +OBS: 56351.023 z NULL 4.777e+01 6.168e+00 7.74 23.302 0.150 23.312 +END: diff --git a/data/tests/DES_data/DES_SN143768.DAT b/data/tests/DES_data/DES_SN143768.DAT new file mode 100644 index 000000000..5071d3259 --- /dev/null +++ b/data/tests/DES_data/DES_SN143768.DAT @@ -0,0 +1,115 @@ +SURVEY: DES +SNID: 143768 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 52.500000 deg +DECL: -27.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0097 MW E(B-V) +REDSHIFT_HELIO: 0.59405 +- 0.03180 (Helio, z_best) +REDSHIFT_FINAL: 0.59405 +- 0.03180 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 14703 +HOST_GALAXY_PHOTO-Z: 0.5941 +- 0.0318 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 22 (non1a index) +SIM_COMMENT: SN Type = Ic , MODEL = SDSS-014475 +SIM_LIBID: 0 +SIM_REDSHIFT: 0.6138 +SIM_HOSTLIB_TRUEZ: 0.6100 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 14703 +SIM_DLMU: 42.798756 mag [ -5*log10(10pc/dL) ] +SIM_RA: 52.500000 deg +SIM_DECL: -27.500000 deg +SIM_MWEBV: 0.0086 (MilkyWay E(B-V)) +SIM_PEAKMAG: 98.97 24.99 24.31 23.76 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56325.488281 days +SIM_SALT2x0: 7.594e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -39.90 days +SIM_TRESTMAX: 15.87 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56325.609 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 59 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56261.098 g NULL 6.484e+00 8.828e+00 0.73 99.000 5.000 98.973 +OBS: 56261.102 r NULL -4.690e+00 3.395e+00 -1.38 99.000 5.000 99.006 +OBS: 56261.125 i NULL 5.278e+00 3.854e+00 1.37 99.000 5.000 98.988 +OBS: 56261.156 z NULL 1.668e+00 3.086e+00 0.54 99.000 5.000 98.948 +OBS: 56273.160 g NULL 2.854e+00 1.753e+00 1.63 99.000 5.000 98.973 +OBS: 56273.176 r NULL 9.509e-01 1.213e+00 0.78 99.000 5.000 99.006 +OBS: 56273.188 i NULL -3.915e+00 2.025e+00 -1.93 99.000 5.000 98.988 +OBS: 56273.219 z NULL -3.209e+00 2.251e+00 -1.43 99.000 5.000 98.948 +OBS: 56281.160 g NULL 1.325e-01 2.074e+00 0.06 99.000 5.000 98.973 +OBS: 56281.184 r NULL -1.898e+00 1.274e+00 -1.49 128.000 0.000 56.197 +OBS: 56281.203 i NULL -1.186e+00 1.798e+00 -0.66 128.000 0.000 56.195 +OBS: 56281.227 z NULL 2.780e-01 2.290e+00 0.12 28.890 99.110 55.821 +OBS: 56288.086 g NULL -1.757e+00 4.849e+00 -0.36 99.000 5.000 98.973 +OBS: 56288.094 r NULL 2.859e+00 2.114e+00 1.35 26.359 1.459 41.108 +OBS: 56288.109 i NULL 3.351e+00 3.059e+00 1.10 26.187 2.648 40.798 +OBS: 56288.141 z NULL 2.675e+00 2.584e+00 1.04 26.432 3.666 40.778 +OBS: 56289.227 g NULL -1.716e+01 6.499e+00 -2.64 99.000 5.000 98.973 +OBS: 56289.242 r NULL -7.777e+00 2.705e+00 -2.88 128.000 0.000 39.981 +OBS: 56289.258 i NULL 1.282e+01 5.090e+00 2.52 24.731 0.549 39.673 +OBS: 56292.035 z NULL -1.123e+00 2.061e+00 -0.54 128.000 0.000 35.986 +OBS: 56292.141 g NULL -1.340e+00 3.053e+00 -0.44 99.000 5.000 98.973 +OBS: 56292.156 r NULL 3.587e+00 1.736e+00 2.07 26.113 0.717 36.278 +OBS: 56292.172 i NULL 1.271e+00 2.653e+00 0.48 27.240 100.760 35.862 +OBS: 56303.039 g NULL -1.663e+00 1.371e+00 -1.21 99.000 5.000 98.973 +OBS: 56303.051 r NULL 7.295e-01 8.998e-01 0.81 27.842 100.158 28.843 +OBS: 56303.070 i NULL -2.207e+00 1.414e+00 -1.56 128.000 0.000 27.972 +OBS: 56303.094 z NULL 1.648e+00 2.209e+00 0.75 26.958 101.042 27.790 +OBS: 56311.043 g NULL 8.980e-01 2.670e+00 0.34 99.000 5.000 98.973 +OBS: 56311.055 r NULL 5.166e+00 1.501e+00 3.44 25.717 0.373 25.892 +OBS: 56311.074 i NULL 5.900e+00 2.393e+00 2.47 25.573 0.566 25.214 +OBS: 56311.098 z NULL 6.093e+00 2.438e+00 2.50 25.538 0.556 25.208 +OBS: 56317.125 g NULL 3.514e+00 4.217e+00 0.83 99.000 5.000 98.973 +OBS: 56317.141 r NULL 1.264e+01 1.879e+00 6.72 24.746 0.175 24.872 +OBS: 56318.109 i NULL 2.044e+01 2.811e+00 7.27 24.224 0.160 24.370 +OBS: 56318.141 z NULL 2.103e+01 3.003e+00 7.00 24.193 0.167 24.129 +OBS: 56321.090 g NULL 4.390e+00 6.628e+00 0.66 99.000 5.000 98.973 +OBS: 56321.098 r NULL 1.236e+01 2.904e+00 4.26 24.770 0.291 24.804 +OBS: 56321.109 i NULL 1.845e+01 3.426e+00 5.39 24.335 0.223 24.303 +OBS: 56321.141 z NULL 2.633e+01 3.001e+00 8.77 23.949 0.132 23.892 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56332.039 g NULL 1.928e+00 1.459e+00 1.32 99.000 5.000 98.973 +OBS: 56332.051 r NULL 6.198e+00 9.865e-01 6.28 25.519 0.188 25.417 +OBS: 56332.070 i NULL 1.922e+01 1.630e+00 11.80 24.290 0.096 24.391 +OBS: 56332.094 z NULL 2.945e+01 2.638e+00 11.16 23.827 0.102 23.791 +OBS: 56340.043 g NULL 2.618e+00 2.749e+00 0.95 99.000 5.000 98.973 +OBS: 56340.055 r NULL 4.462e+00 1.651e+00 2.70 25.876 0.501 25.918 +OBS: 56340.074 i NULL 7.650e+00 2.727e+00 2.81 25.291 0.480 24.653 +OBS: 56340.098 z NULL 2.854e+01 3.030e+00 9.42 23.861 0.121 24.004 +OBS: 56348.055 g NULL -5.356e-01 3.249e+00 -0.16 99.000 5.000 98.973 +OBS: 56348.070 r NULL 2.074e+00 2.100e+00 0.99 26.708 101.292 26.333 +OBS: 56349.004 i NULL 8.543e+00 2.361e+00 3.62 25.171 0.352 25.001 +OBS: 56349.027 z NULL 2.079e+01 2.460e+00 8.45 24.206 0.137 24.279 +OBS: 56350.043 g NULL -2.098e+00 3.835e+00 -0.55 99.000 5.000 98.973 +OBS: 56350.055 r NULL 5.063e+00 1.817e+00 2.79 25.739 0.482 26.429 +OBS: 56350.070 i NULL 1.037e+01 3.167e+00 3.28 24.960 0.395 25.048 +OBS: 56350.098 z NULL 1.509e+01 4.869e+00 3.10 24.553 0.423 24.310 +OBS: 56351.043 g NULL 3.343e+00 3.351e+00 1.00 99.000 5.000 98.973 +OBS: 56351.055 r NULL 6.054e+00 1.765e+00 3.43 25.545 0.374 26.479 +OBS: 56351.070 i NULL 1.829e+01 3.078e+00 5.94 24.344 0.199 25.093 +OBS: 56351.098 z NULL 1.685e+01 4.792e+00 3.52 24.434 0.364 24.340 +END: diff --git a/data/tests/DES_data/DES_SN168741.DAT b/data/tests/DES_data/DES_SN168741.DAT new file mode 100644 index 000000000..385c20a01 --- /dev/null +++ b/data/tests/DES_data/DES_SN168741.DAT @@ -0,0 +1,171 @@ +SURVEY: DES +SNID: 168741 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 48.000000 deg +DECL: 0.000000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0713 MW E(B-V) +REDSHIFT_HELIO: 0.98207 +- 0.01690 (Helio, z_best) +REDSHIFT_FINAL: 0.98207 +- 0.01690 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 16887 +HOST_GALAXY_PHOTO-Z: 0.9821 +- 0.0169 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 30 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-017564 +SIM_LIBID: 3 +SIM_REDSHIFT: 1.0136 +SIM_HOSTLIB_TRUEZ: 1.0100 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 16887 +SIM_DLMU: 44.136414 mag [ -5*log10(10pc/dL) ] +SIM_RA: 48.000000 deg +SIM_DECL: 0.000000 deg +SIM_MWEBV: 0.0668 (MilkyWay E(B-V)) +SIM_PEAKMAG: 26.17 24.16 24.48 24.32 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56201.296875 days +SIM_SALT2x0: 2.215e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -11.45 days +SIM_TRESTMAX: 67.43 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56202.070 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 115 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56178.234 g NULL -1.423e+01 1.048e+01 -1.36 128.000 0.000 26.890 +OBS: 56178.250 r NULL 1.852e+01 7.854e+00 2.36 24.331 0.599 24.558 +OBS: 56178.266 i NULL 2.309e+01 9.323e+00 2.48 24.092 0.561 25.078 +OBS: 56179.211 z NULL 1.856e+01 5.341e+00 3.48 24.328 0.368 24.727 +OBS: 56180.219 g NULL 6.332e+00 3.213e+00 1.97 25.496 0.768 26.606 +OBS: 56180.234 r NULL 1.610e+01 2.461e+00 6.54 24.483 0.180 24.337 +OBS: 56180.250 i NULL 5.090e+00 4.316e+00 1.18 25.733 2.049 25.031 +OBS: 56188.191 z NULL 1.196e+00 2.733e+01 0.04 27.306 100.694 24.554 +OBS: 56188.340 g NULL 1.020e+01 2.558e+01 0.40 24.979 103.021 26.230 +OBS: 56188.355 r NULL 2.826e+01 4.206e+00 6.72 23.872 0.174 24.113 +OBS: 56189.195 i NULL 2.479e+01 3.096e+01 0.80 24.014 103.986 24.744 +OBS: 56194.215 g NULL 4.032e+00 4.772e+00 0.84 25.986 102.014 26.173 +OBS: 56194.223 r NULL 1.818e+01 5.434e+00 3.34 24.351 0.386 24.116 +OBS: 56194.227 z NULL 1.607e+01 6.552e+00 2.45 24.485 0.569 24.438 +OBS: 56200.234 i NULL 4.149e+00 1.199e+01 0.35 25.955 102.045 24.496 +OBS: 56208.160 g NULL 3.040e+00 2.983e+00 1.02 26.293 4.308 26.195 +OBS: 56208.176 r NULL 2.167e+01 2.481e+00 8.73 24.160 0.132 24.219 +OBS: 56208.191 z NULL 2.154e+01 4.958e+00 4.34 24.167 0.284 24.220 +OBS: 56210.156 i NULL 1.705e+01 7.037e+00 2.42 24.420 0.578 24.425 +OBS: 56216.164 g NULL 1.765e+00 2.697e+00 0.65 26.883 101.117 26.244 +OBS: 56216.176 r NULL 1.958e+01 2.088e+00 9.38 24.270 0.122 24.304 +OBS: 56216.191 z NULL 2.521e+01 4.077e+00 6.18 23.996 0.191 24.138 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56219.211 i NULL 1.816e+01 3.018e+00 6.02 24.352 0.197 24.419 +OBS: 56221.148 g NULL 3.194e+00 1.592e+01 0.20 26.239 101.761 26.291 +OBS: 56221.160 r NULL 1.109e+01 6.066e+00 1.83 24.888 0.861 24.372 +OBS: 56221.176 z NULL 3.867e+01 1.541e+01 2.51 23.532 0.552 24.104 +OBS: 56222.105 i NULL 1.758e+00 9.196e+00 0.19 26.888 101.112 24.420 +OBS: 56222.312 g NULL 2.290e-01 4.110e+00 0.06 29.100 98.900 26.304 +OBS: 56222.324 r NULL 1.489e+01 1.518e+01 0.98 24.568 103.432 24.389 +OBS: 56222.340 z NULL 2.970e+01 4.086e+01 0.73 23.818 104.182 24.098 +OBS: 56228.297 g NULL 5.558e+00 1.503e+01 0.37 25.638 102.362 26.373 +OBS: 56228.305 r NULL 6.696e+00 5.501e+00 1.22 25.435 1.877 24.474 +OBS: 56228.312 i NULL 2.074e+01 9.423e+00 2.20 24.208 0.657 24.431 +OBS: 56228.320 z NULL 2.538e+01 5.823e+00 4.36 23.989 0.283 24.077 +OBS: 56229.320 g NULL 2.037e+01 1.406e+01 1.45 24.227 1.272 26.385 +OBS: 56229.332 r NULL 1.592e+01 7.263e+00 2.19 24.495 0.662 24.487 +OBS: 56229.348 i NULL 2.353e+01 1.296e+01 1.82 24.071 0.868 24.435 +OBS: 56230.070 z NULL 2.998e+01 7.158e+00 4.19 23.808 0.296 24.073 +OBS: 56230.316 g NULL -1.200e+01 1.368e+01 -0.88 128.000 0.000 26.396 +OBS: 56230.328 r NULL 2.688e+01 6.697e+00 4.01 23.926 0.310 24.500 +OBS: 56230.344 i NULL 1.028e+01 1.239e+01 0.83 24.970 103.030 24.438 +OBS: 56231.301 g NULL -8.642e+00 1.166e+01 -0.74 128.000 0.000 26.408 +OBS: 56231.316 r NULL 1.970e+01 6.036e+00 3.26 24.264 0.397 24.513 +OBS: 56231.328 i NULL 2.393e+00 1.047e+01 0.23 26.553 101.447 24.442 +OBS: 56231.344 z NULL 1.462e+01 5.800e+00 2.52 24.588 0.550 24.071 +OBS: 56235.297 g NULL 2.133e+00 9.640e+00 0.22 26.678 101.322 26.456 +OBS: 56235.312 r NULL 2.272e+01 4.687e+00 4.85 24.109 0.250 24.564 +OBS: 56235.324 i NULL 1.298e+01 6.650e+00 1.95 24.716 0.780 24.458 +OBS: 56235.340 z NULL 3.701e+01 6.787e+00 5.45 23.579 0.219 24.069 +OBS: 56236.312 g NULL -3.568e+00 7.813e+00 -0.46 128.000 0.000 26.469 +OBS: 56236.324 r NULL 1.202e+01 3.744e+00 3.21 24.800 0.406 24.577 +OBS: 56236.340 i NULL 1.806e+01 6.095e+00 2.96 24.358 0.447 24.463 +OBS: 56237.074 z NULL 1.619e+01 7.020e+00 2.31 24.477 0.618 24.070 +OBS: 56237.340 g NULL -4.707e+00 1.182e+01 -0.40 128.000 0.000 26.483 +OBS: 56238.051 r NULL 1.708e+01 4.331e+00 3.95 24.419 0.317 24.601 +OBS: 56238.059 i NULL 1.695e+01 5.482e+00 3.09 24.427 0.424 24.471 +OBS: 56238.340 g NULL -1.687e+00 1.063e+01 -0.16 128.000 0.000 26.497 +OBS: 56243.047 z NULL 1.855e+01 8.336e+00 2.23 24.329 0.648 24.081 +OBS: 56243.320 g NULL 1.478e-01 4.205e+00 0.04 29.576 98.424 26.567 +OBS: 56243.336 r NULL 1.609e+01 3.321e+00 4.85 24.483 0.251 24.671 +OBS: 56244.039 i NULL 1.867e+01 7.046e+00 2.65 24.322 0.514 24.497 +OBS: 56244.309 g NULL -2.831e+00 4.128e+00 -0.69 128.000 0.000 26.582 +OBS: 56244.320 r NULL 1.417e+01 3.245e+00 4.37 24.622 0.282 24.684 +OBS: 56245.047 z NULL 2.308e+01 5.033e+00 4.59 24.092 0.267 24.087 +OBS: 56245.320 g NULL -1.159e+00 4.236e+00 -0.27 128.000 0.000 26.596 +OBS: 56246.055 r NULL 1.269e+01 2.407e+00 5.27 24.741 0.228 24.706 +OBS: 56246.070 i NULL 1.613e+01 3.904e+00 4.13 24.481 0.301 24.507 +OBS: 56247.223 g NULL -1.723e+00 2.987e+00 -0.58 128.000 0.000 26.623 +OBS: 56247.230 z NULL 2.297e+01 4.411e+00 5.21 24.097 0.232 24.095 +OBS: 56248.305 r NULL 1.088e+01 2.395e+00 4.54 24.909 0.270 24.734 +OBS: 56248.316 i NULL 1.241e+01 4.241e+00 2.93 24.766 0.455 24.518 +OBS: 56258.152 g NULL -1.054e+01 1.264e+01 -0.83 128.000 0.000 26.781 +OBS: 56258.168 z NULL 2.296e+01 6.001e+00 3.83 24.098 0.329 24.144 +OBS: 56258.273 r NULL 1.385e+01 7.785e+00 1.78 24.646 0.896 24.854 +OBS: 56258.281 i NULL 2.262e+01 1.263e+01 1.79 24.114 0.887 24.571 +OBS: 56261.266 g NULL -2.909e+00 1.009e+01 -0.29 128.000 0.000 26.827 +OBS: 56261.273 r NULL 5.603e+00 4.192e+00 1.34 25.629 1.500 24.889 +OBS: 56261.281 i NULL 1.026e+01 7.036e+00 1.46 24.973 1.259 24.588 +OBS: 56261.289 z NULL 2.248e+01 4.913e+00 4.58 24.121 0.268 24.161 +OBS: 56275.152 g NULL -2.128e+00 3.315e+00 -0.64 128.000 0.000 27.023 +OBS: 56275.172 r NULL 7.564e+00 2.254e+00 3.36 25.303 0.385 25.051 +OBS: 56275.191 i NULL 1.025e+01 4.502e+00 2.28 24.974 0.629 24.668 +OBS: 56275.203 z NULL 1.946e+01 5.340e+00 3.64 24.277 0.348 24.242 +OBS: 56283.203 g NULL -6.065e+00 6.288e+00 -0.96 128.000 0.000 27.123 +OBS: 56283.211 r NULL 1.225e+01 3.340e+00 3.67 24.779 0.345 25.145 +OBS: 56283.215 i NULL 1.151e+01 5.825e+00 1.98 24.847 0.766 24.714 +OBS: 56283.223 z NULL 1.831e+01 5.058e+00 3.62 24.343 0.351 24.292 +OBS: 56288.199 g NULL 6.625e-01 1.179e+01 0.06 27.947 100.053 27.178 +OBS: 56288.215 r NULL 1.187e+01 6.188e+00 1.92 24.814 0.800 25.203 +OBS: 56289.109 i NULL 2.673e+01 7.101e+00 3.76 23.932 0.334 24.748 +OBS: 56289.125 z NULL 2.427e+01 5.444e+00 4.46 24.037 0.275 24.330 +OBS: 56292.098 g NULL -7.414e-02 1.165e+01 -0.01 128.000 0.000 27.215 +OBS: 56292.102 r NULL 1.309e+01 4.841e+00 2.70 24.708 0.501 25.248 +OBS: 56292.191 i NULL 1.115e+01 5.609e+00 1.99 24.882 0.760 24.765 +OBS: 56292.199 z NULL 1.905e+01 5.173e+00 3.68 24.300 0.344 24.353 +OBS: 56304.051 g NULL 4.206e+00 2.486e+00 1.69 25.940 0.970 27.314 +OBS: 56304.055 r NULL 8.911e+00 1.676e+00 5.32 25.125 0.226 25.380 +OBS: 56304.070 i NULL 1.547e+01 2.533e+00 6.11 24.526 0.194 24.831 +OBS: 56304.086 z NULL 1.449e+01 3.947e+00 3.67 24.597 0.346 24.463 +OBS: 56312.055 g NULL -3.132e-01 7.569e+00 -0.04 128.000 0.000 27.373 +OBS: 56312.066 r NULL 8.346e+00 2.971e+00 2.81 25.196 0.478 25.472 +OBS: 56312.090 i NULL 1.029e+01 5.029e+00 2.05 24.969 0.729 24.875 +OBS: 56312.113 z NULL 1.661e+01 5.440e+00 3.05 24.449 0.431 24.541 +OBS: 56320.043 g NULL 8.669e+00 6.172e+00 1.40 25.155 1.351 27.437 +OBS: 56320.051 r NULL 3.594e+00 2.495e+00 1.44 26.111 1.289 25.573 +OBS: 56320.059 i NULL 9.695e+00 3.664e+00 2.65 25.034 0.516 24.920 +OBS: 56320.070 z NULL 1.815e+01 4.410e+00 4.12 24.353 0.302 24.578 +OBS: 56328.047 g NULL -3.390e-01 3.354e+00 -0.10 128.000 0.000 27.520 +OBS: 56328.055 r NULL 4.065e+00 2.410e+00 1.69 25.977 0.976 25.673 +OBS: 56328.070 i NULL 3.473e+00 4.052e+00 0.86 26.148 101.852 24.965 +OBS: 56328.086 z NULL 1.429e+01 6.789e+00 2.11 24.612 0.700 24.606 +OBS: 56336.062 g NULL 4.155e+00 3.703e+00 1.12 25.954 2.408 27.653 +OBS: 56336.082 r NULL 6.633e+00 3.014e+00 2.20 25.446 0.657 25.753 +OBS: 56337.062 i NULL 5.690e+00 2.936e+00 1.94 25.612 0.789 25.019 +OBS: 56337.078 z NULL 1.384e+01 3.758e+00 3.68 24.647 0.344 24.669 +END: diff --git a/data/tests/DES_data/DES_SN174550.DAT b/data/tests/DES_data/DES_SN174550.DAT new file mode 100644 index 000000000..db10a710e --- /dev/null +++ b/data/tests/DES_data/DES_SN174550.DAT @@ -0,0 +1,154 @@ +SURVEY: DES +SNID: 174550 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 36.750000 deg +DECL: -4.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0283 MW E(B-V) +REDSHIFT_HELIO: 0.49588 +- 0.04870 (Helio, z_best) +REDSHIFT_FINAL: 0.49588 +- 0.04870 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 16102 +HOST_GALAXY_PHOTO-Z: 0.4959 +- 0.0487 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 16 (non1a index) +SIM_COMMENT: SN Type = Ic , MODEL = SDSS-004012 +SIM_LIBID: 2 +SIM_REDSHIFT: 0.4899 +SIM_HOSTLIB_TRUEZ: 0.4900 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 16102 +SIM_DLMU: 42.207947 mag [ -5*log10(10pc/dL) ] +SIM_RA: 36.750000 deg +SIM_DECL: -4.500000 deg +SIM_MWEBV: 0.0246 (MilkyWay E(B-V)) +SIM_PEAKMAG: 25.37 24.30 24.41 24.26 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56198.867188 days +SIM_SALT2x0: 1.309e-17 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 2 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -13.88 days +SIM_TRESTMAX: 66.57 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56198.090 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 99 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56178.188 g NULL 1.927e+00 9.404e+00 0.20 26.788 101.212 33.226 +OBS: 56178.195 r NULL 1.039e+01 7.175e+00 1.45 24.959 1.273 34.719 +OBS: 56178.203 i NULL -3.160e+00 6.833e+00 -0.46 128.000 0.000 36.812 +OBS: 56178.211 z NULL 2.491e+00 7.919e+00 0.31 26.509 101.491 37.205 +OBS: 56180.172 g NULL 4.082e+00 4.013e+00 1.02 25.973 4.424 29.959 +OBS: 56180.188 r NULL -8.743e-01 3.174e+00 -0.28 128.000 0.000 31.389 +OBS: 56180.195 i NULL -1.799e+00 4.395e+00 -0.41 128.000 0.000 33.272 +OBS: 56180.203 z NULL 6.262e+00 4.964e+00 1.26 25.508 1.708 33.318 +OBS: 56188.148 g NULL 4.662e-01 1.796e+01 0.03 28.329 99.671 25.888 +OBS: 56188.289 r NULL 8.267e+00 4.002e+00 2.07 25.207 0.718 25.641 +OBS: 56188.297 i NULL -3.908e+00 8.134e+00 -0.48 128.000 0.000 25.931 +OBS: 56188.312 z NULL 3.064e+00 5.394e+00 0.57 26.284 101.716 25.776 +OBS: 56194.145 g NULL 1.690e+01 4.714e+00 3.59 24.430 0.354 24.903 +OBS: 56194.156 r NULL 2.309e+01 2.806e+00 8.23 24.091 0.140 24.238 +OBS: 56194.172 i NULL 1.557e+01 4.647e+00 3.35 24.519 0.385 24.519 +OBS: 56194.188 z NULL 2.582e+01 4.493e+00 5.75 23.970 0.207 24.359 +OBS: 56207.188 g NULL 8.808e-02 4.371e+00 0.02 30.138 97.862 26.455 +OBS: 56207.195 r NULL 5.987e+00 3.468e+00 1.73 25.557 0.942 24.807 +OBS: 56207.203 i NULL 2.474e+01 6.268e+00 3.95 24.016 0.317 24.577 +OBS: 56207.219 z NULL 2.109e+01 5.968e+00 3.53 24.190 0.361 24.307 +OBS: 56215.195 g NULL -7.522e-01 2.685e+00 -0.28 128.000 0.000 27.202 +OBS: 56215.203 r NULL 5.353e+00 2.181e+00 2.45 25.679 0.569 25.425 +OBS: 56215.211 i NULL 7.741e+00 2.646e+00 2.93 25.278 0.455 24.814 +OBS: 56215.227 z NULL 1.692e+01 3.445e+00 4.91 24.429 0.247 24.474 +OBS: 56221.090 g NULL -5.491e-02 6.269e+00 -0.01 128.000 0.000 27.706 +OBS: 56221.105 r NULL -8.716e+00 5.084e+00 -1.71 128.000 0.000 25.819 +OBS: 56221.113 i NULL 9.127e+00 5.583e+00 1.63 25.099 1.027 25.043 +OBS: 56221.117 z NULL 9.155e+00 7.709e+00 1.19 25.096 2.006 24.625 +OBS: 56222.270 g NULL 3.124e+00 7.731e+00 0.40 26.263 101.737 27.806 +OBS: 56222.273 r NULL 9.012e+00 5.701e+00 1.58 25.113 1.086 25.886 +OBS: 56222.281 i NULL 2.294e+01 1.699e+01 1.35 24.098 1.464 25.097 +OBS: 56222.289 z NULL 1.281e+01 8.071e+00 1.59 24.731 1.080 24.657 +OBS: 56228.234 g NULL -1.186e+01 1.235e+01 -0.96 128.000 0.000 28.292 +OBS: 56228.242 r NULL 1.510e+01 5.577e+00 2.71 24.553 0.500 26.169 +OBS: 56228.258 i NULL 2.079e+01 1.203e+01 1.73 24.205 0.938 25.411 +OBS: 56228.270 z NULL 1.545e+01 6.656e+00 2.32 24.527 0.611 24.847 +OBS: 56229.258 g NULL 1.054e+01 1.721e+01 0.61 24.943 103.057 28.361 +OBS: 56229.270 r NULL 2.369e+00 8.064e+00 0.29 26.564 101.436 26.211 +OBS: 56229.285 i NULL -3.574e-01 1.506e+01 -0.02 128.000 0.000 25.467 +OBS: 56229.297 z NULL 1.904e+00 8.901e+00 0.21 26.801 101.199 24.882 +OBS: 56230.273 g NULL -2.418e+01 1.383e+01 -1.75 128.000 0.000 28.430 +OBS: 56230.277 r NULL 1.049e+01 6.409e+00 1.64 24.948 1.024 26.253 +OBS: 56230.285 i NULL 8.436e+00 1.120e+01 0.75 25.185 102.815 25.524 +OBS: 56230.293 z NULL 3.240e+00 6.158e+00 0.53 26.224 101.776 24.917 +OBS: 56231.242 g NULL 1.728e+01 9.782e+00 1.77 24.406 0.906 28.497 +OBS: 56231.258 r NULL 3.497e+00 4.946e+00 0.71 26.141 101.859 26.296 +OBS: 56231.273 i NULL 8.173e+00 9.659e+00 0.85 25.219 102.781 25.581 +OBS: 56231.277 z NULL -9.223e-01 5.306e+00 -0.17 128.000 0.000 24.953 +OBS: 56235.242 g NULL -6.473e+00 6.867e+00 -0.94 128.000 0.000 28.716 +OBS: 56235.258 r NULL 4.418e+00 3.912e+00 1.13 25.887 2.351 26.473 +OBS: 56235.270 i NULL 2.380e+00 7.249e+00 0.33 26.559 101.441 25.788 +OBS: 56235.277 z NULL 4.482e+00 6.982e+00 0.64 25.871 102.129 25.105 +OBS: 56236.258 g NULL -1.159e-01 6.535e+00 -0.02 128.000 0.000 28.765 +OBS: 56236.270 r NULL -1.446e+00 4.254e+00 -0.34 128.000 0.000 26.521 +OBS: 56236.277 i NULL 7.264e+00 5.997e+00 1.21 25.347 1.896 25.833 +OBS: 56236.285 z NULL -1.438e+00 7.805e+00 -0.18 128.000 0.000 25.145 +OBS: 56237.289 g NULL -4.581e+01 2.676e+01 -1.71 128.000 0.000 28.814 +OBS: 56237.297 r NULL 3.262e+01 4.068e+01 0.80 23.716 104.284 26.571 +OBS: 56237.301 i NULL -7.824e+01 4.385e+01 -1.78 128.000 0.000 25.878 +OBS: 56237.316 z NULL 6.094e+01 2.569e+01 2.37 23.038 0.594 25.189 +OBS: 56238.301 g NULL 1.179e+01 4.135e+01 0.29 24.822 103.178 28.859 +OBS: 56238.316 r NULL 2.155e+01 1.369e+01 1.57 24.166 1.094 26.622 +OBS: 56238.328 i NULL 8.426e-01 7.934e+00 0.11 27.686 100.314 25.919 +OBS: 56243.027 z NULL 3.969e+00 7.822e+00 0.51 26.003 101.997 25.435 +OBS: 56243.309 g NULL 2.160e+00 4.496e+00 0.48 26.664 101.336 29.066 +OBS: 56244.027 r NULL 2.514e+00 4.106e+00 0.61 26.499 101.501 26.892 +OBS: 56244.031 i NULL -5.393e+00 6.617e+00 -0.82 128.000 0.000 26.129 +OBS: 56244.273 g NULL -3.110e+00 4.060e+00 -0.77 128.000 0.000 29.106 +OBS: 56244.277 z NULL 3.380e+00 6.055e+00 0.56 26.178 101.822 25.492 +OBS: 56245.293 g NULL 2.355e+01 1.379e+01 1.71 24.070 0.955 29.146 +OBS: 56245.309 r NULL -1.057e+01 1.011e+01 -1.05 128.000 0.000 26.948 +OBS: 56246.027 i NULL 9.246e-01 3.696e+00 0.25 27.585 100.415 26.208 +OBS: 56246.035 z NULL 8.842e+00 4.296e+00 2.06 25.134 0.722 25.568 +OBS: 56247.207 g NULL -4.705e+00 2.989e+00 -1.57 128.000 0.000 29.218 +OBS: 56247.215 r NULL -1.032e+00 2.283e+00 -0.45 128.000 0.000 27.023 +OBS: 56254.160 i NULL -6.392e-01 4.916e+00 -0.13 128.000 0.000 26.572 +OBS: 56254.172 z NULL 3.484e+00 4.016e+00 0.87 26.145 101.855 25.929 +OBS: 56258.125 g NULL 1.084e+01 1.062e+01 1.02 24.913 4.243 29.613 +OBS: 56258.141 r NULL -2.913e+00 5.056e+00 -0.58 128.000 0.000 27.395 +OBS: 56261.035 i NULL -8.768e+00 6.089e+00 -1.44 128.000 0.000 26.885 +OBS: 56261.043 z NULL 4.926e+00 4.617e+00 1.07 25.769 3.004 26.246 +OBS: 56261.242 g NULL 6.977e+00 7.740e+00 0.90 25.391 102.609 29.712 +OBS: 56261.258 r NULL -4.409e+00 3.922e+00 -1.12 128.000 0.000 27.493 +OBS: 56274.188 g NULL 5.674e+00 3.588e+00 1.58 25.615 1.086 30.066 +OBS: 56274.195 r NULL 4.693e+00 2.732e+00 1.72 25.821 0.947 27.889 +OBS: 56274.203 i NULL 4.304e+00 4.261e+00 1.01 25.915 4.977 27.456 +OBS: 56274.219 z NULL -6.523e+00 5.012e+00 -1.30 128.000 0.000 26.879 +OBS: 56282.203 g NULL -5.724e+00 6.353e+00 -0.90 128.000 0.000 30.235 +OBS: 56283.156 r NULL 9.120e-01 3.130e+00 0.29 27.600 100.400 28.187 +OBS: 56283.168 i NULL -3.182e+00 5.038e+00 -0.63 128.000 0.000 27.780 +OBS: 56283.184 z NULL -1.373e+00 4.104e+00 -0.33 128.000 0.000 27.332 +OBS: 56288.191 g NULL -2.715e+01 1.256e+01 -2.16 128.000 0.000 30.334 +OBS: 56289.066 r NULL -2.212e+00 5.047e+00 -0.44 128.000 0.000 28.381 +OBS: 56289.078 i NULL 3.309e+00 8.734e+00 0.38 26.201 101.799 27.981 +OBS: 56289.086 z NULL 5.407e+00 5.622e+00 0.96 25.668 102.332 27.637 +OBS: 56292.090 g NULL -1.861e+01 1.142e+01 -1.63 128.000 0.000 30.402 +OBS: 56298.039 r NULL -1.009e-01 2.411e+00 -0.04 128.000 0.000 28.638 +OBS: 56298.047 i NULL -4.946e+00 3.551e+00 -1.39 128.000 0.000 28.309 +OBS: 56298.055 z NULL -2.094e+00 3.958e+00 -0.53 128.000 0.000 28.098 +END: diff --git a/data/tests/DES_data/DES_SN178508.DAT b/data/tests/DES_data/DES_SN178508.DAT new file mode 100644 index 000000000..f205092e1 --- /dev/null +++ b/data/tests/DES_data/DES_SN178508.DAT @@ -0,0 +1,149 @@ +SURVEY: DES +SNID: 178508 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 0.500000 deg +DECL: -43.000000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0111 MW E(B-V) +REDSHIFT_HELIO: 0.39627 +- 0.03020 (Helio, z_best) +REDSHIFT_FINAL: 0.39627 +- 0.03020 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 10996 +HOST_GALAXY_PHOTO-Z: 0.3963 +- 0.0302 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 38 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-018596 +SIM_LIBID: 4 +SIM_REDSHIFT: 0.3968 +SIM_HOSTLIB_TRUEZ: 0.4000 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 10996 +SIM_DLMU: 41.663700 mag [ -5*log10(10pc/dL) ] +SIM_RA: 0.500000 deg +SIM_DECL: -43.000000 deg +SIM_MWEBV: 0.0127 (MilkyWay E(B-V)) +SIM_PEAKMAG: 23.91 23.67 23.87 23.56 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56212.664062 days +SIM_SALT2x0: 2.160e-17 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -29.79 days +SIM_TRESTMAX: 66.16 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56212.078 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 93 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56171.051 g NULL -6.267e+01 7.809e+01 -0.80 99.000 5.000 98.987 +OBS: 56172.039 r NULL 1.879e+01 1.759e+01 1.07 99.000 5.000 98.976 +OBS: 56172.051 i NULL 4.106e+00 4.995e+01 0.08 99.000 5.000 99.029 +OBS: 56176.160 z NULL -2.588e+00 3.582e+00 -0.72 128.000 0.000 46.256 +OBS: 56179.023 g NULL -8.437e-01 6.376e+00 -0.13 128.000 0.000 41.846 +OBS: 56179.031 r NULL -2.293e+00 4.331e+00 -0.53 128.000 0.000 44.634 +OBS: 56179.047 i NULL 3.912e+00 7.140e+00 0.55 26.019 101.981 47.339 +OBS: 56179.062 z NULL 5.427e+00 8.139e+00 0.67 25.664 102.336 46.019 +OBS: 56180.031 g NULL 2.326e+00 5.671e+00 0.41 26.583 101.417 41.825 +OBS: 56180.047 r NULL 2.384e+00 4.493e+00 0.53 26.557 101.443 44.551 +OBS: 56180.062 i NULL 1.668e+00 6.737e+00 0.25 26.944 101.056 47.156 +OBS: 56180.078 z NULL -1.549e+01 1.017e+01 -1.52 128.000 0.000 45.948 +OBS: 56188.004 g NULL 7.859e+00 5.679e+00 1.38 25.262 1.391 28.781 +OBS: 56188.016 r NULL 8.541e-01 4.368e+00 0.20 27.671 100.329 31.278 +OBS: 56188.027 i NULL -4.824e+00 6.462e+00 -0.75 128.000 0.000 33.499 +OBS: 56188.035 z NULL -2.680e+00 6.472e+00 -0.41 128.000 0.000 31.662 +OBS: 56189.004 g NULL 1.240e-01 5.647e+00 0.02 29.767 98.233 27.990 +OBS: 56189.016 r NULL -6.828e+00 4.332e+00 -1.58 128.000 0.000 30.475 +OBS: 56189.027 i NULL -7.732e+00 6.408e+00 -1.21 128.000 0.000 32.560 +OBS: 56189.035 z NULL 3.610e+00 6.406e+00 0.56 26.106 101.894 30.636 +OBS: 56194.012 g NULL 4.554e+00 6.211e+00 0.73 25.854 102.146 25.502 +OBS: 56194.016 r NULL 1.329e+00 3.585e+00 0.37 27.191 100.809 27.610 +OBS: 56194.023 i NULL -1.321e+01 6.152e+00 -2.15 128.000 0.000 29.200 +OBS: 56194.031 z NULL 6.961e+00 1.508e+01 0.46 25.393 102.607 27.124 +OBS: 56198.992 g NULL 3.500e+01 1.871e+01 1.87 23.640 0.830 24.194 +OBS: 56199.000 r NULL 3.964e+01 9.080e+00 4.37 23.505 0.281 25.202 +OBS: 56199.008 i NULL -3.989e+00 1.181e+01 -0.34 128.000 0.000 26.359 +OBS: 56199.016 z NULL -1.078e+01 7.698e+00 -1.40 128.000 0.000 24.852 +OBS: 56199.039 g NULL 2.464e+00 3.350e+01 0.07 26.521 101.479 24.185 +OBS: 56208.215 g NULL 3.489e+01 2.855e+00 12.22 23.643 0.093 23.600 +OBS: 56208.223 r NULL 4.192e+01 1.977e+00 21.20 23.444 0.052 23.487 +OBS: 56208.238 i NULL 3.391e+01 3.040e+00 11.15 23.674 0.101 23.884 +OBS: 56209.160 z NULL 4.170e+01 3.344e+00 12.47 23.450 0.091 23.459 +OBS: 56216.215 g NULL 1.831e+01 2.558e+00 7.16 24.343 0.164 24.210 +OBS: 56216.223 r NULL 3.026e+01 1.998e+00 15.14 23.798 0.074 23.804 +OBS: 56216.230 i NULL 2.994e+01 3.083e+00 9.71 23.809 0.118 23.921 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56218.152 z NULL 3.203e+01 2.749e+00 11.65 23.736 0.098 23.693 +OBS: 56221.004 g NULL 1.577e+00 5.252e+00 0.30 27.006 100.994 24.634 +OBS: 56221.016 r NULL 2.544e+01 3.626e+00 7.01 23.986 0.167 23.956 +OBS: 56221.027 i NULL 2.216e+01 5.496e+00 4.03 24.136 0.310 23.974 +OBS: 56221.035 z NULL 3.422e+01 5.446e+00 6.28 23.664 0.188 23.726 +OBS: 56222.016 g NULL 1.398e+01 6.268e+00 2.23 24.636 0.645 24.726 +OBS: 56222.027 r NULL 2.415e+01 3.663e+00 6.59 24.043 0.179 23.988 +OBS: 56222.035 i NULL 1.352e+01 4.939e+00 2.74 24.672 0.496 23.984 +OBS: 56228.012 z NULL 3.002e+01 5.578e+00 5.38 23.807 0.223 23.778 +OBS: 56229.012 g NULL 3.281e+00 9.826e+00 0.33 26.210 101.790 25.288 +OBS: 56229.016 r NULL 1.827e+01 4.346e+00 4.20 24.345 0.295 24.184 +OBS: 56229.023 i NULL 1.896e+01 7.826e+00 2.42 24.306 0.579 24.051 +OBS: 56230.012 z NULL 2.031e+01 4.935e+00 4.11 24.231 0.304 23.788 +OBS: 56231.012 g NULL 4.643e+00 6.926e+00 0.67 25.833 102.167 25.428 +OBS: 56231.020 r NULL 2.276e+01 2.835e+00 8.03 24.107 0.144 24.234 +OBS: 56231.027 i NULL 2.277e+01 4.106e+00 5.55 24.107 0.216 24.067 +OBS: 56235.020 z NULL 3.908e+01 5.741e+00 6.81 23.520 0.172 23.812 +OBS: 56236.027 g NULL 5.690e+00 5.185e+00 1.10 25.612 2.629 25.767 +OBS: 56236.035 r NULL 2.226e+01 5.411e+00 4.11 24.131 0.302 24.355 +OBS: 56236.039 i NULL 1.545e+01 7.634e+00 2.02 24.528 0.741 24.105 +OBS: 56237.023 z NULL 2.811e+01 5.155e+00 5.45 23.878 0.220 23.821 +OBS: 56238.023 g NULL -3.369e+00 3.625e+00 -0.93 128.000 0.000 25.893 +OBS: 56238.031 r NULL 1.158e+01 2.809e+00 4.12 24.841 0.303 24.401 +OBS: 56238.039 i NULL 1.941e+01 4.833e+00 4.02 24.280 0.311 24.120 +OBS: 56243.070 z NULL 2.129e+01 5.364e+00 3.97 24.180 0.316 23.854 +OBS: 56244.047 g NULL -8.097e-01 4.190e+00 -0.19 128.000 0.000 26.233 +OBS: 56244.055 r NULL 1.750e+01 2.855e+00 6.13 24.393 0.193 24.526 +OBS: 56244.070 i NULL 1.482e+01 4.426e+00 3.35 24.573 0.386 24.158 +OBS: 56245.027 z NULL 2.758e+01 3.584e+00 7.70 23.899 0.151 23.865 +OBS: 56246.082 g NULL 3.781e+00 2.844e+00 1.33 26.056 1.514 26.336 +OBS: 56246.098 r NULL 1.522e+01 2.496e+00 6.10 24.544 0.194 24.564 +OBS: 56246.109 i NULL 3.211e+01 5.478e+00 5.86 23.733 0.202 24.169 +OBS: 56247.250 z NULL 2.623e+01 6.316e+00 4.15 23.953 0.299 23.878 +OBS: 56254.199 g NULL -4.325e+00 6.134e+00 -0.71 128.000 0.000 26.701 +OBS: 56254.211 r NULL 1.605e+01 3.397e+00 4.72 24.486 0.258 24.692 +OBS: 56254.227 i NULL 2.711e+01 6.239e+00 4.35 23.917 0.283 24.212 +OBS: 56258.191 z NULL 2.779e+01 5.889e+00 4.72 23.890 0.258 23.965 +OBS: 56261.066 g NULL 3.980e+00 6.917e+00 0.58 26.000 102.000 26.974 +OBS: 56261.082 r NULL 8.469e+00 4.073e+00 2.08 25.180 0.713 24.774 +OBS: 56261.090 i NULL 4.869e+00 8.224e+00 0.59 25.781 102.219 24.246 +OBS: 56266.156 z NULL 2.246e+01 5.303e+00 4.24 24.121 0.293 24.044 +OBS: 56276.152 g NULL -2.065e+00 4.039e+00 -0.51 128.000 0.000 27.514 +OBS: 56276.172 r NULL 1.221e+01 2.902e+00 4.21 24.783 0.294 24.886 +OBS: 56277.164 i NULL 1.796e+01 3.568e+00 5.03 24.364 0.241 24.321 +OBS: 56278.164 z NULL 2.848e+01 4.321e+00 6.59 23.864 0.178 24.185 +OBS: 56288.035 g NULL -4.968e-01 1.450e+01 -0.03 128.000 0.000 27.937 +OBS: 56288.043 r NULL 1.182e+01 5.409e+00 2.18 24.819 0.664 24.917 +OBS: 56288.051 i NULL 3.891e+00 5.984e+00 0.65 26.025 101.975 24.396 +OBS: 56288.066 z NULL 2.350e+01 6.751e+00 3.48 24.072 0.367 24.309 +OBS: 56292.109 g NULL 3.240e+00 7.761e+00 0.42 26.224 101.776 28.088 +OBS: 56292.125 r NULL 4.784e+00 3.878e+00 1.23 25.800 1.812 24.920 +OBS: 56296.039 i NULL 1.644e+01 3.498e+00 4.70 24.460 0.260 24.458 +OBS: 56296.051 z NULL 1.631e+01 4.474e+00 3.64 24.469 0.348 24.411 +OBS: 56305.043 g NULL -1.141e+00 2.873e+00 -0.40 128.000 0.000 28.570 +OBS: 56305.051 r NULL 1.196e+01 2.197e+00 5.44 24.806 0.220 24.919 +OBS: 56305.055 i NULL 1.571e+01 3.071e+00 5.11 24.510 0.236 24.531 +OBS: 56305.070 z NULL 1.405e+01 3.676e+00 3.82 24.631 0.329 24.521 +END: diff --git a/data/tests/DES_data/DES_SN187477.DAT b/data/tests/DES_data/DES_SN187477.DAT new file mode 100644 index 000000000..30278c872 --- /dev/null +++ b/data/tests/DES_data/DES_SN187477.DAT @@ -0,0 +1,128 @@ +SURVEY: DES +SNID: 187477 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 0.500000 deg +DECL: -43.000000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0111 MW E(B-V) +REDSHIFT_HELIO: 0.43209 +- 0.05760 (Helio, z_best) +REDSHIFT_FINAL: 0.43209 +- 0.05760 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 18675 +HOST_GALAXY_PHOTO-Z: 0.4321 +- 0.0576 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 19 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-013376 +SIM_LIBID: 4 +SIM_REDSHIFT: 0.4536 +SIM_HOSTLIB_TRUEZ: 0.4500 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 18675 +SIM_DLMU: 42.008278 mag [ -5*log10(10pc/dL) ] +SIM_RA: 0.500000 deg +SIM_DECL: -43.000000 deg +SIM_MWEBV: 0.0118 (MilkyWay E(B-V)) +SIM_PEAKMAG: 24.37 24.09 24.29 24.23 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56154.171875 days +SIM_SALT2x0: 1.573e-17 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: 11.61 days +SIM_TRESTMAX: 68.83 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56153.910 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 72 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56171.051 g NULL 9.186e+01 7.811e+01 1.18 22.592 2.060 24.948 +OBS: 56172.039 r NULL 1.172e+01 1.759e+01 0.67 24.827 103.173 24.432 +OBS: 56172.051 i NULL 2.059e+02 5.009e+01 4.11 21.716 0.302 24.547 +OBS: 56176.160 z NULL 1.480e+01 3.597e+00 4.11 24.574 0.303 24.200 +OBS: 56179.023 g NULL 8.641e+00 6.389e+00 1.35 25.159 1.460 25.350 +OBS: 56179.031 r NULL 9.297e+00 4.343e+00 2.14 25.079 0.685 24.591 +OBS: 56179.047 i NULL 3.064e+01 7.167e+00 4.27 23.784 0.289 24.601 +OBS: 56179.062 z NULL 3.066e+01 8.161e+00 3.76 23.784 0.335 24.203 +OBS: 56180.031 g NULL 1.465e+01 5.690e+00 2.57 24.586 0.533 25.406 +OBS: 56180.047 r NULL 3.276e+00 4.501e+00 0.73 26.212 101.788 24.613 +OBS: 56180.062 i NULL 8.311e+00 6.744e+00 1.23 25.201 1.813 24.605 +OBS: 56180.078 z NULL 2.350e+01 1.018e+01 2.31 24.072 0.616 24.204 +OBS: 56188.004 g NULL 2.978e+00 5.684e+00 0.52 26.315 101.685 25.910 +OBS: 56188.016 r NULL 9.644e+00 4.379e+00 2.20 25.039 0.658 24.787 +OBS: 56188.027 i NULL 7.640e+00 6.468e+00 1.18 25.292 2.039 24.631 +OBS: 56188.035 z NULL 2.549e+01 6.492e+00 3.93 23.984 0.319 24.226 +OBS: 56189.004 g NULL -1.669e+00 5.653e+00 -0.30 128.000 0.000 25.978 +OBS: 56189.016 r NULL 1.444e+01 4.345e+00 3.32 24.601 0.388 24.808 +OBS: 56189.027 i NULL -4.112e+00 6.411e+00 -0.64 128.000 0.000 24.633 +OBS: 56189.035 z NULL 1.933e+01 6.419e+00 3.01 24.285 0.438 24.230 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56194.012 g NULL 8.941e+00 6.207e+00 1.44 25.122 1.286 26.320 +OBS: 56194.016 r NULL 1.205e+01 3.601e+00 3.35 24.797 0.385 24.909 +OBS: 56194.023 i NULL 1.285e+01 6.160e+00 2.09 24.728 0.709 24.633 +OBS: 56194.031 z NULL 2.537e+00 1.509e+01 0.17 26.489 101.511 24.243 +OBS: 56198.992 g NULL -3.305e+00 1.868e+01 -0.18 128.000 0.000 26.686 +OBS: 56199.000 r NULL 2.355e+01 9.061e+00 2.60 24.070 0.527 25.007 +OBS: 56199.008 i NULL 1.368e+01 1.181e+01 1.16 24.660 2.166 24.632 +OBS: 56199.016 z NULL 1.828e+01 7.704e+00 2.37 24.345 0.594 24.263 +OBS: 56199.039 g NULL -6.630e+01 3.351e+01 -1.98 128.000 0.000 26.690 +OBS: 56208.215 g NULL 3.574e+00 2.661e+00 1.34 26.117 1.481 27.439 +OBS: 56208.223 r NULL 7.609e+00 1.782e+00 4.27 25.297 0.290 25.166 +OBS: 56208.238 i NULL 1.437e+01 2.977e+00 4.83 24.606 0.252 24.628 +OBS: 56209.160 z NULL 2.123e+01 3.271e+00 6.49 24.182 0.181 24.317 +OBS: 56216.215 g NULL -2.557e+00 2.468e+00 -1.04 128.000 0.000 28.242 +OBS: 56216.223 r NULL 7.499e+00 1.895e+00 3.96 25.312 0.316 25.284 +OBS: 56216.230 i NULL 1.555e+01 3.038e+00 5.12 24.521 0.236 24.621 +OBS: 56218.152 z NULL 1.627e+01 2.695e+00 6.04 24.471 0.197 24.379 +OBS: 56221.004 g NULL 7.731e+00 5.228e+00 1.48 25.279 1.224 28.877 +OBS: 56221.016 r NULL 1.322e+00 3.582e+00 0.37 27.197 100.803 25.349 +OBS: 56221.027 i NULL 1.052e+01 5.479e+00 1.92 24.945 0.799 24.617 +OBS: 56221.035 z NULL 1.951e+01 5.418e+00 3.60 24.274 0.353 24.400 +OBS: 56222.016 g NULL -4.518e+00 6.242e+00 -0.72 128.000 0.000 29.032 +OBS: 56222.027 r NULL 8.920e+00 3.627e+00 2.46 25.124 0.566 25.362 +OBS: 56222.035 i NULL 1.982e+01 4.941e+00 4.01 24.257 0.311 24.617 +OBS: 56228.012 z NULL 2.357e+01 5.565e+00 4.24 24.069 0.292 24.454 +OBS: 56229.012 g NULL 1.409e+01 9.821e+00 1.43 24.628 1.296 30.428 +OBS: 56229.016 r NULL 5.294e+00 4.323e+00 1.22 25.691 1.842 25.449 +OBS: 56229.023 i NULL 1.602e+01 7.819e+00 2.05 24.488 0.727 24.613 +OBS: 56230.012 z NULL 1.580e+01 4.926e+00 3.21 24.503 0.406 24.468 +OBS: 56231.012 g NULL -1.030e-02 6.914e+00 -0.00 128.000 0.000 30.746 +OBS: 56231.020 r NULL 5.786e+00 2.792e+00 2.07 25.594 0.715 25.470 +OBS: 56231.027 i NULL 2.214e+01 4.099e+00 5.40 24.137 0.222 24.612 +OBS: 56235.020 z NULL 1.147e+01 5.696e+00 2.01 24.851 0.746 24.503 +OBS: 56236.027 g NULL -1.181e+00 5.171e+00 -0.23 128.000 0.000 31.111 +OBS: 56236.035 r NULL 2.016e+01 5.397e+00 3.74 24.239 0.337 25.512 +OBS: 56236.039 i NULL 2.069e+01 7.634e+00 2.71 24.211 0.499 24.617 +OBS: 56237.023 z NULL 1.916e+01 5.138e+00 3.73 24.294 0.339 24.518 +OBS: 56238.023 g NULL 6.619e-01 3.612e+00 0.18 27.948 100.052 31.195 +OBS: 56238.031 r NULL 3.546e+00 2.791e+00 1.27 26.126 1.682 25.526 +OBS: 56238.039 i NULL 2.330e+01 4.835e+00 4.82 24.081 0.252 24.621 +OBS: 56243.070 z NULL 2.276e+01 5.363e+00 4.24 24.107 0.291 24.563 +OBS: 56244.047 g NULL -9.037e-01 4.182e+00 -0.22 128.000 0.000 31.405 +OBS: 56244.055 r NULL 4.566e-01 2.828e+00 0.16 28.351 99.649 25.562 +OBS: 56244.070 i NULL 1.634e+01 4.424e+00 3.69 24.467 0.343 24.638 +OBS: 56245.027 z NULL 2.268e+01 3.568e+00 6.36 24.111 0.185 24.579 +OBS: 56246.082 g NULL 1.202e+00 2.833e+00 0.42 27.300 100.700 31.478 +OBS: 56246.098 r NULL 6.330e+00 2.473e+00 2.56 25.497 0.538 25.574 +OBS: 56246.109 i NULL 2.367e+01 5.459e+00 4.34 24.065 0.284 24.646 +OBS: 56247.250 z NULL 7.600e+00 6.296e+00 1.21 25.298 1.917 24.596 +OBS: 56254.199 g NULL -4.893e+00 6.131e+00 -0.80 128.000 0.000 31.801 +OBS: 56254.211 r NULL 9.496e+00 3.383e+00 2.81 25.056 0.478 25.614 +OBS: 56254.227 i NULL 9.382e+00 6.218e+00 1.51 25.069 1.181 24.680 +END: diff --git a/data/tests/DES_data/DES_SN194826.DAT b/data/tests/DES_data/DES_SN194826.DAT new file mode 100644 index 000000000..784eb950b --- /dev/null +++ b/data/tests/DES_data/DES_SN194826.DAT @@ -0,0 +1,141 @@ +SURVEY: DES +SNID: 194826 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 0.500000 deg +DECL: -43.000000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0111 MW E(B-V) +REDSHIFT_HELIO: 0.17052 +- 0.03630 (Helio, z_best) +REDSHIFT_FINAL: 0.17052 +- 0.03630 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 10654 +HOST_GALAXY_PHOTO-Z: 0.1705 +- 0.0363 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 12 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-000018 +SIM_LIBID: 4 +SIM_REDSHIFT: 0.2219 +SIM_HOSTLIB_TRUEZ: 0.2200 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 10654 +SIM_DLMU: 40.209457 mag [ -5*log10(10pc/dL) ] +SIM_RA: 0.500000 deg +SIM_DECL: -43.000000 deg +SIM_MWEBV: 0.0099 (MilkyWay E(B-V)) +SIM_PEAKMAG: 23.01 23.19 23.15 23.44 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56233.476562 days +SIM_SALT2x0: 8.246e-17 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -37.21 days +SIM_TRESTMAX: 69.20 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56231.742 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 85 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56188.004 g NULL 2.388e+00 5.676e+00 0.42 99.000 5.000 101.197 +OBS: 56188.016 r NULL -9.173e+00 4.371e+00 -2.10 99.000 5.000 101.103 +OBS: 56188.027 i NULL 7.221e-01 6.462e+00 0.11 99.000 5.000 101.180 +OBS: 56188.035 z NULL 4.765e+00 6.472e+00 0.74 99.000 5.000 101.112 +OBS: 56189.004 g NULL 7.127e+00 5.648e+00 1.26 99.000 5.000 101.197 +OBS: 56189.016 r NULL 1.061e+01 4.335e+00 2.45 99.000 5.000 101.103 +OBS: 56189.027 i NULL 4.116e-01 6.406e+00 0.06 99.000 5.000 101.180 +OBS: 56189.035 z NULL 3.586e+00 6.406e+00 0.56 99.000 5.000 101.112 +OBS: 56194.012 g NULL 2.783e+00 6.199e+00 0.45 99.000 5.000 101.197 +OBS: 56194.016 r NULL 1.378e+00 3.584e+00 0.38 99.000 5.000 101.103 +OBS: 56194.023 i NULL -2.087e+00 6.147e+00 -0.34 99.000 5.000 101.180 +OBS: 56194.031 z NULL -1.920e+01 1.509e+01 -1.27 99.000 5.000 101.112 +OBS: 56198.992 g NULL 1.132e+01 1.868e+01 0.61 24.865 103.135 47.130 +OBS: 56199.000 r NULL -4.541e+00 9.048e+00 -0.50 128.000 0.000 46.918 +OBS: 56199.008 i NULL 9.014e-01 1.181e+01 0.08 27.613 100.387 47.808 +OBS: 56199.016 z NULL -8.274e+00 7.696e+00 -1.08 128.000 0.000 48.983 +OBS: 56199.039 g NULL -1.310e+01 3.349e+01 -0.39 128.000 0.000 47.126 +OBS: 56208.215 g NULL -1.349e+00 2.656e+00 -0.51 128.000 0.000 35.945 +OBS: 56208.223 r NULL -3.103e-01 1.765e+00 -0.18 128.000 0.000 35.818 +OBS: 56208.238 i NULL 2.369e+00 2.955e+00 0.80 26.563 101.437 36.353 +OBS: 56209.160 z NULL -1.992e+00 3.242e+00 -0.61 128.000 0.000 35.772 +OBS: 56216.215 g NULL 1.839e+00 2.468e+00 0.75 26.838 101.162 28.119 +OBS: 56216.223 r NULL 2.053e+00 1.882e+00 1.09 26.719 2.700 27.544 +OBS: 56216.230 i NULL 6.554e+00 3.017e+00 2.17 25.459 0.669 27.973 +OBS: 56218.152 z NULL 4.849e-01 2.672e+00 0.18 28.286 99.714 27.279 +OBS: 56221.004 g NULL -7.621e+00 5.237e+00 -1.46 128.000 0.000 25.666 +OBS: 56221.016 r NULL 8.382e+00 3.587e+00 2.34 25.192 0.606 25.094 +OBS: 56221.027 i NULL 1.200e+01 5.477e+00 2.19 24.802 0.661 25.521 +OBS: 56221.035 z NULL 5.717e-01 5.403e+00 0.11 28.107 99.893 26.027 +OBS: 56222.016 g NULL 8.017e+00 6.255e+00 1.28 25.240 1.645 25.293 +OBS: 56222.027 r NULL 1.722e+01 3.641e+00 4.73 24.410 0.257 24.782 +OBS: 56222.035 i NULL 6.596e+00 4.926e+00 1.34 25.452 1.492 25.205 +OBS: 56228.012 z NULL 2.670e+01 5.570e+00 4.79 23.934 0.253 24.296 +OBS: 56229.012 g NULL 4.094e+01 9.897e+00 4.14 23.470 0.301 23.340 +OBS: 56229.016 r NULL 3.678e+01 4.398e+00 8.36 23.586 0.138 23.586 +OBS: 56229.023 i NULL 3.237e+01 7.845e+00 4.13 23.725 0.301 23.711 +OBS: 56230.012 z NULL 1.962e+01 4.933e+00 3.98 24.268 0.315 23.902 +OBS: 56231.012 g NULL 6.359e+01 7.107e+00 8.95 22.992 0.128 23.114 +OBS: 56231.020 r NULL 4.255e+01 2.936e+00 14.49 23.428 0.078 23.366 +OBS: 56231.027 i NULL 4.394e+01 4.176e+00 10.52 23.393 0.108 23.403 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56235.020 z NULL 3.409e+01 5.733e+00 5.95 23.669 0.201 23.331 +OBS: 56236.027 g NULL 6.398e+01 5.461e+00 11.72 22.985 0.097 23.016 +OBS: 56236.035 r NULL 4.804e+01 5.503e+00 8.73 23.296 0.133 23.120 +OBS: 56236.039 i NULL 7.289e+01 7.765e+00 9.39 22.843 0.122 23.025 +OBS: 56237.023 z NULL 5.218e+01 5.224e+00 9.99 23.206 0.114 23.243 +OBS: 56238.023 g NULL 5.813e+01 3.924e+00 14.81 23.089 0.076 23.076 +OBS: 56238.031 r NULL 5.466e+01 3.012e+00 18.14 23.156 0.062 23.125 +OBS: 56238.039 i NULL 5.475e+01 4.945e+00 11.07 23.154 0.104 22.995 +OBS: 56243.070 z NULL 3.846e+01 5.401e+00 7.12 23.537 0.166 23.210 +OBS: 56244.047 g NULL 4.931e+01 4.385e+00 11.24 23.268 0.101 23.358 +OBS: 56244.055 r NULL 4.625e+01 2.993e+00 15.45 23.337 0.073 23.264 +OBS: 56244.070 i NULL 5.694e+01 4.561e+00 12.48 23.111 0.091 23.074 +OBS: 56245.027 z NULL 5.525e+01 3.698e+00 14.94 23.144 0.075 23.228 +OBS: 56246.082 g NULL 4.515e+01 3.091e+00 14.61 23.363 0.077 23.452 +OBS: 56246.098 r NULL 4.869e+01 2.673e+00 18.21 23.281 0.061 23.309 +OBS: 56246.109 i NULL 5.489e+01 5.560e+00 9.87 23.151 0.116 23.114 +OBS: 56247.250 z NULL 5.255e+01 6.377e+00 8.24 23.199 0.140 23.253 +OBS: 56254.199 g NULL 3.025e+01 6.199e+00 4.88 23.798 0.249 23.834 +OBS: 56254.211 r NULL 3.801e+01 3.476e+00 10.94 23.550 0.104 23.490 +OBS: 56254.227 i NULL 4.793e+01 6.292e+00 7.62 23.299 0.153 23.287 +OBS: 56258.191 z NULL 4.831e+01 5.937e+00 8.14 23.290 0.142 23.454 +OBS: 56261.066 g NULL 2.511e+01 6.977e+00 3.60 24.000 0.353 24.197 +OBS: 56261.082 r NULL 3.398e+01 4.145e+00 8.20 23.672 0.141 23.669 +OBS: 56261.090 i NULL 5.283e+01 8.296e+00 6.37 23.193 0.185 23.437 +OBS: 56266.156 z NULL 4.375e+01 5.350e+00 8.18 23.398 0.141 23.635 +OBS: 56276.152 g NULL 1.850e+01 4.076e+00 4.54 24.332 0.269 25.024 +OBS: 56276.172 r NULL 2.610e+01 2.944e+00 8.87 23.958 0.130 24.081 +OBS: 56277.164 i NULL 3.338e+01 3.613e+00 9.24 23.691 0.124 23.802 +OBS: 56278.164 z NULL 2.594e+01 4.317e+00 6.01 23.965 0.198 23.904 +OBS: 56288.035 g NULL 1.638e+01 1.451e+01 1.13 24.464 2.355 25.664 +OBS: 56288.043 r NULL 1.882e+01 5.419e+00 3.47 24.313 0.369 24.402 +OBS: 56288.051 i NULL 2.352e+01 6.002e+00 3.92 24.072 0.320 24.050 +OBS: 56288.066 z NULL 2.698e+01 6.755e+00 3.99 23.922 0.313 24.105 +OBS: 56292.109 g NULL 1.023e+00 7.770e+00 0.13 27.475 100.525 25.877 +OBS: 56292.125 r NULL 1.268e+01 3.889e+00 3.26 24.742 0.398 24.505 +OBS: 56296.039 i NULL 2.108e+01 3.509e+00 6.01 24.190 0.198 24.225 +OBS: 56296.051 z NULL 2.257e+01 4.484e+00 5.03 24.116 0.240 24.257 +OBS: 56305.043 g NULL -2.630e+00 2.881e+00 -0.91 128.000 0.000 26.540 +OBS: 56305.051 r NULL 9.994e+00 2.194e+00 4.56 25.001 0.269 24.849 +OBS: 56305.055 i NULL 1.762e+01 3.076e+00 5.73 24.385 0.208 24.407 +OBS: 56305.070 z NULL 1.965e+01 3.685e+00 5.33 24.266 0.225 24.403 +OBS: 56317.035 g NULL -4.666e+00 1.479e+01 -0.32 128.000 0.000 27.147 +OBS: 56317.043 r NULL 9.798e+00 6.190e+00 1.58 25.022 1.084 25.223 +OBS: 56317.051 i NULL 9.283e+00 6.917e+00 1.34 25.081 1.485 24.644 +OBS: 56318.035 z NULL -1.714e+01 1.346e+01 -1.27 128.000 0.000 24.594 +END: diff --git a/data/tests/DES_data/DES_SN232808.DAT b/data/tests/DES_data/DES_SN232808.DAT new file mode 100644 index 000000000..acffbf05e --- /dev/null +++ b/data/tests/DES_data/DES_SN232808.DAT @@ -0,0 +1,149 @@ +SURVEY: DES +SNID: 232808 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 48.000000 deg +DECL: 0.000000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0713 MW E(B-V) +REDSHIFT_HELIO: 0.36053 +- 0.06000 (Helio, z_best) +REDSHIFT_FINAL: 0.36053 +- 0.06000 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 16716 +HOST_GALAXY_PHOTO-Z: 0.3605 +- 0.0600 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 29 (non1a index) +SIM_COMMENT: SN Type = Ic , MODEL = SDSS-017548 +SIM_LIBID: 3 +SIM_REDSHIFT: 0.4755 +SIM_HOSTLIB_TRUEZ: 0.4800 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 16716 +SIM_DLMU: 42.130711 mag [ -5*log10(10pc/dL) ] +SIM_RA: 48.000000 deg +SIM_DECL: 0.000000 deg +SIM_MWEBV: 0.0414 (MilkyWay E(B-V)) +SIM_PEAKMAG: 25.15 23.86 24.05 23.67 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56283.699219 days +SIM_SALT2x0: 1.405e-17 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -37.55 days +SIM_TRESTMAX: 45.63 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56283.043 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 93 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56228.297 g NULL -1.457e+01 1.503e+01 -0.97 99.000 5.000 98.970 +OBS: 56228.305 r NULL -2.768e+00 5.493e+00 -0.50 99.000 5.000 98.977 +OBS: 56228.312 i NULL -1.779e+00 9.412e+00 -0.19 99.000 5.000 98.995 +OBS: 56228.320 z NULL 4.041e+00 5.800e+00 0.70 99.000 5.000 98.936 +OBS: 56229.320 g NULL -5.819e+00 1.405e+01 -0.41 99.000 5.000 98.970 +OBS: 56229.332 r NULL -1.120e+01 7.254e+00 -1.54 99.000 5.000 98.977 +OBS: 56229.348 i NULL -1.844e+01 1.295e+01 -1.42 99.000 5.000 98.995 +OBS: 56230.070 z NULL -4.501e+00 7.134e+00 -0.63 99.000 5.000 98.936 +OBS: 56230.316 g NULL -7.791e+00 1.368e+01 -0.57 99.000 5.000 98.970 +OBS: 56230.328 r NULL 6.584e+00 6.673e+00 0.99 99.000 5.000 98.977 +OBS: 56230.344 i NULL 8.411e+00 1.239e+01 0.68 99.000 5.000 98.995 +OBS: 56231.301 g NULL -1.392e+00 1.166e+01 -0.12 99.000 5.000 98.970 +OBS: 56231.316 r NULL 1.341e+00 6.018e+00 0.22 99.000 5.000 98.977 +OBS: 56231.328 i NULL 1.089e+01 1.047e+01 1.04 99.000 5.000 98.995 +OBS: 56231.344 z NULL -1.226e+00 5.790e+00 -0.21 99.000 5.000 98.936 +OBS: 56235.297 g NULL -3.302e+00 9.637e+00 -0.34 99.000 5.000 98.970 +OBS: 56235.312 r NULL -1.306e+00 4.660e+00 -0.28 99.000 5.000 98.977 +OBS: 56235.324 i NULL -5.695e-01 6.640e+00 -0.09 99.000 5.000 98.995 +OBS: 56235.340 z NULL -3.170e+00 6.749e+00 -0.47 99.000 5.000 98.936 +OBS: 56236.312 g NULL 1.946e+01 7.817e+00 2.49 99.000 5.000 98.970 +OBS: 56236.324 r NULL 3.996e-01 3.728e+00 0.11 99.000 5.000 98.977 +OBS: 56236.340 i NULL 1.810e+00 6.080e+00 0.30 99.000 5.000 98.995 +OBS: 56237.074 z NULL 5.016e+00 7.011e+00 0.72 99.000 5.000 98.936 +OBS: 56237.340 g NULL 3.066e+01 1.183e+01 2.59 99.000 5.000 98.970 +OBS: 56238.051 r NULL 3.309e+00 4.311e+00 0.77 99.000 5.000 98.977 +OBS: 56238.059 i NULL 3.951e+00 5.466e+00 0.72 99.000 5.000 98.995 +OBS: 56238.340 g NULL 3.393e+00 1.062e+01 0.32 99.000 5.000 98.970 +OBS: 56243.047 z NULL -6.104e+00 8.327e+00 -0.73 128.000 0.000 29.011 +OBS: 56243.320 g NULL -9.874e-01 4.201e+00 -0.24 128.000 0.000 28.285 +OBS: 56243.336 r NULL 4.515e+00 3.299e+00 1.37 25.863 1.423 28.992 +OBS: 56244.039 i NULL -1.128e+01 7.035e+00 -1.60 128.000 0.000 29.166 +OBS: 56244.309 g NULL -1.096e+00 4.124e+00 -0.27 128.000 0.000 28.165 +OBS: 56244.320 r NULL -1.668e+00 3.224e+00 -0.52 128.000 0.000 28.827 +OBS: 56245.047 z NULL 1.555e+00 5.010e+00 0.31 27.021 100.979 28.501 +OBS: 56245.320 g NULL 5.315e-01 4.230e+00 0.13 28.186 99.814 28.089 +OBS: 56246.055 r NULL 9.555e-01 2.383e+00 0.40 27.549 100.451 28.575 +OBS: 56246.070 i NULL -7.270e+00 3.886e+00 -1.87 128.000 0.000 28.797 +OBS: 56247.223 g NULL 3.865e-01 2.982e+00 0.13 28.532 99.468 28.000 +OBS: 56247.230 z NULL 1.903e+00 4.385e+00 0.43 26.801 101.199 28.042 +OBS: 56248.305 r NULL -9.404e-01 2.374e+00 -0.40 128.000 0.000 28.222 +OBS: 56248.316 i NULL 8.830e+00 4.230e+00 2.09 25.135 0.707 28.444 +OBS: 56258.152 g NULL 1.079e+01 1.264e+01 0.85 24.917 103.083 26.296 +OBS: 56258.168 z NULL 6.563e+00 5.984e+00 1.10 25.457 2.634 26.186 +OBS: 56258.273 r NULL 1.847e+00 7.779e+00 0.24 26.834 101.166 26.041 +OBS: 56258.281 i NULL -1.239e+01 1.262e+01 -0.98 128.000 0.000 26.719 +OBS: 56261.266 g NULL 1.718e+01 1.010e+01 1.70 24.413 0.961 25.724 +OBS: 56261.273 r NULL 4.640e+00 4.189e+00 1.11 25.834 2.532 25.482 +OBS: 56261.281 i NULL -3.902e-02 7.030e+00 -0.01 128.000 0.000 26.184 +OBS: 56261.289 z NULL 1.170e+01 4.897e+00 2.39 24.830 0.588 25.710 +OBS: 56275.152 g NULL 1.642e+01 3.360e+00 4.89 24.462 0.248 24.838 +OBS: 56275.172 r NULL 2.871e+01 2.332e+00 12.31 23.855 0.092 23.919 +OBS: 56275.191 i NULL 2.006e+01 4.516e+00 4.44 24.244 0.277 24.327 +OBS: 56275.203 z NULL 2.168e+01 5.344e+00 4.06 24.160 0.307 24.037 +OBS: 56283.203 g NULL 3.494e+00 6.299e+00 0.55 26.142 101.858 25.126 +OBS: 56283.211 r NULL 3.627e+01 3.414e+00 10.62 23.601 0.107 23.850 +OBS: 56283.215 i NULL 2.736e+01 5.848e+00 4.68 23.907 0.261 24.054 +OBS: 56283.223 z NULL 2.446e+01 5.070e+00 4.83 24.029 0.253 23.678 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56288.199 g NULL 1.078e+01 1.180e+01 0.91 24.919 103.081 25.398 +OBS: 56288.215 r NULL 3.022e+01 6.216e+00 4.86 23.799 0.250 23.968 +OBS: 56289.109 i NULL 2.603e+01 7.104e+00 3.66 23.961 0.346 24.070 +OBS: 56289.125 z NULL 3.961e+01 5.478e+00 7.23 23.505 0.161 23.627 +OBS: 56292.098 g NULL 3.243e-01 1.166e+01 0.03 28.722 99.278 25.623 +OBS: 56292.102 r NULL 1.406e+01 4.859e+00 2.89 24.630 0.462 24.093 +OBS: 56292.191 i NULL 2.248e+01 5.625e+00 4.00 24.120 0.313 24.121 +OBS: 56292.199 z NULL 2.624e+01 5.188e+00 5.06 23.953 0.240 23.634 +OBS: 56304.051 g NULL 6.982e+00 2.497e+00 2.80 25.390 0.480 26.197 +OBS: 56304.055 r NULL 1.285e+01 1.695e+00 7.58 24.728 0.154 24.658 +OBS: 56304.070 i NULL 2.013e+01 2.550e+00 7.89 24.240 0.147 24.373 +OBS: 56304.086 z NULL 3.186e+01 3.985e+00 7.99 23.742 0.145 23.811 +OBS: 56312.055 g NULL -6.423e-01 7.571e+00 -0.08 128.000 0.000 26.580 +OBS: 56312.066 r NULL 1.276e+01 2.979e+00 4.28 24.735 0.288 25.045 +OBS: 56312.090 i NULL 1.816e+01 5.038e+00 3.61 24.352 0.352 24.552 +OBS: 56312.113 z NULL 2.036e+01 5.446e+00 3.74 24.228 0.339 23.934 +OBS: 56320.043 g NULL 4.854e-01 6.171e+00 0.08 28.285 99.715 27.025 +OBS: 56320.051 r NULL 9.157e+00 2.502e+00 3.66 25.096 0.346 25.319 +OBS: 56320.059 i NULL 1.166e+01 3.666e+00 3.18 24.834 0.410 24.849 +OBS: 56320.070 z NULL 2.560e+01 4.425e+00 5.79 23.979 0.206 24.047 +OBS: 56328.047 g NULL -4.509e+00 3.355e+00 -1.34 128.000 0.000 27.445 +OBS: 56328.055 r NULL 4.577e+00 2.410e+00 1.90 25.849 0.812 25.649 +OBS: 56328.070 i NULL 9.889e+00 4.055e+00 2.44 25.012 0.573 25.084 +OBS: 56328.086 z NULL 2.481e+01 6.800e+00 3.65 24.013 0.347 24.236 +OBS: 56336.062 g NULL 2.405e+00 3.702e+00 0.65 26.547 101.453 27.871 +OBS: 56336.082 r NULL 2.041e+00 3.011e+00 0.68 26.725 101.275 25.981 +OBS: 56337.062 i NULL 5.851e+00 2.934e+00 1.99 25.582 0.756 25.309 +OBS: 56337.078 z NULL 1.633e+01 3.763e+00 4.34 24.468 0.284 24.428 +OBS: 56345.039 g NULL -5.215e+00 7.140e+00 -0.73 128.000 0.000 28.328 +OBS: 56345.055 r NULL 3.348e+00 3.773e+00 0.89 26.188 101.812 26.326 +OBS: 56346.055 i NULL -1.809e+00 5.989e+00 -0.30 128.000 0.000 25.567 +OBS: 56348.027 z NULL 1.390e+01 5.028e+00 2.76 24.642 0.488 24.661 +OBS: 56350.023 g NULL 7.398e-01 6.830e+00 0.11 27.827 100.173 28.579 +OBS: 56350.027 r NULL -6.471e+00 3.939e+00 -1.64 128.000 0.000 26.530 +OBS: 56350.035 i NULL 3.736e+00 6.684e+00 0.56 26.069 101.931 25.660 +OBS: 56351.023 z NULL 4.981e+00 6.099e+00 0.82 25.757 102.243 24.732 +END: diff --git a/data/tests/DES_data/DES_SN233023.DAT b/data/tests/DES_data/DES_SN233023.DAT new file mode 100644 index 000000000..cde2de84b --- /dev/null +++ b/data/tests/DES_data/DES_SN233023.DAT @@ -0,0 +1,99 @@ +SURVEY: DES +SNID: 233023 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 48.000000 deg +DECL: 0.000000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0713 MW E(B-V) +REDSHIFT_HELIO: 0.57948 +- 0.02610 (Helio, z_best) +REDSHIFT_FINAL: 0.57948 +- 0.02610 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 14451 +HOST_GALAXY_PHOTO-Z: 0.5795 +- 0.0261 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 24 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-014599 +SIM_LIBID: 3 +SIM_REDSHIFT: 0.5844 +SIM_HOSTLIB_TRUEZ: 0.5800 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 14451 +SIM_DLMU: 42.669525 mag [ -5*log10(10pc/dL) ] +SIM_RA: 48.000000 deg +SIM_DECL: 0.000000 deg +SIM_MWEBV: 0.0827 (MilkyWay E(B-V)) +SIM_PEAKMAG: 24.78 24.15 24.18 24.33 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56335.480469 days +SIM_SALT2x0: 8.554e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -38.08 days +SIM_TRESTMAX: 9.81 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56335.961 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 44 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56275.152 g NULL 3.570e+00 3.310e+00 1.08 99.000 5.000 99.075 +OBS: 56275.172 r NULL 6.170e+00 2.242e+00 2.75 99.000 5.000 98.994 +OBS: 56275.191 i NULL -1.018e+00 4.492e+00 -0.23 99.000 5.000 98.917 +OBS: 56275.203 z NULL -6.102e+00 5.326e+00 -1.15 99.000 5.000 98.972 +OBS: 56283.203 g NULL 9.314e+00 6.287e+00 1.48 99.000 5.000 99.075 +OBS: 56283.211 r NULL -1.095e+00 3.325e+00 -0.33 99.000 5.000 98.994 +OBS: 56283.215 i NULL 1.248e+01 5.821e+00 2.14 99.000 5.000 98.917 +OBS: 56283.223 z NULL 4.231e+00 5.043e+00 0.84 99.000 5.000 98.972 +OBS: 56288.199 g NULL -1.137e+01 1.179e+01 -0.96 99.000 5.000 99.075 +OBS: 56288.215 r NULL -2.533e+00 6.180e+00 -0.41 99.000 5.000 98.994 +OBS: 56289.109 i NULL -9.604e-01 7.080e+00 -0.14 99.000 5.000 98.917 +OBS: 56289.125 z NULL 4.147e+00 5.423e+00 0.76 99.000 5.000 98.972 +OBS: 56292.098 g NULL 5.982e+00 1.165e+01 0.51 25.558 102.442 55.577 +OBS: 56292.102 r NULL -4.029e+00 4.827e+00 -0.83 128.000 0.000 55.872 +OBS: 56292.191 i NULL 2.583e+00 5.599e+00 0.46 26.469 101.531 56.376 +OBS: 56292.199 z NULL 6.816e+00 5.159e+00 1.32 25.416 1.534 57.158 +OBS: 56304.051 g NULL -4.411e+00 2.481e+00 -1.78 128.000 0.000 47.836 +OBS: 56304.055 r NULL -1.880e+00 1.657e+00 -1.13 128.000 0.000 47.837 +OBS: 56304.070 i NULL -1.709e+00 2.506e+00 -0.68 128.000 0.000 48.239 +OBS: 56304.086 z NULL -2.903e+00 3.934e+00 -0.74 128.000 0.000 48.856 +OBS: 56312.055 g NULL -5.285e-01 7.568e+00 -0.07 128.000 0.000 39.827 +OBS: 56312.066 r NULL 2.706e+00 2.962e+00 0.91 26.419 101.581 40.248 +OBS: 56312.090 i NULL -1.475e+00 5.020e+00 -0.29 128.000 0.000 40.742 +OBS: 56312.113 z NULL -1.937e+00 5.428e+00 -0.36 128.000 0.000 41.310 +OBS: 56320.043 g NULL -3.509e+00 6.169e+00 -0.57 128.000 0.000 29.514 +OBS: 56320.051 r NULL 8.483e-01 2.489e+00 0.34 27.679 100.321 29.247 +OBS: 56320.059 i NULL -2.334e+00 3.653e+00 -0.64 128.000 0.000 29.360 +OBS: 56320.070 z NULL 4.737e+00 4.395e+00 1.08 25.811 2.849 30.186 +OBS: 56328.047 g NULL 1.050e+01 3.384e+00 3.10 24.947 0.422 25.121 +OBS: 56328.055 r NULL 1.111e+01 2.424e+00 4.58 24.886 0.267 24.842 +OBS: 56328.070 i NULL 1.130e+01 4.057e+00 2.79 24.867 0.483 24.835 +OBS: 56328.086 z NULL 1.554e+01 6.789e+00 2.29 24.522 0.623 25.366 +OBS: 56336.062 g NULL 1.034e+01 3.738e+00 2.77 24.963 0.487 24.828 +OBS: 56336.082 r NULL 2.279e+01 3.055e+00 7.46 24.106 0.156 24.159 +OBS: 56337.062 i NULL 2.464e+01 2.977e+00 8.28 24.021 0.139 24.213 +OBS: 56337.078 z NULL 1.660e+01 3.763e+00 4.41 24.450 0.279 24.343 +OBS: 56345.039 g NULL 2.919e+00 7.147e+00 0.41 26.337 101.663 25.591 +OBS: 56345.055 r NULL 9.956e+00 3.786e+00 2.63 25.005 0.521 24.421 +OBS: 56346.055 i NULL 2.010e+01 6.004e+00 3.35 24.242 0.385 24.448 +OBS: 56348.027 z NULL 1.339e+01 5.029e+00 2.66 24.683 0.512 24.457 +OBS: 56350.023 g NULL -4.878e+00 6.835e+00 -0.71 128.000 0.000 26.099 +OBS: 56350.027 r NULL 1.664e+01 3.958e+00 4.20 24.447 0.295 24.554 +OBS: 56350.035 i NULL 1.042e+01 6.690e+00 1.56 24.955 1.116 24.478 +OBS: 56351.023 z NULL 2.421e+01 6.116e+00 3.96 24.040 0.316 24.481 +END: diff --git a/data/tests/DES_data/DES_SN256666.DAT b/data/tests/DES_data/DES_SN256666.DAT new file mode 100644 index 000000000..ec5705031 --- /dev/null +++ b/data/tests/DES_data/DES_SN256666.DAT @@ -0,0 +1,181 @@ +SURVEY: DES +SNID: 256666 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 52.500000 deg +DECL: -27.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0097 MW E(B-V) +REDSHIFT_HELIO: 0.62067 +- 0.02230 (Helio, z_best) +REDSHIFT_FINAL: 0.62067 +- 0.02230 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 10041 +HOST_GALAXY_PHOTO-Z: 0.6207 +- 0.0223 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 32 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-018109 +SIM_LIBID: 0 +SIM_REDSHIFT: 0.6067 +SIM_HOSTLIB_TRUEZ: 0.6100 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 10041 +SIM_DLMU: 42.768112 mag [ -5*log10(10pc/dL) ] +SIM_RA: 52.500000 deg +SIM_DECL: -27.500000 deg +SIM_MWEBV: 0.0108 (MilkyWay E(B-V)) +SIM_PEAKMAG: 25.73 24.36 24.63 24.45 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56184.507812 days +SIM_SALT2x0: 7.812e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -5.18 days +SIM_TRESTMAX: 67.01 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56184.145 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 125 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56176.191 g NULL 1.266e+01 4.776e+00 2.65 24.744 0.514 25.002 +OBS: 56176.199 r NULL 2.171e+01 2.176e+00 9.98 24.159 0.115 24.038 +OBS: 56176.215 i NULL 1.740e+01 3.166e+00 5.50 24.399 0.218 24.427 +OBS: 56176.238 z NULL 1.803e+01 2.507e+00 7.19 24.360 0.163 24.370 +OBS: 56179.188 g NULL 1.060e+01 2.601e+00 4.07 24.937 0.305 25.266 +OBS: 56179.195 r NULL 2.166e+01 1.765e+00 12.27 24.161 0.092 24.144 +OBS: 56179.234 i NULL 1.653e+01 2.013e+00 8.21 24.455 0.141 24.512 +OBS: 56179.266 z NULL 1.887e+01 3.747e+00 5.03 24.311 0.240 24.397 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56180.266 g NULL 5.244e+00 2.561e+00 2.05 25.701 0.728 25.355 +OBS: 56180.281 r NULL 2.090e+01 1.370e+00 15.26 24.199 0.074 24.188 +OBS: 56180.297 i NULL 1.080e+01 3.692e+00 2.93 24.917 0.455 24.539 +OBS: 56180.328 z NULL 1.500e+01 4.496e+00 3.34 24.560 0.387 24.406 +OBS: 56188.160 g NULL 1.236e+01 5.692e+00 2.17 24.770 0.669 26.102 +OBS: 56188.176 r NULL 6.389e+00 5.577e+00 1.15 25.486 2.249 24.508 +OBS: 56188.211 i NULL 5.360e+00 4.524e+00 1.18 25.677 2.025 24.682 +OBS: 56188.238 z NULL 1.872e+01 3.418e+00 5.48 24.319 0.219 24.491 +OBS: 56189.254 g NULL 3.633e-01 2.289e+00 0.16 28.599 99.401 26.219 +OBS: 56189.270 r NULL 1.088e+01 3.281e+00 3.31 24.909 0.391 24.550 +OBS: 56189.281 i NULL 2.329e+01 9.059e+00 2.57 24.082 0.534 24.695 +OBS: 56189.312 z NULL 1.724e+01 2.983e+00 5.78 24.409 0.206 24.504 +OBS: 56194.258 g NULL 5.459e+00 2.641e+00 2.07 25.657 0.717 26.730 +OBS: 56194.270 r NULL 1.115e+01 1.509e+00 7.39 24.882 0.158 24.752 +OBS: 56194.285 i NULL 1.538e+01 2.314e+00 6.65 24.532 0.176 24.751 +OBS: 56194.305 z NULL 1.342e+01 2.399e+00 5.59 24.681 0.214 24.559 +OBS: 56202.160 g NULL -6.781e+00 4.793e+00 -1.41 128.000 0.000 27.433 +OBS: 56202.176 r NULL 7.957e+00 2.330e+00 3.42 25.248 0.376 25.110 +OBS: 56202.191 i NULL 1.255e+01 4.171e+00 3.01 24.754 0.439 24.834 +OBS: 56202.215 z NULL 1.506e+01 2.727e+00 5.52 24.556 0.217 24.642 +OBS: 56210.172 g NULL 1.102e+00 3.691e+00 0.30 27.394 100.606 28.148 +OBS: 56210.188 r NULL 7.836e+00 3.220e+00 2.43 25.265 0.574 25.486 +OBS: 56210.203 i NULL 7.207e+00 3.213e+00 2.24 25.356 0.642 24.928 +OBS: 56210.234 z NULL 1.204e+01 3.852e+00 3.13 24.798 0.419 24.723 +OBS: 56218.172 g NULL -4.835e-02 1.250e+00 -0.04 128.000 0.000 28.882 +OBS: 56218.191 r NULL 4.964e+00 9.644e-01 5.15 25.760 0.234 25.849 +OBS: 56218.211 i NULL 1.254e+01 1.522e+00 8.24 24.754 0.140 25.038 +OBS: 56219.156 z NULL 1.285e+01 1.949e+00 6.59 24.727 0.178 24.811 +OBS: 56221.273 g NULL 8.998e-02 3.910e+00 0.02 30.115 97.885 29.176 +OBS: 56221.281 r NULL 7.321e+00 5.584e+00 1.31 25.339 1.561 25.984 +OBS: 56221.297 i NULL 1.591e+01 4.494e+00 3.54 24.496 0.360 25.084 +OBS: 56221.324 z NULL 1.519e+01 1.440e+01 1.06 24.546 3.204 24.833 +OBS: 56222.074 g NULL -2.166e+00 5.908e+00 -0.37 128.000 0.000 29.248 +OBS: 56222.090 r NULL 5.711e+00 2.629e+00 2.17 25.608 0.669 26.017 +OBS: 56222.113 i NULL 9.743e+00 3.330e+00 2.93 25.028 0.454 25.096 +OBS: 56222.133 z NULL 1.070e+01 5.060e+00 2.11 24.927 0.696 24.841 +OBS: 56228.059 g NULL 4.228e-01 7.693e+00 0.05 28.435 99.565 29.811 +OBS: 56228.066 r NULL 1.171e+00 2.391e+00 0.49 27.329 100.671 26.271 +OBS: 56228.086 i NULL 1.008e+01 5.113e+00 1.97 24.991 0.768 25.188 +OBS: 56228.109 z NULL 7.982e+00 4.137e+00 1.93 25.245 0.794 24.898 +OBS: 56229.047 g NULL -2.360e+01 2.392e+01 -0.99 128.000 0.000 29.905 +OBS: 56229.059 r NULL 2.840e+00 3.851e+00 0.74 26.367 101.633 26.315 +OBS: 56229.074 i NULL 9.182e+00 5.428e+00 1.69 25.093 0.971 25.204 +OBS: 56229.102 z NULL 1.023e+01 4.853e+00 2.11 24.975 0.698 24.907 +OBS: 56230.059 g NULL 4.357e+00 6.571e+00 0.66 25.902 102.098 30.003 +OBS: 56230.102 r NULL 2.948e+00 2.917e+00 1.01 26.326 4.933 26.362 +OBS: 56230.113 i NULL 7.088e+00 5.177e+00 1.37 25.374 1.424 25.222 +OBS: 56230.145 z NULL 1.387e+01 2.678e+00 5.18 24.644 0.232 24.918 +OBS: 56231.043 g NULL 5.095e+00 6.045e+00 0.84 25.732 102.268 30.102 +OBS: 56231.059 r NULL 1.565e+00 2.551e+00 0.61 27.013 100.987 26.406 +OBS: 56231.070 i NULL 9.799e+00 4.245e+00 2.31 25.022 0.616 25.238 +OBS: 56231.102 z NULL 1.409e+01 3.289e+00 4.28 24.628 0.288 24.927 +OBS: 56235.039 g NULL 6.776e-01 5.184e+00 0.13 27.923 100.077 30.454 +OBS: 56235.047 r NULL 1.851e+00 3.706e+00 0.50 26.832 101.168 26.579 +OBS: 56235.062 i NULL 5.388e+00 4.194e+00 1.28 25.671 1.638 25.303 +OBS: 56235.090 z NULL 4.022e+00 8.233e+00 0.49 25.989 102.011 24.964 +OBS: 56236.047 g NULL -3.235e+00 4.872e+00 -0.66 128.000 0.000 30.543 +OBS: 56236.062 r NULL 5.881e-01 2.660e+00 0.22 28.076 99.924 26.624 +OBS: 56236.074 i NULL 1.805e+01 5.234e+00 3.45 24.359 0.371 25.319 +OBS: 56236.105 z NULL 1.385e+01 5.326e+00 2.60 24.647 0.527 24.974 +OBS: 56237.039 g NULL 1.248e+00 3.164e+00 0.39 27.259 100.741 30.625 +OBS: 56237.051 r NULL 3.428e+00 2.213e+00 1.55 26.162 1.126 26.667 +OBS: 56237.094 i NULL 1.200e+01 2.503e+00 4.79 24.802 0.253 25.336 +OBS: 56237.125 z NULL 1.605e+01 3.708e+00 4.33 24.486 0.285 24.983 +OBS: 56238.074 g NULL 1.679e+00 2.522e+00 0.67 26.937 101.063 30.714 +OBS: 56238.094 r NULL 2.451e+00 1.590e+00 1.54 26.527 1.135 26.714 +OBS: 56238.109 i NULL 6.080e+00 2.726e+00 2.23 25.540 0.646 25.353 +OBS: 56238.129 z NULL 8.663e+00 3.111e+00 2.78 25.156 0.483 24.993 +OBS: 56243.098 g NULL -4.398e+00 2.169e+00 -2.03 128.000 0.000 31.156 +OBS: 56243.109 r NULL 2.628e+00 1.655e+00 1.59 26.451 1.079 26.944 +OBS: 56243.125 i NULL 1.030e+01 2.573e+00 4.00 24.968 0.311 25.438 +OBS: 56243.152 z NULL 8.240e+00 2.555e+00 3.22 25.210 0.403 25.041 +OBS: 56244.082 g NULL 7.871e-01 2.190e+00 0.36 27.760 100.240 31.243 +OBS: 56244.098 r NULL 9.474e-01 1.635e+00 0.58 27.559 100.441 26.988 +OBS: 56244.109 i NULL 8.654e+00 2.595e+00 3.33 25.157 0.387 25.454 +OBS: 56244.133 z NULL 1.234e+01 2.991e+00 4.12 24.772 0.301 25.050 +OBS: 56245.070 g NULL 2.760e+00 1.719e+00 1.61 26.398 1.057 31.329 +OBS: 56245.082 r NULL 6.217e-01 1.353e+00 0.46 28.016 99.984 27.032 +OBS: 56245.109 i NULL 2.854e+00 3.213e+00 0.89 26.361 101.639 25.470 +OBS: 56245.137 z NULL 7.772e+00 2.841e+00 2.74 25.274 0.494 25.059 +OBS: 56246.117 g NULL -1.335e+01 6.566e+00 -2.03 128.000 0.000 31.423 +OBS: 56246.125 r NULL 2.551e+00 2.811e+00 0.91 26.483 101.517 27.079 +OBS: 56246.152 i NULL 1.236e+01 1.975e+00 6.26 24.770 0.188 25.488 +OBS: 56246.180 z NULL 8.480e+00 1.941e+00 4.37 25.179 0.282 25.069 +OBS: 56247.281 g NULL -9.862e-01 1.489e+00 -0.66 128.000 0.000 31.530 +OBS: 56247.297 r NULL 9.184e-01 1.133e+00 0.81 27.592 100.408 27.132 +OBS: 56247.316 i NULL 8.046e+00 1.982e+00 4.06 25.236 0.307 25.507 +OBS: 56247.340 z NULL 7.249e+00 2.494e+00 2.91 25.349 0.458 25.080 +OBS: 56248.324 g NULL 3.579e+00 1.703e+00 2.10 26.116 0.700 31.624 +OBS: 56248.340 r NULL -1.922e-01 1.336e+00 -0.14 128.000 0.000 27.179 +OBS: 56258.035 i NULL 7.053e+00 9.886e+00 0.71 25.379 102.621 25.696 +OBS: 56258.066 z NULL 1.083e+01 3.973e+00 2.73 24.913 0.496 25.179 +OBS: 56258.215 g NULL -4.118e+00 4.948e+00 -0.83 128.000 0.000 32.562 +OBS: 56258.227 r NULL 3.657e-03 2.381e+00 0.00 33.592 94.408 27.633 +OBS: 56261.098 g NULL -3.189e+00 8.828e+00 -0.36 128.000 0.000 32.834 +OBS: 56261.102 r NULL 3.201e+00 3.395e+00 0.94 26.237 101.763 27.761 +OBS: 56261.125 i NULL 7.767e+00 3.857e+00 2.01 25.274 0.745 25.752 +OBS: 56261.156 z NULL 1.088e+01 3.094e+00 3.52 24.908 0.363 25.207 +OBS: 56273.160 g NULL -1.051e-02 1.752e+00 -0.01 128.000 0.000 33.982 +OBS: 56273.176 r NULL 3.373e-01 1.213e+00 0.28 28.680 99.320 28.303 +OBS: 56273.188 i NULL 5.033e+00 2.027e+00 2.48 25.745 0.559 25.984 +OBS: 56273.219 z NULL 5.229e+00 2.254e+00 2.32 25.704 0.613 25.316 +OBS: 56281.160 g NULL 1.600e+00 2.074e+00 0.77 26.989 101.011 34.646 +OBS: 56281.184 r NULL 2.358e-01 1.273e+00 0.19 29.069 98.931 28.659 +OBS: 56281.203 i NULL 1.745e+00 1.800e+00 0.97 26.895 101.105 26.139 +OBS: 56281.227 z NULL 5.560e+00 2.294e+00 2.42 25.637 0.578 25.386 +OBS: 56288.086 g NULL -6.500e+00 4.851e+00 -1.34 128.000 0.000 35.231 +OBS: 56288.094 r NULL 1.353e-02 2.113e+00 0.01 32.172 95.828 28.979 +OBS: 56288.109 i NULL 2.043e+00 3.060e+00 0.67 26.725 101.275 26.278 +OBS: 56288.141 z NULL 7.583e+00 2.588e+00 2.93 25.300 0.453 25.448 +OBS: 56289.227 g NULL -6.116e+00 6.492e+00 -0.94 128.000 0.000 35.329 +OBS: 56289.242 r NULL 1.041e+00 2.701e+00 0.39 27.456 100.544 29.030 +OBS: 56289.258 i NULL -7.241e+00 5.086e+00 -1.42 128.000 0.000 26.300 +OBS: 56292.035 z NULL 9.342e+00 2.070e+00 4.51 25.074 0.271 25.482 +OBS: 56292.141 g NULL -3.107e+00 3.054e+00 -1.02 128.000 0.000 35.584 +OBS: 56292.156 r NULL 4.754e+00 1.737e+00 2.74 25.807 0.493 29.163 +OBS: 56292.172 i NULL 5.329e+00 2.656e+00 2.01 25.683 0.749 26.359 +END: diff --git a/data/tests/DES_data/DES_SN256689.DAT b/data/tests/DES_data/DES_SN256689.DAT new file mode 100644 index 000000000..905b6b5bf --- /dev/null +++ b/data/tests/DES_data/DES_SN256689.DAT @@ -0,0 +1,156 @@ +SURVEY: DES +SNID: 256689 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 34.500000 deg +DECL: -5.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0227 MW E(B-V) +REDSHIFT_HELIO: 0.42138 +- 0.01880 (Helio, z_best) +REDSHIFT_FINAL: 0.42138 +- 0.01880 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 12929 +HOST_GALAXY_PHOTO-Z: 0.4214 +- 0.0188 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 19 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-013376 +SIM_LIBID: 1 +SIM_REDSHIFT: 0.4107 +SIM_HOSTLIB_TRUEZ: 0.4100 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 12929 +SIM_DLMU: 41.752052 mag [ -5*log10(10pc/dL) ] +SIM_RA: 34.500000 deg +SIM_DECL: -5.500000 deg +SIM_MWEBV: 0.0240 (MilkyWay E(B-V)) +SIM_PEAKMAG: 24.05 24.05 24.07 24.06 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56177.671875 days +SIM_SALT2x0: 1.991e-17 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -0.35 days +SIM_TRESTMAX: 69.84 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56177.219 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 100 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56177.172 g NULL 2.541e+01 4.827e+00 5.26 23.988 0.229 24.047 +OBS: 56177.188 r NULL 3.098e+01 5.369e+00 5.77 23.772 0.206 24.072 +OBS: 56177.203 i NULL 3.235e+01 5.472e+00 5.91 23.725 0.201 24.095 +OBS: 56177.234 z NULL 2.669e+01 4.719e+00 5.66 23.934 0.211 24.098 +OBS: 56179.172 g NULL 2.205e+01 2.307e+00 9.56 24.141 0.120 24.074 +OBS: 56179.312 r NULL 1.953e+01 3.059e+00 6.39 24.273 0.186 24.042 +OBS: 56179.328 i NULL 2.092e+01 4.222e+00 4.96 24.198 0.245 24.054 +OBS: 56179.359 z NULL 3.217e+01 3.570e+00 9.01 23.731 0.127 23.986 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56187.156 g NULL 1.601e+01 1.764e+00 9.08 24.489 0.128 24.293 +OBS: 56187.172 r NULL 2.033e+01 1.320e+00 15.41 24.229 0.073 24.252 +OBS: 56187.188 i NULL 1.678e+01 1.930e+00 8.69 24.438 0.134 24.213 +OBS: 56187.211 z NULL 2.553e+01 2.230e+00 11.45 23.982 0.099 23.987 +OBS: 56189.148 g NULL 1.687e+01 9.782e+00 1.72 24.432 0.941 24.361 +OBS: 56189.160 r NULL 1.780e+01 3.898e+00 4.57 24.374 0.269 24.306 +OBS: 56189.176 i NULL 1.784e+01 8.082e+00 2.21 24.371 0.655 24.244 +OBS: 56189.203 z NULL 2.848e+01 4.724e+00 6.03 23.864 0.197 23.986 +OBS: 56194.121 g NULL 1.510e+01 3.798e+00 3.98 24.552 0.314 24.550 +OBS: 56194.129 r NULL 1.444e+01 2.372e+00 6.09 24.601 0.195 24.428 +OBS: 56200.156 i NULL 2.771e+01 8.083e+00 3.43 23.893 0.374 24.346 +OBS: 56200.180 z NULL 3.499e+01 5.674e+00 6.17 23.640 0.191 23.972 +OBS: 56207.156 g NULL 7.176e+00 2.294e+00 3.13 25.360 0.418 25.240 +OBS: 56207.172 r NULL 1.355e+01 1.629e+00 8.32 24.670 0.139 24.692 +OBS: 56209.191 i NULL 1.559e+01 2.165e+00 7.20 24.518 0.163 24.381 +OBS: 56209.215 z NULL 2.479e+01 2.251e+00 11.01 24.014 0.104 23.986 +OBS: 56215.164 g NULL 2.743e+00 1.606e+00 1.71 26.404 0.958 25.758 +OBS: 56215.180 r NULL 1.336e+01 1.132e+00 11.80 24.686 0.096 24.816 +OBS: 56217.152 i NULL 1.890e+01 1.448e+00 13.05 24.309 0.086 24.392 +OBS: 56217.191 z NULL 2.955e+01 1.902e+00 15.54 23.824 0.071 24.005 +OBS: 56221.062 g NULL 8.026e+00 4.493e+00 1.79 25.239 0.890 26.162 +OBS: 56221.074 r NULL 1.598e+01 3.596e+00 4.44 24.491 0.276 24.895 +OBS: 56221.195 i NULL 7.674e+00 1.346e+01 0.57 25.287 102.713 24.396 +OBS: 56221.227 z NULL 2.901e+01 4.052e+00 7.16 23.843 0.163 24.020 +OBS: 56222.047 g NULL -4.686e+00 6.422e+00 -0.73 128.000 0.000 26.234 +OBS: 56222.062 r NULL 8.137e+00 3.132e+00 2.60 25.224 0.528 24.907 +OBS: 56222.191 i NULL 2.550e+01 9.807e+00 2.60 23.983 0.527 24.396 +OBS: 56222.211 z NULL 2.803e+01 4.865e+00 5.76 23.881 0.207 24.024 +OBS: 56228.031 g NULL 3.533e+00 2.612e+01 0.14 26.130 101.870 26.681 +OBS: 56228.047 r NULL 4.023e+00 1.164e+01 0.35 25.989 102.011 24.972 +OBS: 56228.156 i NULL 1.648e+01 5.190e+00 3.18 24.458 0.411 24.401 +OBS: 56228.188 z NULL 2.461e+01 2.882e+00 8.54 24.022 0.135 24.052 +OBS: 56229.031 g NULL -1.653e+01 3.075e+01 -0.54 128.000 0.000 26.761 +OBS: 56229.156 r NULL 1.805e+01 3.613e+00 5.00 24.359 0.242 24.983 +OBS: 56229.172 i NULL 1.420e+01 7.060e+00 2.01 24.620 0.747 24.402 +OBS: 56229.199 z NULL 2.219e+01 2.957e+00 7.50 24.135 0.156 24.057 +OBS: 56230.035 g NULL 1.090e+01 9.317e+00 1.17 24.907 2.096 26.844 +OBS: 56230.043 r NULL 1.674e+01 3.878e+00 4.32 24.440 0.285 24.991 +OBS: 56230.191 i NULL 1.993e+01 6.330e+00 3.15 24.251 0.415 24.403 +OBS: 56230.215 z NULL 2.645e+01 2.965e+00 8.92 23.944 0.129 24.063 +OBS: 56231.035 g NULL 4.298e-01 7.695e+00 0.06 28.417 99.583 26.930 +OBS: 56231.156 r NULL 6.340e+00 2.660e+00 2.38 25.495 0.592 25.002 +OBS: 56231.172 i NULL 1.529e+01 4.802e+00 3.18 24.539 0.410 24.403 +OBS: 56231.191 z NULL 2.380e+01 3.052e+00 7.80 24.058 0.149 24.068 +OBS: 56235.145 g NULL -1.098e+00 3.788e+00 -0.29 128.000 0.000 27.287 +OBS: 56235.160 r NULL 8.674e+00 1.768e+00 4.91 25.154 0.248 25.036 +OBS: 56235.172 i NULL 2.018e+01 3.226e+00 6.26 24.238 0.189 24.406 +OBS: 56235.195 z NULL 1.920e+01 2.960e+00 6.49 24.292 0.182 24.091 +OBS: 56236.160 g NULL 2.748e+00 2.002e+00 1.37 26.403 1.416 27.380 +OBS: 56236.172 r NULL 1.119e+01 1.891e+00 5.92 24.878 0.201 25.044 +OBS: 56236.188 i NULL 1.785e+01 2.807e+00 6.36 24.371 0.186 24.407 +OBS: 56236.207 z NULL 1.542e+01 3.205e+00 4.81 24.530 0.254 24.097 +OBS: 56237.176 g NULL 2.617e+00 3.440e+00 0.76 26.455 101.545 27.478 +OBS: 56237.188 r NULL 1.011e+01 2.265e+00 4.46 24.988 0.275 25.051 +OBS: 56237.207 i NULL 1.442e+01 2.879e+00 5.01 24.603 0.242 24.407 +OBS: 56237.238 z NULL 2.297e+01 3.893e+00 5.90 24.097 0.202 24.104 +OBS: 56238.188 g NULL 2.139e+00 2.972e+00 0.72 26.675 101.325 27.581 +OBS: 56238.199 r NULL 6.304e+00 2.031e+00 3.10 25.501 0.423 25.059 +OBS: 56238.219 i NULL 1.594e+01 3.253e+00 4.90 24.494 0.248 24.408 +OBS: 56238.250 z NULL 3.074e+01 4.897e+00 6.28 23.781 0.188 24.111 +OBS: 56243.203 g NULL -1.418e+00 1.690e+00 -0.84 128.000 0.000 28.169 +OBS: 56243.211 r NULL 9.245e+00 1.242e+00 7.44 25.085 0.157 25.093 +OBS: 56243.223 i NULL 1.926e+01 1.890e+00 10.19 24.288 0.112 24.412 +OBS: 56243.250 z NULL 2.296e+01 2.456e+00 9.35 24.098 0.123 24.145 +OBS: 56244.180 g NULL 2.283e+00 1.783e+00 1.28 26.604 1.649 28.303 +OBS: 56244.188 r NULL 9.755e+00 1.391e+00 7.01 25.027 0.167 25.099 +OBS: 56244.203 i NULL 1.658e+01 2.017e+00 8.22 24.451 0.141 24.413 +OBS: 56244.223 z NULL 1.855e+01 2.260e+00 8.21 24.329 0.142 24.152 +OBS: 56245.191 g NULL 3.802e+00 4.786e+00 0.79 26.050 101.950 28.452 +OBS: 56245.199 r NULL 1.026e+01 1.196e+00 8.58 24.972 0.134 25.106 +OBS: 56245.219 i NULL 1.876e+01 2.112e+00 8.88 24.317 0.129 24.414 +OBS: 56245.246 z NULL 2.581e+01 5.940e+00 4.34 23.971 0.284 24.160 +OBS: 56246.234 g NULL 1.738e+00 2.000e+00 0.87 26.900 101.100 28.614 +OBS: 56246.246 r NULL 2.046e+00 3.173e+00 0.64 26.723 101.277 25.112 +OBS: 56246.262 i NULL 1.069e+01 5.650e+00 1.89 24.928 0.818 24.415 +OBS: 56246.285 z NULL 1.571e+01 1.277e+01 1.23 24.510 1.822 24.167 +OBS: 56248.207 g NULL -1.513e+00 1.752e+00 -0.86 128.000 0.000 28.953 +OBS: 56248.215 r NULL 1.078e+01 1.345e+00 8.01 24.919 0.144 25.123 +OBS: 56248.230 i NULL 1.967e+01 2.242e+00 8.77 24.266 0.131 24.418 +OBS: 56248.250 z NULL 1.459e+01 3.044e+00 4.79 24.590 0.255 24.182 +OBS: 56258.242 g NULL 2.065e+00 8.081e+00 0.26 26.713 101.287 29.882 +OBS: 56258.258 r NULL 4.162e+00 4.420e+00 0.94 25.952 102.048 25.164 +OBS: 56259.160 i NULL 4.648e+00 4.544e+00 1.02 25.832 4.229 24.443 +OBS: 56259.180 z NULL 1.644e+01 3.076e+00 5.34 24.460 0.225 24.261 +OBS: 56261.215 g NULL 5.898e-02 3.958e+00 0.01 30.573 97.427 29.988 +OBS: 56261.230 r NULL 9.016e+00 1.864e+00 4.84 25.112 0.251 25.174 +OBS: 56267.156 i NULL 1.574e+01 2.236e+00 7.04 24.507 0.166 24.479 +OBS: 56267.180 z NULL 1.337e+01 3.061e+00 4.37 24.684 0.283 24.321 +OBS: 56274.160 g NULL 8.477e-01 2.033e+00 0.42 27.679 100.321 30.442 +OBS: 56274.176 r NULL 1.040e+01 1.462e+00 7.11 24.958 0.164 25.211 +OBS: 56275.223 i NULL 1.580e+01 3.026e+00 5.22 24.503 0.231 24.526 +OBS: 56276.191 z NULL 1.748e+01 3.419e+00 5.11 24.393 0.236 24.391 +END: diff --git a/data/tests/DES_data/DES_SN305395.DAT b/data/tests/DES_data/DES_SN305395.DAT new file mode 100644 index 000000000..53867e42d --- /dev/null +++ b/data/tests/DES_data/DES_SN305395.DAT @@ -0,0 +1,117 @@ +SURVEY: DES +SNID: 305395 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 52.500000 deg +DECL: -27.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0097 MW E(B-V) +REDSHIFT_HELIO: 0.90359 +- 0.01900 (Helio, z_best) +REDSHIFT_FINAL: 0.90359 +- 0.01900 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 19398 +HOST_GALAXY_PHOTO-Z: 0.9036 +- 0.0190 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 27 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-015339 +SIM_LIBID: 0 +SIM_REDSHIFT: 0.9102 +SIM_HOSTLIB_TRUEZ: 0.9100 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 19398 +SIM_DLMU: 43.847832 mag [ -5*log10(10pc/dL) ] +SIM_RA: 52.500000 deg +SIM_DECL: -27.500000 deg +SIM_MWEBV: 0.0107 (MilkyWay E(B-V)) +SIM_PEAKMAG: 99.03 24.62 24.64 24.76 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56334.527344 days +SIM_SALT2x0: 2.890e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -39.95 days +SIM_TRESTMAX: 8.67 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56334.352 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 61 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56258.215 g NULL -4.229e+00 4.948e+00 -0.85 99.000 5.000 99.034 +OBS: 56258.227 r NULL 9.168e-01 2.381e+00 0.38 99.000 5.000 98.982 +OBS: 56261.098 g NULL -3.460e+00 8.828e+00 -0.39 99.000 5.000 99.034 +OBS: 56261.102 r NULL 4.813e+00 3.395e+00 1.42 99.000 5.000 98.982 +OBS: 56261.125 i NULL 1.050e+00 3.853e+00 0.27 99.000 5.000 98.946 +OBS: 56261.156 z NULL -3.400e+00 3.086e+00 -1.10 99.000 5.000 98.989 +OBS: 56273.160 g NULL 3.829e-01 1.752e+00 0.22 99.000 5.000 99.034 +OBS: 56273.176 r NULL -1.252e-01 1.213e+00 -0.10 99.000 5.000 98.982 +OBS: 56273.188 i NULL -1.263e-01 2.023e+00 -0.06 99.000 5.000 98.946 +OBS: 56273.219 z NULL 4.141e+00 2.252e+00 1.84 99.000 5.000 98.989 +OBS: 56281.160 g NULL -2.227e+00 2.074e+00 -1.07 99.000 5.000 99.034 +OBS: 56281.184 r NULL -1.783e+00 1.273e+00 -1.40 128.000 0.000 60.979 +OBS: 56281.203 i NULL 2.703e-01 1.798e+00 0.15 28.920 99.080 60.562 +OBS: 56281.227 z NULL -4.132e-01 2.290e+00 -0.18 128.000 0.000 61.199 +OBS: 56288.086 g NULL -4.349e+00 4.850e+00 -0.90 99.000 5.000 99.034 +OBS: 56288.094 r NULL 9.503e-01 2.113e+00 0.45 27.555 100.445 51.808 +OBS: 56288.109 i NULL 3.807e+00 3.059e+00 1.24 26.048 1.765 52.098 +OBS: 56288.141 z NULL 6.087e+00 2.586e+00 2.35 25.539 0.600 52.769 +OBS: 56289.227 g NULL 1.233e+01 6.495e+00 1.90 99.000 5.000 99.034 +OBS: 56289.242 r NULL -6.766e-01 2.701e+00 -0.25 128.000 0.000 50.382 +OBS: 56289.258 i NULL -5.302e+00 5.085e+00 -1.04 128.000 0.000 50.713 +OBS: 56292.035 z NULL 2.183e+00 2.062e+00 1.06 26.653 3.136 48.597 +OBS: 56292.141 g NULL -3.759e+00 3.054e+00 -1.23 99.000 5.000 99.034 +OBS: 56292.156 r NULL 4.101e+00 1.736e+00 2.36 25.968 0.597 47.050 +OBS: 56292.172 i NULL -2.536e+00 2.654e+00 -0.96 128.000 0.000 47.572 +OBS: 56303.039 g NULL -1.027e+00 1.371e+00 -0.75 99.000 5.000 99.034 +OBS: 56303.051 r NULL 1.732e-01 8.995e-01 0.19 29.403 98.597 34.986 +OBS: 56303.070 i NULL -7.784e-01 1.413e+00 -0.55 128.000 0.000 37.306 +OBS: 56303.094 z NULL 1.615e+00 2.209e+00 0.73 26.979 101.021 38.530 +OBS: 56311.043 g NULL -7.760e-01 2.670e+00 -0.29 99.000 5.000 99.034 +OBS: 56311.055 r NULL -3.748e-01 1.497e+00 -0.25 128.000 0.000 26.402 +OBS: 56311.074 i NULL 1.022e+00 2.388e+00 0.43 27.476 100.524 27.656 +OBS: 56311.098 z NULL -4.818e-02 2.434e+00 -0.02 128.000 0.000 29.351 +OBS: 56317.125 g NULL -2.619e+00 4.216e+00 -0.62 99.000 5.000 99.034 +OBS: 56317.141 r NULL 1.154e+01 1.877e+00 6.15 24.844 0.192 24.948 +OBS: 56318.109 i NULL 7.244e+00 2.787e+00 2.60 25.350 0.528 24.944 +OBS: 56318.141 z NULL 1.680e+00 2.976e+00 0.56 26.936 101.064 26.181 +OBS: 56321.090 g NULL -4.934e+00 6.628e+00 -0.74 99.000 5.000 99.034 +OBS: 56321.098 r NULL 1.587e+01 2.912e+00 5.45 24.498 0.220 24.550 +OBS: 56321.109 i NULL 1.611e+01 3.419e+00 4.71 24.482 0.259 24.730 +OBS: 56321.141 z NULL 8.742e+00 2.962e+00 2.95 25.146 0.449 25.591 +OBS: 56332.039 g NULL -1.092e+00 1.459e+00 -0.75 99.000 5.000 99.034 +OBS: 56332.051 r NULL 1.453e+01 1.023e+00 14.20 24.594 0.080 24.535 +OBS: 56332.070 i NULL 1.237e+01 1.605e+00 7.71 24.769 0.151 24.619 +OBS: 56332.094 z NULL 1.209e+01 2.588e+00 4.67 24.794 0.261 24.799 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56340.043 g NULL -1.828e+00 2.749e+00 -0.66 99.000 5.000 99.034 +OBS: 56340.055 r NULL 1.198e+01 1.667e+00 7.18 24.804 0.163 24.849 +OBS: 56340.074 i NULL 1.326e+01 2.734e+00 4.85 24.693 0.251 24.705 +OBS: 56340.098 z NULL 1.593e+01 2.996e+00 5.32 24.494 0.226 24.742 +OBS: 56348.055 g NULL 5.577e-01 3.249e+00 0.17 99.000 5.000 99.034 +OBS: 56348.070 r NULL 3.451e+00 2.102e+00 1.64 26.155 1.023 25.322 +OBS: 56349.004 i NULL 8.913e+00 2.362e+00 3.77 25.125 0.335 24.871 +OBS: 56349.027 z NULL 1.249e+01 2.439e+00 5.12 24.758 0.236 24.844 +OBS: 56350.043 g NULL -6.253e+00 3.837e+00 -1.63 99.000 5.000 99.034 +OBS: 56350.055 r NULL 3.485e+00 1.818e+00 1.92 26.145 0.803 25.445 +OBS: 56350.070 i NULL 1.322e+01 3.171e+00 4.17 24.697 0.297 24.896 +OBS: 56350.098 z NULL 1.738e+01 4.871e+00 3.57 24.400 0.357 24.857 +OBS: 56351.043 g NULL -1.766e+00 3.350e+00 -0.53 99.000 5.000 99.034 +OBS: 56351.055 r NULL 6.062e+00 1.767e+00 3.43 25.543 0.374 25.507 +OBS: 56351.070 i NULL 1.674e+01 3.076e+00 5.44 24.441 0.220 24.921 +OBS: 56351.098 z NULL 9.781e+00 4.784e+00 2.04 25.024 0.730 24.869 +END: diff --git a/data/tests/DES_data/DES_SN310648.DAT b/data/tests/DES_data/DES_SN310648.DAT new file mode 100644 index 000000000..238c36364 --- /dev/null +++ b/data/tests/DES_data/DES_SN310648.DAT @@ -0,0 +1,191 @@ +SURVEY: DES +SNID: 310648 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 34.500000 deg +DECL: -5.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0227 MW E(B-V) +REDSHIFT_HELIO: 0.90271 +- 0.02370 (Helio, z_best) +REDSHIFT_FINAL: 0.90271 +- 0.02370 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 10068 +HOST_GALAXY_PHOTO-Z: 0.9027 +- 0.0237 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 17 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-012842 +SIM_LIBID: 1 +SIM_REDSHIFT: 0.8734 +SIM_HOSTLIB_TRUEZ: 0.8700 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 10068 +SIM_DLMU: 43.737312 mag [ -5*log10(10pc/dL) ] +SIM_RA: 34.500000 deg +SIM_DECL: -5.500000 deg +SIM_MWEBV: 0.0256 (MilkyWay E(B-V)) +SIM_PEAKMAG: 99.08 25.28 25.24 25.33 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56230.019531 days +SIM_SALT2x0: 3.199e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -28.21 days +SIM_TRESTMAX: 64.58 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56230.715 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 135 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56177.172 g NULL 1.129e+00 4.786e+00 0.24 99.000 5.000 99.080 +OBS: 56177.188 r NULL 9.185e-01 5.334e+00 0.17 27.592 100.408 27.858 +OBS: 56177.203 i NULL -3.384e+00 5.436e+00 -0.62 128.000 0.000 28.263 +OBS: 56177.234 z NULL 5.145e+00 4.692e+00 1.10 25.722 2.636 27.566 +OBS: 56179.172 g NULL -1.634e+00 2.238e+00 -0.73 99.000 5.000 99.080 +OBS: 56179.312 r NULL -1.963e+00 3.030e+00 -0.65 128.000 0.000 27.759 +OBS: 56179.328 i NULL 3.773e+00 4.200e+00 0.90 26.058 101.942 28.176 +OBS: 56179.359 z NULL -2.663e+00 3.517e+00 -0.76 128.000 0.000 27.380 +OBS: 56187.156 g NULL 1.819e+00 1.703e+00 1.07 99.000 5.000 99.080 +OBS: 56187.172 r NULL 1.578e+00 1.252e+00 1.26 27.004 1.711 27.389 +OBS: 56187.188 i NULL 3.421e+00 1.898e+00 1.80 26.165 0.878 27.781 +OBS: 56187.211 z NULL -4.784e-02 2.176e+00 -0.02 128.000 0.000 26.898 +OBS: 56189.148 g NULL -5.231e+00 9.760e+00 -0.54 99.000 5.000 99.080 +OBS: 56189.160 r NULL -8.684e+00 3.880e+00 -2.24 128.000 0.000 27.297 +OBS: 56189.176 i NULL -1.111e+01 8.072e+00 -1.38 128.000 0.000 27.671 +OBS: 56189.203 z NULL 5.292e+00 4.693e+00 1.13 25.691 2.363 26.814 +OBS: 56194.121 g NULL -3.630e-01 3.771e+00 -0.10 99.000 5.000 99.080 +OBS: 56194.129 r NULL 2.859e+00 2.350e+00 1.22 26.359 1.873 27.056 +OBS: 56200.156 i NULL -6.551e+00 8.066e+00 -0.81 128.000 0.000 26.998 +OBS: 56200.180 z NULL 6.992e+00 5.637e+00 1.24 25.388 1.780 26.404 +OBS: 56207.156 g NULL 1.226e+00 2.280e+00 0.54 99.000 5.000 99.080 +OBS: 56207.172 r NULL 3.256e+00 1.605e+00 2.03 26.218 0.737 26.410 +OBS: 56209.191 i NULL 1.852e+00 2.141e+00 0.87 26.831 101.169 26.434 +OBS: 56209.215 z NULL 2.917e+00 2.201e+00 1.33 26.338 1.526 26.067 +OBS: 56215.164 g NULL 2.163e-01 1.595e+00 0.14 99.000 5.000 99.080 +OBS: 56215.180 r NULL 2.994e+00 1.100e+00 2.72 26.309 0.498 26.005 +OBS: 56217.152 i NULL 4.205e+00 1.400e+00 3.00 25.941 0.440 25.952 +OBS: 56217.191 z NULL 2.069e+00 1.818e+00 1.14 26.711 2.297 25.780 +OBS: 56221.062 g NULL 6.376e+00 4.490e+00 1.42 99.000 5.000 99.080 +OBS: 56221.074 r NULL 9.918e+00 3.587e+00 2.76 25.009 0.487 25.715 +OBS: 56221.195 i NULL 4.091e+00 1.346e+01 0.30 25.971 102.029 25.718 +OBS: 56221.227 z NULL 1.082e+00 4.014e+00 0.27 27.414 100.586 25.631 +OBS: 56222.047 g NULL -1.109e+00 6.419e+00 -0.17 99.000 5.000 99.080 +OBS: 56222.062 r NULL 4.604e+00 3.128e+00 1.47 25.842 1.236 25.665 +OBS: 56222.191 i NULL 1.886e+01 9.798e+00 1.92 24.311 0.795 25.661 +OBS: 56222.211 z NULL 1.005e+01 4.839e+00 2.08 24.994 0.712 25.594 +OBS: 56228.031 g NULL -1.385e+01 2.612e+01 -0.53 99.000 5.000 99.080 +OBS: 56228.047 r NULL 1.575e-01 1.164e+01 0.01 29.507 98.493 25.374 +OBS: 56228.156 i NULL 7.849e+00 5.181e+00 1.51 25.263 1.172 25.338 +OBS: 56228.188 z NULL 4.813e+00 2.845e+00 1.69 25.794 0.972 25.392 +OBS: 56229.031 g NULL 1.707e+01 3.075e+01 0.56 99.000 5.000 99.080 +OBS: 56229.156 r NULL 4.071e+00 3.598e+00 1.13 25.976 2.341 25.323 +OBS: 56229.172 i NULL 1.154e+01 7.057e+00 1.63 24.845 1.027 25.287 +OBS: 56229.199 z NULL 3.968e+00 2.927e+00 1.36 26.004 1.455 25.361 +OBS: 56230.035 g NULL 2.226e+00 9.315e+00 0.24 99.000 5.000 99.080 +OBS: 56230.043 r NULL 3.381e+00 3.866e+00 0.87 26.177 101.823 25.280 +OBS: 56230.191 i NULL 1.051e+01 6.321e+00 1.66 24.946 0.999 25.233 +OBS: 56230.215 z NULL 1.124e+01 2.929e+00 3.84 24.874 0.327 25.328 +OBS: 56231.035 g NULL 7.637e-01 7.694e+00 0.10 99.000 5.000 99.080 +OBS: 56231.156 r NULL 7.875e+00 2.660e+00 2.96 25.259 0.448 25.228 +OBS: 56231.172 i NULL 9.067e+00 4.795e+00 1.89 25.106 0.817 25.183 +OBS: 56231.191 z NULL 5.383e+00 3.020e+00 1.78 25.672 0.895 25.297 +OBS: 56235.145 g NULL 2.855e+00 3.787e+00 0.75 99.000 5.000 99.080 +OBS: 56235.160 r NULL 8.879e+00 1.769e+00 5.02 25.129 0.241 25.050 +OBS: 56235.172 i NULL 1.477e+01 3.214e+00 4.60 24.576 0.266 24.992 +OBS: 56235.195 z NULL 6.950e+00 2.940e+00 2.36 25.395 0.597 25.176 +OBS: 56236.160 g NULL -4.172e+00 2.001e+00 -2.08 99.000 5.000 99.080 +OBS: 56236.172 r NULL 9.615e+00 1.888e+00 5.09 25.043 0.237 25.006 +OBS: 56236.188 i NULL 5.140e+00 2.787e+00 1.84 25.723 0.851 24.946 +OBS: 56236.207 z NULL 6.914e+00 3.193e+00 2.17 25.401 0.673 25.147 +OBS: 56237.176 g NULL -9.460e-01 3.438e+00 -0.28 99.000 5.000 99.080 +OBS: 56237.188 r NULL 1.015e+01 2.266e+00 4.48 24.984 0.274 24.961 +OBS: 56237.207 i NULL 1.260e+01 2.874e+00 4.38 24.750 0.281 24.900 +OBS: 56237.238 z NULL 1.326e+01 3.876e+00 3.42 24.694 0.375 25.116 +OBS: 56238.188 g NULL -4.497e+00 2.971e+00 -1.51 99.000 5.000 99.080 +OBS: 56238.199 r NULL 1.135e+01 2.039e+00 5.57 24.863 0.215 24.918 +OBS: 56238.219 i NULL 1.425e+01 3.248e+00 4.39 24.615 0.280 24.854 +OBS: 56238.250 z NULL 9.875e+00 4.866e+00 2.03 25.014 0.737 25.086 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56243.203 g NULL -2.437e+00 1.689e+00 -1.44 99.000 5.000 99.080 +OBS: 56243.211 r NULL 1.382e+01 1.260e+00 10.97 24.648 0.103 24.715 +OBS: 56243.223 i NULL 1.377e+01 1.872e+00 7.36 24.652 0.159 24.648 +OBS: 56243.250 z NULL 9.286e+00 2.423e+00 3.83 25.080 0.329 24.940 +OBS: 56244.180 g NULL 5.359e-01 1.782e+00 0.30 99.000 5.000 99.080 +OBS: 56244.188 r NULL 1.597e+01 1.413e+00 11.30 24.492 0.100 24.679 +OBS: 56244.203 i NULL 1.493e+01 2.011e+00 7.42 24.565 0.157 24.613 +OBS: 56244.223 z NULL 1.133e+01 2.242e+00 5.05 24.865 0.239 24.914 +OBS: 56245.191 g NULL 1.270e-01 4.785e+00 0.03 99.000 5.000 99.080 +OBS: 56245.199 r NULL 1.496e+01 1.216e+00 12.30 24.563 0.092 24.643 +OBS: 56245.219 i NULL 1.237e+01 2.095e+00 5.90 24.769 0.202 24.578 +OBS: 56245.246 z NULL 9.159e+00 5.921e+00 1.55 25.095 1.129 24.886 +OBS: 56246.234 g NULL 2.315e-01 1.999e+00 0.12 99.000 5.000 99.080 +OBS: 56246.246 r NULL 1.421e+01 3.188e+00 4.46 24.619 0.276 24.607 +OBS: 56246.262 i NULL 1.948e+01 5.657e+00 3.44 24.276 0.372 24.542 +OBS: 56246.285 z NULL 2.071e+01 1.278e+01 1.62 24.209 1.041 24.858 +OBS: 56248.207 g NULL -3.385e+00 1.753e+00 -1.93 99.000 5.000 99.080 +OBS: 56248.215 r NULL 1.533e+01 1.364e+00 11.23 24.536 0.101 24.540 +OBS: 56248.230 i NULL 1.780e+01 2.237e+00 7.96 24.374 0.145 24.476 +OBS: 56248.250 z NULL 9.227e+00 3.036e+00 3.04 25.087 0.434 24.807 +OBS: 56258.242 g NULL -6.566e+00 8.081e+00 -0.81 99.000 5.000 99.080 +OBS: 56258.258 r NULL 1.958e+01 4.437e+00 4.41 24.271 0.279 24.301 +OBS: 56259.160 i NULL 2.279e+01 4.563e+00 4.99 24.106 0.242 24.220 +OBS: 56259.180 z NULL 1.587e+01 3.075e+00 5.16 24.499 0.234 24.586 +OBS: 56261.215 g NULL 3.770e+00 3.959e+00 0.95 99.000 5.000 99.080 +OBS: 56261.230 r NULL 1.758e+01 1.890e+00 9.30 24.387 0.124 24.258 +OBS: 56267.156 i NULL 2.407e+01 2.263e+00 10.64 24.046 0.107 24.140 +OBS: 56267.180 z NULL 1.704e+01 3.067e+00 5.56 24.421 0.215 24.490 +OBS: 56274.160 g NULL 2.926e+00 2.033e+00 1.44 99.000 5.000 99.080 +OBS: 56274.176 r NULL 1.997e+01 1.502e+00 13.29 24.249 0.085 24.258 +OBS: 56275.223 i NULL 2.099e+01 3.038e+00 6.91 24.195 0.170 24.141 +OBS: 56276.191 z NULL 1.675e+01 3.417e+00 4.90 24.440 0.248 24.477 +OBS: 56282.160 g NULL -4.600e+00 3.404e+00 -1.35 99.000 5.000 99.080 +OBS: 56282.184 r NULL 1.799e+01 2.211e+00 8.14 24.362 0.142 24.378 +OBS: 56287.160 i NULL 2.453e+01 5.009e+00 4.90 24.026 0.248 24.246 +OBS: 56287.191 z NULL 1.972e+01 3.912e+00 5.04 24.263 0.240 24.567 +OBS: 56289.035 g NULL -8.413e+00 1.189e+01 -0.71 99.000 5.000 99.080 +OBS: 56289.043 r NULL 1.387e+01 4.194e+00 3.31 24.645 0.391 24.532 +OBS: 56289.152 i NULL 1.900e+01 4.345e+00 4.37 24.303 0.282 24.272 +OBS: 56289.176 z NULL 2.487e+01 4.488e+00 5.54 24.011 0.215 24.594 +OBS: 56297.039 g NULL -3.584e-01 1.580e+00 -0.23 99.000 5.000 99.080 +OBS: 56297.047 r NULL 1.233e+01 1.249e+00 9.87 24.772 0.116 24.737 +OBS: 56297.062 i NULL 1.673e+01 1.895e+00 8.83 24.441 0.131 24.391 +OBS: 56297.090 z NULL 1.163e+01 2.132e+00 5.46 24.836 0.220 24.703 +OBS: 56305.094 g NULL 4.392e-01 1.644e+00 0.27 99.000 5.000 99.080 +OBS: 56305.102 r NULL 1.325e+01 1.330e+00 9.96 24.694 0.114 24.963 +OBS: 56305.113 i NULL 1.634e+01 2.217e+00 7.37 24.467 0.158 24.534 +OBS: 56306.043 z NULL 1.356e+01 2.723e+00 4.98 24.669 0.243 24.832 +OBS: 56313.047 g NULL 4.746e+00 5.961e+00 0.80 99.000 5.000 99.080 +OBS: 56313.055 r NULL 9.377e+00 2.532e+00 3.70 25.070 0.342 25.201 +OBS: 56313.090 i NULL 1.226e+01 3.090e+00 3.97 24.779 0.315 24.689 +OBS: 56317.066 z NULL 1.702e+01 4.261e+00 3.99 24.423 0.312 24.979 +OBS: 56321.035 g NULL 3.119e+00 2.914e+00 1.07 99.000 5.000 99.080 +OBS: 56321.043 r NULL 6.199e+00 1.374e+00 4.51 25.519 0.272 25.441 +OBS: 56321.066 i NULL 1.066e+01 3.226e+00 3.30 24.931 0.392 24.851 +OBS: 56326.039 z NULL 5.249e+00 2.609e+00 2.01 25.700 0.748 25.077 +OBS: 56333.043 g NULL -1.550e+00 1.816e+00 -0.85 99.000 5.000 99.080 +OBS: 56333.051 r NULL 2.122e+00 1.386e+00 1.53 26.683 1.153 25.813 +OBS: 56334.043 i NULL 9.708e+00 2.186e+00 4.44 25.032 0.277 25.145 +OBS: 56335.043 z NULL 1.127e+01 3.387e+00 3.33 24.870 0.388 25.164 +OBS: 56344.992 g NULL 1.196e+00 4.326e+00 0.28 99.000 5.000 99.080 +OBS: 56345.000 r NULL 2.611e+00 1.863e+00 1.40 26.458 1.358 26.227 +OBS: 56345.016 i NULL 1.076e+01 3.457e+00 3.11 24.920 0.420 25.420 +OBS: 56345.992 z NULL 5.855e+00 3.701e+00 1.58 25.581 1.086 25.262 +OBS: 56349.996 g NULL 2.086e+00 3.963e+00 0.53 99.000 5.000 99.080 +OBS: 56350.004 r NULL 6.319e-02 2.058e+00 0.03 30.498 97.502 26.398 +OBS: 56350.996 i NULL 9.822e+00 3.027e+00 3.24 25.020 0.399 25.570 +END: diff --git a/data/tests/DES_data/DES_SN315558.DAT b/data/tests/DES_data/DES_SN315558.DAT new file mode 100644 index 000000000..2766e19ad --- /dev/null +++ b/data/tests/DES_data/DES_SN315558.DAT @@ -0,0 +1,181 @@ +SURVEY: DES +SNID: 315558 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 52.500000 deg +DECL: -27.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0097 MW E(B-V) +REDSHIFT_HELIO: 0.63268 +- 0.01690 (Helio, z_best) +REDSHIFT_FINAL: 0.63268 +- 0.01690 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 16675 +HOST_GALAXY_PHOTO-Z: 0.6327 +- 0.0169 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 38 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-018596 +SIM_LIBID: 0 +SIM_REDSHIFT: 0.6393 +SIM_HOSTLIB_TRUEZ: 0.6400 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 16675 +SIM_DLMU: 42.906376 mag [ -5*log10(10pc/dL) ] +SIM_RA: 52.500000 deg +SIM_DECL: -27.500000 deg +SIM_MWEBV: 0.0078 (MilkyWay E(B-V)) +SIM_PEAKMAG: 25.82 24.56 24.76 24.87 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56179.527344 days +SIM_SALT2x0: 6.878e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -2.04 days +SIM_TRESTMAX: 68.72 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56179.594 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 125 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56176.191 g NULL 6.934e+00 4.770e+00 1.45 25.397 1.264 25.466 +OBS: 56176.199 r NULL 2.166e+01 2.173e+00 9.97 24.161 0.114 24.448 +OBS: 56176.215 i NULL 8.496e+00 3.152e+00 2.70 25.177 0.505 24.648 +OBS: 56176.238 z NULL 1.131e+01 2.493e+00 4.54 24.866 0.270 24.859 +OBS: 56179.188 g NULL 4.343e+00 2.591e+00 1.68 25.905 0.986 25.792 +OBS: 56179.195 r NULL 1.553e+01 1.740e+00 8.92 24.522 0.129 24.544 +OBS: 56179.234 i NULL 1.133e+01 1.999e+00 5.67 24.865 0.211 24.753 +OBS: 56179.266 z NULL 1.454e+01 3.740e+00 3.89 24.594 0.323 24.867 +OBS: 56180.266 g NULL 4.824e+00 2.557e+00 1.89 25.791 0.820 25.891 +OBS: 56180.281 r NULL 1.294e+01 1.332e+00 9.72 24.720 0.118 24.594 +OBS: 56180.297 i NULL 1.276e+01 3.693e+00 3.46 24.735 0.371 24.781 +OBS: 56180.328 z NULL 6.085e+00 4.488e+00 1.36 25.539 1.455 24.878 +OBS: 56188.160 g NULL -1.513e+00 5.686e+00 -0.27 128.000 0.000 26.756 +OBS: 56188.176 r NULL 7.745e+00 5.575e+00 1.39 25.277 1.382 24.967 +OBS: 56188.211 i NULL 1.391e+01 4.529e+00 3.07 24.642 0.427 24.967 +OBS: 56188.238 z NULL 7.973e+00 3.403e+00 2.34 25.246 0.605 24.952 +OBS: 56189.254 g NULL -1.868e+00 2.287e+00 -0.82 128.000 0.000 26.898 +OBS: 56189.270 r NULL 9.955e+00 3.277e+00 3.04 25.005 0.434 25.017 +OBS: 56189.281 i NULL -5.830e-01 9.048e+00 -0.06 128.000 0.000 24.990 +OBS: 56189.312 z NULL 1.222e+01 2.974e+00 4.11 24.783 0.303 24.961 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56194.258 g NULL 2.938e+00 2.638e+00 1.11 26.330 2.475 27.482 +OBS: 56194.270 r NULL 5.183e+00 1.494e+00 3.47 25.714 0.371 25.242 +OBS: 56194.285 i NULL 4.019e+00 2.296e+00 1.75 25.990 0.923 25.089 +OBS: 56194.305 z NULL 1.297e+01 2.398e+00 5.41 24.718 0.221 24.999 +OBS: 56202.160 g NULL -4.286e+00 4.791e+00 -0.89 128.000 0.000 28.100 +OBS: 56202.176 r NULL 6.248e+00 2.327e+00 2.69 25.511 0.506 25.608 +OBS: 56202.191 i NULL 9.376e+00 4.167e+00 2.25 25.070 0.638 25.224 +OBS: 56202.215 z NULL 1.186e+01 2.721e+00 4.36 24.815 0.283 25.055 +OBS: 56210.172 g NULL -6.416e+00 3.692e+00 -1.74 128.000 0.000 28.646 +OBS: 56210.188 r NULL 2.475e-01 3.216e+00 0.08 29.016 98.984 25.944 +OBS: 56210.203 i NULL 1.824e+00 3.210e+00 0.57 26.847 101.153 25.341 +OBS: 56210.234 z NULL 4.550e-01 3.846e+00 0.12 28.355 99.645 25.101 +OBS: 56218.172 g NULL 1.197e+00 1.250e+00 0.96 27.305 100.695 29.110 +OBS: 56218.191 r NULL 3.232e+00 9.607e-01 3.36 26.226 0.383 26.222 +OBS: 56218.211 i NULL 1.050e+01 1.515e+00 6.93 24.947 0.168 25.445 +OBS: 56219.156 z NULL 1.018e+01 1.943e+00 5.24 24.980 0.230 25.141 +OBS: 56221.273 g NULL -5.923e+00 3.912e+00 -1.51 128.000 0.000 29.266 +OBS: 56221.281 r NULL 3.710e+00 5.582e+00 0.66 26.076 101.924 26.315 +OBS: 56221.297 i NULL 1.076e+00 4.484e+00 0.24 27.421 100.579 25.481 +OBS: 56221.324 z NULL -1.338e+00 1.439e+01 -0.09 128.000 0.000 25.150 +OBS: 56222.074 g NULL 8.615e+00 5.910e+00 1.46 25.162 1.257 29.305 +OBS: 56222.090 r NULL 7.372e-01 2.627e+00 0.28 27.831 100.169 26.338 +OBS: 56222.113 i NULL 1.446e+01 3.335e+00 4.34 24.599 0.284 25.490 +OBS: 56222.133 z NULL 1.411e+01 5.063e+00 2.79 24.626 0.482 25.153 +OBS: 56228.059 g NULL -1.061e+01 7.695e+00 -1.38 128.000 0.000 29.598 +OBS: 56228.066 r NULL 3.531e+00 2.392e+00 1.48 26.130 1.228 26.507 +OBS: 56228.086 i NULL -2.162e+00 5.109e+00 -0.42 128.000 0.000 25.548 +OBS: 56228.109 z NULL 1.090e+01 4.139e+00 2.63 24.907 0.518 25.179 +OBS: 56229.047 g NULL -2.831e+01 2.392e+01 -1.18 128.000 0.000 29.645 +OBS: 56229.059 r NULL -9.112e+00 3.854e+00 -2.36 128.000 0.000 26.533 +OBS: 56229.074 i NULL 8.901e+00 5.427e+00 1.64 25.126 1.021 25.557 +OBS: 56229.102 z NULL 1.205e+01 4.854e+00 2.48 24.798 0.559 25.183 +OBS: 56230.059 g NULL 1.123e+00 6.571e+00 0.17 27.374 100.626 29.695 +OBS: 56230.102 r NULL 2.023e+00 2.917e+00 0.69 26.735 101.265 26.560 +OBS: 56230.113 i NULL -4.933e+00 5.176e+00 -0.95 128.000 0.000 25.565 +OBS: 56230.145 z NULL 6.339e+00 2.668e+00 2.38 25.495 0.594 25.188 +OBS: 56231.043 g NULL -2.355e+00 6.045e+00 -0.39 128.000 0.000 29.744 +OBS: 56231.059 r NULL 2.614e+00 2.551e+00 1.02 26.457 4.056 26.585 +OBS: 56231.070 i NULL 3.748e+00 4.241e+00 0.88 26.065 101.935 25.573 +OBS: 56231.102 z NULL 1.089e+01 3.285e+00 3.31 24.908 0.390 25.192 +OBS: 56235.039 g NULL -5.813e+00 5.185e+00 -1.12 128.000 0.000 29.940 +OBS: 56235.047 r NULL -1.448e+00 3.706e+00 -0.39 128.000 0.000 26.682 +OBS: 56235.062 i NULL 6.845e+00 4.195e+00 1.63 25.412 1.030 25.602 +OBS: 56235.090 z NULL 8.484e+00 8.234e+00 1.03 25.178 3.823 25.208 +OBS: 56236.047 g NULL 3.632e+00 4.872e+00 0.75 26.100 101.900 29.989 +OBS: 56236.062 r NULL 3.257e+00 2.661e+00 1.22 26.218 1.844 26.706 +OBS: 56236.074 i NULL 1.400e+01 5.229e+00 2.68 24.635 0.507 25.609 +OBS: 56236.105 z NULL 6.333e+00 5.321e+00 1.19 25.496 1.992 25.211 +OBS: 56237.039 g NULL 3.120e+00 3.164e+00 0.99 26.265 101.735 30.038 +OBS: 56237.051 r NULL 3.510e+00 2.213e+00 1.59 26.137 1.081 26.729 +OBS: 56237.094 i NULL 8.825e+00 2.498e+00 3.53 25.136 0.361 25.615 +OBS: 56237.125 z NULL 1.278e+01 3.703e+00 3.45 24.734 0.371 25.215 +OBS: 56238.074 g NULL -1.386e+00 2.522e+00 -0.55 128.000 0.000 30.091 +OBS: 56238.094 r NULL 1.157e+00 1.589e+00 0.73 27.341 100.659 26.753 +OBS: 56238.109 i NULL 3.682e+00 2.724e+00 1.35 26.085 1.464 25.622 +OBS: 56238.129 z NULL 6.829e+00 3.109e+00 2.20 25.414 0.660 25.219 +OBS: 56243.098 g NULL -2.915e+00 2.168e+00 -1.34 128.000 0.000 30.333 +OBS: 56243.109 r NULL 3.296e+00 1.656e+00 1.99 26.205 0.757 26.861 +OBS: 56243.125 i NULL 6.310e+00 2.568e+00 2.46 25.500 0.567 25.648 +OBS: 56243.152 z NULL 1.034e+01 2.558e+00 4.04 24.963 0.308 25.237 +OBS: 56244.082 g NULL 2.104e+00 2.191e+00 0.96 26.692 101.308 30.382 +OBS: 56244.098 r NULL 3.093e+00 1.636e+00 1.89 26.274 0.817 26.883 +OBS: 56244.109 i NULL 3.928e+00 2.591e+00 1.52 26.015 1.171 25.653 +OBS: 56244.133 z NULL 1.913e+00 2.983e+00 0.64 26.795 101.205 25.240 +OBS: 56245.070 g NULL -3.960e-01 1.718e+00 -0.23 128.000 0.000 30.431 +OBS: 56245.082 r NULL 2.394e+00 1.354e+00 1.77 26.552 0.905 26.904 +OBS: 56245.109 i NULL 9.412e+00 3.217e+00 2.93 25.066 0.454 25.657 +OBS: 56245.137 z NULL 8.649e+00 2.842e+00 3.04 25.158 0.432 25.244 +OBS: 56246.117 g NULL -5.257e-02 6.562e+00 -0.01 128.000 0.000 30.480 +OBS: 56246.125 r NULL 3.215e+00 2.811e+00 1.14 26.232 2.252 26.926 +OBS: 56246.152 i NULL 5.036e+00 1.963e+00 2.57 25.745 0.536 25.661 +OBS: 56246.180 z NULL 7.276e+00 1.939e+00 3.75 25.345 0.337 25.247 +OBS: 56247.281 g NULL 3.051e-01 1.489e+00 0.20 28.789 99.211 30.534 +OBS: 56247.297 r NULL 2.480e-01 1.133e+00 0.22 29.014 98.986 26.949 +OBS: 56247.316 i NULL 3.014e+00 1.977e+00 1.52 26.302 1.160 25.665 +OBS: 56247.340 z NULL 9.613e+00 2.497e+00 3.85 25.043 0.326 25.251 +OBS: 56248.324 g NULL -1.601e+00 1.702e+00 -0.94 128.000 0.000 30.581 +OBS: 56248.340 r NULL 2.789e+00 1.337e+00 2.09 26.386 0.708 26.970 +OBS: 56258.035 i NULL -2.326e+00 9.885e+00 -0.24 128.000 0.000 25.693 +OBS: 56258.066 z NULL 1.410e+01 3.977e+00 3.55 24.627 0.359 25.304 +OBS: 56258.215 g NULL 1.447e+00 4.947e+00 0.29 27.099 100.901 31.035 +OBS: 56258.227 r NULL -1.546e+00 2.382e+00 -0.65 128.000 0.000 27.161 +OBS: 56261.098 g NULL -7.635e-01 8.827e+00 -0.09 128.000 0.000 31.160 +OBS: 56261.102 r NULL -3.988e-01 3.395e+00 -0.12 128.000 0.000 27.211 +OBS: 56261.125 i NULL 3.409e+00 3.855e+00 0.88 26.169 101.831 25.696 +OBS: 56261.156 z NULL 1.058e+01 3.093e+00 3.42 24.939 0.375 25.323 +OBS: 56273.160 g NULL -1.579e+00 1.752e+00 -0.90 128.000 0.000 31.720 +OBS: 56273.176 r NULL 2.682e+00 1.215e+00 2.21 26.429 0.654 27.413 +OBS: 56273.188 i NULL 6.013e+00 2.028e+00 2.96 25.552 0.447 25.699 +OBS: 56273.219 z NULL 4.864e+00 2.253e+00 2.16 25.783 0.676 25.406 +OBS: 56281.160 g NULL 6.103e-02 2.074e+00 0.03 30.536 97.464 32.131 +OBS: 56281.184 r NULL 4.483e+00 1.276e+00 3.51 25.871 0.363 27.530 +OBS: 56281.203 i NULL 5.864e+00 1.804e+00 3.25 25.580 0.399 25.695 +OBS: 56281.227 z NULL 8.597e+00 2.297e+00 3.74 25.164 0.337 25.464 +OBS: 56288.086 g NULL -3.632e-01 4.849e+00 -0.07 128.000 0.000 32.488 +OBS: 56288.094 r NULL -1.200e+00 2.114e+00 -0.57 128.000 0.000 27.626 +OBS: 56288.109 i NULL 1.845e+00 3.060e+00 0.60 26.835 101.165 25.690 +OBS: 56288.141 z NULL 5.188e+00 2.586e+00 2.01 25.713 0.750 25.517 +OBS: 56289.227 g NULL 3.657e+00 6.491e+00 0.56 26.092 101.908 32.548 +OBS: 56289.242 r NULL -5.470e-01 2.701e+00 -0.20 128.000 0.000 27.642 +OBS: 56289.258 i NULL 4.722e+00 5.086e+00 0.93 25.815 102.185 25.689 +OBS: 56292.035 z NULL 6.918e+00 2.066e+00 3.35 25.400 0.385 25.547 +OBS: 56292.141 g NULL -2.282e+00 3.053e+00 -0.75 128.000 0.000 32.706 +OBS: 56292.156 r NULL 9.618e-01 1.735e+00 0.55 27.542 100.458 27.683 +OBS: 56292.172 i NULL 2.037e+00 2.655e+00 0.77 26.728 101.272 25.686 +END: diff --git a/data/tests/DES_data/DES_SN324610.DAT b/data/tests/DES_data/DES_SN324610.DAT new file mode 100644 index 000000000..e332d1213 --- /dev/null +++ b/data/tests/DES_data/DES_SN324610.DAT @@ -0,0 +1,213 @@ +SURVEY: DES +SNID: 324610 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 52.500000 deg +DECL: -27.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0097 MW E(B-V) +REDSHIFT_HELIO: 0.68345 +- 0.01170 (Helio, z_best) +REDSHIFT_FINAL: 0.68345 +- 0.01170 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 12093 +HOST_GALAXY_PHOTO-Z: 0.6835 +- 0.0117 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 2 (non1a index) +SIM_COMMENT: SN Type = IIn , MODEL = NUGENT2n +SIM_LIBID: 0 +SIM_REDSHIFT: 0.6816 +SIM_HOSTLIB_TRUEZ: 0.6800 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 12093 +SIM_DLMU: 43.076000 mag [ -5*log10(10pc/dL) ] +SIM_RA: 52.500000 deg +SIM_DECL: -27.500000 deg +SIM_MWEBV: 0.0074 (MilkyWay E(B-V)) +SIM_PEAKMAG: 23.46 23.39 23.41 23.47 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56245.582031 days +SIM_SALT2x0: 5.883e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -39.48 days +SIM_TRESTMAX: 62.75 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56245.738 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 157 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56179.188 g NULL -2.735e+00 2.585e+00 -1.06 99.000 5.000 96.933 +OBS: 56179.195 r NULL -1.064e+00 1.709e+00 -0.62 99.000 5.000 97.006 +OBS: 56179.234 i NULL 3.604e+00 1.985e+00 1.82 99.000 5.000 96.988 +OBS: 56179.266 z NULL -2.371e+00 3.729e+00 -0.64 99.000 5.000 96.938 +OBS: 56180.266 g NULL 3.505e+00 2.551e+00 1.37 99.000 5.000 96.933 +OBS: 56180.281 r NULL 8.174e-02 1.300e+00 0.06 99.000 5.000 97.006 +OBS: 56180.297 i NULL -2.018e+00 3.683e+00 -0.55 99.000 5.000 96.988 +OBS: 56180.328 z NULL -1.973e+00 4.486e+00 -0.44 99.000 5.000 96.938 +OBS: 56188.160 g NULL 7.379e+00 5.685e+00 1.30 99.000 5.000 96.933 +OBS: 56188.176 r NULL 1.372e+01 5.575e+00 2.46 99.000 5.000 97.006 +OBS: 56188.211 i NULL 2.223e+00 4.519e+00 0.49 99.000 5.000 96.988 +OBS: 56188.238 z NULL 1.513e+00 3.399e+00 0.45 99.000 5.000 96.938 +OBS: 56189.254 g NULL -7.904e+00 2.289e+00 -3.45 99.000 5.000 96.933 +OBS: 56189.270 r NULL 4.112e+00 3.268e+00 1.26 99.000 5.000 97.006 +OBS: 56189.281 i NULL -7.891e+00 9.046e+00 -0.87 99.000 5.000 96.988 +OBS: 56189.312 z NULL 2.729e+00 2.964e+00 0.92 99.000 5.000 96.938 +OBS: 56194.258 g NULL 2.672e+00 2.636e+00 1.01 99.000 5.000 96.933 +OBS: 56194.270 r NULL 2.709e+00 1.486e+00 1.82 99.000 5.000 97.006 +OBS: 56194.285 i NULL 9.269e-01 2.291e+00 0.40 99.000 5.000 96.988 +OBS: 56194.305 z NULL -3.944e+00 2.385e+00 -1.65 99.000 5.000 96.938 +OBS: 56202.160 g NULL -5.667e+00 4.792e+00 -1.18 99.000 5.000 96.933 +OBS: 56202.176 r NULL 2.344e+00 2.322e+00 1.01 99.000 5.000 97.006 +OBS: 56202.191 i NULL -8.340e+00 4.165e+00 -2.00 99.000 5.000 96.988 +OBS: 56202.215 z NULL 3.380e+00 2.711e+00 1.25 99.000 5.000 96.938 +OBS: 56210.172 g NULL 1.792e+00 3.690e+00 0.49 99.000 5.000 96.933 +OBS: 56210.188 r NULL -1.944e+00 3.215e+00 -0.60 99.000 5.000 97.006 +OBS: 56210.203 i NULL -2.903e-01 3.208e+00 -0.09 99.000 5.000 96.988 +OBS: 56210.234 z NULL 8.638e-02 3.845e+00 0.02 99.000 5.000 96.938 +OBS: 56218.172 g NULL 4.377e+00 1.265e+00 3.46 25.897 0.371 25.766 +OBS: 56218.191 r NULL 5.518e+00 9.646e-01 5.72 25.646 0.208 26.112 +OBS: 56218.211 i NULL 1.547e+00 1.501e+00 1.03 27.027 3.836 26.343 +OBS: 56219.156 z NULL 3.481e+00 1.934e+00 1.80 26.146 0.881 25.961 +OBS: 56221.273 g NULL 1.946e+01 3.957e+00 4.92 24.277 0.247 24.202 +OBS: 56221.281 r NULL 6.612e+00 5.589e+00 1.18 25.449 2.033 24.500 +OBS: 56221.297 i NULL 8.445e+00 4.489e+00 1.88 25.184 0.824 24.706 +OBS: 56221.324 z NULL -7.590e+00 1.440e+01 -0.53 128.000 0.000 24.878 +OBS: 56222.074 g NULL 1.444e+01 5.934e+00 2.43 24.601 0.577 23.925 +OBS: 56222.090 r NULL 1.838e+01 2.655e+00 6.92 24.339 0.170 24.212 +OBS: 56222.113 i NULL 1.561e+01 3.339e+00 4.67 24.517 0.262 24.412 +OBS: 56222.133 z NULL 2.171e+01 5.073e+00 4.28 24.158 0.288 24.584 +OBS: 56228.059 g NULL 5.904e+01 7.799e+00 7.57 23.072 0.154 23.178 +OBS: 56228.066 r NULL 4.719e+01 2.561e+00 18.43 23.315 0.060 23.357 +OBS: 56228.086 i NULL 3.588e+01 5.159e+00 6.95 23.613 0.169 23.506 +OBS: 56228.109 z NULL 3.331e+01 4.183e+00 7.96 23.694 0.146 23.644 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56229.047 g NULL -5.614e-01 2.394e+01 -0.02 128.000 0.000 23.188 +OBS: 56229.059 r NULL 5.084e+01 3.976e+00 12.79 23.234 0.088 23.337 +OBS: 56229.074 i NULL 4.486e+01 5.494e+00 8.16 23.370 0.142 23.472 +OBS: 56229.102 z NULL 3.476e+01 4.894e+00 7.10 23.647 0.165 23.602 +OBS: 56230.059 g NULL 5.544e+01 6.678e+00 8.30 23.140 0.139 23.172 +OBS: 56230.102 r NULL 4.607e+01 3.052e+00 15.09 23.341 0.075 23.306 +OBS: 56230.113 i NULL 4.133e+01 5.238e+00 7.89 23.459 0.147 23.434 +OBS: 56230.145 z NULL 3.920e+01 2.767e+00 14.17 23.517 0.079 23.559 +OBS: 56231.043 g NULL 7.007e+01 6.212e+00 11.28 22.886 0.100 23.163 +OBS: 56231.059 r NULL 5.191e+01 2.742e+00 18.93 23.212 0.058 23.285 +OBS: 56231.070 i NULL 4.043e+01 4.314e+00 9.37 23.483 0.123 23.408 +OBS: 56231.102 z NULL 3.815e+01 3.357e+00 11.36 23.546 0.100 23.529 +OBS: 56235.039 g NULL 5.406e+01 5.330e+00 10.14 23.168 0.113 23.186 +OBS: 56235.047 r NULL 5.174e+01 3.847e+00 13.45 23.215 0.084 23.271 +OBS: 56235.062 i NULL 3.981e+01 4.266e+00 9.33 23.500 0.124 23.374 +OBS: 56235.090 z NULL 5.050e+01 8.287e+00 6.09 23.242 0.194 23.484 +OBS: 56236.047 g NULL 5.558e+01 5.043e+00 11.02 23.138 0.103 23.209 +OBS: 56236.062 r NULL 4.865e+01 2.828e+00 17.20 23.282 0.065 23.286 +OBS: 56236.074 i NULL 4.468e+01 5.296e+00 8.44 23.375 0.137 23.386 +OBS: 56236.105 z NULL 4.336e+01 5.382e+00 8.06 23.407 0.144 23.493 +OBS: 56237.039 g NULL 5.069e+01 3.352e+00 15.12 23.238 0.074 23.236 +OBS: 56237.051 r NULL 4.496e+01 2.381e+00 18.88 23.368 0.060 23.307 +OBS: 56237.094 i NULL 4.355e+01 2.632e+00 16.55 23.402 0.068 23.403 +OBS: 56237.125 z NULL 3.890e+01 3.769e+00 10.32 23.525 0.111 23.508 +OBS: 56238.074 g NULL 4.797e+01 2.736e+00 17.53 23.297 0.064 23.255 +OBS: 56238.094 r NULL 4.682e+01 1.833e+00 25.55 23.324 0.043 23.313 +OBS: 56238.109 i NULL 4.520e+01 2.860e+00 15.81 23.362 0.071 23.402 +OBS: 56238.129 z NULL 4.629e+01 3.227e+00 14.35 23.336 0.078 23.501 +OBS: 56243.098 g NULL 4.844e+01 2.411e+00 20.09 23.287 0.055 23.372 +OBS: 56243.109 r NULL 4.321e+01 1.859e+00 23.24 23.411 0.048 23.355 +OBS: 56243.125 i NULL 4.566e+01 2.713e+00 16.83 23.351 0.066 23.402 +OBS: 56243.152 z NULL 4.081e+01 2.665e+00 15.31 23.473 0.073 23.473 +OBS: 56244.082 g NULL 4.540e+01 2.409e+00 18.84 23.357 0.059 23.404 +OBS: 56244.098 r NULL 4.309e+01 1.841e+00 23.41 23.414 0.048 23.368 +OBS: 56244.109 i NULL 4.192e+01 2.715e+00 15.44 23.444 0.073 23.406 +OBS: 56244.133 z NULL 3.384e+01 3.052e+00 11.09 23.676 0.104 23.470 +OBS: 56245.070 g NULL 4.395e+01 1.974e+00 22.26 23.393 0.050 23.439 +OBS: 56245.082 r NULL 4.717e+01 1.634e+00 28.86 23.316 0.038 23.383 +OBS: 56245.109 i NULL 3.766e+01 3.300e+00 11.41 23.560 0.100 23.411 +OBS: 56245.137 z NULL 4.205e+01 2.948e+00 14.27 23.440 0.079 23.468 +OBS: 56246.117 g NULL 3.948e+01 6.670e+00 5.92 23.509 0.201 23.481 +OBS: 56246.125 r NULL 4.626e+01 2.964e+00 15.61 23.337 0.072 23.401 +OBS: 56246.152 i NULL 4.400e+01 2.140e+00 20.56 23.391 0.054 23.417 +OBS: 56246.180 z NULL 4.261e+01 2.095e+00 20.34 23.426 0.054 23.467 +OBS: 56247.281 g NULL 4.132e+01 1.751e+00 23.60 23.460 0.046 23.532 +OBS: 56247.297 r NULL 4.459e+01 1.428e+00 31.22 23.377 0.035 23.423 +OBS: 56247.316 i NULL 4.135e+01 2.133e+00 19.38 23.459 0.058 23.426 +OBS: 56247.340 z NULL 4.300e+01 2.619e+00 16.41 23.416 0.068 23.466 +OBS: 56248.324 g NULL 3.671e+01 1.902e+00 19.30 23.588 0.058 23.561 +OBS: 56248.340 r NULL 4.308e+01 1.579e+00 27.29 23.414 0.040 23.438 +OBS: 56258.035 i NULL 5.756e+01 9.946e+00 5.79 23.100 0.205 23.550 +OBS: 56258.066 z NULL 4.690e+01 4.064e+00 11.54 23.322 0.098 23.561 +OBS: 56258.215 g NULL 3.124e+01 5.000e+00 6.25 23.763 0.189 23.813 +OBS: 56258.227 r NULL 3.468e+01 2.479e+00 13.99 23.650 0.081 23.599 +OBS: 56261.098 g NULL 1.992e+01 8.860e+00 2.25 24.252 0.640 23.875 +OBS: 56261.102 r NULL 3.594e+01 3.477e+00 10.34 23.611 0.110 23.658 +OBS: 56261.125 i NULL 3.704e+01 3.924e+00 9.44 23.578 0.121 23.610 +OBS: 56261.156 z NULL 3.044e+01 3.142e+00 9.69 23.791 0.119 23.619 +OBS: 56273.160 g NULL 2.253e+01 1.842e+00 12.24 24.118 0.092 24.193 +OBS: 56273.176 r NULL 2.467e+01 1.314e+00 18.77 24.020 0.060 23.960 +OBS: 56273.188 i NULL 2.864e+01 2.102e+00 13.62 23.857 0.083 23.895 +OBS: 56273.219 z NULL 2.919e+01 2.319e+00 12.59 23.837 0.090 23.891 +OBS: 56281.160 g NULL 1.686e+01 2.123e+00 7.94 24.433 0.146 24.532 +OBS: 56281.184 r NULL 1.964e+01 1.339e+00 14.67 24.267 0.077 24.232 +OBS: 56281.203 i NULL 1.688e+01 1.835e+00 9.20 24.432 0.126 24.129 +OBS: 56281.227 z NULL 2.050e+01 2.325e+00 8.82 24.221 0.131 24.097 +OBS: 56288.086 g NULL 1.002e+01 4.860e+00 2.06 24.997 0.720 24.953 +OBS: 56288.094 r NULL 1.444e+01 2.136e+00 6.76 24.601 0.174 24.554 +OBS: 56288.109 i NULL 1.559e+01 3.077e+00 5.07 24.518 0.239 24.398 +OBS: 56288.141 z NULL 1.893e+01 2.610e+00 7.25 24.307 0.161 24.331 +OBS: 56289.227 g NULL 9.799e-02 6.496e+00 0.02 30.022 97.978 25.042 +OBS: 56289.242 r NULL 8.224e+00 2.709e+00 3.04 25.212 0.436 24.620 +OBS: 56289.258 i NULL 1.431e+01 5.094e+00 2.81 24.611 0.478 24.452 +OBS: 56292.035 z NULL 1.948e+01 2.095e+00 9.30 24.276 0.123 24.481 +OBS: 56292.141 g NULL 4.312e+00 3.065e+00 1.41 25.913 1.349 25.268 +OBS: 56292.156 r NULL 1.281e+01 1.759e+00 7.28 24.731 0.160 24.782 +OBS: 56292.172 i NULL 1.458e+01 2.672e+00 5.46 24.591 0.220 24.583 +OBS: 56303.039 g NULL 2.445e+00 1.382e+00 1.77 26.529 0.905 26.025 +OBS: 56303.051 r NULL 6.488e+00 9.145e-01 7.09 25.470 0.165 25.319 +OBS: 56303.070 i NULL 1.150e+01 1.434e+00 8.02 24.848 0.144 25.018 +OBS: 56303.094 z NULL 9.345e+00 2.217e+00 4.22 25.074 0.295 24.855 +OBS: 56311.043 g NULL -2.450e+00 2.673e+00 -0.92 128.000 0.000 26.560 +OBS: 56311.055 r NULL 5.609e+00 1.502e+00 3.73 25.628 0.338 25.735 +OBS: 56311.074 i NULL 1.058e+01 2.398e+00 4.41 24.939 0.279 25.360 +OBS: 56311.098 z NULL 7.849e+00 2.440e+00 3.22 25.263 0.404 25.144 +OBS: 56317.125 g NULL 4.750e+00 4.218e+00 1.13 25.808 2.376 27.100 +OBS: 56317.141 r NULL 2.014e+00 1.862e+00 1.08 26.740 2.809 26.101 +OBS: 56318.109 i NULL 3.020e+00 2.782e+00 1.09 26.300 2.765 25.694 +OBS: 56318.141 z NULL 6.649e+00 2.978e+00 2.23 25.443 0.645 25.418 +OBS: 56321.090 g NULL 3.969e+00 6.628e+00 0.60 26.003 101.997 27.641 +OBS: 56321.098 r NULL 6.749e+00 2.892e+00 2.33 25.427 0.607 26.380 +OBS: 56321.109 i NULL 4.822e+00 3.404e+00 1.42 25.792 1.329 25.847 +OBS: 56321.141 z NULL 7.244e+00 2.961e+00 2.45 25.350 0.570 25.541 +OBS: 56332.039 g NULL -8.402e-02 1.459e+00 -0.06 128.000 0.000 29.963 +OBS: 56332.051 r NULL 9.053e-01 9.750e-01 0.93 27.608 100.392 27.190 +OBS: 56332.070 i NULL 2.793e+00 1.583e+00 1.76 26.385 0.909 26.400 +OBS: 56332.094 z NULL 2.824e+00 2.578e+00 1.10 26.373 2.649 25.986 +OBS: 56340.043 g NULL -1.308e+00 2.749e+00 -0.48 128.000 0.000 30.582 +OBS: 56340.055 r NULL -4.151e-01 1.647e+00 -0.25 128.000 0.000 27.520 +OBS: 56340.074 i NULL 2.854e+00 2.721e+00 1.05 26.362 3.328 26.688 +OBS: 56340.098 z NULL 4.573e+00 2.982e+00 1.53 25.849 1.146 26.258 +OBS: 56348.055 g NULL -2.233e+00 3.250e+00 -0.69 128.000 0.000 28.467 +OBS: 56348.070 r NULL 1.639e+00 2.099e+00 0.78 26.964 101.036 27.255 +OBS: 56349.004 i NULL 1.733e+00 2.353e+00 0.74 26.903 101.097 26.699 +OBS: 56349.027 z NULL 2.788e+00 2.427e+00 1.15 26.387 2.221 26.404 +OBS: 56350.043 g NULL 3.077e+00 3.836e+00 0.80 26.280 101.720 28.090 +OBS: 56350.055 r NULL 4.465e+00 1.816e+00 2.46 25.876 0.566 27.147 +OBS: 56350.070 i NULL 2.917e+00 3.160e+00 0.92 26.338 101.662 26.691 +OBS: 56350.098 z NULL 1.728e+00 4.860e+00 0.36 26.906 101.094 26.417 +OBS: 56351.043 g NULL -2.859e+00 3.351e+00 -0.85 128.000 0.000 28.137 +OBS: 56351.055 r NULL -1.107e+00 1.761e+00 -0.63 128.000 0.000 27.189 +OBS: 56351.070 i NULL 1.564e+00 3.058e+00 0.51 27.014 100.986 26.731 +OBS: 56351.098 z NULL 8.321e+00 4.783e+00 1.74 25.200 0.928 26.455 +END: diff --git a/data/tests/DES_data/DES_SN339756.DAT b/data/tests/DES_data/DES_SN339756.DAT new file mode 100644 index 000000000..9783494d6 --- /dev/null +++ b/data/tests/DES_data/DES_SN339756.DAT @@ -0,0 +1,108 @@ +SURVEY: DES +SNID: 339756 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 48.000000 deg +DECL: 0.000000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0713 MW E(B-V) +REDSHIFT_HELIO: 0.60853 +- 0.02370 (Helio, z_best) +REDSHIFT_FINAL: 0.60853 +- 0.02370 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 13270 +HOST_GALAXY_PHOTO-Z: 0.6085 +- 0.0237 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 24 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-014599 +SIM_LIBID: 3 +SIM_REDSHIFT: 0.6206 +SIM_HOSTLIB_TRUEZ: 0.6200 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 13270 +SIM_DLMU: 42.828182 mag [ -5*log10(10pc/dL) ] +SIM_RA: 48.000000 deg +SIM_DECL: 0.000000 deg +SIM_MWEBV: 0.0751 (MilkyWay E(B-V)) +SIM_PEAKMAG: 25.03 24.24 24.39 24.51 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56316.769531 days +SIM_SALT2x0: 7.391e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -36.17 days +SIM_TRESTMAX: 21.14 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56315.430 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 52 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56258.152 g NULL -2.288e+01 1.264e+01 -1.81 99.000 5.000 99.093 +OBS: 56258.168 z NULL -2.726e+00 5.982e+00 -0.46 99.000 5.000 99.057 +OBS: 56258.273 r NULL -4.079e+00 7.778e+00 -0.52 99.000 5.000 98.997 +OBS: 56258.281 i NULL 2.001e+01 1.263e+01 1.58 99.000 5.000 98.999 +OBS: 56261.266 g NULL 9.589e-01 1.009e+01 0.10 99.000 5.000 99.093 +OBS: 56261.273 r NULL 1.884e+00 4.184e+00 0.45 99.000 5.000 98.997 +OBS: 56261.281 i NULL -4.723e+00 7.029e+00 -0.67 99.000 5.000 98.999 +OBS: 56261.289 z NULL 5.483e+00 4.893e+00 1.12 99.000 5.000 99.057 +OBS: 56275.152 g NULL 2.527e+00 3.310e+00 0.76 26.493 101.507 52.376 +OBS: 56275.172 r NULL -1.779e+00 2.239e+00 -0.79 128.000 0.000 52.531 +OBS: 56275.191 i NULL -9.610e-01 4.492e+00 -0.21 128.000 0.000 53.343 +OBS: 56275.203 z NULL -1.861e+00 5.325e+00 -0.35 128.000 0.000 54.172 +OBS: 56283.203 g NULL 2.032e+00 6.285e+00 0.32 26.730 101.270 48.306 +OBS: 56283.211 r NULL -3.537e+00 3.326e+00 -1.06 128.000 0.000 48.254 +OBS: 56283.215 i NULL 1.048e+01 5.820e+00 1.80 24.949 0.879 48.701 +OBS: 56283.223 z NULL -2.705e+00 5.043e+00 -0.54 128.000 0.000 49.374 +OBS: 56288.199 g NULL 1.688e+00 1.179e+01 0.14 26.931 101.069 47.444 +OBS: 56288.215 r NULL 4.826e+00 6.181e+00 0.78 25.791 102.209 47.395 +OBS: 56289.109 i NULL -2.943e+00 7.080e+00 -0.42 128.000 0.000 47.730 +OBS: 56289.125 z NULL 6.709e+00 5.423e+00 1.24 25.433 1.793 48.336 +OBS: 56292.098 g NULL -1.302e+00 1.165e+01 -0.11 128.000 0.000 40.565 +OBS: 56292.102 r NULL 4.937e+00 4.827e+00 1.02 25.766 4.118 40.907 +OBS: 56292.191 i NULL 6.927e+00 5.601e+00 1.24 25.399 1.793 41.325 +OBS: 56292.199 z NULL 5.337e-01 5.157e+00 0.10 28.182 99.818 41.997 +OBS: 56304.051 g NULL 1.452e+00 2.483e+00 0.58 27.095 100.905 27.623 +OBS: 56304.055 r NULL 1.187e+00 1.659e+00 0.72 27.314 100.686 27.230 +OBS: 56304.070 i NULL 1.668e-01 2.507e+00 0.07 29.445 98.555 27.387 +OBS: 56304.086 z NULL -5.132e-01 3.934e+00 -0.13 128.000 0.000 28.059 +OBS: 56312.055 g NULL 3.000e+01 7.603e+00 3.95 23.807 0.316 24.850 +OBS: 56312.066 r NULL 1.755e+01 2.994e+00 5.86 24.389 0.203 24.431 +OBS: 56312.090 i NULL 1.893e+01 5.039e+00 3.76 24.307 0.336 24.518 +OBS: 56312.113 z NULL 9.978e+00 5.434e+00 1.84 25.002 0.854 24.799 +OBS: 56320.043 g NULL 1.247e+01 6.184e+00 2.02 24.760 0.743 25.307 +OBS: 56320.051 r NULL 2.347e+01 2.545e+00 9.22 24.074 0.124 24.319 +OBS: 56320.059 i NULL 1.375e+01 3.672e+00 3.74 24.654 0.338 24.490 +OBS: 56320.070 z NULL 1.954e+01 4.412e+00 4.43 24.273 0.277 24.552 +OBS: 56328.047 g NULL 4.569e+00 3.364e+00 1.36 25.850 1.447 26.039 +OBS: 56328.055 r NULL 1.536e+01 2.436e+00 6.30 24.534 0.187 24.577 +OBS: 56328.070 i NULL 7.968e+00 4.056e+00 1.96 25.247 0.774 24.677 +OBS: 56328.086 z NULL 2.476e+01 6.799e+00 3.64 24.016 0.348 24.655 +OBS: 56336.062 g NULL -6.263e-01 3.706e+00 -0.17 128.000 0.000 26.783 +OBS: 56336.082 r NULL 1.420e+01 3.029e+00 4.69 24.619 0.260 24.827 +OBS: 56337.062 i NULL 1.509e+01 2.949e+00 5.12 24.553 0.236 24.764 +OBS: 56337.078 z NULL 9.394e+00 3.753e+00 2.50 25.068 0.554 24.718 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56345.039 g NULL 1.246e+01 7.144e+00 1.74 24.762 0.925 27.420 +OBS: 56345.055 r NULL 6.437e+00 3.778e+00 1.70 25.478 0.960 25.179 +OBS: 56346.055 i NULL 2.035e+01 6.003e+00 3.39 24.229 0.379 24.843 +OBS: 56348.027 z NULL 1.102e+01 5.026e+00 2.19 24.895 0.662 24.794 +OBS: 56350.023 g NULL 5.927e+00 6.831e+00 0.87 25.568 102.432 27.801 +OBS: 56350.027 r NULL 9.664e+00 3.944e+00 2.45 25.037 0.569 25.386 +OBS: 56350.035 i NULL -5.572e+00 6.686e+00 -0.83 128.000 0.000 24.883 +OBS: 56351.023 z NULL 4.219e+00 6.099e+00 0.69 25.937 102.063 24.816 +END: diff --git a/data/tests/DES_data/DES_SN361356.DAT b/data/tests/DES_data/DES_SN361356.DAT new file mode 100644 index 000000000..1106662c9 --- /dev/null +++ b/data/tests/DES_data/DES_SN361356.DAT @@ -0,0 +1,163 @@ +SURVEY: DES +SNID: 361356 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 36.750000 deg +DECL: -4.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0283 MW E(B-V) +REDSHIFT_HELIO: 0.84189 +- 0.01680 (Helio, z_best) +REDSHIFT_FINAL: 0.84189 +- 0.01680 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 16634 +HOST_GALAXY_PHOTO-Z: 0.8419 +- 0.0168 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 30 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-017564 +SIM_LIBID: 2 +SIM_REDSHIFT: 0.8592 +SIM_HOSTLIB_TRUEZ: 0.8600 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 16634 +SIM_DLMU: 43.693401 mag [ -5*log10(10pc/dL) ] +SIM_RA: 36.750000 deg +SIM_DECL: -4.500000 deg +SIM_MWEBV: 0.0294 (MilkyWay E(B-V)) +SIM_PEAKMAG: 24.92 23.73 24.03 23.77 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56189.824219 days +SIM_SALT2x0: 3.331e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -6.26 days +SIM_TRESTMAX: 68.99 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56190.051 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 107 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56178.188 g NULL -5.452e+00 9.418e+00 -0.58 128.000 0.000 24.834 +OBS: 56178.195 r NULL 2.393e+01 7.196e+00 3.33 24.053 0.389 23.808 +OBS: 56178.203 i NULL 2.403e+01 6.854e+00 3.51 24.048 0.364 24.270 +OBS: 56178.211 z NULL 1.548e+01 7.927e+00 1.95 24.526 0.780 24.048 +OBS: 56180.172 g NULL 1.359e+01 4.047e+00 3.36 24.667 0.384 24.843 +OBS: 56180.188 r NULL 3.130e+01 3.249e+00 9.63 23.761 0.119 23.775 +OBS: 56180.195 i NULL 2.922e+01 4.438e+00 6.59 23.836 0.178 24.222 +OBS: 56180.203 z NULL 3.068e+01 5.000e+00 6.14 23.783 0.193 23.993 +OBS: 56188.148 g NULL 4.309e+01 1.799e+01 2.40 23.414 0.586 24.906 +OBS: 56188.289 r NULL 3.412e+01 4.073e+00 8.38 23.667 0.138 23.724 +OBS: 56188.297 i NULL 1.274e+01 8.148e+00 1.56 24.737 1.110 24.054 +OBS: 56188.312 z NULL 3.167e+01 5.432e+00 5.83 23.748 0.204 23.804 +OBS: 56194.145 g NULL 3.410e+00 4.702e+00 0.73 26.168 101.832 24.966 +OBS: 56194.156 r NULL 3.230e+01 2.850e+00 11.33 23.727 0.100 23.739 +OBS: 56194.172 i NULL 2.101e+01 4.661e+00 4.51 24.194 0.273 23.970 +OBS: 56194.188 z NULL 3.159e+01 4.509e+00 7.01 23.751 0.167 23.699 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56207.188 g NULL 1.159e+01 4.390e+00 2.64 24.840 0.517 25.109 +OBS: 56207.195 r NULL 3.246e+01 3.528e+00 9.20 23.722 0.125 23.855 +OBS: 56207.203 i NULL 3.780e+01 6.296e+00 6.00 23.556 0.197 23.865 +OBS: 56207.219 z NULL 3.315e+01 5.990e+00 5.54 23.699 0.217 23.559 +OBS: 56215.195 g NULL 1.252e+01 2.719e+00 4.61 24.756 0.265 25.205 +OBS: 56215.203 r NULL 2.549e+01 2.250e+00 11.33 23.984 0.100 23.960 +OBS: 56215.211 i NULL 3.378e+01 2.729e+00 12.38 23.678 0.091 23.836 +OBS: 56215.227 z NULL 3.805e+01 3.509e+00 10.85 23.549 0.105 23.527 +OBS: 56221.090 g NULL -4.288e+00 6.282e+00 -0.68 128.000 0.000 25.277 +OBS: 56221.105 r NULL 1.934e+01 5.108e+00 3.79 24.284 0.333 24.030 +OBS: 56221.113 i NULL 3.367e+01 5.624e+00 5.99 23.682 0.198 23.835 +OBS: 56221.117 z NULL 3.302e+01 7.735e+00 4.27 23.703 0.290 23.520 +OBS: 56222.270 g NULL 1.236e+01 7.752e+00 1.59 24.770 1.071 25.292 +OBS: 56222.273 r NULL 2.499e+01 5.732e+00 4.36 24.006 0.283 24.045 +OBS: 56222.281 i NULL 6.921e+00 1.699e+01 0.41 25.400 102.600 23.837 +OBS: 56222.289 z NULL 4.563e+01 8.116e+00 5.62 23.352 0.212 23.520 +OBS: 56228.234 g NULL -7.587e+00 1.235e+01 -0.61 128.000 0.000 25.369 +OBS: 56228.242 r NULL 1.453e+01 5.587e+00 2.60 24.595 0.528 24.118 +OBS: 56228.258 i NULL 1.632e+01 1.203e+01 1.36 24.468 1.453 23.850 +OBS: 56228.270 z NULL 4.105e+01 6.699e+00 6.13 23.467 0.193 23.529 +OBS: 56229.258 g NULL -9.127e+00 1.721e+01 -0.53 128.000 0.000 25.382 +OBS: 56229.270 r NULL 2.606e+01 8.086e+00 3.22 23.960 0.403 24.130 +OBS: 56229.285 i NULL 3.200e+01 1.508e+01 2.12 23.737 0.692 23.853 +OBS: 56229.297 z NULL 4.294e+01 8.941e+00 4.80 23.418 0.253 23.532 +OBS: 56230.273 g NULL -1.707e+01 1.384e+01 -1.23 128.000 0.000 25.395 +OBS: 56230.277 r NULL 2.887e+01 6.436e+00 4.49 23.849 0.273 24.142 +OBS: 56230.285 i NULL 2.382e+01 1.121e+01 2.13 24.057 0.691 23.857 +OBS: 56230.293 z NULL 4.143e+01 6.211e+00 6.67 23.457 0.176 23.534 +OBS: 56231.242 g NULL -1.942e+01 9.790e+00 -1.98 128.000 0.000 25.408 +OBS: 56231.258 r NULL 1.684e+01 4.965e+00 3.39 24.434 0.380 24.153 +OBS: 56231.273 i NULL 2.479e+01 9.674e+00 2.56 24.014 0.537 23.860 +OBS: 56231.277 z NULL 5.182e+01 5.398e+00 9.60 23.214 0.119 23.537 +OBS: 56235.242 g NULL 1.590e+01 6.881e+00 2.31 24.496 0.615 25.459 +OBS: 56235.258 r NULL 2.442e+01 3.949e+00 6.18 24.031 0.191 24.197 +OBS: 56235.270 i NULL 3.549e+01 7.286e+00 4.87 23.625 0.249 23.878 +OBS: 56235.277 z NULL 3.845e+01 7.022e+00 5.47 23.538 0.219 23.551 +OBS: 56236.258 g NULL 9.493e+00 6.547e+00 1.45 25.057 1.270 25.472 +OBS: 56236.270 r NULL 2.332e+01 4.287e+00 5.44 24.080 0.220 24.207 +OBS: 56236.277 i NULL 1.606e+01 6.012e+00 2.67 24.486 0.511 23.883 +OBS: 56236.285 z NULL 3.682e+01 7.839e+00 4.70 23.585 0.260 23.555 +OBS: 56237.289 g NULL 1.957e+00 2.676e+01 0.07 26.771 101.229 25.485 +OBS: 56237.297 r NULL 1.681e+02 4.081e+01 4.12 21.936 0.301 24.218 +OBS: 56237.301 i NULL 4.680e+01 4.385e+01 1.07 23.324 2.999 23.888 +OBS: 56237.316 z NULL 2.600e+01 2.568e+01 1.01 23.963 4.796 23.559 +OBS: 56238.301 g NULL 3.984e+01 4.136e+01 0.96 23.499 104.501 25.498 +OBS: 56238.316 r NULL 1.840e+01 1.370e+01 1.34 24.338 1.482 24.229 +OBS: 56238.328 i NULL 1.133e+01 7.946e+00 1.43 24.865 1.317 23.894 +OBS: 56243.027 z NULL 4.095e+01 7.862e+00 5.21 23.469 0.231 23.584 +OBS: 56243.309 g NULL 1.064e+01 4.513e+00 2.36 24.933 0.599 25.563 +OBS: 56244.027 r NULL 2.695e+01 4.147e+00 6.50 23.924 0.181 24.286 +OBS: 56244.031 i NULL 1.875e+01 6.633e+00 2.83 24.317 0.475 23.927 +OBS: 56244.273 g NULL 9.965e+00 4.078e+00 2.44 25.004 0.571 25.575 +OBS: 56244.277 z NULL 3.307e+01 6.091e+00 5.43 23.701 0.221 23.591 +OBS: 56245.293 g NULL -9.375e+00 1.380e+01 -0.68 128.000 0.000 25.588 +OBS: 56245.309 r NULL 2.500e+01 1.013e+01 2.47 24.005 0.564 24.299 +OBS: 56246.027 i NULL 2.651e+01 3.742e+00 7.08 23.942 0.165 23.939 +OBS: 56246.035 z NULL 3.441e+01 4.347e+00 7.92 23.658 0.147 23.600 +OBS: 56247.207 g NULL -7.396e-01 3.006e+00 -0.25 128.000 0.000 25.612 +OBS: 56247.215 r NULL 2.145e+01 2.336e+00 9.18 24.172 0.125 24.318 +OBS: 56254.160 i NULL 2.647e+01 4.951e+00 5.35 23.943 0.225 23.986 +OBS: 56254.172 z NULL 4.465e+01 4.108e+00 10.87 23.376 0.104 23.648 +OBS: 56258.125 g NULL 1.677e+01 1.063e+01 1.58 24.438 1.089 25.750 +OBS: 56258.141 r NULL 1.983e+01 5.076e+00 3.91 24.256 0.321 24.428 +OBS: 56261.035 i NULL 1.794e+01 6.104e+00 2.94 24.365 0.452 24.028 +OBS: 56261.043 z NULL 2.700e+01 4.649e+00 5.81 23.922 0.206 23.690 +OBS: 56261.242 g NULL 9.185e+00 7.747e+00 1.19 25.092 2.012 25.789 +OBS: 56261.258 r NULL 1.449e+01 3.940e+00 3.68 24.597 0.345 24.460 +OBS: 56274.188 g NULL 9.181e+00 3.602e+00 2.55 25.093 0.540 25.940 +OBS: 56274.195 r NULL 1.436e+01 2.757e+00 5.21 24.607 0.232 24.604 +OBS: 56274.203 i NULL 1.791e+01 4.285e+00 4.18 24.367 0.297 24.098 +OBS: 56274.219 z NULL 2.892e+01 5.046e+00 5.73 23.847 0.208 23.780 +OBS: 56282.203 g NULL 5.541e+00 6.359e+00 0.87 25.641 102.359 26.029 +OBS: 56283.156 r NULL 1.104e+01 3.147e+00 3.51 24.893 0.365 24.699 +OBS: 56283.168 i NULL 1.875e+01 5.059e+00 3.71 24.318 0.342 24.165 +OBS: 56283.184 z NULL 2.414e+01 4.135e+00 5.84 24.043 0.205 23.842 +OBS: 56288.191 g NULL 1.300e+01 1.255e+01 1.04 24.715 3.640 26.094 +OBS: 56289.066 r NULL 8.272e+00 5.053e+00 1.64 25.206 1.026 24.762 +OBS: 56289.078 i NULL 2.986e+01 8.755e+00 3.41 23.812 0.376 24.215 +OBS: 56289.086 z NULL 3.434e+01 5.662e+00 6.07 23.660 0.195 23.883 +OBS: 56292.090 g NULL 1.189e+00 1.142e+01 0.10 27.312 100.688 26.135 +OBS: 56298.039 r NULL 1.133e+01 2.432e+00 4.66 24.865 0.262 24.879 +OBS: 56298.047 i NULL 2.085e+01 3.584e+00 5.82 24.202 0.205 24.253 +OBS: 56298.055 z NULL 2.326e+01 3.989e+00 5.83 24.083 0.205 23.950 +OBS: 56304.043 g NULL 6.825e+00 2.562e+00 2.66 25.415 0.510 26.266 +OBS: 56306.102 r NULL 1.063e+01 3.222e+00 3.30 24.934 0.392 24.988 +OBS: 56306.113 i NULL 1.463e+01 4.322e+00 3.39 24.587 0.381 24.277 +OBS: 56306.121 z NULL 1.772e+01 5.403e+00 3.28 24.379 0.396 24.011 +OBS: 56312.047 g NULL -1.125e+01 9.608e+00 -1.17 128.000 0.000 26.378 +OBS: 56318.066 r NULL 1.839e+00 4.574e+00 0.40 26.838 101.162 25.077 +OBS: 56318.078 i NULL 1.937e+01 7.982e+00 2.43 24.282 0.577 24.388 +OBS: 56318.086 z NULL 2.465e+01 6.387e+00 3.86 24.020 0.325 24.094 +END: diff --git a/data/tests/DES_data/DES_SN367356.DAT b/data/tests/DES_data/DES_SN367356.DAT new file mode 100644 index 000000000..232e51076 --- /dev/null +++ b/data/tests/DES_data/DES_SN367356.DAT @@ -0,0 +1,191 @@ +SURVEY: DES +SNID: 367356 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 34.500000 deg +DECL: -5.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0227 MW E(B-V) +REDSHIFT_HELIO: 0.70689 +- 0.01880 (Helio, z_best) +REDSHIFT_FINAL: 0.70689 +- 0.01880 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 18485 +HOST_GALAXY_PHOTO-Z: 0.7069 +- 0.0188 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 19 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-013376 +SIM_LIBID: 1 +SIM_REDSHIFT: 0.7230 +SIM_HOSTLIB_TRUEZ: 0.7200 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 18485 +SIM_DLMU: 43.232784 mag [ -5*log10(10pc/dL) ] +SIM_RA: 34.500000 deg +SIM_DECL: -5.500000 deg +SIM_MWEBV: 0.0255 (MilkyWay E(B-V)) +SIM_PEAKMAG: 26.32 25.16 25.15 25.38 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56235.621094 days +SIM_SALT2x0: 5.092e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -33.92 days +SIM_TRESTMAX: 66.96 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56236.648 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 135 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56177.172 g NULL -5.305e+00 4.787e+00 -1.11 99.000 5.000 99.046 +OBS: 56177.188 r NULL -1.285e+01 5.339e+00 -2.41 99.000 5.000 99.043 +OBS: 56177.203 i NULL 2.682e+00 5.436e+00 0.49 99.000 5.000 98.924 +OBS: 56177.234 z NULL 1.964e+00 4.691e+00 0.42 99.000 5.000 99.069 +OBS: 56179.172 g NULL 1.736e+00 2.238e+00 0.78 99.000 5.000 99.046 +OBS: 56179.312 r NULL 5.817e+00 3.031e+00 1.92 99.000 5.000 99.043 +OBS: 56179.328 i NULL 3.652e+00 4.200e+00 0.87 99.000 5.000 98.924 +OBS: 56179.359 z NULL -3.684e+00 3.518e+00 -1.05 99.000 5.000 99.069 +OBS: 56187.156 g NULL -7.574e-01 1.702e+00 -0.44 128.000 0.000 53.069 +OBS: 56187.172 r NULL 5.463e-01 1.251e+00 0.44 28.156 99.844 51.152 +OBS: 56187.188 i NULL 7.169e-01 1.897e+00 0.38 27.861 100.139 50.886 +OBS: 56187.211 z NULL -2.759e-01 2.175e+00 -0.13 128.000 0.000 55.617 +OBS: 56189.148 g NULL -5.846e-01 9.760e+00 -0.06 128.000 0.000 52.906 +OBS: 56189.160 r NULL 1.455e+01 3.885e+00 3.74 24.593 0.336 50.732 +OBS: 56189.176 i NULL -4.667e+00 8.070e+00 -0.58 128.000 0.000 50.177 +OBS: 56189.203 z NULL -3.070e+00 4.692e+00 -0.65 128.000 0.000 53.519 +OBS: 56194.121 g NULL 5.993e+00 3.772e+00 1.59 25.556 1.077 52.610 +OBS: 56194.129 r NULL 1.051e+00 2.349e+00 0.45 27.446 100.554 50.082 +OBS: 56200.156 i NULL 1.581e+01 8.071e+00 1.96 24.503 0.775 48.528 +OBS: 56200.180 z NULL 6.091e+00 5.636e+00 1.08 25.538 2.815 49.711 +OBS: 56207.156 g NULL 4.316e+00 2.281e+00 1.89 25.912 0.816 42.333 +OBS: 56207.172 r NULL -4.796e-01 1.603e+00 -0.30 128.000 0.000 41.007 +OBS: 56209.191 i NULL 1.102e+00 2.139e+00 0.51 27.395 100.605 37.759 +OBS: 56209.215 z NULL -1.232e+00 2.200e+00 -0.56 128.000 0.000 38.923 +OBS: 56215.164 g NULL 8.218e-01 1.595e+00 0.52 27.713 100.287 33.609 +OBS: 56215.180 r NULL 1.690e+00 1.097e+00 1.54 26.930 1.136 32.024 +OBS: 56217.152 i NULL -2.322e-01 1.396e+00 -0.17 128.000 0.000 31.080 +OBS: 56217.191 z NULL -9.771e-01 1.816e+00 -0.54 128.000 0.000 32.001 +OBS: 56221.062 g NULL -4.510e-01 4.488e+00 -0.10 128.000 0.000 28.914 +OBS: 56221.074 r NULL 1.626e-01 3.581e+00 0.05 29.472 98.528 27.570 +OBS: 56221.195 i NULL 2.986e+00 1.345e+01 0.22 26.312 101.688 28.934 +OBS: 56221.227 z NULL -9.136e+00 4.017e+00 -2.27 128.000 0.000 29.507 +OBS: 56222.047 g NULL -1.294e+00 6.419e+00 -0.20 128.000 0.000 28.418 +OBS: 56222.062 r NULL 5.287e-01 3.126e+00 0.17 28.192 99.808 27.110 +OBS: 56222.191 i NULL -1.955e+00 9.791e+00 -0.20 128.000 0.000 28.499 +OBS: 56222.211 z NULL 3.203e+00 4.835e+00 0.66 26.236 101.764 29.000 +OBS: 56228.031 g NULL -2.250e+00 2.612e+01 -0.09 128.000 0.000 26.416 +OBS: 56228.047 r NULL 1.655e+01 1.165e+01 1.42 24.453 1.320 25.410 +OBS: 56228.156 i NULL -3.160e+00 5.179e+00 -0.61 128.000 0.000 26.249 +OBS: 56228.188 z NULL 3.588e+00 2.843e+00 1.26 26.113 1.707 26.556 +OBS: 56229.031 g NULL -1.662e+01 3.075e+01 -0.54 128.000 0.000 26.294 +OBS: 56229.156 r NULL 9.500e+00 3.601e+00 2.64 25.056 0.517 25.315 +OBS: 56229.172 i NULL 7.862e+00 7.055e+00 1.11 25.261 2.470 25.969 +OBS: 56229.199 z NULL 7.846e+00 2.929e+00 2.68 25.263 0.507 26.280 +OBS: 56230.035 g NULL -6.995e+00 9.317e+00 -0.75 128.000 0.000 26.227 +OBS: 56230.043 r NULL 5.916e+00 3.867e+00 1.53 25.570 1.152 25.278 +OBS: 56230.191 i NULL 5.908e+00 6.319e+00 0.94 25.571 102.429 25.715 +OBS: 56230.215 z NULL 3.813e+00 2.922e+00 1.30 26.047 1.579 26.035 +OBS: 56231.035 g NULL 1.305e+01 7.700e+00 1.69 24.711 0.967 26.193 +OBS: 56231.156 r NULL 1.018e+01 2.663e+00 3.82 24.980 0.329 25.242 +OBS: 56231.172 i NULL 4.332e+00 4.792e+00 0.90 25.908 102.092 25.539 +OBS: 56231.191 z NULL 8.683e+00 3.022e+00 2.87 25.153 0.464 25.852 +OBS: 56235.145 g NULL 1.499e+00 3.789e+00 0.40 27.061 100.939 26.301 +OBS: 56235.160 r NULL 1.155e+01 1.774e+00 6.51 24.844 0.180 25.163 +OBS: 56235.172 i NULL 6.392e+00 3.204e+00 1.99 25.486 0.756 25.172 +OBS: 56235.195 z NULL 1.073e+01 2.943e+00 3.64 24.924 0.348 25.407 +OBS: 56236.160 g NULL 3.510e+00 2.006e+00 1.75 26.137 0.920 26.351 +OBS: 56236.172 r NULL 7.994e+00 1.885e+00 4.24 25.243 0.292 25.149 +OBS: 56236.188 i NULL 1.027e+01 2.792e+00 3.68 24.971 0.344 25.155 +OBS: 56236.207 z NULL 5.233e+00 3.192e+00 1.64 25.703 1.023 25.365 +OBS: 56237.176 g NULL 4.275e+00 3.444e+00 1.24 25.923 1.777 26.406 +OBS: 56237.188 r NULL 1.172e+01 2.267e+00 5.17 24.828 0.233 25.137 +OBS: 56237.207 i NULL 6.634e+00 2.866e+00 2.31 25.446 0.615 25.155 +OBS: 56237.238 z NULL 7.378e+00 3.870e+00 1.91 25.330 0.807 25.338 +OBS: 56238.188 g NULL -3.069e-01 2.975e+00 -0.10 128.000 0.000 26.448 +OBS: 56238.199 r NULL 8.294e+00 2.033e+00 4.08 25.203 0.305 25.136 +OBS: 56238.219 i NULL 1.069e+01 3.243e+00 3.30 24.928 0.392 25.164 +OBS: 56238.250 z NULL 7.372e+00 4.864e+00 1.52 25.331 1.170 25.332 +OBS: 56243.203 g NULL 1.174e+00 1.693e+00 0.69 27.326 100.674 26.612 +OBS: 56243.211 r NULL 8.430e+00 1.240e+00 6.80 25.185 0.173 25.193 +OBS: 56243.223 i NULL 1.032e+01 1.861e+00 5.54 24.966 0.215 25.277 +OBS: 56243.250 z NULL 7.213e+00 2.420e+00 2.98 25.355 0.444 25.420 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56244.180 g NULL 3.794e+00 1.788e+00 2.12 26.052 0.691 26.641 +OBS: 56244.188 r NULL 6.550e+00 1.384e+00 4.73 25.459 0.258 25.212 +OBS: 56244.203 i NULL 1.796e+00 1.990e+00 0.90 26.864 101.136 25.304 +OBS: 56244.223 z NULL 3.896e+00 2.232e+00 1.75 26.024 0.926 25.448 +OBS: 56245.191 g NULL -4.561e-01 4.789e+00 -0.10 128.000 0.000 26.680 +OBS: 56245.199 r NULL 1.035e+01 1.195e+00 8.66 24.962 0.132 25.230 +OBS: 56245.219 i NULL 8.219e+00 2.085e+00 3.94 25.213 0.317 25.332 +OBS: 56245.246 z NULL -9.776e-01 5.918e+00 -0.17 128.000 0.000 25.472 +OBS: 56246.234 g NULL -1.242e-01 2.003e+00 -0.06 128.000 0.000 26.725 +OBS: 56246.246 r NULL 5.110e+00 3.174e+00 1.61 25.729 1.055 25.249 +OBS: 56246.262 i NULL 4.529e+00 5.643e+00 0.80 25.860 102.140 25.360 +OBS: 56246.285 z NULL -1.190e+01 1.277e+01 -0.93 128.000 0.000 25.497 +OBS: 56248.207 g NULL 3.797e+00 1.756e+00 2.16 26.051 0.674 26.828 +OBS: 56248.215 r NULL 8.235e+00 1.338e+00 6.15 25.211 0.192 25.281 +OBS: 56248.230 i NULL 1.103e+01 2.218e+00 4.97 24.894 0.243 25.411 +OBS: 56248.250 z NULL 1.811e+00 3.030e+00 0.60 26.855 101.145 25.536 +OBS: 56258.242 g NULL -9.726e+00 8.083e+00 -1.20 128.000 0.000 27.498 +OBS: 56258.258 r NULL 5.424e+00 4.421e+00 1.23 25.664 1.832 25.474 +OBS: 56259.160 i NULL 9.033e+00 4.544e+00 1.99 25.110 0.759 25.654 +OBS: 56259.180 z NULL 2.077e+00 3.060e+00 0.68 26.707 101.293 25.647 +OBS: 56261.215 g NULL -3.923e+00 3.959e+00 -0.99 128.000 0.000 27.637 +OBS: 56261.230 r NULL 3.644e-01 1.856e+00 0.20 28.596 99.404 25.567 +OBS: 56267.156 i NULL 6.252e+00 2.215e+00 2.82 25.510 0.475 25.781 +OBS: 56267.180 z NULL 8.798e+00 3.054e+00 2.88 25.139 0.462 25.685 +OBS: 56274.160 g NULL 2.029e+00 2.034e+00 1.00 26.732 101.268 28.348 +OBS: 56274.176 r NULL 6.645e+00 1.452e+00 4.58 25.444 0.267 26.065 +OBS: 56275.223 i NULL 1.063e+00 3.009e+00 0.35 27.433 100.567 25.883 +OBS: 56276.191 z NULL 8.087e+00 3.405e+00 2.37 25.231 0.593 25.706 +OBS: 56282.160 g NULL 1.052e+00 3.403e+00 0.31 27.445 100.555 28.887 +OBS: 56282.184 r NULL 3.802e+00 2.180e+00 1.74 26.050 0.925 26.407 +OBS: 56287.160 i NULL 7.826e+00 4.988e+00 1.57 25.266 1.101 26.008 +OBS: 56287.191 z NULL 5.782e+00 3.896e+00 1.48 25.595 1.216 25.703 +OBS: 56289.035 g NULL -2.953e+00 1.189e+01 -0.25 128.000 0.000 29.391 +OBS: 56289.043 r NULL 4.515e+00 4.184e+00 1.08 25.863 2.834 26.712 +OBS: 56289.152 i NULL -4.195e+00 4.328e+00 -0.97 128.000 0.000 26.027 +OBS: 56289.176 z NULL 1.352e-01 4.464e+00 0.03 29.672 98.328 25.702 +OBS: 56297.039 g NULL -8.988e-01 1.580e+00 -0.57 128.000 0.000 30.094 +OBS: 56297.047 r NULL -1.076e-01 1.220e+00 -0.09 128.000 0.000 27.084 +OBS: 56297.062 i NULL 5.590e+00 1.866e+00 2.99 25.632 0.441 26.088 +OBS: 56297.090 z NULL 6.854e+00 2.124e+00 3.23 25.410 0.402 25.698 +OBS: 56305.094 g NULL 1.053e+00 1.644e+00 0.64 27.444 100.556 31.017 +OBS: 56305.102 r NULL 8.682e-01 1.301e+00 0.67 27.653 100.347 27.489 +OBS: 56305.113 i NULL 5.538e+00 2.194e+00 2.52 25.642 0.547 26.139 +OBS: 56306.043 z NULL 7.599e+00 2.715e+00 2.80 25.298 0.479 25.691 +OBS: 56313.047 g NULL -9.106e+00 5.963e+00 -1.53 128.000 0.000 32.282 +OBS: 56313.055 r NULL 4.126e+00 2.525e+00 1.63 25.961 1.027 27.953 +OBS: 56313.090 i NULL 4.414e+00 3.080e+00 1.43 25.888 1.299 26.178 +OBS: 56317.066 z NULL 5.294e+00 4.251e+00 1.25 25.691 1.764 25.682 +OBS: 56321.035 g NULL 4.196e-01 2.913e+00 0.14 28.443 99.557 34.158 +OBS: 56321.043 r NULL 5.717e-01 1.365e+00 0.42 28.107 99.893 28.546 +OBS: 56321.066 i NULL 2.305e+00 3.217e+00 0.72 26.593 101.407 26.211 +OBS: 56326.039 z NULL 9.339e-01 2.607e+00 0.36 27.574 100.426 25.680 +OBS: 56333.043 g NULL -1.250e+00 1.816e+00 -0.69 128.000 0.000 36.236 +OBS: 56333.051 r NULL -1.313e+00 1.383e+00 -0.95 128.000 0.000 29.201 +OBS: 56334.043 i NULL 9.185e-01 2.177e+00 0.42 27.592 100.408 26.258 +OBS: 56335.043 z NULL 6.220e+00 3.382e+00 1.84 25.516 0.852 25.693 +OBS: 56344.992 g NULL 7.386e-01 4.326e+00 0.17 27.829 100.171 36.972 +OBS: 56345.000 r NULL 1.269e+00 1.861e+00 0.68 27.241 100.759 29.464 +OBS: 56345.016 i NULL -7.406e-01 3.451e+00 -0.21 128.000 0.000 26.294 +OBS: 56345.992 z NULL 1.057e+01 3.704e+00 2.85 24.940 0.468 25.729 +OBS: 56349.996 g NULL -9.511e-02 3.963e+00 -0.02 128.000 0.000 37.277 +OBS: 56350.004 r NULL 1.631e+00 2.057e+00 0.79 26.969 101.031 29.564 +OBS: 56350.996 i NULL 2.890e+00 3.021e+00 0.96 26.348 101.652 26.310 +END: diff --git a/data/tests/DES_data/DES_SN388884.DAT b/data/tests/DES_data/DES_SN388884.DAT new file mode 100644 index 000000000..e8277a51a --- /dev/null +++ b/data/tests/DES_data/DES_SN388884.DAT @@ -0,0 +1,201 @@ +SURVEY: DES +SNID: 388884 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 52.500000 deg +DECL: -27.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0097 MW E(B-V) +REDSHIFT_HELIO: 0.88904 +- 0.02500 (Helio, z_best) +REDSHIFT_FINAL: 0.88904 +- 0.02500 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 14575 +HOST_GALAXY_PHOTO-Z: 0.8890 +- 0.0250 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 2 (non1a index) +SIM_COMMENT: SN Type = IIn , MODEL = NUGENT2n +SIM_LIBID: 0 +SIM_REDSHIFT: 0.9235 +SIM_HOSTLIB_TRUEZ: 0.9200 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 14575 +SIM_DLMU: 43.886856 mag [ -5*log10(10pc/dL) ] +SIM_RA: 52.500000 deg +SIM_DECL: -27.500000 deg +SIM_MWEBV: 0.0096 (MilkyWay E(B-V)) +SIM_PEAKMAG: 24.67 24.32 24.27 24.33 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56204.148438 days +SIM_SALT2x0: 2.788e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -14.53 days +SIM_TRESTMAX: 66.52 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56204.777 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 145 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56176.191 g NULL 1.175e+01 4.774e+00 2.46 24.825 0.566 25.249 +OBS: 56176.199 r NULL 5.983e+00 2.135e+00 2.80 25.558 0.480 25.327 +OBS: 56176.215 i NULL 5.458e+00 3.148e+00 1.73 25.657 0.934 25.498 +OBS: 56176.238 z NULL 5.269e+00 2.485e+00 2.12 25.696 0.693 25.701 +OBS: 56179.188 g NULL 1.567e+01 2.621e+00 5.98 24.512 0.199 24.402 +OBS: 56179.195 r NULL 1.311e+01 1.733e+00 7.56 24.706 0.155 24.457 +OBS: 56179.234 i NULL 1.543e+01 2.009e+00 7.68 24.529 0.151 24.618 +OBS: 56179.266 z NULL 1.236e+01 3.737e+00 3.31 24.770 0.391 24.817 +OBS: 56180.266 g NULL 2.483e+01 2.615e+00 9.50 24.013 0.120 24.308 +OBS: 56180.281 r NULL 1.768e+01 1.353e+00 13.07 24.382 0.087 24.344 +OBS: 56180.297 i NULL 2.184e+01 3.708e+00 5.89 24.152 0.201 24.496 +OBS: 56180.328 z NULL 1.385e+01 4.495e+00 3.08 24.646 0.426 24.688 +OBS: 56188.160 g NULL 2.018e+01 5.719e+00 3.53 24.238 0.362 24.266 +OBS: 56188.176 r NULL 2.677e+01 5.601e+00 4.78 23.931 0.254 24.125 +OBS: 56188.211 i NULL 1.838e+01 4.538e+00 4.05 24.339 0.308 24.191 +OBS: 56188.238 z NULL 2.209e+01 3.426e+00 6.45 24.139 0.182 24.326 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56189.254 g NULL 2.377e+01 2.357e+00 10.09 24.060 0.113 24.272 +OBS: 56189.270 r NULL 2.508e+01 3.312e+00 7.57 24.002 0.153 24.119 +OBS: 56189.281 i NULL 2.232e+01 9.060e+00 2.46 24.128 0.565 24.180 +OBS: 56189.312 z NULL 2.098e+01 2.992e+00 7.01 24.195 0.167 24.311 +OBS: 56194.258 g NULL 2.143e+01 2.693e+00 7.96 24.172 0.145 24.364 +OBS: 56194.270 r NULL 2.009e+01 1.547e+00 12.99 24.243 0.087 24.173 +OBS: 56194.285 i NULL 1.949e+01 2.328e+00 8.37 24.275 0.138 24.213 +OBS: 56194.305 z NULL 2.295e+01 2.424e+00 9.47 24.098 0.121 24.330 +OBS: 56202.160 g NULL 2.195e+01 4.817e+00 4.56 24.147 0.268 24.584 +OBS: 56202.176 r NULL 2.232e+01 2.366e+00 9.43 24.128 0.121 24.276 +OBS: 56202.191 i NULL 1.840e+01 4.180e+00 4.40 24.338 0.280 24.252 +OBS: 56202.215 z NULL 2.058e+01 2.740e+00 7.51 24.216 0.155 24.323 +OBS: 56210.172 g NULL 1.172e+01 3.707e+00 3.16 24.828 0.413 24.898 +OBS: 56210.188 r NULL 1.711e+01 3.235e+00 5.29 24.417 0.228 24.436 +OBS: 56210.203 i NULL 1.767e+01 3.229e+00 5.47 24.382 0.219 24.340 +OBS: 56210.234 z NULL 1.952e+01 3.864e+00 5.05 24.274 0.239 24.363 +OBS: 56218.172 g NULL 1.145e+01 1.291e+00 8.87 24.853 0.129 25.112 +OBS: 56218.191 r NULL 1.623e+01 1.015e+00 15.99 24.474 0.070 24.577 +OBS: 56218.211 i NULL 1.605e+01 1.537e+00 10.44 24.486 0.109 24.449 +OBS: 56219.156 z NULL 1.839e+01 1.965e+00 9.36 24.338 0.122 24.466 +OBS: 56221.273 g NULL 6.633e+00 3.924e+00 1.69 25.446 0.973 25.172 +OBS: 56221.281 r NULL 1.661e+01 5.595e+00 2.97 24.449 0.446 24.633 +OBS: 56221.297 i NULL 1.717e+01 4.498e+00 3.82 24.413 0.330 24.502 +OBS: 56221.324 z NULL 1.990e+01 1.440e+01 1.38 24.253 1.395 24.503 +OBS: 56222.074 g NULL 3.880e+00 5.915e+00 0.66 26.028 101.972 25.185 +OBS: 56222.090 r NULL 1.469e+01 2.645e+00 5.56 24.582 0.215 24.648 +OBS: 56222.113 i NULL 1.682e+01 3.341e+00 5.03 24.436 0.240 24.517 +OBS: 56222.133 z NULL 2.514e+01 5.078e+00 4.95 23.999 0.244 24.518 +OBS: 56228.059 g NULL 1.404e-01 7.697e+00 0.02 29.631 98.369 25.260 +OBS: 56228.066 r NULL 1.120e+01 2.404e+00 4.66 24.877 0.263 24.763 +OBS: 56228.086 i NULL 1.347e+01 5.117e+00 2.63 24.676 0.519 24.642 +OBS: 56228.109 z NULL 1.407e+01 4.143e+00 3.40 24.629 0.379 24.647 +OBS: 56229.047 g NULL -1.050e+01 2.392e+01 -0.44 128.000 0.000 25.289 +OBS: 56229.059 r NULL 1.011e+01 3.858e+00 2.62 24.988 0.522 24.786 +OBS: 56229.074 i NULL 1.660e+01 5.435e+00 3.05 24.450 0.430 24.662 +OBS: 56229.102 z NULL 1.673e+01 4.859e+00 3.44 24.441 0.372 24.665 +OBS: 56230.059 g NULL 9.993e+00 6.577e+00 1.52 25.001 1.165 25.318 +OBS: 56230.102 r NULL 6.396e+00 2.922e+00 2.19 25.485 0.664 24.811 +OBS: 56230.113 i NULL 1.840e+01 5.188e+00 3.55 24.338 0.359 24.683 +OBS: 56230.145 z NULL 1.757e+01 2.686e+00 6.54 24.388 0.179 24.684 +OBS: 56231.043 g NULL 4.857e+00 6.049e+00 0.80 25.784 102.216 25.348 +OBS: 56231.059 r NULL 1.145e+01 2.563e+00 4.47 24.853 0.275 24.834 +OBS: 56231.070 i NULL 9.071e+00 4.246e+00 2.14 25.106 0.686 24.704 +OBS: 56231.102 z NULL 1.569e+01 3.292e+00 4.77 24.511 0.255 24.702 +OBS: 56235.039 g NULL 7.741e+00 5.192e+00 1.49 25.278 1.206 25.477 +OBS: 56235.047 r NULL 1.113e+01 3.715e+00 2.99 24.884 0.441 24.938 +OBS: 56235.062 i NULL 9.785e+00 4.198e+00 2.33 25.024 0.609 24.794 +OBS: 56235.090 z NULL 2.698e+01 8.248e+00 3.27 23.923 0.395 24.782 +OBS: 56236.047 g NULL 6.467e+00 4.881e+00 1.32 25.473 1.526 25.512 +OBS: 56236.062 r NULL 1.564e+01 2.679e+00 5.84 24.515 0.203 24.967 +OBS: 56236.074 i NULL 1.899e+01 5.236e+00 3.63 24.304 0.350 24.819 +OBS: 56236.105 z NULL 1.238e+01 5.325e+00 2.33 24.768 0.610 24.804 +OBS: 56237.039 g NULL 8.381e+00 3.174e+00 2.64 25.192 0.516 25.547 +OBS: 56237.051 r NULL 7.865e+00 2.220e+00 3.54 25.261 0.361 24.995 +OBS: 56237.094 i NULL 1.663e+01 2.513e+00 6.62 24.448 0.177 24.844 +OBS: 56237.125 z NULL 4.695e+00 3.697e+00 1.27 25.821 1.687 24.827 +OBS: 56238.074 g NULL 6.292e+00 2.532e+00 2.48 25.503 0.559 25.586 +OBS: 56238.094 r NULL 8.078e+00 1.600e+00 5.05 25.232 0.240 25.026 +OBS: 56238.109 i NULL 1.281e+01 2.735e+00 4.68 24.731 0.261 24.871 +OBS: 56238.129 z NULL 1.020e+01 3.113e+00 3.28 24.979 0.396 24.850 +OBS: 56243.098 g NULL 2.641e+00 2.176e+00 1.21 26.446 1.888 25.793 +OBS: 56243.109 r NULL 8.775e+00 1.666e+00 5.27 25.142 0.228 25.192 +OBS: 56243.125 i NULL 9.222e+00 2.572e+00 3.59 25.088 0.355 25.013 +OBS: 56243.152 z NULL 1.409e+01 2.564e+00 5.49 24.628 0.218 24.975 +OBS: 56244.082 g NULL 7.921e+00 2.202e+00 3.60 25.253 0.353 25.839 +OBS: 56244.098 r NULL 8.137e+00 1.645e+00 4.95 25.224 0.245 25.228 +OBS: 56244.109 i NULL 1.295e+01 2.602e+00 4.98 24.719 0.243 25.044 +OBS: 56244.133 z NULL 1.098e+01 2.990e+00 3.67 24.899 0.345 25.002 +OBS: 56245.070 g NULL 8.263e+00 1.733e+00 4.77 25.207 0.255 25.887 +OBS: 56245.082 r NULL 5.915e+00 1.361e+00 4.34 25.570 0.285 25.266 +OBS: 56245.109 i NULL 1.100e+01 3.220e+00 3.42 24.897 0.376 25.076 +OBS: 56245.137 z NULL 7.323e+00 2.841e+00 2.58 25.338 0.534 25.030 +OBS: 56246.117 g NULL -1.626e+00 6.569e+00 -0.25 128.000 0.000 25.940 +OBS: 56246.125 r NULL 1.098e+01 2.822e+00 3.89 24.899 0.322 25.307 +OBS: 56246.152 i NULL 6.043e+00 1.966e+00 3.07 25.547 0.428 25.111 +OBS: 56246.180 z NULL 8.256e+00 1.941e+00 4.25 25.208 0.291 25.061 +OBS: 56247.281 g NULL 4.248e+00 1.500e+00 2.83 25.929 0.473 26.002 +OBS: 56247.297 r NULL 6.109e+00 1.143e+00 5.35 25.535 0.225 25.356 +OBS: 56247.316 i NULL 4.819e+00 1.979e+00 2.44 25.792 0.576 25.152 +OBS: 56247.340 z NULL 8.759e+00 2.496e+00 3.51 25.144 0.364 25.096 +OBS: 56248.324 g NULL 3.898e+00 1.710e+00 2.28 26.023 0.627 26.060 +OBS: 56248.340 r NULL 5.527e+00 1.343e+00 4.11 25.644 0.303 25.402 +OBS: 56258.035 i NULL 1.020e+01 9.887e+00 1.03 24.978 3.771 25.608 +OBS: 56258.066 z NULL 9.735e+00 3.972e+00 2.45 25.029 0.569 25.481 +OBS: 56258.215 g NULL 7.257e+00 4.950e+00 1.47 25.348 1.243 26.776 +OBS: 56258.227 r NULL 5.766e+00 2.385e+00 2.42 25.598 0.579 25.925 +OBS: 56261.098 g NULL 1.150e+00 8.829e+00 0.13 27.348 100.652 26.975 +OBS: 56261.102 r NULL 3.368e+00 3.397e+00 0.99 26.182 101.818 26.063 +OBS: 56261.125 i NULL 2.095e+00 3.855e+00 0.54 26.697 101.303 25.727 +OBS: 56261.156 z NULL 1.117e+01 3.094e+00 3.61 24.880 0.352 25.581 +OBS: 56273.160 g NULL 1.237e+00 1.754e+00 0.71 27.269 100.730 27.888 +OBS: 56273.176 r NULL 2.127e+00 1.215e+00 1.75 26.681 0.920 26.686 +OBS: 56273.188 i NULL 3.096e+00 2.025e+00 1.53 26.273 1.153 26.225 +OBS: 56273.219 z NULL 3.133e+00 2.252e+00 1.39 26.260 1.378 25.997 +OBS: 56281.160 g NULL -2.882e-02 2.074e+00 -0.01 128.000 0.000 28.296 +OBS: 56281.184 r NULL 2.070e+00 1.275e+00 1.62 26.710 1.038 27.083 +OBS: 56281.203 i NULL 2.435e+00 1.800e+00 1.35 26.534 1.459 26.567 +OBS: 56281.227 z NULL -3.370e-01 2.291e+00 -0.15 128.000 0.000 26.288 +OBS: 56288.086 g NULL -6.505e-01 4.849e+00 -0.13 128.000 0.000 29.237 +OBS: 56288.094 r NULL 2.719e+00 2.114e+00 1.29 26.414 1.631 27.585 +OBS: 56288.109 i NULL 2.746e-02 3.059e+00 0.01 31.403 96.597 26.927 +OBS: 56288.141 z NULL 3.262e+00 2.585e+00 1.26 26.216 1.707 26.571 +OBS: 56289.227 g NULL -1.419e+01 6.496e+00 -2.18 128.000 0.000 29.461 +OBS: 56289.242 r NULL 6.175e+00 2.704e+00 2.28 25.523 0.625 27.679 +OBS: 56289.258 i NULL 5.894e+00 5.086e+00 1.16 25.574 2.155 26.990 +OBS: 56292.035 z NULL 3.441e+00 2.063e+00 1.67 26.158 0.993 26.736 +OBS: 56292.141 g NULL -1.442e+00 3.053e+00 -0.47 128.000 0.000 30.175 +OBS: 56292.156 r NULL -3.865e+00 1.736e+00 -2.23 128.000 0.000 27.931 +OBS: 56292.172 i NULL 5.145e+00 2.655e+00 1.94 25.721 0.787 27.154 +OBS: 56303.039 g NULL -5.390e-01 1.371e+00 -0.39 128.000 0.000 35.492 +OBS: 56303.051 r NULL -6.846e-02 8.997e-01 -0.08 128.000 0.000 29.021 +OBS: 56303.070 i NULL 6.291e-01 1.413e+00 0.45 28.003 99.997 27.763 +OBS: 56303.094 z NULL -6.001e-02 2.209e+00 -0.03 128.000 0.000 27.197 +OBS: 56311.043 g NULL -1.431e+00 2.670e+00 -0.54 128.000 0.000 37.602 +OBS: 56311.055 r NULL 1.012e+00 1.496e+00 0.68 27.487 100.513 29.455 +OBS: 56311.074 i NULL 2.755e+00 2.389e+00 1.15 26.400 2.190 28.057 +OBS: 56311.098 z NULL -2.089e-01 2.434e+00 -0.09 128.000 0.000 27.454 +OBS: 56317.125 g NULL 1.961e+00 4.216e+00 0.47 26.769 101.231 33.032 +OBS: 56317.141 r NULL 3.153e-01 1.860e+00 0.17 28.753 99.247 29.090 +OBS: 56318.109 i NULL 3.225e+00 2.781e+00 1.16 26.229 2.151 28.039 +OBS: 56318.141 z NULL 4.692e-01 2.975e+00 0.16 28.322 99.678 27.550 +OBS: 56321.090 g NULL 5.772e-01 6.627e+00 0.09 28.097 99.903 30.565 +OBS: 56321.098 r NULL 1.051e+00 2.887e+00 0.36 27.446 100.554 28.683 +OBS: 56321.109 i NULL -1.730e+00 3.401e+00 -0.51 128.000 0.000 27.947 +OBS: 56321.141 z NULL -3.021e-01 2.957e+00 -0.10 128.000 0.000 27.543 +OBS: 56332.039 g NULL 2.019e+00 1.459e+00 1.38 26.737 1.392 30.168 +OBS: 56332.051 r NULL 9.111e-01 9.741e-01 0.94 27.601 100.399 28.780 +OBS: 56332.070 i NULL 2.276e-01 1.581e+00 0.14 29.107 98.893 28.167 +OBS: 56332.094 z NULL 1.370e+00 2.577e+00 0.53 27.158 100.842 27.818 +END: diff --git a/data/tests/DES_data/DES_SN391963.DAT b/data/tests/DES_data/DES_SN391963.DAT new file mode 100644 index 000000000..1a0dbe730 --- /dev/null +++ b/data/tests/DES_data/DES_SN391963.DAT @@ -0,0 +1,217 @@ +SURVEY: DES +SNID: 391963 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 52.500000 deg +DECL: -27.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0097 MW E(B-V) +REDSHIFT_HELIO: 0.82874 +- 0.01870 (Helio, z_best) +REDSHIFT_FINAL: 0.82874 +- 0.01870 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 18184 +HOST_GALAXY_PHOTO-Z: 0.8287 +- 0.0187 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 29 (non1a index) +SIM_COMMENT: SN Type = Ic , MODEL = SDSS-017548 +SIM_LIBID: 0 +SIM_REDSHIFT: 0.8118 +SIM_HOSTLIB_TRUEZ: 0.8100 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 18184 +SIM_DLMU: 43.541824 mag [ -5*log10(10pc/dL) ] +SIM_RA: 52.500000 deg +SIM_DECL: -27.500000 deg +SIM_MWEBV: 0.0084 (MilkyWay E(B-V)) +SIM_PEAKMAG: 98.96 25.68 24.94 25.30 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56234.695312 days +SIM_SALT2x0: 3.831e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -32.29 days +SIM_TRESTMAX: 64.25 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56234.262 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 161 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56176.191 g NULL -3.092e+00 4.764e+00 -0.65 99.000 5.000 98.958 +OBS: 56176.199 r NULL 7.936e-01 2.129e+00 0.37 99.000 5.000 98.973 +OBS: 56176.215 i NULL 2.814e+00 3.146e+00 0.89 99.000 5.000 99.005 +OBS: 56176.238 z NULL -1.491e+00 2.483e+00 -0.60 99.000 5.000 98.996 +OBS: 56179.188 g NULL 1.998e+00 2.584e+00 0.77 99.000 5.000 98.958 +OBS: 56179.195 r NULL -1.764e+00 1.709e+00 -1.03 99.000 5.000 98.973 +OBS: 56179.234 i NULL 3.004e+00 1.984e+00 1.51 99.000 5.000 99.005 +OBS: 56179.266 z NULL 3.790e+00 3.730e+00 1.02 99.000 5.000 98.996 +OBS: 56180.266 g NULL -8.165e-01 2.550e+00 -0.32 99.000 5.000 98.958 +OBS: 56180.281 r NULL 1.834e+00 1.301e+00 1.41 99.000 5.000 98.973 +OBS: 56180.297 i NULL -2.846e+00 3.683e+00 -0.77 99.000 5.000 99.005 +OBS: 56180.328 z NULL -4.470e+00 4.487e+00 -1.00 99.000 5.000 98.996 +OBS: 56188.160 g NULL 5.401e+00 5.684e+00 0.95 99.000 5.000 98.958 +OBS: 56188.176 r NULL -1.081e+01 5.573e+00 -1.94 128.000 0.000 29.476 +OBS: 56188.211 i NULL -2.559e+00 4.519e+00 -0.57 128.000 0.000 29.711 +OBS: 56188.238 z NULL 5.252e-01 3.399e+00 0.15 28.199 99.801 30.010 +OBS: 56189.254 g NULL 3.347e-01 2.284e+00 0.15 99.000 5.000 98.958 +OBS: 56189.270 r NULL -1.873e+00 3.268e+00 -0.57 128.000 0.000 29.326 +OBS: 56189.281 i NULL -4.746e+00 9.046e+00 -0.52 128.000 0.000 29.576 +OBS: 56189.312 z NULL 2.301e+00 2.964e+00 0.78 26.595 101.405 29.862 +OBS: 56194.258 g NULL 6.541e-01 2.636e+00 0.25 99.000 5.000 98.958 +OBS: 56194.270 r NULL -1.080e+00 1.486e+00 -0.73 128.000 0.000 28.547 +OBS: 56194.285 i NULL 1.457e+00 2.291e+00 0.64 27.091 100.909 28.836 +OBS: 56194.305 z NULL 4.238e+00 2.385e+00 1.78 25.932 0.898 29.191 +OBS: 56202.160 g NULL -3.829e+00 4.791e+00 -0.80 99.000 5.000 98.958 +OBS: 56202.176 r NULL -6.030e-01 2.323e+00 -0.26 128.000 0.000 27.121 +OBS: 56202.191 i NULL 5.486e+00 4.164e+00 1.32 25.652 1.544 27.369 +OBS: 56202.215 z NULL -1.242e+00 2.711e+00 -0.46 128.000 0.000 28.053 +OBS: 56210.172 g NULL 3.707e+00 3.691e+00 1.00 99.000 5.000 98.958 +OBS: 56210.188 r NULL 4.484e+00 3.217e+00 1.39 25.871 1.372 26.094 +OBS: 56210.203 i NULL -5.914e-01 3.209e+00 -0.18 128.000 0.000 26.170 +OBS: 56210.234 z NULL 7.077e-01 3.845e+00 0.18 27.875 100.125 26.908 +OBS: 56218.172 g NULL -3.904e-02 1.249e+00 -0.03 99.000 5.000 98.958 +OBS: 56218.191 r NULL 5.908e+00 9.674e-01 6.11 25.571 0.194 25.567 +OBS: 56218.211 i NULL 8.693e+00 1.511e+00 5.75 25.152 0.207 25.338 +OBS: 56219.156 z NULL 6.804e+00 1.937e+00 3.51 25.418 0.363 25.859 +OBS: 56221.273 g NULL 3.110e+00 3.910e+00 0.80 99.000 5.000 98.958 +OBS: 56221.281 r NULL 7.302e+00 5.585e+00 1.31 25.341 1.571 25.498 +OBS: 56221.297 i NULL 1.380e+01 4.492e+00 3.07 24.650 0.427 25.138 +OBS: 56221.324 z NULL 4.455e+00 1.439e+01 0.31 25.878 102.122 25.700 +OBS: 56222.074 g NULL 2.888e+00 5.908e+00 0.49 99.000 5.000 98.958 +OBS: 56222.090 r NULL 8.587e+00 2.633e+00 3.26 25.165 0.397 25.488 +OBS: 56222.113 i NULL 8.576e+00 3.329e+00 2.58 25.167 0.533 25.095 +OBS: 56222.133 z NULL 8.983e+00 5.058e+00 1.78 25.116 0.899 25.649 +OBS: 56228.059 g NULL -2.000e+00 7.693e+00 -0.26 99.000 5.000 98.958 +OBS: 56228.066 r NULL 2.928e+00 2.393e+00 1.22 26.334 1.850 25.513 +OBS: 56228.086 i NULL 1.110e+01 5.114e+00 2.17 24.887 0.671 24.914 +OBS: 56228.109 z NULL 1.986e+00 4.134e+00 0.48 26.755 101.245 25.385 +OBS: 56229.047 g NULL 3.712e+01 2.392e+01 1.55 99.000 5.000 98.958 +OBS: 56229.059 r NULL 3.531e+00 3.852e+00 0.92 26.130 101.870 25.532 +OBS: 56229.074 i NULL 4.179e+00 5.426e+00 0.77 25.947 102.053 24.907 +OBS: 56229.102 z NULL 8.699e+00 4.851e+00 1.79 25.151 0.885 25.361 +OBS: 56230.059 g NULL 3.016e-01 6.570e+00 0.05 99.000 5.000 98.958 +OBS: 56230.102 r NULL 2.086e+00 2.918e+00 0.72 26.702 101.298 25.554 +OBS: 56230.113 i NULL 2.003e+01 5.190e+00 3.86 24.246 0.325 24.905 +OBS: 56230.145 z NULL 7.299e+00 2.669e+00 2.74 25.342 0.494 25.339 +OBS: 56231.043 g NULL 2.074e+00 6.044e+00 0.34 99.000 5.000 98.958 +OBS: 56231.059 r NULL 6.363e+00 2.555e+00 2.49 25.491 0.557 25.576 +OBS: 56231.070 i NULL 1.780e+01 4.255e+00 4.18 24.374 0.296 24.906 +OBS: 56231.102 z NULL 3.748e+00 3.279e+00 1.14 26.065 2.261 25.324 +OBS: 56235.039 g NULL -9.738e-01 5.184e+00 -0.19 99.000 5.000 98.958 +OBS: 56235.047 r NULL 2.132e+00 3.707e+00 0.57 26.678 101.322 25.687 +OBS: 56235.062 i NULL 8.069e+00 4.196e+00 1.92 25.233 0.798 24.948 +OBS: 56235.090 z NULL 2.604e+01 8.246e+00 3.16 23.961 0.413 25.295 +OBS: 56236.047 g NULL -5.705e+00 4.873e+00 -1.17 99.000 5.000 98.958 +OBS: 56236.062 r NULL 3.880e+00 2.663e+00 1.46 26.028 1.259 25.718 +OBS: 56236.074 i NULL 1.389e+01 5.230e+00 2.66 24.643 0.512 24.965 +OBS: 56236.105 z NULL 3.992e+00 5.320e+00 0.75 25.997 102.003 25.297 +OBS: 56237.039 g NULL 4.355e+00 3.165e+00 1.38 99.000 5.000 98.958 +OBS: 56237.051 r NULL 9.111e+00 2.220e+00 4.10 25.101 0.303 25.749 +OBS: 56237.094 i NULL 1.200e+01 2.504e+00 4.79 24.802 0.254 24.984 +OBS: 56237.125 z NULL 3.809e+00 3.696e+00 1.03 26.048 3.840 25.298 +OBS: 56238.074 g NULL 1.820e+00 2.522e+00 0.72 99.000 5.000 98.958 +OBS: 56238.094 r NULL 2.694e+00 1.591e+00 1.69 26.424 0.971 25.784 +OBS: 56238.109 i NULL 8.314e+00 2.729e+00 3.05 25.201 0.432 25.006 +OBS: 56238.129 z NULL 9.305e+00 3.111e+00 2.99 25.078 0.442 25.301 +OBS: 56243.098 g NULL -3.222e+00 2.168e+00 -1.49 99.000 5.000 98.958 +OBS: 56243.109 r NULL 3.235e+00 1.657e+00 1.95 26.225 0.780 25.968 +OBS: 56243.125 i NULL 6.097e+00 2.569e+00 2.37 25.537 0.595 25.136 +OBS: 56243.152 z NULL 7.165e+00 2.554e+00 2.81 25.362 0.479 25.339 +OBS: 56244.082 g NULL 3.540e+00 2.191e+00 1.62 99.000 5.000 98.958 +OBS: 56244.098 r NULL 2.958e+00 1.637e+00 1.81 26.323 0.876 26.006 +OBS: 56244.109 i NULL 8.461e+00 2.595e+00 3.26 25.181 0.398 25.165 +OBS: 56244.133 z NULL 1.167e+01 2.990e+00 3.90 24.832 0.321 25.352 +OBS: 56245.070 g NULL -7.590e-01 1.718e+00 -0.44 99.000 5.000 98.958 +OBS: 56245.082 r NULL 3.539e+00 1.356e+00 2.61 26.128 0.525 26.044 +OBS: 56245.109 i NULL 1.039e+01 3.219e+00 3.23 24.959 0.402 25.193 +OBS: 56245.137 z NULL 7.092e+00 2.840e+00 2.50 25.373 0.555 25.371 +OBS: 56246.117 g NULL 1.219e+01 6.565e+00 1.86 99.000 5.000 98.958 +OBS: 56246.125 r NULL 6.288e+00 2.814e+00 2.23 25.504 0.644 26.085 +OBS: 56246.152 i NULL 1.126e+01 1.973e+00 5.71 24.871 0.209 25.224 +OBS: 56246.180 z NULL 6.348e+00 1.938e+00 3.28 25.493 0.396 25.392 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56247.281 g NULL -8.848e-01 1.489e+00 -0.59 99.000 5.000 98.958 +OBS: 56247.297 r NULL 3.282e+00 1.136e+00 2.89 26.210 0.461 26.131 +OBS: 56247.316 i NULL 5.010e+00 1.979e+00 2.53 25.751 0.547 25.259 +OBS: 56247.340 z NULL 5.721e+00 2.492e+00 2.30 25.606 0.621 25.418 +OBS: 56248.324 g NULL -1.428e+00 1.702e+00 -0.84 99.000 5.000 98.958 +OBS: 56248.340 r NULL 4.034e+00 1.339e+00 3.01 25.986 0.438 26.173 +OBS: 56258.035 i NULL -9.519e+00 9.887e+00 -0.96 128.000 0.000 25.714 +OBS: 56258.066 z NULL 2.464e+00 3.968e+00 0.62 26.521 101.479 25.592 +OBS: 56258.215 g NULL -2.667e+00 4.947e+00 -0.54 99.000 5.000 98.958 +OBS: 56258.227 r NULL 2.409e+00 2.382e+00 1.01 26.545 4.884 26.649 +OBS: 56261.098 g NULL -7.504e-01 8.827e+00 -0.09 99.000 5.000 98.958 +OBS: 56261.102 r NULL 2.259e+00 3.395e+00 0.67 26.615 101.385 26.788 +OBS: 56261.125 i NULL 5.097e+00 3.856e+00 1.32 25.732 1.533 25.860 +OBS: 56261.156 z NULL 4.672e+00 3.088e+00 1.51 25.826 1.175 25.624 +OBS: 56273.160 g NULL 9.757e-01 1.752e+00 0.56 99.000 5.000 98.958 +OBS: 56273.176 r NULL 8.932e-01 1.214e+00 0.74 27.623 100.377 27.363 +OBS: 56273.188 i NULL 4.700e+00 2.026e+00 2.32 25.820 0.612 26.298 +OBS: 56273.219 z NULL 5.232e+00 2.253e+00 2.32 25.703 0.611 25.843 +OBS: 56281.160 g NULL 1.013e+00 2.074e+00 0.49 99.000 5.000 98.958 +OBS: 56281.184 r NULL 2.950e+00 1.275e+00 2.31 26.325 0.614 27.695 +OBS: 56281.203 i NULL 1.381e+00 1.800e+00 0.77 27.150 100.850 26.504 +OBS: 56281.227 z NULL 1.128e+00 2.291e+00 0.49 27.369 100.631 26.110 +OBS: 56288.086 g NULL -2.646e+00 4.849e+00 -0.55 99.000 5.000 98.958 +OBS: 56288.094 r NULL -3.568e+00 2.115e+00 -1.69 128.000 0.000 27.992 +OBS: 56288.109 i NULL 1.521e+00 3.059e+00 0.50 27.044 100.956 26.745 +OBS: 56288.141 z NULL 6.355e+00 2.587e+00 2.46 25.492 0.567 26.281 +OBS: 56289.227 g NULL 3.311e+00 6.491e+00 0.51 99.000 5.000 98.958 +OBS: 56289.242 r NULL -5.183e+00 2.703e+00 -1.92 128.000 0.000 28.042 +OBS: 56289.258 i NULL 8.844e+00 5.087e+00 1.74 25.133 0.929 26.789 +OBS: 56292.035 z NULL 3.482e+00 2.063e+00 1.69 26.146 0.974 26.337 +OBS: 56292.141 g NULL 2.304e+00 3.053e+00 0.75 99.000 5.000 98.958 +OBS: 56292.156 r NULL 1.249e+00 1.735e+00 0.72 27.259 100.741 28.163 +OBS: 56292.172 i NULL 2.374e+00 2.654e+00 0.89 26.561 101.439 26.894 +OBS: 56303.039 g NULL 2.015e+00 1.371e+00 1.47 99.000 5.000 98.958 +OBS: 56303.051 r NULL -4.731e-01 8.998e-01 -0.53 128.000 0.000 28.625 +OBS: 56303.070 i NULL 4.128e+00 1.415e+00 2.92 25.961 0.455 27.252 +OBS: 56303.094 z NULL 5.768e+00 2.211e+00 2.61 25.597 0.524 26.617 +OBS: 56311.043 g NULL 4.680e+00 2.671e+00 1.75 99.000 5.000 98.958 +OBS: 56311.055 r NULL 2.364e+00 1.497e+00 1.58 26.566 1.088 28.950 +OBS: 56311.074 i NULL -9.019e-01 2.388e+00 -0.38 128.000 0.000 27.506 +OBS: 56311.098 z NULL 4.768e-01 2.434e+00 0.20 28.304 99.696 26.810 +OBS: 56317.125 g NULL -3.630e+00 4.217e+00 -0.86 99.000 5.000 98.958 +OBS: 56317.141 r NULL 1.348e+00 1.860e+00 0.72 27.176 100.824 29.197 +OBS: 56318.109 i NULL -1.002e+00 2.781e+00 -0.36 128.000 0.000 27.740 +OBS: 56318.141 z NULL 2.401e+00 2.975e+00 0.81 26.549 101.451 26.963 +OBS: 56321.090 g NULL 4.778e+00 6.628e+00 0.72 99.000 5.000 98.958 +OBS: 56321.098 r NULL 2.392e+00 2.887e+00 0.83 26.553 101.447 29.348 +OBS: 56321.109 i NULL 4.587e-01 3.401e+00 0.13 28.346 99.654 27.826 +OBS: 56321.141 z NULL 6.777e+00 2.960e+00 2.29 25.422 0.622 27.040 +OBS: 56332.039 g NULL 1.212e+00 1.459e+00 0.83 99.000 5.000 98.958 +OBS: 56332.051 r NULL 8.655e-01 9.740e-01 0.89 27.657 100.343 29.724 +OBS: 56332.070 i NULL -7.136e-01 1.581e+00 -0.45 128.000 0.000 28.083 +OBS: 56332.094 z NULL 1.024e+00 2.577e+00 0.40 27.474 100.526 27.375 +OBS: 56340.043 g NULL -6.331e+00 2.751e+00 -2.30 99.000 5.000 98.958 +OBS: 56340.055 r NULL -5.776e-01 1.647e+00 -0.35 128.000 0.000 29.988 +OBS: 56340.074 i NULL 1.166e+00 2.720e+00 0.43 27.333 100.667 28.280 +OBS: 56340.098 z NULL 2.630e+00 2.981e+00 0.88 26.450 101.550 27.604 +OBS: 56348.055 g NULL -2.516e+00 3.249e+00 -0.77 99.000 5.000 98.958 +OBS: 56348.070 r NULL -1.363e-01 2.099e+00 -0.06 128.000 0.000 30.300 +OBS: 56349.004 i NULL 8.823e-02 2.352e+00 0.04 30.136 97.864 28.591 +OBS: 56349.027 z NULL 3.706e+00 2.427e+00 1.53 26.078 1.155 27.759 +OBS: 56350.043 g NULL -6.093e+00 3.837e+00 -1.59 99.000 5.000 98.958 +OBS: 56350.055 r NULL 1.709e+00 1.814e+00 0.94 26.918 101.082 30.386 +OBS: 56350.070 i NULL 3.884e+00 3.160e+00 1.23 26.027 1.822 28.637 +OBS: 56350.098 z NULL 1.912e+00 4.859e+00 0.39 26.796 101.204 27.769 +OBS: 56351.043 g NULL -3.906e+00 3.351e+00 -1.17 99.000 5.000 98.958 +OBS: 56351.055 r NULL -5.662e-01 1.761e+00 -0.32 128.000 0.000 30.428 +OBS: 56351.070 i NULL -9.842e-01 3.058e+00 -0.32 128.000 0.000 28.683 +OBS: 56351.098 z NULL 8.155e+00 4.783e+00 1.71 25.221 0.958 27.778 +END: diff --git a/data/tests/DES_data/DES_SN415553.DAT b/data/tests/DES_data/DES_SN415553.DAT new file mode 100644 index 000000000..45903335b --- /dev/null +++ b/data/tests/DES_data/DES_SN415553.DAT @@ -0,0 +1,133 @@ +SURVEY: DES +SNID: 415553 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 0.500000 deg +DECL: -43.000000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0111 MW E(B-V) +REDSHIFT_HELIO: 0.45165 +- 0.02100 (Helio, z_best) +REDSHIFT_FINAL: 0.45165 +- 0.02100 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 10785 +HOST_GALAXY_PHOTO-Z: 0.4516 +- 0.0210 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 36 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-018457 +SIM_LIBID: 4 +SIM_REDSHIFT: 0.4758 +SIM_HOSTLIB_TRUEZ: 0.4800 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 10785 +SIM_DLMU: 42.132423 mag [ -5*log10(10pc/dL) ] +SIM_RA: 0.500000 deg +SIM_DECL: -43.000000 deg +SIM_MWEBV: 0.0097 (MilkyWay E(B-V)) +SIM_PEAKMAG: 24.53 23.97 23.96 23.89 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56248.222656 days +SIM_SALT2x0: 1.403e-17 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -36.73 days +SIM_TRESTMAX: 47.30 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56248.730 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 77 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56194.012 g NULL -1.426e+00 6.199e+00 -0.23 99.000 5.000 99.006 +OBS: 56194.016 r NULL 4.831e+00 3.585e+00 1.35 99.000 5.000 98.968 +OBS: 56194.023 i NULL -2.891e+00 6.147e+00 -0.47 99.000 5.000 99.008 +OBS: 56194.031 z NULL -1.674e+00 1.508e+01 -0.11 99.000 5.000 99.094 +OBS: 56198.992 g NULL -1.671e+01 1.869e+01 -0.89 99.000 5.000 99.006 +OBS: 56199.000 r NULL 1.640e+01 9.053e+00 1.81 99.000 5.000 98.968 +OBS: 56199.008 i NULL -6.629e+00 1.181e+01 -0.56 99.000 5.000 99.008 +OBS: 56199.016 z NULL 9.682e+00 7.697e+00 1.26 99.000 5.000 99.094 +OBS: 56199.039 g NULL -2.903e+00 3.349e+01 -0.09 99.000 5.000 99.006 +OBS: 56208.215 g NULL 5.032e-01 2.660e+00 0.19 28.246 99.754 27.346 +OBS: 56208.223 r NULL -7.595e-01 1.766e+00 -0.43 128.000 0.000 27.424 +OBS: 56208.238 i NULL 1.358e+00 2.957e+00 0.46 27.168 100.832 26.253 +OBS: 56209.160 z NULL -4.829e+00 3.244e+00 -1.49 128.000 0.000 26.138 +OBS: 56216.215 g NULL 8.785e+00 2.481e+00 3.54 25.141 0.359 26.354 +OBS: 56216.223 r NULL 3.611e+00 1.885e+00 1.92 26.106 0.801 26.646 +OBS: 56216.230 i NULL 5.632e+00 3.019e+00 1.87 25.623 0.833 25.964 +OBS: 56218.152 z NULL 5.518e+00 2.675e+00 2.06 25.646 0.720 25.731 +OBS: 56221.004 g NULL 8.232e+00 5.236e+00 1.57 25.211 1.097 25.830 +OBS: 56221.016 r NULL 4.232e+00 3.581e+00 1.18 25.934 2.034 25.746 +OBS: 56221.027 i NULL 5.386e+00 5.473e+00 0.98 25.672 102.328 25.545 +OBS: 56221.035 z NULL 5.083e+00 5.405e+00 0.94 25.735 102.265 25.492 +OBS: 56222.016 g NULL -4.620e+00 6.250e+00 -0.74 128.000 0.000 25.722 +OBS: 56222.027 r NULL 1.519e+00 3.622e+00 0.42 27.046 100.954 25.570 +OBS: 56222.035 i NULL 2.266e+00 4.924e+00 0.46 26.612 101.388 25.434 +OBS: 56228.012 z NULL 8.680e+00 5.549e+00 1.56 25.154 1.108 24.823 +OBS: 56229.012 g NULL 2.485e+01 9.838e+00 2.53 24.011 0.546 25.117 +OBS: 56229.016 r NULL 1.670e+01 4.338e+00 3.85 24.443 0.326 24.680 +OBS: 56229.023 i NULL 2.834e+01 7.831e+00 3.62 23.869 0.350 24.665 +OBS: 56230.012 z NULL 1.598e+01 4.926e+00 3.24 24.491 0.400 24.654 +OBS: 56231.012 g NULL 1.851e+01 6.940e+00 2.67 24.331 0.509 24.982 +OBS: 56231.020 r NULL 1.881e+01 2.820e+00 6.67 24.314 0.176 24.514 +OBS: 56231.027 i NULL 1.905e+01 4.095e+00 4.65 24.300 0.262 24.492 +OBS: 56235.020 z NULL 8.863e+00 5.695e+00 1.56 25.131 1.120 24.292 +OBS: 56236.027 g NULL 1.023e+01 5.209e+00 1.96 24.976 0.773 24.711 +OBS: 56236.035 r NULL 1.668e+01 5.406e+00 3.09 24.444 0.426 24.217 +OBS: 56236.039 i NULL 3.647e+01 7.658e+00 4.76 23.595 0.255 24.165 +OBS: 56237.023 z NULL 1.696e+01 5.137e+00 3.30 24.426 0.392 24.182 +OBS: 56238.023 g NULL 1.444e+01 3.661e+00 3.95 24.601 0.317 24.636 +OBS: 56238.031 r NULL 2.465e+01 2.842e+00 8.67 24.020 0.133 24.139 +OBS: 56238.039 i NULL 2.405e+01 4.841e+00 4.97 24.047 0.244 24.083 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56243.070 z NULL 2.392e+01 5.367e+00 4.46 24.053 0.276 23.961 +OBS: 56244.047 g NULL 1.492e+01 4.228e+00 3.53 24.566 0.362 24.523 +OBS: 56244.055 r NULL 2.716e+01 2.890e+00 9.40 23.915 0.122 24.002 +OBS: 56244.070 i NULL 2.886e+01 4.452e+00 6.48 23.849 0.182 23.960 +OBS: 56245.027 z NULL 2.900e+01 3.587e+00 8.08 23.844 0.143 23.921 +OBS: 56246.082 g NULL 1.921e+01 2.909e+00 6.60 24.291 0.178 24.519 +OBS: 56246.098 r NULL 2.831e+01 2.546e+00 11.12 23.870 0.102 23.983 +OBS: 56246.109 i NULL 2.780e+01 5.473e+00 5.08 23.890 0.238 23.952 +OBS: 56247.250 z NULL 3.009e+01 6.322e+00 4.76 23.804 0.256 23.894 +OBS: 56254.199 g NULL 2.162e+01 6.164e+00 3.51 24.163 0.364 24.631 +OBS: 56254.211 r NULL 2.625e+01 3.427e+00 7.66 23.952 0.152 24.002 +OBS: 56254.227 i NULL 1.664e+01 6.227e+00 2.67 24.447 0.510 24.001 +OBS: 56258.191 z NULL 2.211e+01 5.880e+00 3.76 24.139 0.336 23.923 +OBS: 56261.066 g NULL 1.314e+01 6.944e+00 1.89 24.703 0.816 24.835 +OBS: 56261.082 r NULL 2.084e+01 4.101e+00 5.08 24.203 0.238 24.118 +OBS: 56261.090 i NULL 3.381e+01 8.249e+00 4.10 23.678 0.303 24.098 +OBS: 56266.156 z NULL 2.731e+01 5.310e+00 5.14 23.909 0.235 24.060 +OBS: 56276.152 g NULL 3.307e+00 4.052e+00 0.82 26.201 101.799 25.519 +OBS: 56276.172 r NULL 1.512e+01 2.910e+00 5.20 24.551 0.232 24.529 +OBS: 56277.164 i NULL 1.610e+01 3.563e+00 4.52 24.483 0.272 24.483 +OBS: 56278.164 z NULL 1.811e+01 4.301e+00 4.21 24.355 0.294 24.358 +OBS: 56288.035 g NULL 3.907e+01 1.452e+01 2.69 23.521 0.504 26.322 +OBS: 56288.043 r NULL 8.301e+00 5.407e+00 1.54 25.202 1.144 24.947 +OBS: 56288.051 i NULL 2.010e+01 5.994e+00 3.35 24.242 0.384 24.778 +OBS: 56288.066 z NULL 1.668e+01 6.743e+00 2.47 24.444 0.562 24.662 +OBS: 56292.109 g NULL 6.810e+00 7.766e+00 0.88 25.417 102.583 26.691 +OBS: 56292.125 r NULL 2.251e+00 3.876e+00 0.58 26.619 101.381 25.109 +OBS: 56296.039 i NULL 8.363e+00 3.483e+00 2.40 25.194 0.585 24.962 +OBS: 56296.051 z NULL 7.468e+00 4.465e+00 1.67 25.317 0.990 24.943 +OBS: 56305.043 g NULL 2.635e+00 2.872e+00 0.92 26.448 101.552 30.466 +OBS: 56305.051 r NULL 8.146e+00 2.184e+00 3.73 25.223 0.338 25.734 +OBS: 56305.055 i NULL 1.075e+01 3.058e+00 3.51 24.922 0.363 25.144 +OBS: 56305.070 z NULL 8.664e+00 3.668e+00 2.36 25.156 0.598 25.294 +OBS: 56317.035 g NULL -4.976e+00 1.479e+01 -0.34 128.000 0.000 34.464 +OBS: 56317.043 r NULL -9.047e+00 6.187e+00 -1.46 128.000 0.000 26.325 +OBS: 56317.051 i NULL 1.360e+01 6.918e+00 1.97 24.666 0.771 25.482 +OBS: 56318.035 z NULL 6.047e+00 1.346e+01 0.45 25.546 102.454 25.769 +END: diff --git a/data/tests/DES_data/DES_SN418218.DAT b/data/tests/DES_data/DES_SN418218.DAT new file mode 100644 index 000000000..b28205c50 --- /dev/null +++ b/data/tests/DES_data/DES_SN418218.DAT @@ -0,0 +1,191 @@ +SURVEY: DES +SNID: 418218 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 34.500000 deg +DECL: -5.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0227 MW E(B-V) +REDSHIFT_HELIO: 0.63977 +- 0.02360 (Helio, z_best) +REDSHIFT_FINAL: 0.63977 +- 0.02360 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 18884 +HOST_GALAXY_PHOTO-Z: 0.6398 +- 0.0236 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 27 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-015339 +SIM_LIBID: 1 +SIM_REDSHIFT: 0.6496 +SIM_HOSTLIB_TRUEZ: 0.6500 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 18884 +SIM_DLMU: 42.948627 mag [ -5*log10(10pc/dL) ] +SIM_RA: 34.500000 deg +SIM_DECL: -5.500000 deg +SIM_MWEBV: 0.0260 (MilkyWay E(B-V)) +SIM_PEAKMAG: 24.77 23.95 24.11 24.07 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56237.222656 days +SIM_SALT2x0: 6.615e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -36.40 days +SIM_TRESTMAX: 68.97 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56237.395 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 135 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56177.172 g NULL -3.684e+00 4.787e+00 -0.77 99.000 5.000 99.001 +OBS: 56177.188 r NULL 4.268e+00 5.335e+00 0.80 99.000 5.000 99.099 +OBS: 56177.203 i NULL 7.147e+00 5.437e+00 1.31 99.000 5.000 99.005 +OBS: 56177.234 z NULL -1.936e+00 4.691e+00 -0.41 99.000 5.000 98.971 +OBS: 56179.172 g NULL -6.192e-01 2.238e+00 -0.28 99.000 5.000 99.001 +OBS: 56179.312 r NULL 5.571e-01 3.029e+00 0.18 99.000 5.000 99.099 +OBS: 56179.328 i NULL 5.184e+00 4.200e+00 1.23 99.000 5.000 99.005 +OBS: 56179.359 z NULL 3.730e+00 3.518e+00 1.06 99.000 5.000 98.971 +OBS: 56187.156 g NULL 1.002e+00 1.702e+00 0.59 99.000 5.000 99.001 +OBS: 56187.172 r NULL -2.412e+00 1.252e+00 -1.93 99.000 5.000 99.099 +OBS: 56187.188 i NULL -2.459e-01 1.897e+00 -0.13 99.000 5.000 99.005 +OBS: 56187.211 z NULL 2.002e+00 2.176e+00 0.92 99.000 5.000 98.971 +OBS: 56189.148 g NULL -1.832e-01 9.760e+00 -0.02 128.000 0.000 58.363 +OBS: 56189.160 r NULL -5.351e-01 3.876e+00 -0.14 128.000 0.000 60.090 +OBS: 56189.176 i NULL -1.165e+01 8.073e+00 -1.44 128.000 0.000 60.403 +OBS: 56189.203 z NULL -5.645e+00 4.693e+00 -1.20 128.000 0.000 49.062 +OBS: 56194.121 g NULL 4.498e-01 3.771e+00 0.12 28.367 99.633 54.057 +OBS: 56194.129 r NULL -2.099e+00 2.349e+00 -0.89 128.000 0.000 56.239 +OBS: 56200.156 i NULL -1.964e+00 8.065e+00 -0.24 128.000 0.000 48.919 +OBS: 56200.180 z NULL 1.926e-01 5.635e+00 0.03 29.289 98.711 38.585 +OBS: 56207.156 g NULL 2.294e+00 2.280e+00 1.01 26.599 5.530 36.949 +OBS: 56207.172 r NULL 2.173e+00 1.604e+00 1.36 26.657 1.453 39.230 +OBS: 56209.191 i NULL -4.284e-01 2.139e+00 -0.20 128.000 0.000 38.940 +OBS: 56209.215 z NULL 1.306e+00 2.200e+00 0.59 27.210 100.790 32.867 +OBS: 56215.164 g NULL 1.834e+00 1.599e+00 1.15 26.841 2.228 27.023 +OBS: 56215.180 r NULL 2.185e+00 1.097e+00 1.99 26.651 0.756 28.839 +OBS: 56217.152 i NULL 1.145e+00 1.396e+00 0.82 27.353 100.647 28.040 +OBS: 56217.191 z NULL 2.238e+00 1.817e+00 1.23 26.625 1.816 26.286 +OBS: 56221.062 g NULL 1.789e+00 4.495e+00 0.40 26.869 101.131 25.148 +OBS: 56221.074 r NULL 1.291e+01 3.593e+00 3.59 24.722 0.354 24.742 +OBS: 56221.195 i NULL 1.497e+01 1.346e+01 1.11 24.562 2.490 25.678 +OBS: 56221.227 z NULL 1.065e+01 4.019e+00 2.65 24.931 0.514 25.200 +OBS: 56222.047 g NULL 5.426e+00 6.428e+00 0.84 25.664 102.336 24.987 +OBS: 56222.062 r NULL 1.457e+01 3.142e+00 4.64 24.591 0.264 24.496 +OBS: 56222.191 i NULL 1.186e+01 9.795e+00 1.21 24.815 1.898 25.390 +OBS: 56222.211 z NULL 1.474e+01 4.843e+00 3.04 24.579 0.432 25.031 +OBS: 56228.031 g NULL -2.756e+01 2.613e+01 -1.05 128.000 0.000 24.528 +OBS: 56228.047 r NULL 4.977e+01 1.168e+01 4.26 23.258 0.290 23.922 +OBS: 56228.156 i NULL 1.401e+01 5.187e+00 2.70 24.634 0.502 24.487 +OBS: 56228.188 z NULL 1.573e+01 2.860e+00 5.50 24.508 0.218 24.393 +OBS: 56229.031 g NULL 4.010e+01 3.076e+01 1.30 23.492 1.581 24.521 +OBS: 56229.156 r NULL 2.484e+01 3.632e+00 6.84 24.012 0.172 23.901 +OBS: 56229.172 i NULL 6.700e+00 7.056e+00 0.95 25.435 102.565 24.404 +OBS: 56229.199 z NULL 1.840e+01 2.947e+00 6.24 24.338 0.190 24.330 +OBS: 56230.035 g NULL 2.158e+01 9.329e+00 2.31 24.165 0.614 24.521 +OBS: 56230.043 r NULL 3.775e+01 3.933e+00 9.60 23.558 0.119 23.888 +OBS: 56230.191 i NULL 1.273e+01 6.324e+00 2.01 24.738 0.746 24.332 +OBS: 56230.215 z NULL 1.549e+01 2.938e+00 5.27 24.525 0.229 24.274 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56231.035 g NULL 2.229e+01 7.712e+00 2.89 24.130 0.461 24.534 +OBS: 56231.156 r NULL 2.782e+01 2.713e+00 10.26 23.889 0.111 23.882 +OBS: 56231.172 i NULL 1.733e+01 4.804e+00 3.61 24.403 0.353 24.277 +OBS: 56231.191 z NULL 2.285e+01 3.049e+00 7.49 24.103 0.155 24.230 +OBS: 56235.145 g NULL 6.362e+00 3.801e+00 1.67 25.491 0.991 24.668 +OBS: 56235.160 r NULL 2.806e+01 1.845e+00 15.21 23.880 0.074 23.913 +OBS: 56235.172 i NULL 2.536e+01 3.240e+00 7.83 23.990 0.148 24.140 +OBS: 56235.195 z NULL 2.036e+01 2.963e+00 6.87 24.228 0.171 24.108 +OBS: 56236.160 g NULL 1.411e+01 2.039e+00 6.92 24.626 0.169 24.715 +OBS: 56236.172 r NULL 2.456e+01 1.942e+00 12.65 24.025 0.090 23.928 +OBS: 56236.188 i NULL 2.210e+01 2.819e+00 7.84 24.139 0.148 24.121 +OBS: 56236.207 z NULL 2.706e+01 3.232e+00 8.37 23.919 0.138 24.086 +OBS: 56237.176 g NULL 1.053e+01 3.464e+00 3.04 24.944 0.433 24.765 +OBS: 56237.188 r NULL 2.905e+01 2.331e+00 12.47 23.842 0.090 23.946 +OBS: 56237.207 i NULL 2.530e+01 2.906e+00 8.71 23.992 0.132 24.109 +OBS: 56237.238 z NULL 2.641e+01 3.901e+00 6.77 23.946 0.173 24.066 +OBS: 56238.188 g NULL 1.259e+01 3.000e+00 4.20 24.750 0.295 24.817 +OBS: 56238.199 r NULL 2.693e+01 2.097e+00 12.85 23.924 0.088 23.965 +OBS: 56238.219 i NULL 3.103e+01 3.292e+00 9.43 23.770 0.121 24.100 +OBS: 56238.250 z NULL 2.205e+01 4.881e+00 4.52 24.142 0.272 24.049 +OBS: 56243.203 g NULL 1.034e+01 1.717e+00 6.02 24.963 0.197 25.102 +OBS: 56243.211 r NULL 2.316e+01 1.313e+00 17.64 24.088 0.063 24.102 +OBS: 56243.223 i NULL 2.167e+01 1.901e+00 11.40 24.160 0.100 24.113 +OBS: 56243.250 z NULL 2.410e+01 2.460e+00 9.79 24.045 0.117 23.990 +OBS: 56244.180 g NULL 1.084e+01 1.811e+00 5.99 24.913 0.198 25.160 +OBS: 56244.188 r NULL 1.988e+01 1.436e+00 13.84 24.254 0.082 24.136 +OBS: 56244.203 i NULL 2.308e+01 2.040e+00 11.31 24.092 0.100 24.124 +OBS: 56244.223 z NULL 2.246e+01 2.273e+00 9.88 24.121 0.116 23.982 +OBS: 56245.191 g NULL 1.704e+01 4.811e+00 3.54 24.421 0.359 25.223 +OBS: 56245.199 r NULL 2.119e+01 1.253e+00 16.91 24.185 0.066 24.174 +OBS: 56245.219 i NULL 2.097e+01 2.121e+00 9.89 24.196 0.116 24.136 +OBS: 56245.246 z NULL 2.192e+01 5.935e+00 3.69 24.148 0.343 23.975 +OBS: 56246.234 g NULL 7.417e+00 2.018e+00 3.67 25.324 0.345 25.292 +OBS: 56246.246 r NULL 2.540e+01 3.216e+00 7.90 23.988 0.146 24.215 +OBS: 56246.262 i NULL 1.996e+01 5.660e+00 3.53 24.250 0.362 24.151 +OBS: 56246.285 z NULL 1.170e+01 1.277e+01 0.92 24.829 103.171 23.969 +OBS: 56248.207 g NULL 7.967e+00 1.770e+00 4.50 25.247 0.273 25.425 +OBS: 56248.215 r NULL 1.748e+01 1.376e+00 12.70 24.394 0.090 24.297 +OBS: 56248.230 i NULL 1.872e+01 2.241e+00 8.35 24.319 0.139 24.183 +OBS: 56248.250 z NULL 2.845e+01 3.078e+00 9.24 23.865 0.124 23.963 +OBS: 56258.242 g NULL -1.219e+01 8.085e+00 -1.51 128.000 0.000 26.225 +OBS: 56258.258 r NULL 8.297e+00 4.423e+00 1.88 25.203 0.828 24.715 +OBS: 56259.160 i NULL 1.295e+01 4.549e+00 2.85 24.719 0.471 24.358 +OBS: 56259.180 z NULL 2.283e+01 3.091e+00 7.39 24.104 0.158 24.017 +OBS: 56261.215 g NULL -1.239e+00 3.960e+00 -0.31 128.000 0.000 26.521 +OBS: 56261.230 r NULL 1.209e+01 1.871e+00 6.46 24.794 0.182 24.845 +OBS: 56267.156 i NULL 1.468e+01 2.233e+00 6.58 24.583 0.179 24.531 +OBS: 56267.180 z NULL 2.350e+01 3.083e+00 7.63 24.072 0.153 24.110 +OBS: 56274.160 g NULL 1.039e+00 2.034e+00 0.51 27.459 100.541 27.810 +OBS: 56274.176 r NULL 4.882e+00 1.451e+00 3.37 25.779 0.383 25.504 +OBS: 56275.223 i NULL 1.191e+01 3.019e+00 3.95 24.810 0.317 24.741 +OBS: 56276.191 z NULL 2.316e+01 3.431e+00 6.75 24.088 0.174 24.244 +OBS: 56282.160 g NULL 8.807e+00 3.407e+00 2.58 25.138 0.530 28.677 +OBS: 56282.184 r NULL 3.633e+00 2.181e+00 1.67 26.099 0.996 25.965 +OBS: 56287.160 i NULL -2.408e+00 4.987e+00 -0.48 128.000 0.000 25.103 +OBS: 56287.191 z NULL 8.700e+00 3.899e+00 2.23 25.151 0.647 24.444 +OBS: 56289.035 g NULL 2.190e+00 1.189e+01 0.18 26.649 101.351 29.557 +OBS: 56289.043 r NULL 6.511e+00 4.185e+00 1.56 25.466 1.117 26.388 +OBS: 56289.152 i NULL 6.867e+00 4.330e+00 1.59 25.408 1.082 25.174 +OBS: 56289.176 z NULL 1.598e+01 4.475e+00 3.57 24.491 0.357 24.485 +OBS: 56297.039 g NULL 8.802e-02 1.580e+00 0.06 30.139 97.861 30.729 +OBS: 56297.047 r NULL 4.119e+00 1.222e+00 3.37 25.963 0.382 26.920 +OBS: 56297.062 i NULL 6.991e+00 1.869e+00 3.74 25.389 0.338 25.420 +OBS: 56297.090 z NULL 1.247e+01 2.134e+00 5.84 24.761 0.204 24.659 +OBS: 56305.094 g NULL -4.681e-01 1.644e+00 -0.28 128.000 0.000 32.209 +OBS: 56305.102 r NULL 2.626e+00 1.302e+00 2.02 26.452 0.743 27.620 +OBS: 56305.113 i NULL 6.189e+00 2.195e+00 2.82 25.521 0.475 25.641 +OBS: 56306.043 z NULL 1.105e+01 2.719e+00 4.06 24.891 0.307 24.879 +OBS: 56313.047 g NULL -8.292e+00 5.962e+00 -1.39 128.000 0.000 36.180 +OBS: 56313.055 r NULL 3.925e+00 2.525e+00 1.55 26.015 1.118 28.607 +OBS: 56313.090 i NULL 7.643e+00 3.083e+00 2.48 25.292 0.560 25.862 +OBS: 56317.066 z NULL 9.598e+00 4.253e+00 2.26 25.045 0.635 25.183 +OBS: 56321.035 g NULL -3.069e-01 2.913e+00 -0.11 128.000 0.000 43.098 +OBS: 56321.043 r NULL 2.768e+00 1.366e+00 2.03 26.395 0.738 29.513 +OBS: 56321.066 i NULL 7.568e+00 3.220e+00 2.35 25.303 0.601 26.121 +OBS: 56326.039 z NULL 6.083e+00 2.609e+00 2.33 25.540 0.608 25.448 +OBS: 56333.043 g NULL 1.535e+00 1.816e+00 0.85 27.035 100.965 42.620 +OBS: 56333.051 r NULL 7.651e-02 1.383e+00 0.06 30.291 97.709 30.455 +OBS: 56334.043 i NULL 6.712e+00 2.180e+00 3.08 25.433 0.426 26.661 +OBS: 56335.043 z NULL 8.207e+00 3.384e+00 2.43 25.215 0.577 25.749 +OBS: 56344.992 g NULL -6.096e+00 4.328e+00 -1.41 128.000 0.000 43.267 +OBS: 56345.000 r NULL -2.111e+00 1.861e+00 -1.13 128.000 0.000 30.965 +OBS: 56345.016 i NULL 7.605e+00 3.453e+00 2.20 25.297 0.656 27.194 +OBS: 56345.992 z NULL 4.855e+00 3.700e+00 1.31 25.784 1.558 26.150 +OBS: 56349.996 g NULL 1.125e+01 3.969e+00 2.84 24.872 0.471 43.790 +OBS: 56350.004 r NULL 2.158e+00 2.057e+00 1.05 26.665 3.318 31.192 +OBS: 56350.996 i NULL 2.209e+00 3.020e+00 0.73 26.639 101.361 27.515 +END: diff --git a/data/tests/DES_data/DES_SN435590.DAT b/data/tests/DES_data/DES_SN435590.DAT new file mode 100644 index 000000000..3e6e4ed95 --- /dev/null +++ b/data/tests/DES_data/DES_SN435590.DAT @@ -0,0 +1,163 @@ +SURVEY: DES +SNID: 435590 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: 22 +FILTERS: griz +RA: 34.500000 deg +DECL: -5.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0227 MW E(B-V) +REDSHIFT_HELIO: 0.28555 +- 0.00500 (Helio, z_best) +REDSHIFT_FINAL: 0.28555 +- 0.00500 (CMB) +REDSHIFT_SPEC: 0.28555 +- 0.00500 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 13850 +HOST_GALAXY_PHOTO-Z: 0.3004 +- 0.0257 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 19 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-013376 +SIM_LIBID: 1 +SIM_REDSHIFT: 0.2853 +SIM_HOSTLIB_TRUEZ: 0.2900 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 13850 +SIM_DLMU: 40.829681 mag [ -5*log10(10pc/dL) ] +SIM_RA: 34.500000 deg +SIM_DECL: -5.500000 deg +SIM_MWEBV: 0.0245 (MilkyWay E(B-V)) +SIM_PEAKMAG: 23.11 23.30 23.18 23.56 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56269.703125 days +SIM_SALT2x0: 4.657e-17 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -37.84 days +SIM_TRESTMAX: 63.25 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56271.402 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 107 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56221.062 g NULL 3.798e+00 4.489e+00 0.85 99.000 5.000 99.032 +OBS: 56221.074 r NULL -4.542e+00 3.582e+00 -1.27 99.000 5.000 99.029 +OBS: 56221.195 i NULL -2.877e+00 1.345e+01 -0.21 99.000 5.000 98.925 +OBS: 56221.227 z NULL -4.984e+00 4.014e+00 -1.24 99.000 5.000 99.045 +OBS: 56222.047 g NULL 1.522e+00 6.419e+00 0.24 99.000 5.000 99.032 +OBS: 56222.062 r NULL -3.056e-01 3.125e+00 -0.10 99.000 5.000 99.029 +OBS: 56222.191 i NULL -9.253e+00 9.792e+00 -0.94 99.000 5.000 98.925 +OBS: 56222.211 z NULL -5.402e+00 4.836e+00 -1.12 99.000 5.000 99.045 +OBS: 56228.031 g NULL 1.162e+01 2.612e+01 0.44 99.000 5.000 99.032 +OBS: 56228.047 r NULL 4.306e+00 1.164e+01 0.37 99.000 5.000 99.029 +OBS: 56228.156 i NULL 3.957e+00 5.179e+00 0.76 99.000 5.000 98.925 +OBS: 56228.188 z NULL -1.129e+00 2.842e+00 -0.40 99.000 5.000 99.045 +OBS: 56229.031 g NULL 4.487e+01 3.076e+01 1.46 99.000 5.000 99.032 +OBS: 56229.156 r NULL 2.697e+00 3.595e+00 0.75 99.000 5.000 99.029 +OBS: 56229.172 i NULL -1.700e+01 7.060e+00 -2.41 99.000 5.000 98.925 +OBS: 56229.199 z NULL 2.957e+00 2.926e+00 1.01 99.000 5.000 99.045 +OBS: 56230.035 g NULL 2.454e+00 9.315e+00 0.26 99.000 5.000 99.032 +OBS: 56230.043 r NULL 1.975e+00 3.864e+00 0.51 99.000 5.000 99.029 +OBS: 56230.191 i NULL 4.269e+00 6.318e+00 0.68 99.000 5.000 98.925 +OBS: 56230.215 z NULL 5.241e-01 2.921e+00 0.18 99.000 5.000 99.045 +OBS: 56231.035 g NULL 2.572e+00 7.695e+00 0.33 99.000 5.000 99.032 +OBS: 56231.156 r NULL -1.280e+00 2.654e+00 -0.48 99.000 5.000 99.029 +OBS: 56231.172 i NULL -6.805e+00 4.792e+00 -1.42 99.000 5.000 98.925 +OBS: 56231.191 z NULL 1.717e-01 3.017e+00 0.06 99.000 5.000 99.045 +OBS: 56235.145 g NULL -2.053e+00 3.787e+00 -0.54 128.000 0.000 48.559 +OBS: 56235.160 r NULL 1.280e+00 1.757e+00 0.73 27.232 100.768 49.334 +OBS: 56235.172 i NULL 2.466e+00 3.200e+00 0.77 26.520 101.480 50.427 +OBS: 56235.195 z NULL 1.402e+00 2.936e+00 0.48 27.133 100.867 47.286 +OBS: 56236.160 g NULL -2.705e-01 2.000e+00 -0.14 128.000 0.000 48.328 +OBS: 56236.172 r NULL -1.402e+00 1.875e+00 -0.75 128.000 0.000 48.898 +OBS: 56236.188 i NULL -1.098e+00 2.783e+00 -0.39 128.000 0.000 49.808 +OBS: 56236.207 z NULL 4.106e-01 3.190e+00 0.13 28.466 99.534 47.147 +OBS: 56237.176 g NULL -2.702e+00 3.439e+00 -0.79 128.000 0.000 48.137 +OBS: 56237.188 r NULL 4.357e+00 2.253e+00 1.93 25.902 0.790 48.523 +OBS: 56237.207 i NULL 6.010e+00 2.863e+00 2.10 25.553 0.702 49.277 +OBS: 56237.238 z NULL 2.380e+00 3.867e+00 0.62 26.559 101.441 47.019 +OBS: 56238.188 g NULL -2.438e-01 2.970e+00 -0.08 128.000 0.000 47.971 +OBS: 56238.199 r NULL 2.138e+00 2.023e+00 1.06 26.675 3.173 48.195 +OBS: 56238.219 i NULL 2.119e+00 3.235e+00 0.65 26.685 101.315 48.791 +OBS: 56238.250 z NULL 4.278e+00 4.862e+00 0.88 25.922 102.078 46.902 +OBS: 56243.203 g NULL 2.303e+00 1.689e+00 1.36 26.594 1.434 47.400 +OBS: 56243.211 r NULL 1.123e-02 1.223e+00 0.01 32.374 95.626 47.103 +OBS: 56243.223 i NULL -1.995e+00 1.849e+00 -1.08 128.000 0.000 47.253 +OBS: 56243.250 z NULL -8.715e-01 2.416e+00 -0.36 128.000 0.000 46.454 +OBS: 56244.180 g NULL 2.938e-01 1.782e+00 0.16 28.830 99.170 47.317 +OBS: 56244.188 r NULL 3.231e-01 1.373e+00 0.24 28.727 99.273 46.956 +OBS: 56244.203 i NULL 7.093e-01 1.987e+00 0.36 27.873 100.127 47.075 +OBS: 56244.223 z NULL -8.854e-01 2.230e+00 -0.40 128.000 0.000 46.384 +OBS: 56245.191 g NULL -4.182e+00 4.785e+00 -0.87 128.000 0.000 47.234 +OBS: 56245.199 r NULL 5.085e-01 1.174e+00 0.43 28.234 99.766 46.815 +OBS: 56245.219 i NULL -8.851e-01 2.076e+00 -0.43 128.000 0.000 46.920 +OBS: 56245.246 z NULL 2.159e+00 5.917e+00 0.36 26.664 101.336 46.315 +OBS: 56246.234 g NULL -7.140e-01 1.999e+00 -0.36 128.000 0.000 47.149 +OBS: 56246.246 r NULL 1.262e+00 3.167e+00 0.40 27.247 100.753 46.677 +OBS: 56246.262 i NULL -1.265e+00 5.640e+00 -0.22 128.000 0.000 46.792 +OBS: 56246.285 z NULL 9.604e-01 1.277e+01 0.08 27.544 100.456 46.247 +OBS: 56248.207 g NULL -1.137e+00 1.752e+00 -0.65 128.000 0.000 39.206 +OBS: 56248.215 r NULL 2.118e-01 1.325e+00 0.16 29.185 98.815 39.581 +OBS: 56248.230 i NULL -2.857e+00 2.207e+00 -1.29 128.000 0.000 40.093 +OBS: 56248.250 z NULL 3.183e+00 3.030e+00 1.05 26.243 3.291 39.703 +OBS: 56258.242 g NULL 6.651e+00 8.083e+00 0.82 25.443 102.557 26.042 +OBS: 56258.258 r NULL -2.750e+00 4.419e+00 -0.62 128.000 0.000 27.569 +OBS: 56259.160 i NULL 1.163e+00 4.540e+00 0.26 27.336 100.664 27.489 +OBS: 56259.180 z NULL 6.357e+00 3.061e+00 2.08 25.492 0.713 26.767 +OBS: 56261.215 g NULL 1.915e+01 3.989e+00 4.80 24.295 0.254 24.212 +OBS: 56261.230 r NULL 4.488e+00 1.857e+00 2.42 25.870 0.580 25.672 +OBS: 56267.156 i NULL 4.704e+01 2.391e+00 19.67 23.319 0.056 23.445 +OBS: 56267.180 z NULL 3.559e+01 3.123e+00 11.39 23.622 0.099 23.727 +OBS: 56274.160 g NULL 5.597e+01 2.366e+00 23.66 23.130 0.047 23.140 +OBS: 56274.176 r NULL 4.820e+01 1.724e+00 27.96 23.292 0.039 23.299 +OBS: 56275.223 i NULL 5.535e+01 3.191e+00 17.35 23.142 0.064 23.207 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56276.191 z NULL 3.916e+01 3.482e+00 11.25 23.518 0.101 23.520 +OBS: 56282.160 g NULL 4.484e+01 3.551e+00 12.63 23.371 0.090 23.330 +OBS: 56282.184 r NULL 3.335e+01 2.280e+00 14.63 23.692 0.078 23.560 +OBS: 56287.160 i NULL 4.140e+01 5.052e+00 8.20 23.457 0.142 23.274 +OBS: 56287.191 z NULL 4.354e+01 3.981e+00 10.94 23.403 0.104 23.444 +OBS: 56289.035 g NULL 3.180e+01 1.192e+01 2.67 23.744 0.510 23.567 +OBS: 56289.043 r NULL 3.525e+01 4.241e+00 8.31 23.632 0.139 23.680 +OBS: 56289.152 i NULL 4.767e+01 4.425e+00 10.77 23.304 0.106 23.281 +OBS: 56289.176 z NULL 3.647e+01 4.518e+00 8.07 23.595 0.144 23.440 +OBS: 56297.039 g NULL 2.565e+01 1.705e+00 15.05 23.977 0.075 23.956 +OBS: 56297.047 r NULL 3.349e+01 1.389e+00 24.11 23.688 0.046 23.740 +OBS: 56297.062 i NULL 4.572e+01 2.065e+00 22.14 23.350 0.050 23.313 +OBS: 56297.090 z NULL 4.083e+01 2.257e+00 18.09 23.472 0.062 23.438 +OBS: 56305.094 g NULL 1.945e+01 1.718e+00 11.33 24.278 0.100 24.387 +OBS: 56305.102 r NULL 3.145e+01 1.444e+00 21.78 23.756 0.051 23.759 +OBS: 56305.113 i NULL 4.824e+01 2.382e+00 20.25 23.291 0.055 23.347 +OBS: 56306.043 z NULL 4.518e+01 2.842e+00 15.89 23.363 0.070 23.444 +OBS: 56313.047 g NULL 1.820e+01 5.977e+00 3.05 24.350 0.432 24.837 +OBS: 56313.055 r NULL 3.128e+01 2.600e+00 12.03 23.762 0.094 23.761 +OBS: 56313.090 i NULL 4.831e+01 3.217e+00 15.02 23.290 0.074 23.387 +OBS: 56317.066 z NULL 4.147e+01 4.321e+00 9.60 23.456 0.119 23.462 +OBS: 56321.035 g NULL 4.346e+00 2.923e+00 1.49 25.905 1.214 25.318 +OBS: 56321.043 r NULL 3.369e+01 1.519e+00 22.18 23.681 0.050 23.754 +OBS: 56321.066 i NULL 4.537e+01 3.339e+00 13.59 23.358 0.083 23.438 +OBS: 56326.039 z NULL 3.914e+01 2.711e+00 14.44 23.519 0.078 23.487 +OBS: 56333.043 g NULL 2.396e+00 1.822e+00 1.31 26.551 1.554 26.216 +OBS: 56333.051 r NULL 3.045e+01 1.513e+00 20.13 23.791 0.056 23.728 +OBS: 56334.043 i NULL 4.006e+01 2.313e+00 17.32 23.493 0.064 23.537 +OBS: 56335.043 z NULL 4.041e+01 3.466e+00 11.66 23.484 0.097 23.522 +OBS: 56344.992 g NULL 6.687e-02 4.328e+00 0.02 30.437 97.563 26.856 +OBS: 56345.000 r NULL 3.562e+01 1.989e+00 17.91 23.621 0.062 23.728 +OBS: 56345.016 i NULL 3.758e+01 3.528e+00 10.65 23.563 0.107 23.612 +OBS: 56345.992 z NULL 4.399e+01 3.791e+00 11.60 23.392 0.097 23.575 +OBS: 56349.996 g NULL 1.535e+00 3.965e+00 0.39 27.034 100.966 26.969 +OBS: 56350.004 r NULL 3.324e+01 2.161e+00 15.38 23.696 0.073 23.743 +OBS: 56350.996 i NULL 3.625e+01 3.103e+00 11.68 23.602 0.097 23.658 +END: diff --git a/data/tests/DES_data/DES_SN453970.DAT b/data/tests/DES_data/DES_SN453970.DAT new file mode 100644 index 000000000..230c4725e --- /dev/null +++ b/data/tests/DES_data/DES_SN453970.DAT @@ -0,0 +1,193 @@ +SURVEY: DES +SNID: 453970 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 52.500000 deg +DECL: -27.500000 deg +MAGTYPE: LOG10 +MAGREF: +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0097 MW E(B-V) +REDSHIFT_HELIO: 0.67314 +- 0.01620 (Helio, z_best) +REDSHIFT_FINAL: 0.67314 +- 0.01620 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 13783 +HOST_GALAXY_PHOTO-Z: 0.6731 +- 0.0162 + + + +SIM_MODEL: mlcs2k2.SNchallenge 3 (name index) +SIM_NON1a: 0 (non1a index) +SIM_COMMENT: SN Type = Ia , MODEL = mlcs2k2.SNchallenge +SIM_LIBID: 0 +SIM_REDSHIFT: 0.6770 +SIM_HOSTLIB_TRUEZ: 0.6800 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 13783 +SIM_DLMU: 43.058372 mag [ -5*log10(10pc/dL) ] +SIM_RA: 52.500000 deg +SIM_DECL: -27.500000 deg +SIM_MWEBV: 0.0093 (MilkyWay E(B-V)) +SIM_AVTAU: 0.250 (dN/dAV = exp(-AV/AVTAU)) +SIM_AV: 0.111 mag (host extinction at 5510 A) +SIM_RV: 1.989 (CCM89 extinction parameter) +SIM_PEAKMAG: 25.21 23.38 23.21 23.26 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56194.011719 days +SIM_DELTA: -0.248 mag (MLCS lumi-par) +SIM_STRETCH: 1.248 +SIM_MAGDIM: 0.151 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -10.63 days +SIM_TRESTMAX: 69.82 days +SIM_RISETIME_SHIFT: -0.0 days +SIM_FALLTIME_SHIFT: -0.0 days + +SEARCH_PEAKMJD: 56193.309 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 133 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56176.191 g NULL -2.526e+00 4.767e+00 -0.53 128.000 0.000 25.968 +OBS: 56176.199 r NULL 2.303e+01 2.179e+00 10.57 24.094 0.107 24.225 +OBS: 56176.215 i NULL 1.665e+01 3.165e+00 5.26 24.446 0.230 24.164 +OBS: 56176.238 z NULL 1.870e+01 2.509e+00 7.45 24.320 0.157 24.192 +OBS: 56179.188 g NULL 8.051e+00 2.596e+00 3.10 25.235 0.422 25.455 +OBS: 56179.195 r NULL 2.545e+01 1.785e+00 14.25 23.986 0.080 23.842 +OBS: 56179.234 i NULL 3.161e+01 2.079e+00 15.21 23.750 0.074 23.808 +OBS: 56179.266 z NULL 2.838e+01 3.769e+00 7.53 23.868 0.155 23.868 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56180.266 g NULL 8.256e+00 2.564e+00 3.22 25.208 0.404 25.292 +OBS: 56180.281 r NULL 3.470e+01 1.470e+00 23.60 23.649 0.046 23.716 +OBS: 56180.297 i NULL 3.229e+01 3.738e+00 8.64 23.727 0.134 23.702 +OBS: 56180.328 z NULL 3.681e+01 4.540e+00 8.11 23.585 0.142 23.768 +OBS: 56188.160 g NULL 1.404e+01 5.703e+00 2.46 24.632 0.566 24.814 +OBS: 56188.176 r NULL 4.667e+01 5.656e+00 8.25 23.327 0.140 23.358 +OBS: 56188.211 i NULL 4.714e+01 4.617e+00 10.21 23.316 0.112 23.261 +OBS: 56188.238 z NULL 4.980e+01 3.527e+00 14.12 23.257 0.079 23.355 +OBS: 56189.254 g NULL 1.018e+01 2.310e+00 4.41 24.981 0.280 24.866 +OBS: 56189.270 r NULL 4.561e+01 3.398e+00 13.42 23.352 0.084 23.346 +OBS: 56189.281 i NULL 7.108e+01 9.154e+00 7.76 22.871 0.149 23.251 +OBS: 56189.312 z NULL 4.652e+01 3.094e+00 15.04 23.331 0.075 23.328 +OBS: 56194.258 g NULL 8.236e+00 2.653e+00 3.10 25.211 0.422 25.212 +OBS: 56194.270 r NULL 4.304e+01 1.715e+00 25.10 23.415 0.044 23.384 +OBS: 56194.285 i NULL 5.129e+01 2.502e+00 20.50 23.225 0.054 23.215 +OBS: 56194.305 z NULL 4.698e+01 2.545e+00 18.46 23.320 0.061 23.264 +OBS: 56202.160 g NULL 5.390e+00 4.794e+00 1.12 25.671 2.391 25.827 +OBS: 56202.176 r NULL 3.531e+01 2.425e+00 14.56 23.630 0.077 23.639 +OBS: 56202.191 i NULL 4.573e+01 4.256e+00 10.75 23.349 0.106 23.321 +OBS: 56202.215 z NULL 4.777e+01 2.857e+00 16.72 23.302 0.067 23.296 +OBS: 56210.172 g NULL 4.522e+00 3.694e+00 1.22 25.862 1.842 26.380 +OBS: 56210.188 r NULL 2.235e+01 3.248e+00 6.88 24.127 0.171 24.056 +OBS: 56210.203 i NULL 3.940e+01 3.298e+00 11.95 23.511 0.095 23.602 +OBS: 56210.234 z NULL 3.872e+01 3.915e+00 9.89 23.530 0.116 23.499 +OBS: 56218.172 g NULL -1.822e-01 1.253e+00 -0.15 128.000 0.000 27.297 +OBS: 56218.191 r NULL 1.262e+01 9.963e-01 12.67 24.747 0.090 24.632 +OBS: 56218.211 i NULL 2.496e+01 1.582e+00 15.78 24.007 0.071 23.969 +OBS: 56219.156 z NULL 3.326e+01 2.034e+00 16.35 23.695 0.068 23.830 +OBS: 56221.273 g NULL 9.702e+00 3.915e+00 2.48 25.033 0.560 27.657 +OBS: 56221.281 r NULL 1.400e+01 5.591e+00 2.50 24.634 0.553 24.888 +OBS: 56221.297 i NULL 2.725e+01 4.517e+00 6.03 23.912 0.196 24.130 +OBS: 56221.324 z NULL 4.891e+01 1.443e+01 3.39 23.277 0.379 23.902 +OBS: 56222.074 g NULL 1.216e+00 5.909e+00 0.21 27.288 100.712 27.729 +OBS: 56222.090 r NULL 2.878e+00 2.630e+00 1.09 26.352 2.689 24.952 +OBS: 56222.113 i NULL 2.092e+01 3.350e+00 6.24 24.199 0.190 24.175 +OBS: 56222.133 z NULL 2.407e+01 5.078e+00 4.74 24.046 0.258 23.927 +OBS: 56228.059 g NULL -2.196e+00 7.693e+00 -0.29 128.000 0.000 27.900 +OBS: 56228.066 r NULL 9.052e+00 2.399e+00 3.77 25.108 0.334 25.329 +OBS: 56228.086 i NULL 9.228e+00 5.114e+00 1.80 25.087 0.879 24.509 +OBS: 56228.109 z NULL 1.760e+01 4.149e+00 4.24 24.386 0.293 24.069 +OBS: 56229.047 g NULL 1.003e+01 2.392e+01 0.42 24.997 103.003 27.986 +OBS: 56229.059 r NULL 6.971e+00 3.854e+00 1.81 25.392 0.874 25.404 +OBS: 56229.074 i NULL 1.620e+01 5.434e+00 2.98 24.476 0.443 24.567 +OBS: 56229.102 z NULL 1.872e+01 4.862e+00 3.85 24.319 0.327 24.088 +OBS: 56230.059 g NULL 3.301e+00 6.571e+00 0.50 26.203 101.797 28.117 +OBS: 56230.102 r NULL 8.547e+00 2.922e+00 2.93 25.170 0.454 25.489 +OBS: 56230.113 i NULL 1.321e+01 5.182e+00 2.55 24.698 0.541 24.624 +OBS: 56230.145 z NULL 2.596e+01 2.711e+00 9.58 23.964 0.119 24.108 +OBS: 56231.043 g NULL 5.714e+00 6.046e+00 0.95 25.608 102.392 28.249 +OBS: 56231.059 r NULL 5.402e+00 2.554e+00 2.11 25.669 0.695 25.566 +OBS: 56231.070 i NULL 1.389e+01 4.250e+00 3.27 24.643 0.396 24.676 +OBS: 56231.102 z NULL 2.132e+01 3.304e+00 6.45 24.178 0.183 24.126 +OBS: 56235.039 g NULL -2.190e-01 5.184e+00 -0.04 128.000 0.000 28.536 +OBS: 56235.047 r NULL 4.421e+00 3.708e+00 1.19 25.886 1.981 25.828 +OBS: 56235.062 i NULL 1.223e+01 4.200e+00 2.91 24.781 0.457 24.858 +OBS: 56235.090 z NULL 2.491e+01 8.246e+00 3.02 24.009 0.436 24.216 +OBS: 56236.047 g NULL -2.489e+00 4.873e+00 -0.51 128.000 0.000 28.581 +OBS: 56236.062 r NULL 5.728e+00 2.663e+00 2.15 25.605 0.679 25.890 +OBS: 56236.074 i NULL 1.259e+01 5.229e+00 2.41 24.750 0.583 24.901 +OBS: 56236.105 z NULL 2.564e+01 5.342e+00 4.80 23.978 0.253 24.241 +OBS: 56237.039 g NULL 3.670e+00 3.165e+00 1.16 26.088 2.151 28.599 +OBS: 56237.051 r NULL 4.494e+00 2.215e+00 2.03 25.868 0.737 25.945 +OBS: 56237.094 i NULL 1.301e+01 2.506e+00 5.19 24.714 0.232 24.944 +OBS: 56237.125 z NULL 1.511e+01 3.708e+00 4.08 24.552 0.306 24.266 +OBS: 56238.074 g NULL 9.122e-01 2.522e+00 0.36 27.600 100.400 28.591 +OBS: 56238.094 r NULL 3.587e+00 1.591e+00 2.25 26.113 0.637 25.998 +OBS: 56238.109 i NULL 1.273e+01 2.735e+00 4.66 24.738 0.262 24.988 +OBS: 56238.129 z NULL 2.398e+01 3.140e+00 7.64 24.050 0.152 24.292 +OBS: 56243.098 g NULL 1.019e+00 2.168e+00 0.47 27.480 100.520 28.169 +OBS: 56243.109 r NULL 1.968e+00 1.656e+00 1.19 26.765 2.002 26.160 +OBS: 56243.125 i NULL 6.682e+00 2.569e+00 2.60 25.438 0.527 25.224 +OBS: 56243.152 z NULL 1.932e+01 2.577e+00 7.50 24.285 0.155 24.436 +OBS: 56244.082 g NULL 9.043e-01 2.191e+00 0.41 27.609 100.391 28.080 +OBS: 56244.098 r NULL 4.789e+00 1.638e+00 2.92 25.799 0.454 26.187 +OBS: 56244.109 i NULL 1.069e+01 2.598e+00 4.12 24.927 0.302 25.267 +OBS: 56244.133 z NULL 1.128e+01 2.991e+00 3.77 24.869 0.335 24.467 +OBS: 56245.070 g NULL 3.516e+00 1.720e+00 2.04 26.135 0.729 28.008 +OBS: 56245.082 r NULL 4.346e+00 1.356e+00 3.20 25.905 0.406 26.215 +OBS: 56245.109 i NULL 3.699e+00 3.214e+00 1.15 26.080 2.211 25.308 +OBS: 56245.137 z NULL 1.559e+01 2.853e+00 5.46 24.518 0.220 24.501 +OBS: 56246.117 g NULL -8.150e+00 6.564e+00 -1.24 128.000 0.000 27.943 +OBS: 56246.125 r NULL 1.333e+00 2.812e+00 0.47 27.188 100.812 26.245 +OBS: 56246.152 i NULL 7.528e+00 1.967e+00 3.83 25.308 0.329 25.351 +OBS: 56246.180 z NULL 1.388e+01 1.953e+00 7.11 24.644 0.165 24.538 +OBS: 56247.281 g NULL -1.547e+00 1.490e+00 -1.04 128.000 0.000 27.934 +OBS: 56247.297 r NULL 3.015e+00 1.135e+00 2.66 26.302 0.513 26.280 +OBS: 56247.316 i NULL 4.476e+00 1.978e+00 2.26 25.873 0.634 25.394 +OBS: 56247.340 z NULL 1.596e+01 2.509e+00 6.36 24.492 0.185 24.585 +OBS: 56248.324 g NULL 7.243e-01 1.703e+00 0.43 27.850 100.150 27.917 +OBS: 56248.340 r NULL 4.056e+00 1.339e+00 3.03 25.980 0.435 26.307 +OBS: 56258.035 i NULL 9.874e+00 9.887e+00 1.00 25.014 102.986 25.739 +OBS: 56258.066 z NULL 7.501e+00 3.971e+00 1.89 25.312 0.819 24.916 +OBS: 56258.215 g NULL 6.061e+00 4.949e+00 1.22 25.544 1.839 28.324 +OBS: 56258.227 r NULL 4.403e+00 2.383e+00 1.85 25.891 0.846 26.507 +OBS: 56261.098 g NULL 1.919e+01 8.835e+00 2.17 24.292 0.669 28.488 +OBS: 56261.102 r NULL 7.966e-01 3.395e+00 0.23 27.747 100.253 26.541 +OBS: 56261.125 i NULL 4.939e-01 3.855e+00 0.13 28.266 99.734 25.814 +OBS: 56261.156 z NULL 1.416e+01 3.098e+00 4.57 24.623 0.268 24.989 +OBS: 56273.160 g NULL 8.567e-01 1.753e+00 0.49 27.668 100.332 28.275 +OBS: 56273.176 r NULL 1.321e+00 1.215e+00 1.09 27.197 2.739 26.597 +OBS: 56273.188 i NULL 3.743e+00 2.026e+00 1.85 26.067 0.846 25.951 +OBS: 56273.219 z NULL 9.904e+00 2.259e+00 4.38 25.010 0.281 25.296 +OBS: 56281.160 g NULL 1.130e+00 2.074e+00 0.54 27.367 100.633 28.757 +OBS: 56281.184 r NULL 1.446e+00 1.275e+00 1.13 27.100 2.321 26.679 +OBS: 56281.203 i NULL 8.807e+00 1.808e+00 4.87 25.138 0.249 25.843 +OBS: 56281.227 z NULL 7.491e+00 2.296e+00 3.26 25.314 0.397 25.260 +OBS: 56288.086 g NULL -4.395e+00 4.850e+00 -0.91 128.000 0.000 28.877 +OBS: 56288.094 r NULL -1.261e-01 2.114e+00 -0.06 128.000 0.000 26.791 +OBS: 56288.109 i NULL 2.563e+00 3.060e+00 0.84 26.478 101.522 25.967 +OBS: 56288.141 z NULL 9.829e+00 2.591e+00 3.79 25.019 0.332 25.390 +OBS: 56289.227 g NULL 3.994e+00 6.491e+00 0.62 25.997 102.003 28.905 +OBS: 56289.242 r NULL -1.695e+00 2.702e+00 -0.63 128.000 0.000 26.809 +OBS: 56289.258 i NULL -3.335e+00 5.085e+00 -0.66 128.000 0.000 25.988 +OBS: 56292.035 z NULL 5.971e+00 2.065e+00 2.89 25.560 0.461 25.462 +OBS: 56292.141 g NULL -1.136e+00 3.054e+00 -0.37 128.000 0.000 28.976 +OBS: 56292.156 r NULL 3.056e+00 1.737e+00 1.76 26.287 0.912 26.854 +OBS: 56292.172 i NULL 3.518e+00 2.655e+00 1.33 26.134 1.526 26.042 +OBS: 56303.039 g NULL 3.280e-01 1.371e+00 0.24 28.710 99.290 29.153 +OBS: 56303.051 r NULL 2.050e+00 9.017e-01 2.27 26.720 0.629 27.051 +OBS: 56303.070 i NULL 3.495e+00 1.416e+00 2.47 26.141 0.564 26.217 +OBS: 56303.094 z NULL 2.590e+00 2.210e+00 1.17 26.467 2.089 25.669 +OBS: 56311.043 g NULL 4.693e+00 2.671e+00 1.76 25.821 0.914 29.230 +OBS: 56311.055 r NULL 1.532e+00 1.497e+00 1.02 27.037 4.091 27.214 +OBS: 56311.074 i NULL 6.766e+00 2.392e+00 2.83 25.424 0.473 26.330 +OBS: 56311.098 z NULL 4.624e+00 2.436e+00 1.90 25.837 0.812 25.821 +END: diff --git a/data/tests/DES_data/DES_SN456881.DAT b/data/tests/DES_data/DES_SN456881.DAT new file mode 100644 index 000000000..fa39969d5 --- /dev/null +++ b/data/tests/DES_data/DES_SN456881.DAT @@ -0,0 +1,100 @@ +SURVEY: DES +SNID: 456881 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 0.500000 deg +DECL: -43.000000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0111 MW E(B-V) +REDSHIFT_HELIO: 0.35216 +- 0.02690 (Helio, z_best) +REDSHIFT_FINAL: 0.35216 +- 0.02690 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 16700 +HOST_GALAXY_PHOTO-Z: 0.3522 +- 0.0269 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 4 (non1a index) +SIM_COMMENT: SN Type = IIL , MODEL = NUGENT2L +SIM_LIBID: 4 +SIM_REDSHIFT: 0.3925 +SIM_HOSTLIB_TRUEZ: 0.3900 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 16700 +SIM_DLMU: 41.635742 mag [ -5*log10(10pc/dL) ] +SIM_RA: 0.500000 deg +SIM_DECL: -43.000000 deg +SIM_MWEBV: 0.0098 (MilkyWay E(B-V)) +SIM_PEAKMAG: 26.41 25.16 24.87 24.74 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56287.207031 days +SIM_SALT2x0: 2.217e-17 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 2 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -37.48 days +SIM_TRESTMAX: 22.14 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56287.227 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 45 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56235.020 z NULL 7.380e+00 5.690e+00 1.30 99.000 5.000 99.066 +OBS: 56236.027 g NULL 1.086e+00 5.171e+00 0.21 99.000 5.000 98.978 +OBS: 56236.035 r NULL -8.324e+00 5.380e+00 -1.55 99.000 5.000 99.028 +OBS: 56236.039 i NULL -2.617e+00 7.619e+00 -0.34 99.000 5.000 98.961 +OBS: 56237.023 z NULL -4.192e-01 5.123e+00 -0.08 99.000 5.000 99.066 +OBS: 56238.023 g NULL 6.532e+00 3.614e+00 1.81 99.000 5.000 98.978 +OBS: 56238.031 r NULL -2.648e+00 2.785e+00 -0.95 99.000 5.000 99.028 +OBS: 56238.039 i NULL 2.458e+00 4.809e+00 0.51 99.000 5.000 98.961 +OBS: 56243.070 z NULL -4.130e+00 5.344e+00 -0.77 99.000 5.000 99.066 +OBS: 56244.047 g NULL 2.251e+00 4.182e+00 0.54 99.000 5.000 98.978 +OBS: 56244.055 r NULL -1.032e+00 2.823e+00 -0.37 99.000 5.000 99.028 +OBS: 56244.070 i NULL 4.769e+00 4.408e+00 1.08 99.000 5.000 98.961 +OBS: 56245.027 z NULL 1.366e+00 3.539e+00 0.39 99.000 5.000 99.066 +OBS: 56246.082 g NULL 2.761e+00 2.834e+00 0.97 99.000 5.000 98.978 +OBS: 56246.098 r NULL -1.102e+00 2.463e+00 -0.45 99.000 5.000 99.028 +OBS: 56246.109 i NULL -2.662e+00 5.434e+00 -0.49 99.000 5.000 98.961 +OBS: 56247.250 z NULL -5.522e+00 6.292e+00 -0.88 99.000 5.000 99.066 +OBS: 56254.199 g NULL -5.413e+00 6.131e+00 -0.88 99.000 5.000 98.978 +OBS: 56254.211 r NULL 1.366e+00 3.374e+00 0.40 99.000 5.000 99.028 +OBS: 56254.227 i NULL -7.139e+00 6.212e+00 -1.15 99.000 5.000 98.961 +OBS: 56258.191 z NULL -4.815e+00 5.862e+00 -0.82 99.000 5.000 99.066 +OBS: 56261.066 g NULL -3.167e-01 6.913e+00 -0.05 99.000 5.000 98.978 +OBS: 56261.082 r NULL -1.525e-01 4.054e+00 -0.04 99.000 5.000 99.028 +OBS: 56261.090 i NULL 5.829e+00 8.211e+00 0.71 99.000 5.000 98.961 +OBS: 56266.156 z NULL 1.263e+00 5.282e+00 0.24 27.247 100.753 27.108 +OBS: 56276.152 g NULL 9.557e+00 4.057e+00 2.36 25.049 0.600 25.419 +OBS: 56276.172 r NULL 2.060e+01 2.924e+00 7.05 24.215 0.166 24.384 +OBS: 56277.164 i NULL 2.441e+01 3.581e+00 6.82 24.031 0.172 24.287 +OBS: 56278.164 z NULL 1.717e+01 4.301e+00 3.99 24.413 0.314 24.142 +OBS: 56288.035 g NULL -1.234e+01 1.451e+01 -0.85 128.000 0.000 26.510 +OBS: 56288.043 r NULL 1.401e+01 5.410e+00 2.59 24.634 0.529 25.210 +OBS: 56288.051 i NULL 1.247e+01 5.987e+00 2.08 24.761 0.710 24.916 +OBS: 56288.066 z NULL 2.154e+01 6.748e+00 3.19 24.167 0.407 24.791 +OBS: 56292.109 g NULL -1.561e+01 7.769e+00 -2.01 128.000 0.000 27.056 +OBS: 56292.125 r NULL 6.638e+00 3.875e+00 1.71 25.445 0.952 25.475 +OBS: 56296.039 i NULL 1.007e+01 3.483e+00 2.89 24.992 0.460 25.319 +OBS: 56296.051 z NULL 1.146e+01 4.467e+00 2.57 24.852 0.536 25.217 +OBS: 56305.043 g NULL -1.161e+00 2.873e+00 -0.40 128.000 0.000 28.638 +OBS: 56305.051 r NULL 4.051e+00 2.178e+00 1.86 25.981 0.837 26.264 +OBS: 56305.055 i NULL 4.127e+00 3.050e+00 1.35 25.961 1.459 25.693 +OBS: 56305.070 z NULL 3.585e+00 3.665e+00 0.98 26.114 101.886 25.575 +OBS: 56317.035 g NULL -1.307e+01 1.479e+01 -0.88 128.000 0.000 28.624 +OBS: 56317.043 r NULL -4.197e+00 6.185e+00 -0.68 128.000 0.000 26.697 +OBS: 56317.051 i NULL 1.213e+01 6.916e+00 1.75 24.791 0.916 26.069 +OBS: 56318.035 z NULL 1.177e+01 1.346e+01 0.87 24.823 103.177 25.920 +END: diff --git a/data/tests/DES_data/DES_SN504422.DAT b/data/tests/DES_data/DES_SN504422.DAT new file mode 100644 index 000000000..894b7727d --- /dev/null +++ b/data/tests/DES_data/DES_SN504422.DAT @@ -0,0 +1,160 @@ +SURVEY: DES +SNID: 504422 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 36.750000 deg +DECL: -4.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0283 MW E(B-V) +REDSHIFT_HELIO: 0.80917 +- 0.02290 (Helio, z_best) +REDSHIFT_FINAL: 0.80917 +- 0.02290 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 16827 +HOST_GALAXY_PHOTO-Z: 0.8092 +- 0.0229 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 17 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-012842 +SIM_LIBID: 2 +SIM_REDSHIFT: 0.8104 +SIM_HOSTLIB_TRUEZ: 0.8100 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 16827 +SIM_DLMU: 43.536976 mag [ -5*log10(10pc/dL) ] +SIM_RA: 36.750000 deg +SIM_DECL: -4.500000 deg +SIM_MWEBV: 0.0252 (MilkyWay E(B-V)) +SIM_PEAKMAG: 26.34 25.05 25.07 25.17 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56269.722656 days +SIM_SALT2x0: 3.848e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -34.54 days +SIM_TRESTMAX: 43.79 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56269.895 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 104 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56207.188 g NULL 4.081e+00 4.366e+00 0.93 99.000 5.000 99.018 +OBS: 56207.195 r NULL -2.925e+00 3.459e+00 -0.85 99.000 5.000 98.994 +OBS: 56207.203 i NULL -3.287e+00 6.247e+00 -0.53 99.000 5.000 98.955 +OBS: 56207.219 z NULL 8.112e+00 5.954e+00 1.36 99.000 5.000 98.976 +OBS: 56215.195 g NULL 9.823e-01 2.681e+00 0.37 99.000 5.000 99.018 +OBS: 56215.203 r NULL -4.084e-02 2.171e+00 -0.02 99.000 5.000 98.994 +OBS: 56215.211 i NULL -3.410e-01 2.633e+00 -0.13 99.000 5.000 98.955 +OBS: 56215.227 z NULL 5.614e+00 3.427e+00 1.64 99.000 5.000 98.976 +OBS: 56221.090 g NULL 4.088e+00 6.269e+00 0.65 25.971 102.029 28.460 +OBS: 56221.105 r NULL -9.467e-01 5.079e+00 -0.19 128.000 0.000 27.597 +OBS: 56221.113 i NULL 1.314e+01 5.581e+00 2.35 24.704 0.600 27.884 +OBS: 56221.117 z NULL 9.520e-01 7.705e+00 0.12 27.553 100.447 27.140 +OBS: 56222.270 g NULL 5.809e+00 7.731e+00 0.75 25.590 102.410 28.393 +OBS: 56222.273 r NULL 4.865e+00 5.696e+00 0.85 25.782 102.218 27.543 +OBS: 56222.281 i NULL 1.088e+00 1.698e+01 0.06 27.409 100.591 27.823 +OBS: 56222.289 z NULL 3.705e-01 8.065e+00 0.05 28.578 99.422 27.041 +OBS: 56228.234 g NULL -6.988e+00 1.234e+01 -0.57 128.000 0.000 28.084 +OBS: 56228.242 r NULL -7.834e+00 5.571e+00 -1.41 128.000 0.000 27.263 +OBS: 56228.258 i NULL 1.242e+01 1.203e+01 1.03 24.765 3.733 27.485 +OBS: 56228.270 z NULL 1.395e+00 6.648e+00 0.21 27.139 100.861 26.667 +OBS: 56229.258 g NULL -4.068e+01 1.723e+01 -2.36 128.000 0.000 28.035 +OBS: 56229.270 r NULL 1.489e+01 8.068e+00 1.85 24.567 0.846 27.215 +OBS: 56229.285 i NULL -1.596e+01 1.507e+01 -1.06 128.000 0.000 27.425 +OBS: 56229.297 z NULL 8.873e+00 8.901e+00 1.00 25.130 102.870 26.620 +OBS: 56230.273 g NULL -3.693e+00 1.383e+01 -0.27 128.000 0.000 27.987 +OBS: 56230.277 r NULL -2.230e+00 6.405e+00 -0.35 128.000 0.000 27.167 +OBS: 56230.285 i NULL -1.180e+01 1.120e+01 -1.05 128.000 0.000 27.367 +OBS: 56230.293 z NULL 8.488e+00 6.159e+00 1.38 25.178 1.403 26.580 +OBS: 56231.242 g NULL -1.267e+01 9.780e+00 -1.30 128.000 0.000 27.942 +OBS: 56231.258 r NULL 4.433e+00 4.945e+00 0.90 25.883 102.117 27.120 +OBS: 56231.273 i NULL -5.667e+00 9.657e+00 -0.59 128.000 0.000 27.309 +OBS: 56231.277 z NULL 7.207e+00 5.306e+00 1.36 25.356 1.446 26.541 +OBS: 56235.242 g NULL 1.117e+01 6.870e+00 1.63 24.880 1.036 27.749 +OBS: 56235.258 r NULL 8.502e+00 3.913e+00 2.17 25.176 0.669 26.915 +OBS: 56235.270 i NULL 3.482e+00 7.248e+00 0.48 26.145 101.855 27.061 +OBS: 56235.277 z NULL 1.310e+01 6.985e+00 1.88 24.707 0.826 26.392 +OBS: 56236.258 g NULL 3.224e+00 6.536e+00 0.49 26.229 101.771 27.700 +OBS: 56236.270 r NULL 4.269e+00 4.254e+00 1.00 25.924 6.104 26.862 +OBS: 56236.277 i NULL 2.738e+00 5.995e+00 0.46 26.407 101.593 26.998 +OBS: 56236.285 z NULL 8.880e-01 7.805e+00 0.11 27.629 100.371 26.356 +OBS: 56237.289 g NULL 1.385e+01 2.675e+01 0.52 24.646 103.354 27.650 +OBS: 56237.297 r NULL -4.898e+01 4.069e+01 -1.20 128.000 0.000 26.807 +OBS: 56237.301 i NULL 3.704e+01 4.383e+01 0.85 23.578 104.422 26.932 +OBS: 56237.316 z NULL -3.162e+01 2.567e+01 -1.23 128.000 0.000 26.319 +OBS: 56238.301 g NULL -3.234e+01 4.135e+01 -0.78 128.000 0.000 27.602 +OBS: 56238.316 r NULL -3.677e+00 1.368e+01 -0.27 128.000 0.000 26.753 +OBS: 56238.328 i NULL -5.405e+00 7.934e+00 -0.68 128.000 0.000 26.869 +OBS: 56243.027 z NULL 1.075e+01 7.824e+00 1.37 24.921 1.412 26.120 +OBS: 56243.309 g NULL 9.812e-01 4.498e+00 0.22 27.521 100.479 27.378 +OBS: 56244.027 r NULL -1.553e+00 4.106e+00 -0.38 128.000 0.000 26.449 +OBS: 56244.031 i NULL 1.220e+01 6.620e+00 1.84 24.784 0.849 26.519 +OBS: 56244.273 g NULL 9.499e-01 4.062e+00 0.23 27.556 100.444 27.335 +OBS: 56244.277 z NULL 8.323e+00 6.056e+00 1.37 25.199 1.412 26.072 +OBS: 56245.293 g NULL 9.739e+00 1.378e+01 0.71 25.029 102.971 27.291 +OBS: 56245.309 r NULL -1.445e+01 1.011e+01 -1.43 128.000 0.000 26.379 +OBS: 56246.027 i NULL 4.245e+00 3.697e+00 1.15 25.930 2.222 26.396 +OBS: 56246.035 z NULL 5.153e+00 4.294e+00 1.20 25.720 1.945 26.007 +OBS: 56247.207 g NULL 2.710e-01 2.992e+00 0.09 28.918 99.082 27.210 +OBS: 56247.215 r NULL 2.762e+00 2.285e+00 1.21 26.397 1.906 26.278 +OBS: 56254.160 i NULL 9.703e+00 4.920e+00 1.97 25.033 0.767 25.909 +OBS: 56254.172 z NULL 7.749e+00 4.019e+00 1.93 25.277 0.793 25.713 +OBS: 56258.125 g NULL 8.891e+00 1.062e+01 0.84 25.128 102.872 26.726 +OBS: 56258.141 r NULL 6.956e+00 5.059e+00 1.37 25.394 1.411 25.682 +OBS: 56261.035 i NULL 4.737e-01 6.088e+00 0.08 28.311 99.689 25.521 +OBS: 56261.043 z NULL 6.534e+00 4.618e+00 1.41 25.462 1.332 25.465 +OBS: 56261.242 g NULL -5.658e+00 7.743e+00 -0.73 128.000 0.000 26.618 +OBS: 56261.258 r NULL 2.075e+00 3.925e+00 0.53 26.708 101.292 25.508 +OBS: 56274.188 g NULL 4.483e+00 3.596e+00 1.25 25.871 1.759 26.199 +OBS: 56274.195 r NULL 1.078e+01 2.748e+00 3.92 24.918 0.320 24.831 +OBS: 56274.203 i NULL 3.872e+00 4.266e+00 0.91 26.030 101.970 24.858 +OBS: 56274.219 z NULL 1.275e+01 5.018e+00 2.54 24.737 0.543 25.030 +OBS: 56282.203 g NULL 2.113e+00 6.359e+00 0.33 26.688 101.312 25.974 +OBS: 56283.156 r NULL 1.925e+01 3.164e+00 6.08 24.289 0.195 24.423 +OBS: 56283.168 i NULL 1.877e+01 5.056e+00 3.71 24.316 0.341 24.495 +OBS: 56283.184 z NULL 1.008e+01 4.111e+00 2.45 24.991 0.569 24.755 +OBS: 56288.191 g NULL -1.414e+01 1.255e+01 -1.13 128.000 0.000 25.886 +OBS: 56289.066 r NULL 1.980e+01 5.067e+00 3.91 24.259 0.321 24.204 +OBS: 56289.078 i NULL 6.463e+00 8.738e+00 0.74 25.474 102.526 24.308 +OBS: 56289.086 z NULL 1.700e+01 5.633e+00 3.02 24.424 0.437 24.589 +OBS: 56292.090 g NULL -1.407e+01 1.143e+01 -1.23 128.000 0.000 25.851 +OBS: 56298.039 r NULL 2.121e+01 2.470e+00 8.59 24.183 0.135 23.993 +OBS: 56298.047 i NULL 2.797e+01 3.602e+00 7.77 23.883 0.149 24.115 +OBS: 56298.055 z NULL 1.759e+01 3.976e+00 4.42 24.387 0.278 24.395 +OBS: 56304.043 g NULL 5.838e+00 2.568e+00 2.27 25.584 0.629 25.769 +OBS: 56306.102 r NULL 3.107e+01 3.280e+00 9.47 23.769 0.121 23.929 +OBS: 56306.113 i NULL 2.515e+01 4.341e+00 5.79 23.999 0.206 24.038 +OBS: 56306.121 z NULL 2.499e+01 5.412e+00 4.62 24.005 0.265 24.288 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56312.047 g NULL 1.000e+01 9.609e+00 1.04 25.000 3.510 25.783 +OBS: 56318.066 r NULL 2.634e+01 4.605e+00 5.72 23.948 0.208 24.036 +OBS: 56318.078 i NULL 2.752e+01 7.991e+00 3.44 23.901 0.372 24.065 +OBS: 56318.086 z NULL 2.136e+01 6.382e+00 3.35 24.176 0.385 24.293 +OBS: 56320.035 g NULL 6.760e+00 1.145e+01 0.59 25.425 102.575 25.876 +OBS: 56327.039 r NULL 2.045e+01 2.840e+00 7.20 24.223 0.162 24.224 +OBS: 56327.047 i NULL 1.492e+01 4.192e+00 3.56 24.565 0.359 24.163 +OBS: 56327.055 z NULL 1.335e+01 4.760e+00 2.80 24.686 0.479 24.394 +OBS: 56328.039 g NULL 6.055e+00 3.713e+00 1.63 25.545 1.031 26.033 +OBS: 56336.043 r NULL 1.929e+01 3.114e+00 6.20 24.287 0.191 24.448 +OBS: 56336.055 i NULL 1.759e+01 5.026e+00 3.50 24.387 0.366 24.304 +OBS: 56337.043 z NULL 1.645e+01 4.054e+00 4.06 24.459 0.307 24.530 +OBS: 56338.043 g NULL 4.102e+00 3.561e+00 1.15 25.967 2.198 26.329 +OBS: 56347.996 r NULL 1.572e+01 2.509e+00 6.26 24.509 0.188 24.784 +OBS: 56348.004 i NULL 1.772e+01 4.884e+00 3.63 24.379 0.350 24.527 +OBS: 56348.008 z NULL 1.647e+01 6.570e+00 2.51 24.458 0.552 24.671 +OBS: 56348.996 g NULL -4.005e-01 5.508e+00 -0.07 128.000 0.000 26.689 +END: diff --git a/data/tests/DES_data/DES_SN510080.DAT b/data/tests/DES_data/DES_SN510080.DAT new file mode 100644 index 000000000..0037b9745 --- /dev/null +++ b/data/tests/DES_data/DES_SN510080.DAT @@ -0,0 +1,129 @@ +SURVEY: DES +SNID: 510080 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 0.500000 deg +DECL: -43.000000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0111 MW E(B-V) +REDSHIFT_HELIO: 0.35956 +- 0.05470 (Helio, z_best) +REDSHIFT_FINAL: 0.35956 +- 0.05470 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 11183 +HOST_GALAXY_PHOTO-Z: 0.3596 +- 0.0547 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 34 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-018408 +SIM_LIBID: 4 +SIM_REDSHIFT: 0.3886 +SIM_HOSTLIB_TRUEZ: 0.3900 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 11183 +SIM_DLMU: 41.610191 mag [ -5*log10(10pc/dL) ] +SIM_RA: 0.500000 deg +SIM_DECL: -43.000000 deg +SIM_MWEBV: 0.0103 (MilkyWay E(B-V)) +SIM_PEAKMAG: 24.14 23.93 23.88 23.78 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56250.777344 days +SIM_SALT2x0: 2.269e-17 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -37.29 days +SIM_TRESTMAX: 48.44 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56250.816 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 73 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56198.992 g NULL -6.277e+00 1.868e+01 -0.34 99.000 5.000 98.963 +OBS: 56199.000 r NULL 2.830e+00 9.048e+00 0.31 99.000 5.000 99.025 +OBS: 56199.008 i NULL 1.166e+01 1.181e+01 0.99 99.000 5.000 99.034 +OBS: 56199.016 z NULL -1.051e+01 7.697e+00 -1.37 99.000 5.000 98.983 +OBS: 56199.039 g NULL -2.538e+01 3.349e+01 -0.76 99.000 5.000 98.963 +OBS: 56208.215 g NULL 2.719e+00 2.657e+00 1.02 99.000 5.000 98.963 +OBS: 56208.223 r NULL 2.070e+00 1.765e+00 1.17 99.000 5.000 99.025 +OBS: 56208.238 i NULL -5.626e+00 2.957e+00 -1.90 99.000 5.000 99.034 +OBS: 56209.160 z NULL -1.591e+00 3.242e+00 -0.49 99.000 5.000 98.983 +OBS: 56216.215 g NULL 2.470e+00 2.466e+00 1.00 26.518 6.915 44.941 +OBS: 56216.223 r NULL 1.027e-01 1.881e+00 0.05 29.971 98.029 48.698 +OBS: 56216.230 i NULL 3.602e+00 3.015e+00 1.19 26.109 1.968 52.263 +OBS: 56218.152 z NULL -1.260e+00 2.671e+00 -0.47 128.000 0.000 51.607 +OBS: 56221.004 g NULL 7.017e-01 5.225e+00 0.13 27.885 100.115 42.794 +OBS: 56221.016 r NULL -1.950e-01 3.577e+00 -0.05 128.000 0.000 46.113 +OBS: 56221.027 i NULL 5.647e+00 5.471e+00 1.03 25.620 3.756 49.014 +OBS: 56221.035 z NULL 4.175e+00 5.403e+00 0.77 25.948 102.052 49.766 +OBS: 56222.016 g NULL -3.858e-01 6.241e+00 -0.06 128.000 0.000 42.578 +OBS: 56222.027 r NULL 8.208e-01 3.618e+00 0.23 27.714 100.286 45.778 +OBS: 56222.035 i NULL 6.067e+00 4.922e+00 1.23 25.543 1.810 48.541 +OBS: 56228.012 z NULL 5.621e+00 5.546e+00 1.01 25.626 4.671 37.240 +OBS: 56229.012 g NULL -4.829e+00 9.818e+00 -0.49 128.000 0.000 29.828 +OBS: 56229.016 r NULL 4.355e-01 4.316e+00 0.10 28.403 99.597 32.105 +OBS: 56229.023 i NULL 6.094e+00 7.808e+00 0.78 25.538 102.462 35.620 +OBS: 56230.012 z NULL 8.824e+00 4.916e+00 1.79 25.136 0.884 33.894 +OBS: 56231.012 g NULL 9.093e+00 6.918e+00 1.31 25.103 1.552 27.722 +OBS: 56231.020 r NULL 4.211e+00 2.784e+00 1.51 25.939 1.174 30.029 +OBS: 56231.027 i NULL 3.175e-01 4.071e+00 0.08 28.746 99.254 32.985 +OBS: 56235.020 z NULL -2.005e+00 5.689e+00 -0.35 128.000 0.000 29.622 +OBS: 56236.027 g NULL 4.369e+00 5.192e+00 0.84 25.899 102.101 25.281 +OBS: 56236.035 r NULL 2.579e+00 5.379e+00 0.48 26.471 101.529 27.387 +OBS: 56236.039 i NULL -3.966e+00 7.619e+00 -0.52 128.000 0.000 29.084 +OBS: 56237.023 z NULL -4.030e+00 5.124e+00 -0.79 128.000 0.000 28.677 +OBS: 56238.023 g NULL 1.358e+01 3.648e+00 3.72 24.668 0.339 25.014 +OBS: 56238.031 r NULL 2.004e+00 2.787e+00 0.72 26.745 101.255 26.893 +OBS: 56238.039 i NULL 7.247e+00 4.811e+00 1.51 25.350 1.183 28.102 +OBS: 56243.070 z NULL 1.106e+01 5.349e+00 2.07 24.891 0.717 25.692 +OBS: 56244.047 g NULL 1.376e+01 4.223e+00 3.26 24.654 0.398 24.613 +OBS: 56244.055 r NULL 1.104e+01 2.840e+00 3.89 24.893 0.323 24.901 +OBS: 56244.070 i NULL 1.032e+01 4.416e+00 2.34 24.966 0.606 24.977 +OBS: 56245.027 z NULL 6.855e+00 3.544e+00 1.93 25.410 0.792 24.873 +OBS: 56246.082 g NULL 1.059e+01 2.896e+00 3.66 24.938 0.348 24.480 +OBS: 56246.098 r NULL 2.202e+01 2.516e+00 8.75 24.143 0.131 24.408 +OBS: 56246.109 i NULL 1.330e+01 5.449e+00 2.44 24.691 0.573 24.332 +OBS: 56247.250 z NULL 2.282e+01 6.310e+00 3.62 24.104 0.351 24.235 +OBS: 56254.199 g NULL 2.937e+01 6.191e+00 4.74 23.830 0.257 23.997 +OBS: 56254.211 r NULL 2.987e+01 3.439e+00 8.69 23.812 0.132 23.910 +OBS: 56254.227 i NULL 3.536e+01 6.255e+00 5.65 23.629 0.211 23.885 +OBS: 56258.191 z NULL 3.965e+01 5.913e+00 6.71 23.504 0.175 23.720 +OBS: 56261.066 g NULL 2.817e+01 6.983e+00 4.03 23.875 0.309 24.164 +OBS: 56261.082 r NULL 2.127e+01 4.103e+00 5.18 24.180 0.233 24.069 +OBS: 56261.090 i NULL 4.175e+01 8.264e+00 5.05 23.448 0.239 23.972 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56266.156 z NULL 2.864e+01 5.314e+00 5.39 23.858 0.223 23.794 +OBS: 56276.152 g NULL 9.494e+00 4.058e+00 2.34 25.056 0.605 25.389 +OBS: 56276.172 r NULL 1.782e+01 2.917e+00 6.11 24.373 0.194 24.411 +OBS: 56277.164 i NULL 2.157e+01 3.577e+00 6.03 24.165 0.197 24.140 +OBS: 56278.164 z NULL 2.838e+01 4.323e+00 6.56 23.868 0.179 23.857 +OBS: 56288.035 g NULL -1.163e+00 1.451e+01 -0.08 128.000 0.000 25.768 +OBS: 56288.043 r NULL 1.395e+01 5.412e+00 2.58 24.638 0.533 24.707 +OBS: 56288.051 i NULL 1.968e+01 5.996e+00 3.28 24.265 0.394 24.262 +OBS: 56288.066 z NULL 2.383e+01 6.752e+00 3.53 24.057 0.362 23.895 +OBS: 56292.109 g NULL 7.130e-01 7.770e+00 0.09 27.867 100.133 25.829 +OBS: 56292.125 r NULL 1.302e+01 3.886e+00 3.35 24.713 0.385 24.806 +OBS: 56296.039 i NULL 2.431e+01 3.514e+00 6.92 24.035 0.169 24.361 +OBS: 56296.051 z NULL 2.265e+01 4.486e+00 5.05 24.112 0.240 23.927 +OBS: 56305.043 g NULL -5.210e-01 2.885e+00 -0.18 128.000 0.000 26.060 +OBS: 56305.051 r NULL 1.510e+01 2.201e+00 6.86 24.552 0.170 25.087 +OBS: 56305.055 i NULL 1.606e+01 3.072e+00 5.23 24.486 0.231 24.475 +OBS: 56305.070 z NULL 2.648e+01 3.702e+00 7.15 23.943 0.163 23.975 +OBS: 56317.035 g NULL -1.357e+00 1.480e+01 -0.09 128.000 0.000 26.388 +OBS: 56317.043 r NULL 1.516e+01 6.193e+00 2.45 24.548 0.570 25.305 +OBS: 56317.051 i NULL 1.414e+01 6.920e+00 2.04 24.624 0.730 24.619 +OBS: 56318.035 z NULL 2.764e+01 1.347e+01 2.05 23.896 0.725 24.073 +END: diff --git a/data/tests/DES_data/DES_SN557920.DAT b/data/tests/DES_data/DES_SN557920.DAT new file mode 100644 index 000000000..7279e2bee --- /dev/null +++ b/data/tests/DES_data/DES_SN557920.DAT @@ -0,0 +1,191 @@ +SURVEY: DES +SNID: 557920 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 34.500000 deg +DECL: -5.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0227 MW E(B-V) +REDSHIFT_HELIO: 0.97203 +- 0.01470 (Helio, z_best) +REDSHIFT_FINAL: 0.97203 +- 0.01470 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 11690 +HOST_GALAXY_PHOTO-Z: 0.9720 +- 0.0147 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 27 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-015339 +SIM_LIBID: 1 +SIM_REDSHIFT: 0.9778 +SIM_HOSTLIB_TRUEZ: 0.9800 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 11690 +SIM_DLMU: 44.040054 mag [ -5*log10(10pc/dL) ] +SIM_RA: 34.500000 deg +SIM_DECL: -5.500000 deg +SIM_MWEBV: 0.0127 (MilkyWay E(B-V)) +SIM_PEAKMAG: 98.99 24.88 24.78 24.96 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56233.132812 days +SIM_SALT2x0: 2.421e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -28.29 days +SIM_TRESTMAX: 59.59 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56232.668 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 135 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56177.172 g NULL -4.729e+00 4.787e+00 -0.99 99.000 5.000 98.994 +OBS: 56177.188 r NULL -3.989e+00 5.335e+00 -0.75 128.000 0.000 60.948 +OBS: 56177.203 i NULL -1.158e+01 5.440e+00 -2.13 128.000 0.000 60.791 +OBS: 56177.234 z NULL -7.517e+00 4.693e+00 -1.60 128.000 0.000 61.201 +OBS: 56179.172 g NULL 1.970e+00 2.238e+00 0.88 99.000 5.000 98.994 +OBS: 56179.312 r NULL -2.099e+00 3.030e+00 -0.69 128.000 0.000 60.891 +OBS: 56179.328 i NULL 3.815e+00 4.200e+00 0.91 26.046 101.954 60.802 +OBS: 56179.359 z NULL 1.980e+00 3.517e+00 0.56 26.758 101.242 61.211 +OBS: 56187.156 g NULL -1.729e+00 1.702e+00 -1.02 99.000 5.000 98.994 +OBS: 56187.172 r NULL 7.291e-02 1.251e+00 0.06 30.343 97.657 49.474 +OBS: 56187.188 i NULL 1.751e-01 1.897e+00 0.09 29.392 98.608 49.921 +OBS: 56187.211 z NULL -2.979e+00 2.176e+00 -1.37 128.000 0.000 50.794 +OBS: 56189.148 g NULL 1.655e+00 9.760e+00 0.17 99.000 5.000 98.994 +OBS: 56189.160 r NULL 8.247e+00 3.879e+00 2.13 25.209 0.689 47.060 +OBS: 56189.176 i NULL -2.340e+00 8.070e+00 -0.29 128.000 0.000 47.682 +OBS: 56189.203 z NULL -2.209e-02 4.692e+00 -0.00 128.000 0.000 48.704 +OBS: 56194.121 g NULL -3.735e+00 3.771e+00 -0.99 99.000 5.000 98.994 +OBS: 56194.129 r NULL -2.306e+00 2.349e+00 -0.98 128.000 0.000 42.377 +OBS: 56200.156 i NULL 5.710e+00 8.066e+00 0.71 25.608 102.392 37.076 +OBS: 56200.180 z NULL 4.414e+00 5.636e+00 0.78 25.888 102.112 39.487 +OBS: 56207.156 g NULL 8.997e-02 2.279e+00 0.04 99.000 5.000 98.994 +OBS: 56207.172 r NULL -6.077e-01 1.604e+00 -0.38 128.000 0.000 27.109 +OBS: 56209.191 i NULL 2.626e+00 2.140e+00 1.23 26.452 1.831 27.620 +OBS: 56209.215 z NULL 9.524e-01 2.200e+00 0.43 27.553 100.447 28.862 +OBS: 56215.164 g NULL -2.480e+00 1.596e+00 -1.55 99.000 5.000 98.994 +OBS: 56215.180 r NULL 9.163e+00 1.116e+00 8.21 25.095 0.141 25.120 +OBS: 56217.152 i NULL 9.466e+00 1.412e+00 6.70 25.060 0.175 25.032 +OBS: 56217.191 z NULL 5.315e+00 1.820e+00 2.92 25.686 0.455 25.860 +OBS: 56221.062 g NULL 3.427e+00 4.489e+00 0.76 99.000 5.000 98.994 +OBS: 56221.074 r NULL 1.024e+01 3.590e+00 2.85 24.974 0.469 24.695 +OBS: 56221.195 i NULL 9.721e+00 1.346e+01 0.72 25.031 102.969 24.794 +OBS: 56221.227 z NULL 1.246e+01 4.021e+00 3.10 24.761 0.422 25.406 +OBS: 56222.047 g NULL 2.834e+00 6.419e+00 0.44 99.000 5.000 98.994 +OBS: 56222.062 r NULL 1.654e+01 3.144e+00 5.26 24.453 0.228 24.670 +OBS: 56222.191 i NULL 1.759e+01 9.800e+00 1.79 24.387 0.884 24.765 +OBS: 56222.211 z NULL 4.744e+00 4.836e+00 0.98 25.810 102.190 25.327 +OBS: 56228.031 g NULL -5.786e+00 2.612e+01 -0.22 99.000 5.000 98.994 +OBS: 56228.047 r NULL 3.026e+01 1.166e+01 2.60 23.798 0.528 24.721 +OBS: 56228.156 i NULL 1.185e+01 5.185e+00 2.28 24.816 0.625 24.733 +OBS: 56228.188 z NULL 1.093e+01 2.851e+00 3.83 24.903 0.328 25.043 +OBS: 56229.031 g NULL -9.930e-02 3.074e+01 -0.00 99.000 5.000 98.994 +OBS: 56229.156 r NULL 1.047e+01 3.604e+00 2.91 24.950 0.458 24.750 +OBS: 56229.172 i NULL 1.432e+01 7.059e+00 2.03 24.610 0.737 24.739 +OBS: 56229.199 z NULL 9.935e+00 2.932e+00 3.39 25.007 0.380 25.019 +OBS: 56230.035 g NULL 1.816e+00 9.315e+00 0.19 99.000 5.000 98.994 +OBS: 56230.043 r NULL 1.073e+01 3.871e+00 2.77 24.924 0.486 24.774 +OBS: 56230.191 i NULL 1.259e+01 6.323e+00 1.99 24.750 0.758 24.745 +OBS: 56230.215 z NULL 1.364e+01 2.933e+00 4.65 24.663 0.262 24.996 +OBS: 56231.035 g NULL -1.214e+01 7.698e+00 -1.58 99.000 5.000 98.994 +OBS: 56231.156 r NULL 1.093e+01 2.665e+00 4.10 24.903 0.304 24.811 +OBS: 56231.172 i NULL 1.009e+01 4.796e+00 2.10 24.990 0.701 24.755 +OBS: 56231.191 z NULL 1.100e+01 3.025e+00 3.64 24.896 0.349 24.982 +OBS: 56235.145 g NULL 1.326e+00 3.787e+00 0.35 99.000 5.000 98.994 +OBS: 56235.160 r NULL 9.192e+00 1.770e+00 5.19 25.092 0.232 24.962 +OBS: 56235.172 i NULL 9.368e+00 3.208e+00 2.92 25.071 0.456 24.806 +OBS: 56235.195 z NULL 1.023e+01 2.943e+00 3.48 24.976 0.368 24.950 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56236.160 g NULL -1.082e-01 2.000e+00 -0.05 99.000 5.000 98.994 +OBS: 56236.172 r NULL 7.559e+00 1.885e+00 4.01 25.304 0.312 25.005 +OBS: 56236.188 i NULL 5.801e+00 2.788e+00 2.08 25.591 0.714 24.822 +OBS: 56236.207 z NULL 1.286e+01 3.200e+00 4.02 24.727 0.310 24.948 +OBS: 56237.176 g NULL -6.455e-01 3.438e+00 -0.19 99.000 5.000 98.994 +OBS: 56237.188 r NULL 8.895e+00 2.263e+00 3.93 25.127 0.319 25.051 +OBS: 56237.207 i NULL 9.533e+00 2.870e+00 3.32 25.052 0.389 24.841 +OBS: 56237.238 z NULL 1.028e+01 3.873e+00 2.65 24.971 0.514 24.950 +OBS: 56238.188 g NULL 3.794e+00 2.971e+00 1.28 99.000 5.000 98.994 +OBS: 56238.199 r NULL 1.171e+01 2.039e+00 5.74 24.829 0.207 25.098 +OBS: 56238.219 i NULL 7.115e+00 3.240e+00 2.20 25.370 0.661 24.859 +OBS: 56238.250 z NULL 9.825e+00 4.866e+00 2.02 25.019 0.742 24.954 +OBS: 56243.203 g NULL -1.954e+00 1.689e+00 -1.16 99.000 5.000 98.994 +OBS: 56243.211 r NULL 1.064e+01 1.245e+00 8.55 24.933 0.134 25.362 +OBS: 56243.223 i NULL 1.155e+01 1.865e+00 6.19 24.844 0.191 24.972 +OBS: 56243.250 z NULL 7.764e+00 2.421e+00 3.21 25.275 0.406 24.996 +OBS: 56244.180 g NULL -9.870e-01 1.782e+00 -0.55 99.000 5.000 98.994 +OBS: 56244.188 r NULL 6.361e+00 1.383e+00 4.60 25.491 0.266 25.421 +OBS: 56244.203 i NULL 7.484e+00 1.995e+00 3.75 25.315 0.337 24.998 +OBS: 56244.223 z NULL 1.306e+01 2.245e+00 5.82 24.710 0.204 25.008 +OBS: 56245.191 g NULL 3.732e+00 4.785e+00 0.78 99.000 5.000 98.994 +OBS: 56245.199 r NULL 5.941e+00 1.184e+00 5.02 25.565 0.241 25.483 +OBS: 56245.219 i NULL 1.035e+01 2.089e+00 4.95 24.963 0.245 25.026 +OBS: 56245.246 z NULL 1.131e+01 5.922e+00 1.91 24.867 0.805 25.022 +OBS: 56246.234 g NULL 1.444e+00 2.000e+00 0.72 99.000 5.000 98.994 +OBS: 56246.246 r NULL 8.033e+00 3.175e+00 2.53 25.238 0.546 25.549 +OBS: 56246.262 i NULL 4.343e+00 5.644e+00 0.77 25.905 102.095 25.056 +OBS: 56246.285 z NULL 1.549e+01 1.277e+01 1.21 24.525 1.888 25.036 +OBS: 56248.207 g NULL -3.104e+00 1.752e+00 -1.77 99.000 5.000 98.994 +OBS: 56248.215 r NULL 7.962e+00 1.336e+00 5.96 25.247 0.199 25.667 +OBS: 56248.230 i NULL 6.770e+00 2.213e+00 3.06 25.424 0.430 25.110 +OBS: 56248.250 z NULL 1.001e+01 3.036e+00 3.30 24.999 0.392 25.062 +OBS: 56258.242 g NULL 5.568e-01 8.080e+00 0.07 99.000 5.000 98.994 +OBS: 56258.258 r NULL 1.135e+01 4.424e+00 2.57 24.863 0.536 26.282 +OBS: 56259.160 i NULL 7.002e+00 4.543e+00 1.54 25.387 1.136 25.452 +OBS: 56259.180 z NULL 6.146e+00 3.062e+00 2.01 25.529 0.749 25.213 +OBS: 56261.215 g NULL 2.238e+00 3.958e+00 0.57 99.000 5.000 98.994 +OBS: 56261.230 r NULL 3.313e+00 1.855e+00 1.79 26.200 0.891 26.468 +OBS: 56267.156 i NULL 4.356e+00 2.214e+00 1.97 25.902 0.771 25.740 +OBS: 56267.180 z NULL 7.023e+00 3.053e+00 2.30 25.384 0.619 25.356 +OBS: 56274.160 g NULL -2.302e+00 2.033e+00 -1.13 99.000 5.000 98.994 +OBS: 56274.176 r NULL 2.809e+00 1.446e+00 1.94 26.379 0.784 27.350 +OBS: 56275.223 i NULL 3.910e+00 3.009e+00 1.30 26.020 1.594 26.075 +OBS: 56276.191 z NULL 5.463e+00 3.404e+00 1.60 25.657 1.060 25.555 +OBS: 56282.160 g NULL 3.326e+00 3.404e+00 0.98 99.000 5.000 98.994 +OBS: 56282.184 r NULL 3.432e+00 2.179e+00 1.57 26.161 1.093 27.949 +OBS: 56287.160 i NULL -4.562e+00 4.986e+00 -0.91 128.000 0.000 26.615 +OBS: 56287.191 z NULL 8.721e+00 3.897e+00 2.24 25.149 0.643 25.825 +OBS: 56289.035 g NULL 1.017e+00 1.189e+01 0.09 99.000 5.000 98.994 +OBS: 56289.043 r NULL 8.332e+00 4.186e+00 1.99 25.198 0.757 28.499 +OBS: 56289.152 i NULL 5.099e+00 4.328e+00 1.18 25.731 2.050 26.709 +OBS: 56289.176 z NULL 5.186e+00 4.465e+00 1.16 25.713 2.142 25.877 +OBS: 56297.039 g NULL 1.407e+00 1.580e+00 0.89 99.000 5.000 98.994 +OBS: 56297.047 r NULL 6.396e-01 1.219e+00 0.52 27.985 100.015 29.218 +OBS: 56297.062 i NULL 1.946e-01 1.863e+00 0.10 29.277 98.723 27.104 +OBS: 56297.090 z NULL 2.359e+00 2.120e+00 1.11 26.568 2.490 26.106 +OBS: 56305.094 g NULL -1.572e-01 1.644e+00 -0.10 99.000 5.000 98.994 +OBS: 56305.102 r NULL -7.373e-01 1.301e+00 -0.57 128.000 0.000 29.992 +OBS: 56305.113 i NULL 1.715e+00 2.191e+00 0.78 26.914 101.086 27.542 +OBS: 56306.043 z NULL 6.107e+00 2.713e+00 2.25 25.535 0.637 26.338 +OBS: 56313.047 g NULL 9.475e+00 5.963e+00 1.59 99.000 5.000 98.994 +OBS: 56313.055 r NULL -5.536e-01 2.524e+00 -0.22 128.000 0.000 30.942 +OBS: 56313.090 i NULL -8.672e-01 3.078e+00 -0.28 128.000 0.000 28.089 +OBS: 56317.066 z NULL 5.690e+00 4.251e+00 1.34 25.612 1.492 26.591 +OBS: 56321.035 g NULL -1.356e+00 2.913e+00 -0.47 99.000 5.000 98.994 +OBS: 56321.043 r NULL -3.740e+00 1.367e+00 -2.74 128.000 0.000 32.881 +OBS: 56321.066 i NULL -2.475e+00 3.216e+00 -0.77 128.000 0.000 28.850 +OBS: 56326.039 z NULL 2.698e-01 2.606e+00 0.10 28.923 99.077 26.804 +OBS: 56333.043 g NULL -2.141e-01 1.816e+00 -0.12 99.000 5.000 98.994 +OBS: 56333.051 r NULL -1.483e+00 1.383e+00 -1.07 128.000 0.000 38.117 +OBS: 56334.043 i NULL 6.884e-01 2.176e+00 0.32 27.905 100.095 30.078 +OBS: 56335.043 z NULL -1.012e+00 3.380e+00 -0.30 128.000 0.000 27.060 +OBS: 56344.992 g NULL 3.320e+00 4.327e+00 0.77 99.000 5.000 98.994 +OBS: 56345.000 r NULL 9.128e-01 1.861e+00 0.49 27.599 100.401 38.888 +OBS: 56345.016 i NULL 7.315e-01 3.450e+00 0.21 27.839 100.161 30.835 +OBS: 56345.992 z NULL 2.189e+00 3.699e+00 0.59 26.650 101.350 27.451 +OBS: 56349.996 g NULL 7.317e-01 3.963e+00 0.18 99.000 5.000 98.994 +OBS: 56350.004 r NULL 1.783e+00 2.057e+00 0.87 26.872 101.128 38.995 +OBS: 56350.996 i NULL 3.707e+00 3.021e+00 1.23 26.078 1.831 31.110 +END: diff --git a/data/tests/DES_data/DES_SN586355.DAT b/data/tests/DES_data/DES_SN586355.DAT new file mode 100644 index 000000000..31562d999 --- /dev/null +++ b/data/tests/DES_data/DES_SN586355.DAT @@ -0,0 +1,108 @@ +SURVEY: DES +SNID: 586355 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 48.000000 deg +DECL: 0.000000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0713 MW E(B-V) +REDSHIFT_HELIO: 0.88127 +- 0.02140 (Helio, z_best) +REDSHIFT_FINAL: 0.88127 +- 0.02140 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 19212 +HOST_GALAXY_PHOTO-Z: 0.8813 +- 0.0214 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 8 (non1a index) +SIM_COMMENT: SN Type = Ib , MODEL = CSP-2006ep +SIM_LIBID: 3 +SIM_REDSHIFT: 0.8870 +SIM_HOSTLIB_TRUEZ: 0.8900 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 19212 +SIM_DLMU: 43.778568 mag [ -5*log10(10pc/dL) ] +SIM_RA: 48.000000 deg +SIM_DECL: 0.000000 deg +SIM_MWEBV: 0.0765 (MilkyWay E(B-V)) +SIM_PEAKMAG: 98.92 25.77 24.36 24.19 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56329.152344 days +SIM_SALT2x0: 3.080e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -37.63 days +SIM_TRESTMAX: 11.59 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56329.406 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 52 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56258.152 g NULL 2.184e+01 1.264e+01 1.73 99.000 5.000 98.923 +OBS: 56258.168 z NULL 2.538e+00 5.982e+00 0.42 99.000 5.000 99.001 +OBS: 56258.273 r NULL -5.384e+00 7.778e+00 -0.69 99.000 5.000 98.931 +OBS: 56258.281 i NULL 1.210e+00 1.262e+01 0.10 99.000 5.000 99.000 +OBS: 56261.266 g NULL -2.056e+00 1.009e+01 -0.20 99.000 5.000 98.923 +OBS: 56261.273 r NULL -1.395e+00 4.184e+00 -0.33 99.000 5.000 98.931 +OBS: 56261.281 i NULL -9.426e+00 7.031e+00 -1.34 99.000 5.000 99.000 +OBS: 56261.289 z NULL -2.979e+00 4.892e+00 -0.61 99.000 5.000 99.001 +OBS: 56275.152 g NULL -1.495e+00 3.310e+00 -0.45 99.000 5.000 98.923 +OBS: 56275.172 r NULL -3.016e+00 2.240e+00 -1.35 128.000 0.000 42.431 +OBS: 56275.191 i NULL 3.903e-01 4.492e+00 0.09 28.522 99.478 42.371 +OBS: 56275.203 z NULL -5.180e-01 5.325e+00 -0.10 128.000 0.000 42.552 +OBS: 56283.203 g NULL 4.070e+00 6.285e+00 0.65 99.000 5.000 98.923 +OBS: 56283.211 r NULL 1.631e+00 3.325e+00 0.49 26.969 101.031 32.624 +OBS: 56283.215 i NULL -9.477e-01 5.816e+00 -0.16 128.000 0.000 32.529 +OBS: 56283.223 z NULL 2.200e+00 5.043e+00 0.44 26.644 101.356 32.691 +OBS: 56288.199 g NULL 8.791e-01 1.179e+01 0.07 99.000 5.000 98.923 +OBS: 56288.215 r NULL -8.370e+00 6.182e+00 -1.35 128.000 0.000 29.184 +OBS: 56289.109 i NULL 4.369e+00 7.080e+00 0.62 25.899 102.101 28.571 +OBS: 56289.125 z NULL -1.210e+01 5.427e+00 -2.23 128.000 0.000 28.614 +OBS: 56292.098 g NULL 2.099e+00 1.165e+01 0.18 99.000 5.000 98.923 +OBS: 56292.102 r NULL 3.770e+00 4.827e+00 0.78 26.059 101.941 28.001 +OBS: 56292.191 i NULL 2.014e+00 5.600e+00 0.36 26.740 101.260 27.482 +OBS: 56292.199 z NULL 1.186e+01 5.162e+00 2.30 24.815 0.620 27.368 +OBS: 56304.051 g NULL 1.975e+00 2.480e+00 0.80 99.000 5.000 98.923 +OBS: 56304.055 r NULL 4.563e+00 1.665e+00 2.74 25.852 0.492 26.060 +OBS: 56304.070 i NULL 6.145e+00 2.517e+00 2.44 25.529 0.573 25.122 +OBS: 56304.086 z NULL 2.221e+01 3.958e+00 5.61 24.134 0.212 24.777 +OBS: 56312.055 g NULL 9.360e-01 7.568e+00 0.12 99.000 5.000 98.923 +OBS: 56312.066 r NULL 7.839e+00 2.973e+00 2.64 25.264 0.518 25.052 +OBS: 56312.090 i NULL 1.558e+01 5.037e+00 3.09 24.519 0.424 24.306 +OBS: 56312.113 z NULL 1.755e+01 5.442e+00 3.23 24.389 0.403 24.199 +OBS: 56320.043 g NULL -8.176e-01 6.168e+00 -0.13 99.000 5.000 98.923 +OBS: 56320.051 r NULL 1.125e+01 2.506e+00 4.49 24.872 0.273 25.106 +OBS: 56320.059 i NULL 2.331e+01 3.693e+00 6.31 24.081 0.187 24.071 +OBS: 56320.070 z NULL 2.056e+01 4.415e+00 4.66 24.217 0.263 24.116 +OBS: 56328.047 g NULL -3.430e+00 3.351e+00 -1.02 99.000 5.000 98.923 +OBS: 56328.055 r NULL 6.484e+00 2.412e+00 2.69 25.470 0.505 25.666 +OBS: 56328.070 i NULL 1.928e+01 4.072e+00 4.74 24.287 0.258 24.307 +OBS: 56328.086 z NULL 1.975e+01 6.795e+00 2.91 24.261 0.458 24.176 +OBS: 56336.062 g NULL -5.401e+00 3.701e+00 -1.46 99.000 5.000 98.923 +OBS: 56336.082 r NULL 1.020e+00 3.009e+00 0.34 27.478 100.522 26.474 +OBS: 56337.062 i NULL 1.510e+01 2.948e+00 5.12 24.553 0.235 24.917 +OBS: 56337.078 z NULL 2.101e+01 3.771e+00 5.57 24.194 0.214 24.389 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56345.039 g NULL -1.633e+00 7.139e+00 -0.23 99.000 5.000 98.923 +OBS: 56345.055 r NULL 4.595e+00 3.772e+00 1.22 25.844 1.866 27.348 +OBS: 56346.055 i NULL 3.979e+00 5.989e+00 0.66 26.001 101.999 25.744 +OBS: 56348.027 z NULL 8.288e+00 5.024e+00 1.65 25.204 1.012 24.872 +OBS: 56350.023 g NULL -1.388e+00 6.829e+00 -0.20 99.000 5.000 98.923 +OBS: 56350.027 r NULL -9.749e-01 3.936e+00 -0.25 128.000 0.000 27.787 +OBS: 56350.035 i NULL 8.461e+00 6.684e+00 1.27 25.181 1.694 26.079 +OBS: 56351.023 z NULL 1.371e+01 6.103e+00 2.25 24.657 0.639 25.018 +END: diff --git a/data/tests/DES_data/DES_SN588995.DAT b/data/tests/DES_data/DES_SN588995.DAT new file mode 100644 index 000000000..e33cc3f10 --- /dev/null +++ b/data/tests/DES_data/DES_SN588995.DAT @@ -0,0 +1,201 @@ +SURVEY: DES +SNID: 588995 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 52.500000 deg +DECL: -27.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0097 MW E(B-V) +REDSHIFT_HELIO: 1.07744 +- 0.01880 (Helio, z_best) +REDSHIFT_FINAL: 1.07744 +- 0.01880 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 11344 +HOST_GALAXY_PHOTO-Z: 1.0774 +- 0.0188 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 30 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-017564 +SIM_LIBID: 0 +SIM_REDSHIFT: 1.0611 +SIM_HOSTLIB_TRUEZ: 1.0600 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 11344 +SIM_DLMU: 44.259598 mag [ -5*log10(10pc/dL) ] +SIM_RA: 52.500000 deg +SIM_DECL: -27.500000 deg +SIM_MWEBV: 0.0075 (MilkyWay E(B-V)) +SIM_PEAKMAG: 26.26 24.11 24.40 24.46 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56191.953125 days +SIM_SALT2x0: 1.978e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -7.65 days +SIM_TRESTMAX: 67.99 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56192.695 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 145 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56176.191 g NULL 5.163e-01 4.766e+00 0.11 28.218 99.782 26.451 +OBS: 56176.199 r NULL 2.597e+01 2.192e+00 11.85 23.964 0.095 24.045 +OBS: 56176.215 i NULL 1.120e+01 3.155e+00 3.55 24.877 0.360 24.764 +OBS: 56176.238 z NULL 1.939e+01 2.510e+00 7.73 24.281 0.150 24.730 +OBS: 56179.188 g NULL 3.307e+00 2.588e+00 1.28 26.202 1.657 26.363 +OBS: 56179.195 r NULL 2.607e+01 1.787e+00 14.59 23.960 0.077 24.036 +OBS: 56179.234 i NULL 1.003e+01 1.997e+00 5.02 24.996 0.242 24.660 +OBS: 56179.266 z NULL 1.055e+01 3.735e+00 2.82 24.942 0.475 24.678 +OBS: 56180.266 g NULL 2.289e+00 2.554e+00 0.90 26.601 101.399 26.340 +OBS: 56180.281 r NULL 2.541e+01 1.398e+00 18.18 23.987 0.061 24.037 +OBS: 56180.297 i NULL 1.434e+01 3.695e+00 3.88 24.609 0.324 24.627 +OBS: 56180.328 z NULL 2.197e+01 4.506e+00 4.88 24.145 0.248 24.659 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56188.160 g NULL 3.958e+00 5.688e+00 0.70 26.006 101.994 26.264 +OBS: 56188.176 r NULL 2.104e+01 5.593e+00 3.76 24.192 0.336 24.079 +OBS: 56188.211 i NULL 1.082e+01 4.528e+00 2.39 24.915 0.590 24.449 +OBS: 56188.238 z NULL 1.640e+01 3.414e+00 4.80 24.463 0.253 24.522 +OBS: 56189.254 g NULL 5.097e-02 2.289e+00 0.02 30.732 97.268 26.260 +OBS: 56189.270 r NULL 1.837e+01 3.297e+00 5.57 24.340 0.216 24.087 +OBS: 56189.281 i NULL 2.011e+01 9.057e+00 2.22 24.241 0.649 24.434 +OBS: 56189.312 z NULL 1.506e+01 2.979e+00 5.06 24.555 0.239 24.505 +OBS: 56194.258 g NULL 2.111e+00 2.641e+00 0.80 26.689 101.311 26.257 +OBS: 56194.270 r NULL 2.335e+01 1.563e+00 14.94 24.079 0.075 24.130 +OBS: 56194.285 i NULL 2.223e+01 2.335e+00 9.52 24.133 0.120 24.386 +OBS: 56194.305 z NULL 1.461e+01 2.402e+00 6.08 24.588 0.195 24.432 +OBS: 56202.160 g NULL 7.719e+00 4.794e+00 1.61 25.281 1.053 26.277 +OBS: 56202.176 r NULL 2.102e+01 2.362e+00 8.90 24.193 0.129 24.209 +OBS: 56202.191 i NULL 1.971e+01 4.182e+00 4.71 24.263 0.259 24.364 +OBS: 56202.215 z NULL 1.759e+01 2.732e+00 6.44 24.387 0.183 24.338 +OBS: 56210.172 g NULL 4.042e+00 3.694e+00 1.09 25.984 2.661 26.329 +OBS: 56210.188 r NULL 1.754e+01 3.236e+00 5.42 24.390 0.222 24.305 +OBS: 56210.203 i NULL 1.742e+01 3.228e+00 5.40 24.397 0.223 24.378 +OBS: 56210.234 z NULL 2.321e+01 3.871e+00 6.00 24.086 0.198 24.271 +OBS: 56218.172 g NULL 6.699e-01 1.257e+00 0.53 27.935 100.065 26.417 +OBS: 56218.191 r NULL 1.629e+01 1.017e+00 16.02 24.470 0.070 24.418 +OBS: 56218.211 i NULL 1.764e+01 1.543e+00 11.43 24.384 0.099 24.405 +OBS: 56219.156 z NULL 2.131e+01 1.976e+00 10.79 24.178 0.105 24.229 +OBS: 56221.273 g NULL 2.400e+00 3.914e+00 0.61 26.550 101.450 26.452 +OBS: 56221.281 r NULL 1.426e+01 5.594e+00 2.55 24.615 0.541 24.458 +OBS: 56221.297 i NULL 1.225e+01 4.493e+00 2.73 24.779 0.497 24.420 +OBS: 56221.324 z NULL 3.990e+01 1.441e+01 2.77 23.498 0.486 24.224 +OBS: 56222.074 g NULL 7.954e-01 5.910e+00 0.13 27.749 100.251 26.462 +OBS: 56222.090 r NULL 1.724e+01 2.651e+00 6.51 24.408 0.181 24.469 +OBS: 56222.113 i NULL 1.854e+01 3.345e+00 5.54 24.330 0.216 24.424 +OBS: 56222.133 z NULL 1.684e+01 5.067e+00 3.32 24.434 0.389 24.223 +OBS: 56228.059 g NULL -1.275e+00 7.694e+00 -0.17 128.000 0.000 26.536 +OBS: 56228.066 r NULL 1.399e+01 2.410e+00 5.81 24.635 0.205 24.545 +OBS: 56228.086 i NULL 1.958e+01 5.124e+00 3.82 24.270 0.329 24.457 +OBS: 56228.109 z NULL 1.595e+01 4.146e+00 3.85 24.493 0.327 24.220 +OBS: 56229.047 g NULL 4.109e+01 2.393e+01 1.72 23.466 0.947 26.550 +OBS: 56229.059 r NULL 1.601e+01 3.865e+00 4.14 24.489 0.300 24.559 +OBS: 56229.074 i NULL 1.175e+01 5.431e+00 2.16 24.825 0.674 24.462 +OBS: 56229.102 z NULL 2.093e+01 4.865e+00 4.30 24.198 0.287 24.221 +OBS: 56230.059 g NULL 1.126e+01 6.575e+00 1.71 24.871 0.952 26.565 +OBS: 56230.102 r NULL 1.014e+01 2.926e+00 3.47 24.985 0.371 24.573 +OBS: 56230.113 i NULL 8.198e+00 5.179e+00 1.58 25.216 1.087 24.468 +OBS: 56230.145 z NULL 1.976e+01 2.692e+00 7.34 24.261 0.159 24.221 +OBS: 56231.043 g NULL 7.089e+00 6.047e+00 1.17 25.374 2.081 26.579 +OBS: 56231.059 r NULL 1.561e+01 2.572e+00 6.07 24.516 0.195 24.586 +OBS: 56231.070 i NULL 1.768e+01 4.255e+00 4.16 24.381 0.299 24.474 +OBS: 56231.102 z NULL 2.254e+01 3.306e+00 6.82 24.118 0.172 24.223 +OBS: 56235.039 g NULL 1.093e+01 5.190e+00 2.11 24.904 0.699 26.638 +OBS: 56235.047 r NULL 1.121e+01 3.717e+00 3.02 24.876 0.438 24.638 +OBS: 56235.062 i NULL 2.763e+01 4.226e+00 6.54 23.896 0.179 24.495 +OBS: 56235.090 z NULL 3.268e+01 8.255e+00 3.96 23.714 0.315 24.231 +OBS: 56236.047 g NULL 3.773e+00 4.875e+00 0.77 26.058 101.942 26.654 +OBS: 56236.062 r NULL 1.242e+01 2.675e+00 4.64 24.765 0.264 24.652 +OBS: 56236.074 i NULL 2.098e+01 5.239e+00 4.00 24.195 0.311 24.500 +OBS: 56236.105 z NULL 1.540e+01 5.328e+00 2.89 24.531 0.462 24.233 +OBS: 56237.039 g NULL 2.027e+00 3.166e+00 0.64 26.733 101.267 26.668 +OBS: 56237.051 r NULL 7.207e+00 2.221e+00 3.25 25.356 0.402 24.665 +OBS: 56237.094 i NULL 1.969e+01 2.522e+00 7.81 24.264 0.148 24.506 +OBS: 56237.125 z NULL 2.501e+01 3.726e+00 6.71 24.005 0.175 24.236 +OBS: 56238.074 g NULL 5.940e+00 2.527e+00 2.35 25.566 0.601 26.684 +OBS: 56238.094 r NULL 1.517e+01 1.620e+00 9.36 24.548 0.122 24.678 +OBS: 56238.109 i NULL 1.810e+01 2.747e+00 6.59 24.356 0.178 24.511 +OBS: 56238.129 z NULL 1.589e+01 3.122e+00 5.09 24.497 0.238 24.239 +OBS: 56243.098 g NULL -2.423e+00 2.171e+00 -1.12 128.000 0.000 26.760 +OBS: 56243.109 r NULL 1.374e+01 1.680e+00 8.18 24.655 0.141 24.740 +OBS: 56243.125 i NULL 1.575e+01 2.585e+00 6.09 24.506 0.195 24.539 +OBS: 56243.152 z NULL 1.761e+01 2.573e+00 6.84 24.386 0.172 24.258 +OBS: 56244.082 g NULL 7.728e-01 2.193e+00 0.35 27.780 100.220 26.775 +OBS: 56244.098 r NULL 1.442e+01 1.662e+00 8.68 24.602 0.132 24.753 +OBS: 56244.109 i NULL 1.367e+01 2.605e+00 5.25 24.661 0.230 24.544 +OBS: 56244.133 z NULL 2.116e+01 3.010e+00 7.03 24.186 0.166 24.263 +OBS: 56245.070 g NULL 3.922e+00 1.723e+00 2.28 26.016 0.628 26.791 +OBS: 56245.082 r NULL 1.120e+01 1.376e+00 8.14 24.877 0.143 24.765 +OBS: 56245.109 i NULL 1.225e+01 3.224e+00 3.80 24.780 0.332 24.550 +OBS: 56245.137 z NULL 2.067e+01 2.865e+00 7.21 24.212 0.162 24.267 +OBS: 56246.117 g NULL 4.300e+00 6.565e+00 0.65 25.916 102.084 26.807 +OBS: 56246.125 r NULL 1.560e+01 2.832e+00 5.51 24.517 0.217 24.777 +OBS: 56246.152 i NULL 1.401e+01 1.982e+00 7.07 24.634 0.166 24.555 +OBS: 56246.180 z NULL 1.810e+01 1.965e+00 9.21 24.356 0.125 24.272 +OBS: 56247.281 g NULL 1.228e+00 1.493e+00 0.82 27.277 100.723 26.825 +OBS: 56247.297 r NULL 1.168e+01 1.161e+00 10.06 24.831 0.114 24.792 +OBS: 56247.316 i NULL 1.430e+01 1.997e+00 7.16 24.612 0.164 24.562 +OBS: 56247.340 z NULL 1.390e+01 2.505e+00 5.55 24.643 0.217 24.278 +OBS: 56248.324 g NULL -2.006e+00 1.705e+00 -1.18 128.000 0.000 26.841 +OBS: 56248.340 r NULL 1.237e+01 1.362e+00 9.08 24.769 0.127 24.804 +OBS: 56258.035 i NULL -1.335e+00 9.886e+00 -0.14 128.000 0.000 24.622 +OBS: 56258.066 z NULL 1.918e+01 3.985e+00 4.81 24.293 0.253 24.333 +OBS: 56258.215 g NULL -4.649e-01 4.948e+00 -0.09 128.000 0.000 26.995 +OBS: 56258.227 r NULL 9.272e+00 2.391e+00 3.88 25.082 0.324 24.924 +OBS: 56261.098 g NULL -9.942e+00 8.831e+00 -1.13 128.000 0.000 27.040 +OBS: 56261.102 r NULL 1.010e+01 3.405e+00 2.97 24.990 0.447 24.958 +OBS: 56261.125 i NULL 1.683e+01 3.870e+00 4.35 24.435 0.283 24.641 +OBS: 56261.156 z NULL 1.973e+01 3.110e+00 6.34 24.262 0.186 24.349 +OBS: 56273.160 g NULL 2.970e+00 1.756e+00 1.69 26.318 0.970 27.207 +OBS: 56273.176 r NULL 9.682e+00 1.233e+00 7.85 25.035 0.148 25.101 +OBS: 56273.188 i NULL 1.258e+01 2.042e+00 6.16 24.751 0.192 24.712 +OBS: 56273.219 z NULL 1.891e+01 2.281e+00 8.29 24.308 0.139 24.422 +OBS: 56281.160 g NULL -5.547e-01 2.076e+00 -0.27 128.000 0.000 27.299 +OBS: 56281.184 r NULL 8.419e+00 1.289e+00 6.53 25.187 0.180 25.193 +OBS: 56281.203 i NULL 1.219e+01 1.818e+00 6.71 24.785 0.175 24.764 +OBS: 56281.227 z NULL 1.653e+01 2.313e+00 7.15 24.454 0.164 24.466 +OBS: 56288.086 g NULL 1.984e+00 4.850e+00 0.41 26.756 101.244 27.361 +OBS: 56288.094 r NULL 3.172e+00 2.117e+00 1.50 26.247 1.200 25.271 +OBS: 56288.109 i NULL 1.098e+01 3.068e+00 3.58 24.899 0.356 24.806 +OBS: 56288.141 z NULL 1.749e+01 2.606e+00 6.71 24.393 0.175 24.520 +OBS: 56289.227 g NULL -7.759e+00 6.493e+00 -1.20 128.000 0.000 27.370 +OBS: 56289.242 r NULL 5.996e+00 2.705e+00 2.22 25.555 0.652 25.284 +OBS: 56289.258 i NULL 1.241e+01 5.091e+00 2.44 24.766 0.573 24.813 +OBS: 56292.035 z NULL 1.747e+01 2.089e+00 8.36 24.395 0.138 24.555 +OBS: 56292.141 g NULL 1.582e+00 3.055e+00 0.52 27.002 100.998 27.392 +OBS: 56292.156 r NULL 9.429e+00 1.748e+00 5.39 25.064 0.222 25.315 +OBS: 56292.172 i NULL 6.045e+00 2.659e+00 2.27 25.547 0.632 24.830 +OBS: 56303.039 g NULL 1.392e+00 1.374e+00 1.01 27.141 4.700 27.469 +OBS: 56303.051 r NULL 7.081e+00 9.154e-01 7.74 25.375 0.150 25.435 +OBS: 56303.070 i NULL 1.020e+01 1.431e+00 7.12 24.979 0.165 24.894 +OBS: 56303.094 z NULL 1.531e+01 2.229e+00 6.87 24.538 0.171 24.669 +OBS: 56311.043 g NULL -1.370e+00 2.671e+00 -0.51 128.000 0.000 27.526 +OBS: 56311.055 r NULL 4.215e+00 1.501e+00 2.81 25.938 0.479 25.529 +OBS: 56311.074 i NULL 1.409e+01 2.406e+00 5.86 24.628 0.203 24.948 +OBS: 56311.098 z NULL 1.855e+01 2.460e+00 7.54 24.329 0.154 24.713 +OBS: 56317.125 g NULL -1.060e+00 4.217e+00 -0.25 128.000 0.000 27.575 +OBS: 56317.141 r NULL 3.793e+00 1.864e+00 2.04 26.053 0.735 25.604 +OBS: 56318.109 i NULL 8.464e+00 2.788e+00 3.04 25.181 0.434 24.998 +OBS: 56318.141 z NULL 1.756e+01 2.994e+00 5.86 24.389 0.202 24.732 +OBS: 56321.090 g NULL -1.795e+00 6.628e+00 -0.27 128.000 0.000 27.619 +OBS: 56321.098 r NULL 7.822e+00 2.894e+00 2.70 25.267 0.501 25.651 +OBS: 56321.109 i NULL 9.936e+00 3.410e+00 2.91 25.007 0.456 25.019 +OBS: 56321.141 z NULL 1.451e+01 2.971e+00 4.88 24.596 0.249 24.742 +OBS: 56332.039 g NULL -6.824e-01 1.461e+00 -0.47 128.000 0.000 27.814 +OBS: 56332.051 r NULL 4.142e+00 9.811e-01 4.22 25.957 0.294 25.763 +OBS: 56332.070 i NULL 8.466e+00 1.594e+00 5.31 25.181 0.227 25.081 +OBS: 56332.094 z NULL 1.068e+01 2.586e+00 4.13 24.929 0.301 24.827 +END: diff --git a/data/tests/DES_data/DES_SN592729.DAT b/data/tests/DES_data/DES_SN592729.DAT new file mode 100644 index 000000000..481a7980d --- /dev/null +++ b/data/tests/DES_data/DES_SN592729.DAT @@ -0,0 +1,100 @@ +SURVEY: DES +SNID: 592729 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: 22 +FILTERS: griz +RA: 48.000000 deg +DECL: 0.000000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0713 MW E(B-V) +REDSHIFT_HELIO: 0.34426 +- 0.00500 (Helio, z_best) +REDSHIFT_FINAL: 0.34426 +- 0.00500 (CMB) +REDSHIFT_SPEC: 0.34426 +- 0.00500 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 10086 +HOST_GALAXY_PHOTO-Z: 0.3112 +- 0.0369 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 3 (non1a index) +SIM_COMMENT: SN Type = IIP , MODEL = NUGENT2P +SIM_LIBID: 3 +SIM_REDSHIFT: 0.3393 +SIM_HOSTLIB_TRUEZ: 0.3400 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 10086 +SIM_DLMU: 41.265251 mag [ -5*log10(10pc/dL) ] +SIM_RA: 48.000000 deg +SIM_DECL: 0.000000 deg +SIM_MWEBV: 0.0746 (MilkyWay E(B-V)) +SIM_PEAKMAG: 24.27 23.16 23.02 22.80 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56316.121094 days +SIM_SALT2x0: 3.118e-17 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -30.59 days +SIM_TRESTMAX: 26.06 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56316.074 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 44 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56275.152 g NULL 3.997e+00 3.310e+00 1.21 99.000 5.000 97.053 +OBS: 56275.172 r NULL -9.429e-01 2.239e+00 -0.42 99.000 5.000 97.090 +OBS: 56275.191 i NULL 1.041e+00 4.492e+00 0.23 99.000 5.000 97.097 +OBS: 56275.203 z NULL -8.447e+00 5.327e+00 -1.59 99.000 5.000 97.136 +OBS: 56283.203 g NULL -9.989e+00 6.287e+00 -1.59 99.000 5.000 97.053 +OBS: 56283.211 r NULL -5.010e+00 3.327e+00 -1.51 99.000 5.000 97.090 +OBS: 56283.215 i NULL 7.464e+00 5.818e+00 1.28 99.000 5.000 97.097 +OBS: 56283.223 z NULL 8.947e-01 5.042e+00 0.18 99.000 5.000 97.136 +OBS: 56288.199 g NULL 1.485e+01 1.179e+01 1.26 99.000 5.000 97.053 +OBS: 56288.215 r NULL -3.354e-01 6.180e+00 -0.05 99.000 5.000 97.090 +OBS: 56289.109 i NULL -7.563e+00 7.081e+00 -1.07 99.000 5.000 97.097 +OBS: 56289.125 z NULL 2.575e+00 5.422e+00 0.47 99.000 5.000 97.136 +OBS: 56292.098 g NULL 1.921e+00 1.165e+01 0.16 26.791 101.209 28.007 +OBS: 56292.102 r NULL 3.406e+00 4.827e+00 0.71 26.169 101.831 28.138 +OBS: 56292.191 i NULL 1.027e+01 5.603e+00 1.83 24.971 0.855 28.072 +OBS: 56292.199 z NULL 4.850e-01 5.158e+00 0.09 28.286 99.714 28.036 +OBS: 56304.051 g NULL 3.277e+01 2.682e+00 12.22 23.711 0.093 23.709 +OBS: 56304.055 r NULL 7.290e+01 2.226e+00 32.74 22.843 0.033 22.881 +OBS: 56304.070 i NULL 6.263e+01 2.818e+00 22.22 23.008 0.050 22.958 +OBS: 56304.086 z NULL 8.188e+01 4.237e+00 19.32 22.717 0.058 22.707 +OBS: 56312.055 g NULL 2.146e+01 7.610e+00 2.82 24.171 0.476 24.031 +OBS: 56312.066 r NULL 5.649e+01 3.191e+00 17.70 23.120 0.064 23.045 +OBS: 56312.090 i NULL 6.994e+01 5.214e+00 13.42 22.888 0.084 22.971 +OBS: 56312.113 z NULL 8.419e+01 5.664e+00 14.87 22.687 0.075 22.735 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56320.043 g NULL 2.657e+01 6.213e+00 4.28 23.939 0.289 24.512 +OBS: 56320.051 r NULL 5.316e+01 2.725e+00 19.51 23.186 0.057 23.218 +OBS: 56320.059 i NULL 5.554e+01 3.833e+00 14.49 23.139 0.078 23.035 +OBS: 56320.070 z NULL 7.019e+01 4.599e+00 15.26 22.884 0.074 22.828 +OBS: 56328.047 g NULL 6.486e+00 3.384e+00 1.92 25.470 0.802 24.987 +OBS: 56328.055 r NULL 4.063e+01 2.565e+00 15.84 23.478 0.071 23.419 +OBS: 56328.070 i NULL 5.748e+01 4.215e+00 13.64 23.101 0.082 23.151 +OBS: 56328.086 z NULL 6.024e+01 6.884e+00 8.75 23.050 0.132 22.949 +OBS: 56336.062 g NULL 7.280e+00 3.724e+00 1.95 25.345 0.778 25.285 +OBS: 56336.082 r NULL 3.615e+01 3.110e+00 11.62 23.605 0.097 23.667 +OBS: 56337.062 i NULL 4.228e+01 3.063e+00 13.81 23.435 0.082 23.369 +OBS: 56337.078 z NULL 5.822e+01 3.913e+00 14.88 23.087 0.075 23.129 +OBS: 56345.039 g NULL -1.582e+00 7.147e+00 -0.22 128.000 0.000 25.584 +OBS: 56345.055 r NULL 2.524e+01 3.817e+00 6.61 23.995 0.178 23.932 +OBS: 56346.055 i NULL 4.156e+01 6.050e+00 6.87 23.453 0.171 23.542 +OBS: 56348.027 z NULL 4.376e+01 5.095e+00 8.59 23.397 0.135 23.291 +OBS: 56350.023 g NULL 8.863e+00 6.838e+00 1.30 25.131 1.603 25.799 +OBS: 56350.027 r NULL 2.687e+01 3.984e+00 6.74 23.927 0.174 24.046 +OBS: 56350.035 i NULL 3.293e+01 6.723e+00 4.90 23.706 0.248 23.594 +OBS: 56351.023 z NULL 5.074e+01 6.177e+00 8.22 23.237 0.141 23.321 +END: diff --git a/data/tests/DES_data/DES_SN635943.DAT b/data/tests/DES_data/DES_SN635943.DAT new file mode 100644 index 000000000..8b3184d55 --- /dev/null +++ b/data/tests/DES_data/DES_SN635943.DAT @@ -0,0 +1,108 @@ +SURVEY: DES +SNID: 635943 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: 22 +FILTERS: griz +RA: 48.000000 deg +DECL: 0.000000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0713 MW E(B-V) +REDSHIFT_HELIO: 0.22577 +- 0.00500 (Helio, z_best) +REDSHIFT_FINAL: 0.22577 +- 0.00500 (CMB) +REDSHIFT_SPEC: 0.22577 +- 0.00500 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 16350 +HOST_GALAXY_PHOTO-Z: 0.2760 +- 0.0276 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 37 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-018590 +SIM_LIBID: 3 +SIM_REDSHIFT: 0.2286 +SIM_HOSTLIB_TRUEZ: 0.2300 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 16350 +SIM_DLMU: 40.282200 mag [ -5*log10(10pc/dL) ] +SIM_RA: 48.000000 deg +SIM_DECL: 0.000000 deg +SIM_MWEBV: 0.0748 (MilkyWay E(B-V)) +SIM_PEAKMAG: 24.06 23.37 23.29 23.89 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56299.671875 days +SIM_SALT2x0: 7.711e-17 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -33.79 days +SIM_TRESTMAX: 41.80 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56300.391 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 52 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56258.152 g NULL -3.445e+01 1.265e+01 -2.72 99.000 5.000 99.089 +OBS: 56258.168 z NULL -5.322e+00 5.983e+00 -0.89 99.000 5.000 99.042 +OBS: 56258.273 r NULL -3.697e+00 7.778e+00 -0.48 99.000 5.000 99.045 +OBS: 56258.281 i NULL -1.782e-01 1.262e+01 -0.01 99.000 5.000 99.015 +OBS: 56261.266 g NULL 8.226e+00 1.009e+01 0.82 99.000 5.000 99.089 +OBS: 56261.273 r NULL 9.655e+00 4.188e+00 2.31 99.000 5.000 99.045 +OBS: 56261.281 i NULL 1.143e+01 7.032e+00 1.63 99.000 5.000 99.015 +OBS: 56261.289 z NULL 2.820e+00 4.892e+00 0.58 99.000 5.000 99.042 +OBS: 56275.152 g NULL 1.972e-01 3.310e+00 0.06 29.263 98.737 40.270 +OBS: 56275.172 r NULL -1.731e+00 2.239e+00 -0.77 128.000 0.000 37.817 +OBS: 56275.191 i NULL 2.818e+00 4.492e+00 0.63 26.375 101.625 36.693 +OBS: 56275.203 z NULL -4.478e+00 5.325e+00 -0.84 128.000 0.000 36.965 +OBS: 56283.203 g NULL 9.972e-01 6.285e+00 0.16 27.503 100.497 34.658 +OBS: 56283.211 r NULL -5.023e-01 3.326e+00 -0.15 128.000 0.000 28.255 +OBS: 56283.215 i NULL 1.137e+00 5.817e+00 0.20 27.360 100.640 26.847 +OBS: 56283.223 z NULL -4.064e+00 5.043e+00 -0.81 128.000 0.000 27.499 +OBS: 56288.199 g NULL -1.535e+01 1.179e+01 -1.30 128.000 0.000 32.275 +OBS: 56288.215 r NULL 2.360e+00 6.181e+00 0.38 26.568 101.432 26.438 +OBS: 56289.109 i NULL 1.081e+01 7.086e+00 1.53 24.915 1.157 24.951 +OBS: 56289.125 z NULL -7.523e-01 5.423e+00 -0.14 128.000 0.000 25.837 +OBS: 56292.098 g NULL 4.766e+00 1.165e+01 0.41 25.805 102.195 28.713 +OBS: 56292.102 r NULL 1.611e+01 4.845e+00 3.33 24.482 0.388 25.136 +OBS: 56292.191 i NULL 3.364e+01 5.644e+00 5.96 23.683 0.199 24.193 +OBS: 56292.199 z NULL 7.397e+00 5.161e+00 1.43 25.327 1.299 25.150 +OBS: 56304.051 g NULL 3.008e+01 2.663e+00 11.30 23.804 0.101 23.776 +OBS: 56304.055 r NULL 4.525e+01 1.924e+00 23.52 23.361 0.048 23.323 +OBS: 56304.070 i NULL 5.216e+01 2.733e+00 19.09 23.207 0.058 23.198 +OBS: 56304.086 z NULL 3.945e+01 4.011e+00 9.84 23.510 0.116 23.561 +OBS: 56312.055 g NULL 1.156e+01 7.598e+00 1.52 24.842 1.164 24.219 +OBS: 56312.066 r NULL 3.146e+01 3.049e+00 10.32 23.755 0.111 23.616 +OBS: 56312.090 i NULL 4.445e+01 5.109e+00 8.70 23.380 0.133 23.288 +OBS: 56312.113 z NULL 4.695e+01 5.506e+00 8.53 23.321 0.135 23.459 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56320.043 g NULL 1.806e+01 6.198e+00 2.91 24.358 0.456 24.726 +OBS: 56320.051 r NULL 3.129e+01 2.588e+00 12.09 23.762 0.094 23.677 +OBS: 56320.059 i NULL 4.372e+01 3.770e+00 11.60 23.398 0.098 23.371 +OBS: 56320.070 z NULL 4.663e+01 4.487e+00 10.39 23.328 0.109 23.497 +OBS: 56328.047 g NULL 3.880e+00 3.375e+00 1.15 26.028 2.218 25.303 +OBS: 56328.055 r NULL 3.402e+01 2.521e+00 13.50 23.671 0.083 23.701 +OBS: 56328.070 i NULL 4.882e+01 4.169e+00 11.71 23.278 0.096 23.464 +OBS: 56328.086 z NULL 3.650e+01 6.821e+00 5.35 23.594 0.225 23.584 +OBS: 56336.062 g NULL -3.029e-01 3.713e+00 -0.08 128.000 0.000 25.824 +OBS: 56336.082 r NULL 3.882e+01 3.118e+00 12.45 23.527 0.090 23.764 +OBS: 56337.062 i NULL 3.541e+01 3.027e+00 11.70 23.627 0.097 23.572 +OBS: 56337.078 z NULL 3.358e+01 3.806e+00 8.82 23.685 0.131 23.687 +OBS: 56345.039 g NULL 2.456e+00 7.143e+00 0.34 26.525 101.475 26.336 +OBS: 56345.055 r NULL 2.379e+01 3.815e+00 6.24 24.059 0.190 23.873 +OBS: 56346.055 i NULL 2.792e+01 6.022e+00 4.64 23.885 0.264 23.679 +OBS: 56348.027 z NULL 2.748e+01 5.052e+00 5.44 23.902 0.221 23.801 +OBS: 56350.023 g NULL 5.701e+00 6.833e+00 0.83 25.610 102.390 26.641 +OBS: 56350.027 r NULL 2.716e+01 3.986e+00 6.81 23.915 0.172 23.938 +OBS: 56350.035 i NULL 2.877e+01 6.714e+00 4.28 23.853 0.289 23.726 +OBS: 56351.023 z NULL 3.346e+01 6.133e+00 5.46 23.689 0.220 23.828 +END: diff --git a/data/tests/DES_data/DES_SN649902.DAT b/data/tests/DES_data/DES_SN649902.DAT new file mode 100644 index 000000000..6b6a3c01c --- /dev/null +++ b/data/tests/DES_data/DES_SN649902.DAT @@ -0,0 +1,114 @@ +SURVEY: DES +SNID: 649902 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 48.000000 deg +DECL: 0.000000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0713 MW E(B-V) +REDSHIFT_HELIO: 0.64006 +- 0.02570 (Helio, z_best) +REDSHIFT_FINAL: 0.64006 +- 0.02570 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 15005 +HOST_GALAXY_PHOTO-Z: 0.6401 +- 0.0257 + + + +SIM_MODEL: SALT2.K09_LAMOPEN 6 (name index) +SIM_NON1a: 0 (non1a index) +SIM_COMMENT: SN Type = Ia , MODEL = SALT2.K09_LAMOPEN +SIM_LIBID: 3 +SIM_REDSHIFT: 0.6667 +SIM_HOSTLIB_TRUEZ: 0.6700 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 15005 +SIM_DLMU: 43.017403 mag [ -5*log10(10pc/dL) ] +SIM_RA: 48.000000 deg +SIM_DECL: 0.000000 deg +SIM_MWEBV: 0.0744 (MilkyWay E(B-V)) +SIM_PEAKMAG: 25.85 23.99 23.76 23.55 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56319.863281 days +SIM_SALT2alpha: 0.110 +SIM_SALT2beta: 3.200 +SIM_SALT2x0: 3.867e-06 +SIM_SALT2x1: 0.0171 +SIM_SALT2c: 0.1612 +SIM_SALT2mB: 24.1664 +SIM_STRETCH: 1.017 +SIM_MAGDIM: 1.632 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -37.03 days +SIM_TRESTMAX: 18.70 days +SIM_RISETIME_SHIFT: -0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56321.023 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 52 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56258.152 g NULL -5.098e+00 1.263e+01 -0.40 99.000 5.000 98.778 +OBS: 56258.168 z NULL -1.204e+00 5.982e+00 -0.20 99.000 5.000 99.049 +OBS: 56258.273 r NULL -9.840e+00 7.780e+00 -1.26 99.000 5.000 99.038 +OBS: 56258.281 i NULL 4.976e+00 1.262e+01 0.39 99.000 5.000 99.090 +OBS: 56261.266 g NULL 4.996e+00 1.009e+01 0.50 99.000 5.000 98.778 +OBS: 56261.273 r NULL 7.018e-01 4.184e+00 0.17 99.000 5.000 99.038 +OBS: 56261.281 i NULL 6.885e+00 7.030e+00 0.98 99.000 5.000 99.090 +OBS: 56261.289 z NULL -3.853e+00 4.892e+00 -0.79 99.000 5.000 99.049 +OBS: 56275.152 g NULL 3.285e-01 3.310e+00 0.10 99.000 5.000 98.778 +OBS: 56275.172 r NULL -3.404e-01 2.239e+00 -0.15 99.000 5.000 99.038 +OBS: 56275.191 i NULL -8.346e+00 4.494e+00 -1.86 99.000 5.000 99.090 +OBS: 56275.203 z NULL 6.532e+00 5.326e+00 1.23 99.000 5.000 99.049 +OBS: 56283.203 g NULL 6.023e-01 6.285e+00 0.10 99.000 5.000 98.778 +OBS: 56283.211 r NULL -1.201e+00 3.325e+00 -0.36 99.000 5.000 99.038 +OBS: 56283.215 i NULL 5.855e+00 5.817e+00 1.01 99.000 5.000 99.090 +OBS: 56283.223 z NULL 3.319e+00 5.043e+00 0.66 99.000 5.000 99.049 +OBS: 56288.199 g NULL -1.279e+01 1.179e+01 -1.08 128.000 0.000 32.126 +OBS: 56288.215 r NULL 7.769e+00 6.182e+00 1.26 25.274 1.723 30.144 +OBS: 56289.109 i NULL 8.250e-01 7.080e+00 0.12 27.709 100.291 28.816 +OBS: 56289.125 z NULL 1.620e+00 5.422e+00 0.30 26.976 101.024 28.529 +OBS: 56292.098 g NULL -5.088e+00 1.165e+01 -0.44 128.000 0.000 29.449 +OBS: 56292.102 r NULL 6.423e-01 4.827e+00 0.13 27.981 100.019 27.495 +OBS: 56292.191 i NULL 4.553e-01 5.600e+00 0.08 28.354 99.646 27.165 +OBS: 56292.199 z NULL -7.358e+00 5.160e+00 -1.43 128.000 0.000 26.886 +OBS: 56304.051 g NULL 3.874e+00 2.494e+00 1.55 26.030 1.121 26.178 +OBS: 56304.055 r NULL 1.246e+01 1.694e+00 7.35 24.761 0.159 24.682 +OBS: 56304.070 i NULL 1.561e+01 2.537e+00 6.15 24.517 0.193 24.518 +OBS: 56304.086 z NULL 2.104e+01 3.957e+00 5.32 24.192 0.226 24.364 +OBS: 56312.055 g NULL 1.513e+01 7.580e+00 2.00 24.550 0.754 25.653 +OBS: 56312.066 r NULL 2.485e+01 3.018e+00 8.23 24.012 0.140 24.054 +OBS: 56312.090 i NULL 1.752e+01 5.043e+00 3.47 24.391 0.370 23.916 +OBS: 56312.113 z NULL 2.530e+01 5.455e+00 4.64 23.992 0.264 23.728 +OBS: 56320.043 g NULL 9.250e+00 6.178e+00 1.50 25.085 1.196 25.859 +OBS: 56320.051 r NULL 2.577e+01 2.559e+00 10.07 23.972 0.113 23.994 +OBS: 56320.059 i NULL 3.176e+01 3.720e+00 8.54 23.745 0.135 23.764 +OBS: 56320.070 z NULL 3.801e+01 4.459e+00 8.52 23.550 0.135 23.552 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56328.047 g NULL 4.347e+00 3.360e+00 1.29 25.905 1.609 26.424 +OBS: 56328.055 r NULL 1.925e+01 2.451e+00 7.86 24.289 0.148 24.265 +OBS: 56328.070 i NULL 2.983e+01 4.099e+00 7.28 23.813 0.160 23.901 +OBS: 56328.086 z NULL 4.266e+01 6.833e+00 6.24 23.425 0.189 23.583 +OBS: 56336.062 g NULL 5.342e+00 3.706e+00 1.44 25.681 1.284 27.036 +OBS: 56336.082 r NULL 1.463e+01 3.030e+00 4.83 24.587 0.252 24.731 +OBS: 56337.062 i NULL 1.574e+01 2.956e+00 5.33 24.507 0.227 24.251 +OBS: 56337.078 z NULL 4.099e+01 3.830e+00 10.70 23.468 0.105 23.832 +OBS: 56345.039 g NULL 4.675e+00 7.140e+00 0.65 25.825 102.175 27.825 +OBS: 56345.055 r NULL 7.961e+00 3.778e+00 2.11 25.248 0.698 25.391 +OBS: 56346.055 i NULL 5.155e+00 5.992e+00 0.86 25.720 102.280 24.710 +OBS: 56348.027 z NULL 1.785e+01 5.034e+00 3.55 24.371 0.360 24.194 +OBS: 56350.023 g NULL -2.781e+00 6.830e+00 -0.41 128.000 0.000 28.299 +OBS: 56350.027 r NULL 1.699e+00 3.939e+00 0.43 26.924 101.076 25.780 +OBS: 56350.035 i NULL 1.008e+01 6.688e+00 1.51 24.992 1.183 24.924 +OBS: 56351.023 z NULL 2.248e+01 6.114e+00 3.68 24.120 0.344 24.282 +END: diff --git a/data/tests/DES_data/DES_SN673933.DAT b/data/tests/DES_data/DES_SN673933.DAT new file mode 100644 index 000000000..0590aa253 --- /dev/null +++ b/data/tests/DES_data/DES_SN673933.DAT @@ -0,0 +1,171 @@ +SURVEY: DES +SNID: 673933 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 34.500000 deg +DECL: -5.500000 deg +MAGTYPE: LOG10 +MAGREF: +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0227 MW E(B-V) +REDSHIFT_HELIO: 0.49979 +- 0.01880 (Helio, z_best) +REDSHIFT_FINAL: 0.49979 +- 0.01880 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 15638 +HOST_GALAXY_PHOTO-Z: 0.4998 +- 0.0188 + + + +SIM_MODEL: mlcs2k2.SNchallenge 3 (name index) +SIM_NON1a: 0 (non1a index) +SIM_COMMENT: SN Type = Ia , MODEL = mlcs2k2.SNchallenge +SIM_LIBID: 1 +SIM_REDSHIFT: 0.4921 +SIM_HOSTLIB_TRUEZ: 0.4900 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 15638 +SIM_DLMU: 42.219639 mag [ -5*log10(10pc/dL) ] +SIM_RA: 34.500000 deg +SIM_DECL: -5.500000 deg +SIM_MWEBV: 0.0248 (MilkyWay E(B-V)) +SIM_AVTAU: 0.250 (dN/dAV = exp(-AV/AVTAU)) +SIM_AV: 0.316 mag (host extinction at 5510 A) +SIM_RV: 2.114 (CCM89 extinction parameter) +SIM_PEAKMAG: 23.79 22.47 22.53 22.53 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56271.187500 days +SIM_DELTA: -0.214 mag (MLCS lumi-par) +SIM_STRETCH: 1.214 +SIM_MAGDIM: 0.382 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -37.55 days +SIM_TRESTMAX: 53.49 days +SIM_RISETIME_SHIFT: -0.0 days +SIM_FALLTIME_SHIFT: -0.0 days + +SEARCH_PEAKMJD: 56272.820 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 111 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56215.164 g NULL 1.237e+00 1.595e+00 0.78 99.000 5.000 99.000 +OBS: 56215.180 r NULL 2.887e-01 1.096e+00 0.26 99.000 5.000 99.000 +OBS: 56217.152 i NULL -3.199e+00 1.397e+00 -2.29 99.000 5.000 99.000 +OBS: 56217.191 z NULL 2.332e+00 1.817e+00 1.28 99.000 5.000 99.000 +OBS: 56221.062 g NULL 3.192e+00 4.488e+00 0.71 99.000 5.000 99.000 +OBS: 56221.074 r NULL 1.149e+00 3.581e+00 0.32 99.000 5.000 99.000 +OBS: 56221.195 i NULL 1.259e+00 1.345e+01 0.09 99.000 5.000 99.000 +OBS: 56221.227 z NULL 2.733e+00 4.014e+00 0.68 99.000 5.000 99.000 +OBS: 56222.047 g NULL -5.310e+00 6.420e+00 -0.83 99.000 5.000 99.000 +OBS: 56222.062 r NULL -1.160e+00 3.125e+00 -0.37 99.000 5.000 99.000 +OBS: 56222.191 i NULL -1.974e+01 9.797e+00 -2.02 99.000 5.000 99.000 +OBS: 56222.211 z NULL -3.577e+00 4.835e+00 -0.74 99.000 5.000 99.000 +OBS: 56228.031 g NULL 9.200e+00 2.612e+01 0.35 99.000 5.000 99.000 +OBS: 56228.047 r NULL 1.939e+01 1.165e+01 1.66 99.000 5.000 99.000 +OBS: 56228.156 i NULL -5.443e+00 5.179e+00 -1.05 99.000 5.000 99.000 +OBS: 56228.188 z NULL 8.918e-01 2.842e+00 0.31 99.000 5.000 99.000 +OBS: 56229.031 g NULL -1.365e+01 3.075e+01 -0.44 99.000 5.000 99.000 +OBS: 56229.156 r NULL -3.411e+00 3.595e+00 -0.95 99.000 5.000 99.000 +OBS: 56229.172 i NULL -1.467e+00 7.053e+00 -0.21 99.000 5.000 99.000 +OBS: 56229.199 z NULL 1.961e+00 2.926e+00 0.67 99.000 5.000 99.000 +OBS: 56230.035 g NULL -1.159e+00 9.315e+00 -0.12 99.000 5.000 99.000 +OBS: 56230.043 r NULL -1.839e+00 3.864e+00 -0.48 99.000 5.000 99.000 +OBS: 56230.191 i NULL -4.468e+00 6.318e+00 -0.71 99.000 5.000 99.000 +OBS: 56230.215 z NULL -2.271e+00 2.921e+00 -0.78 99.000 5.000 99.000 +OBS: 56231.035 g NULL -1.125e+01 7.697e+00 -1.46 99.000 5.000 99.000 +OBS: 56231.156 r NULL -5.093e+00 2.655e+00 -1.92 99.000 5.000 99.000 +OBS: 56231.172 i NULL -5.557e+00 4.792e+00 -1.16 99.000 5.000 99.000 +OBS: 56231.191 z NULL 1.601e-01 3.017e+00 0.05 99.000 5.000 99.000 +OBS: 56235.145 g NULL 1.518e+00 3.787e+00 0.40 99.000 5.000 99.000 +OBS: 56235.160 r NULL 5.404e-01 1.756e+00 0.31 99.000 5.000 99.000 +OBS: 56235.172 i NULL -2.755e+00 3.200e+00 -0.86 99.000 5.000 99.000 +OBS: 56235.195 z NULL -5.332e+00 2.938e+00 -1.82 99.000 5.000 99.000 +OBS: 56236.160 g NULL 1.241e+00 2.000e+00 0.62 99.000 5.000 99.000 +OBS: 56236.172 r NULL -4.046e+00 1.876e+00 -2.16 99.000 5.000 99.000 +OBS: 56236.188 i NULL -5.959e+00 2.785e+00 -2.14 99.000 5.000 99.000 +OBS: 56236.207 z NULL 1.819e+00 3.190e+00 0.57 99.000 5.000 99.000 +OBS: 56237.176 g NULL 1.047e+00 3.438e+00 0.30 99.000 5.000 99.000 +OBS: 56237.188 r NULL 2.853e+00 2.252e+00 1.27 99.000 5.000 99.000 +OBS: 56237.207 i NULL 3.386e+00 2.862e+00 1.18 99.000 5.000 99.000 +OBS: 56237.238 z NULL 7.092e-01 3.867e+00 0.18 99.000 5.000 99.000 +OBS: 56238.188 g NULL 1.122e+00 2.970e+00 0.38 99.000 5.000 99.000 +OBS: 56238.199 r NULL 1.229e-01 2.023e+00 0.06 99.000 5.000 99.000 +OBS: 56238.219 i NULL -4.005e-01 3.235e+00 -0.12 99.000 5.000 99.000 +OBS: 56238.250 z NULL 8.472e-01 4.861e+00 0.17 99.000 5.000 99.000 +OBS: 56243.203 g NULL 4.710e+00 1.691e+00 2.79 25.817 0.482 29.885 +OBS: 56243.211 r NULL 1.612e+00 1.224e+00 1.32 26.982 1.547 27.765 +OBS: 56243.223 i NULL 3.711e-01 1.848e+00 0.20 28.576 99.424 27.834 +OBS: 56243.250 z NULL 5.688e+00 2.418e+00 2.35 25.613 0.600 27.858 +OBS: 56244.180 g NULL -3.844e-01 1.782e+00 -0.22 128.000 0.000 28.628 +OBS: 56244.188 r NULL 1.431e+00 1.375e+00 1.04 27.111 3.512 26.768 +OBS: 56244.203 i NULL 2.319e+00 1.988e+00 1.17 26.587 2.111 26.874 +OBS: 56244.223 z NULL 1.617e+00 2.231e+00 0.72 26.978 101.022 26.875 +OBS: 56245.191 g NULL 8.082e+00 4.788e+00 1.69 25.231 0.974 27.918 +OBS: 56245.199 r NULL 4.330e+00 1.179e+00 3.67 25.909 0.345 26.106 +OBS: 56245.219 i NULL 8.845e-01 2.078e+00 0.43 27.633 100.367 26.223 +OBS: 56245.246 z NULL 1.379e+00 5.918e+00 0.23 27.151 100.849 26.223 +OBS: 56246.234 g NULL -3.658e-01 2.001e+00 -0.18 128.000 0.000 27.365 +OBS: 56246.246 r NULL 3.076e+00 3.172e+00 0.97 26.280 101.720 25.556 +OBS: 56246.262 i NULL 8.791e+00 5.644e+00 1.56 25.140 1.115 25.679 +OBS: 56246.285 z NULL 3.305e+00 1.277e+01 0.26 26.202 101.798 25.685 +OBS: 56248.207 g NULL 7.099e-01 1.756e+00 0.40 27.872 100.128 26.608 +OBS: 56248.215 r NULL 1.220e+01 1.351e+00 9.03 24.784 0.127 24.806 +OBS: 56248.230 i NULL 1.224e+01 2.222e+00 5.51 24.780 0.217 24.931 +OBS: 56248.250 z NULL 1.479e+01 3.043e+00 4.86 24.575 0.250 24.940 +OBS: 56258.242 g NULL 2.598e+01 8.104e+00 3.21 23.964 0.406 24.113 +OBS: 56258.258 r NULL 5.550e+01 4.549e+00 12.20 23.139 0.093 23.026 +OBS: 56259.160 i NULL 6.153e+01 4.692e+00 13.11 23.027 0.086 23.000 +OBS: 56259.180 z NULL 6.720e+01 3.310e+00 20.30 22.932 0.054 23.013 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56261.215 g NULL 2.968e+01 4.019e+00 7.39 23.819 0.158 23.741 +OBS: 56261.230 r NULL 8.252e+01 2.433e+00 33.92 22.709 0.032 22.724 +OBS: 56267.156 i NULL 9.161e+01 2.817e+00 32.52 22.595 0.034 22.580 +OBS: 56267.180 z NULL 9.247e+01 3.509e+00 26.35 22.585 0.042 22.603 +OBS: 56274.160 g NULL 2.954e+01 2.149e+00 13.75 23.824 0.082 23.931 +OBS: 56274.176 r NULL 9.793e+01 2.360e+00 41.49 22.523 0.027 22.510 +OBS: 56275.223 i NULL 9.671e+01 3.525e+00 27.43 22.536 0.040 22.538 +OBS: 56276.191 z NULL 9.519e+01 3.842e+00 24.77 22.554 0.045 22.539 +OBS: 56282.160 g NULL 9.171e+00 3.422e+00 2.68 25.094 0.508 24.628 +OBS: 56282.184 r NULL 7.596e+01 2.623e+00 28.96 22.798 0.038 22.795 +OBS: 56287.160 i NULL 7.267e+01 5.176e+00 14.04 22.847 0.080 22.842 +OBS: 56287.191 z NULL 7.633e+01 4.150e+00 18.39 22.793 0.060 22.888 +OBS: 56289.035 g NULL -7.444e+00 1.190e+01 -0.63 128.000 0.000 25.273 +OBS: 56289.043 r NULL 5.048e+01 4.297e+00 11.75 23.242 0.097 23.195 +OBS: 56289.152 i NULL 6.729e+01 4.515e+00 14.90 22.930 0.075 22.921 +OBS: 56289.176 z NULL 6.990e+01 4.653e+00 15.02 22.889 0.074 22.968 +OBS: 56297.039 g NULL 2.256e+00 1.588e+00 1.42 26.617 1.323 26.101 +OBS: 56297.047 r NULL 3.465e+01 1.398e+00 24.78 23.651 0.044 23.782 +OBS: 56297.062 i NULL 5.309e+01 2.127e+00 24.97 23.187 0.044 23.226 +OBS: 56297.090 z NULL 5.779e+01 2.384e+00 24.25 23.095 0.045 23.192 +OBS: 56305.094 g NULL 1.308e+00 1.648e+00 0.79 27.209 100.791 26.770 +OBS: 56305.102 r NULL 1.906e+01 1.359e+00 14.02 24.300 0.080 24.348 +OBS: 56305.113 i NULL 4.272e+01 2.343e+00 18.23 23.423 0.061 23.522 +OBS: 56306.043 z NULL 4.688e+01 2.853e+00 16.43 23.323 0.068 23.302 +OBS: 56313.047 g NULL 5.977e+00 5.962e+00 1.00 25.559 6.442 26.985 +OBS: 56313.055 r NULL 1.211e+01 2.537e+00 4.77 24.792 0.255 24.816 +OBS: 56313.090 i NULL 2.435e+01 3.118e+00 7.81 24.034 0.150 23.809 +OBS: 56317.066 z NULL 4.614e+01 4.337e+00 10.64 23.340 0.106 23.639 +OBS: 56321.035 g NULL 2.467e+00 2.916e+00 0.85 26.520 101.480 26.862 +OBS: 56321.043 r NULL 8.900e+00 1.380e+00 6.45 25.126 0.183 25.148 +OBS: 56321.066 i NULL 1.757e+01 3.240e+00 5.42 24.388 0.222 24.142 +OBS: 56326.039 z NULL 1.942e+01 2.634e+00 7.37 24.279 0.160 23.961 +OBS: 56333.043 g NULL 3.081e-01 1.818e+00 0.17 28.778 99.222 27.332 +OBS: 56333.051 r NULL 8.339e+00 1.395e+00 5.98 25.197 0.198 25.411 +OBS: 56334.043 i NULL 1.304e+01 2.195e+00 5.94 24.711 0.200 24.554 +OBS: 56335.043 z NULL 2.215e+01 3.407e+00 6.50 24.137 0.181 24.181 +OBS: 56344.992 g NULL -5.659e-01 4.327e+00 -0.13 128.000 0.000 27.420 +OBS: 56345.000 r NULL 9.950e+00 1.873e+00 5.31 25.005 0.226 25.450 +OBS: 56345.016 i NULL 1.332e+01 3.462e+00 3.85 24.689 0.327 24.663 +OBS: 56345.992 z NULL 1.477e+01 3.710e+00 3.98 24.577 0.314 24.448 +OBS: 56349.996 g NULL -2.985e+00 3.964e+00 -0.75 128.000 0.000 27.509 +OBS: 56350.004 r NULL 4.799e+00 2.061e+00 2.33 25.797 0.610 25.518 +OBS: 56350.996 i NULL 1.261e+01 3.032e+00 4.16 24.748 0.299 24.732 +END: diff --git a/data/tests/DES_data/DES_SN712203.DAT b/data/tests/DES_data/DES_SN712203.DAT new file mode 100644 index 000000000..7f1edf391 --- /dev/null +++ b/data/tests/DES_data/DES_SN712203.DAT @@ -0,0 +1,185 @@ +SURVEY: DES +SNID: 712203 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 48.000000 deg +DECL: 0.000000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0713 MW E(B-V) +REDSHIFT_HELIO: 0.98270 +- 0.07120 (Helio, z_best) +REDSHIFT_FINAL: 0.98270 +- 0.07120 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 11147 +HOST_GALAXY_PHOTO-Z: 0.9827 +- 0.0712 + + + +SIM_MODEL: SALT2.K09_LAMOPEN 6 (name index) +SIM_NON1a: 0 (non1a index) +SIM_COMMENT: SN Type = Ia , MODEL = SALT2.K09_LAMOPEN +SIM_LIBID: 3 +SIM_REDSHIFT: 0.9468 +SIM_HOSTLIB_TRUEZ: 0.9500 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 11147 +SIM_DLMU: 43.953537 mag [ -5*log10(10pc/dL) ] +SIM_RA: 48.000000 deg +SIM_DECL: 0.000000 deg +SIM_MWEBV: 0.0581 (MilkyWay E(B-V)) +SIM_PEAKMAG: 28.64 25.09 24.09 24.01 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56225.304688 days +SIM_SALT2alpha: 0.110 +SIM_SALT2beta: 3.200 +SIM_SALT2x0: 2.382e-06 +SIM_SALT2x1: 0.1989 +SIM_SALT2c: 0.0394 +SIM_SALT2mB: 24.6927 +SIM_STRETCH: 1.199 +SIM_MAGDIM: 1.222 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -24.18 days +SIM_TRESTMAX: 64.58 days +SIM_RISETIME_SHIFT: -0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56226.238 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 123 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56178.234 g NULL -1.258e+01 1.048e+01 -1.20 99.000 5.000 98.976 +OBS: 56178.250 r NULL 1.215e+01 7.844e+00 1.55 99.000 5.000 99.119 +OBS: 56178.266 i NULL -1.836e+01 9.318e+00 -1.97 99.000 5.000 99.005 +OBS: 56179.211 z NULL 3.149e+00 5.328e+00 0.59 99.000 5.000 99.043 +OBS: 56180.219 g NULL 2.521e+00 3.205e+00 0.79 99.000 5.000 98.976 +OBS: 56180.234 r NULL -3.351e+00 2.426e+00 -1.38 99.000 5.000 99.119 +OBS: 56180.250 i NULL 6.109e+00 4.312e+00 1.42 99.000 5.000 99.005 +OBS: 56188.191 z NULL -3.046e+01 2.733e+01 -1.11 128.000 0.000 30.144 +OBS: 56188.340 g NULL 3.879e+01 2.558e+01 1.52 99.000 5.000 98.976 +OBS: 56188.355 r NULL 1.432e+00 4.152e+00 0.34 27.110 100.890 31.479 +OBS: 56189.195 i NULL 1.565e+01 3.095e+01 0.51 24.514 103.486 29.115 +OBS: 56194.215 g NULL 1.390e+00 4.764e+00 0.29 99.000 5.000 98.976 +OBS: 56194.223 r NULL 9.230e-01 5.400e+00 0.17 27.587 100.413 28.463 +OBS: 56194.227 z NULL 1.363e+01 6.546e+00 2.08 24.664 0.710 26.989 +OBS: 56200.234 i NULL -1.335e+01 1.199e+01 -1.11 128.000 0.000 25.677 +OBS: 56208.160 g NULL -4.155e-02 2.972e+00 -0.01 128.000 0.000 30.460 +OBS: 56208.176 r NULL 9.034e+00 2.440e+00 3.70 25.110 0.341 25.460 +OBS: 56208.191 z NULL 2.478e+00 4.941e+00 0.50 26.515 101.485 24.621 +OBS: 56210.156 i NULL 1.857e+01 7.038e+00 2.64 24.328 0.517 24.447 +OBS: 56216.164 g NULL 6.571e-01 2.686e+00 0.24 27.956 100.044 29.745 +OBS: 56216.176 r NULL 1.209e+01 2.059e+00 5.87 24.794 0.202 24.983 +OBS: 56216.191 z NULL 2.004e+01 4.067e+00 4.93 24.245 0.246 24.177 +OBS: 56219.211 i NULL 2.353e+01 3.035e+00 7.75 24.071 0.150 24.107 +OBS: 56221.148 g NULL -9.406e-01 1.591e+01 -0.06 128.000 0.000 29.033 +OBS: 56221.160 r NULL 2.364e+01 6.072e+00 3.89 24.066 0.322 24.975 +OBS: 56221.176 z NULL 1.102e+01 1.540e+01 0.72 24.895 103.105 24.048 +OBS: 56222.105 i NULL 3.753e+01 9.225e+00 4.07 23.564 0.306 24.083 +OBS: 56222.312 g NULL -3.396e+00 4.102e+00 -0.83 128.000 0.000 28.888 +OBS: 56222.324 r NULL 2.135e+01 1.518e+01 1.41 24.177 1.347 25.000 +OBS: 56222.340 z NULL -1.839e+01 4.086e+01 -0.45 128.000 0.000 24.031 +OBS: 56228.297 g NULL -2.893e+01 1.504e+01 -1.92 128.000 0.000 28.546 +OBS: 56228.305 r NULL 4.835e+00 5.497e+00 0.88 25.789 102.211 25.238 +OBS: 56228.312 i NULL 3.604e+01 9.440e+00 3.82 23.608 0.329 24.129 +OBS: 56228.320 z NULL 2.083e+01 5.817e+00 3.58 24.203 0.356 24.032 +OBS: 56229.320 g NULL -1.850e+01 1.406e+01 -1.32 128.000 0.000 28.540 +OBS: 56229.332 r NULL -5.886e+00 7.255e+00 -0.81 128.000 0.000 25.297 +OBS: 56229.348 i NULL 2.176e+01 1.296e+01 1.68 24.156 0.982 24.147 +OBS: 56230.070 z NULL 3.363e+01 7.164e+00 4.70 23.683 0.259 24.055 +OBS: 56230.316 g NULL -3.006e+00 1.368e+01 -0.22 128.000 0.000 28.572 +OBS: 56230.328 r NULL 9.426e+00 6.677e+00 1.41 25.064 1.337 25.355 +OBS: 56230.344 i NULL 8.515e+00 1.240e+01 0.69 25.175 102.825 24.168 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56231.301 g NULL 6.703e-01 1.166e+01 0.06 27.934 100.066 28.611 +OBS: 56231.316 r NULL 1.913e+01 6.031e+00 3.17 24.296 0.411 25.415 +OBS: 56231.328 i NULL 1.428e+01 1.048e+01 1.36 24.613 1.436 24.191 +OBS: 56231.344 z NULL 2.400e+01 5.811e+00 4.13 24.049 0.301 24.074 +OBS: 56235.297 g NULL -1.885e+01 9.643e+00 -1.95 128.000 0.000 29.091 +OBS: 56235.312 r NULL 8.100e+00 4.665e+00 1.74 25.229 0.931 25.673 +OBS: 56235.324 i NULL 2.525e+01 6.663e+00 3.79 23.994 0.332 24.308 +OBS: 56235.340 z NULL 1.116e+01 6.755e+00 1.65 24.881 1.011 24.150 +OBS: 56236.312 g NULL -5.299e+00 7.810e+00 -0.68 128.000 0.000 29.313 +OBS: 56236.324 r NULL 1.185e+01 3.738e+00 3.17 24.816 0.411 25.742 +OBS: 56236.340 i NULL 1.561e+01 6.093e+00 2.56 24.516 0.538 24.345 +OBS: 56237.074 z NULL 3.118e+01 7.037e+00 4.43 23.765 0.277 24.190 +OBS: 56237.340 g NULL 1.618e+01 1.182e+01 1.37 24.477 1.422 29.567 +OBS: 56238.051 r NULL 3.108e+00 4.314e+00 0.72 26.269 101.731 25.859 +OBS: 56238.059 i NULL 2.814e+01 5.498e+00 5.12 23.877 0.235 24.409 +OBS: 56238.340 g NULL -6.682e-01 1.062e+01 -0.06 128.000 0.000 29.820 +OBS: 56243.047 z NULL 1.594e+01 8.334e+00 1.91 24.494 0.804 24.379 +OBS: 56243.320 g NULL 5.988e+00 4.201e+00 1.43 25.557 1.312 30.975 +OBS: 56243.336 r NULL 1.239e-01 3.300e+00 0.04 29.768 98.232 26.182 +OBS: 56244.039 i NULL 2.091e+01 7.047e+00 2.97 24.199 0.446 24.674 +OBS: 56244.309 g NULL -1.344e-01 4.123e+00 -0.03 128.000 0.000 30.994 +OBS: 56244.320 r NULL 1.485e+00 3.226e+00 0.46 27.071 100.929 26.233 +OBS: 56245.047 z NULL 5.546e+00 5.014e+00 1.11 25.640 2.563 24.463 +OBS: 56245.320 g NULL 1.652e+00 4.228e+00 0.39 26.955 101.045 31.024 +OBS: 56246.055 r NULL 2.857e+00 2.386e+00 1.20 26.360 1.957 26.327 +OBS: 56246.070 i NULL 5.853e+00 3.892e+00 1.50 25.581 1.190 24.781 +OBS: 56247.223 g NULL 3.335e+00 2.980e+00 1.12 26.192 2.429 31.161 +OBS: 56247.230 z NULL 1.867e+01 4.402e+00 4.24 24.322 0.292 24.557 +OBS: 56248.305 r NULL 5.626e+00 2.378e+00 2.37 25.625 0.596 26.460 +OBS: 56248.316 i NULL 1.263e+01 4.239e+00 2.98 24.746 0.444 24.904 +OBS: 56258.152 g NULL 5.870e+00 1.264e+01 0.46 99.000 5.000 98.976 +OBS: 56258.168 z NULL 5.967e+00 5.985e+00 1.00 25.561 102.439 25.025 +OBS: 56258.273 r NULL 2.137e+00 7.778e+00 0.27 26.676 101.324 27.273 +OBS: 56258.281 i NULL 1.695e+01 1.263e+01 1.34 24.427 1.483 25.527 +OBS: 56261.266 g NULL -1.120e+01 1.009e+01 -1.11 128.000 0.000 29.872 +OBS: 56261.273 r NULL -1.323e+00 4.185e+00 -0.32 128.000 0.000 27.437 +OBS: 56261.281 i NULL 6.214e+00 7.031e+00 0.88 25.517 102.483 25.724 +OBS: 56261.289 z NULL -7.472e-01 4.893e+00 -0.15 128.000 0.000 25.164 +OBS: 56275.152 g NULL 1.417e-01 3.310e+00 0.04 99.000 5.000 98.976 +OBS: 56275.172 r NULL -8.723e-01 2.240e+00 -0.39 128.000 0.000 28.207 +OBS: 56275.191 i NULL -6.232e-02 4.493e+00 -0.01 128.000 0.000 26.525 +OBS: 56275.203 z NULL 2.198e+00 5.326e+00 0.41 26.645 101.355 25.777 +OBS: 56283.203 g NULL -4.665e+00 6.285e+00 -0.74 99.000 5.000 98.976 +OBS: 56283.211 r NULL 3.316e+00 3.326e+00 1.00 26.198 101.802 28.327 +OBS: 56283.215 i NULL 8.538e-01 5.817e+00 0.15 27.672 100.328 26.841 +OBS: 56283.223 z NULL -1.160e+00 5.043e+00 -0.23 128.000 0.000 26.091 +OBS: 56288.199 g NULL -1.047e+01 1.179e+01 -0.89 99.000 5.000 98.976 +OBS: 56288.215 r NULL -6.044e+00 6.181e+00 -0.98 128.000 0.000 28.407 +OBS: 56289.109 i NULL 5.805e+00 7.081e+00 0.82 25.591 102.409 27.022 +OBS: 56289.125 z NULL 2.958e+00 5.423e+00 0.55 26.323 101.677 26.288 +OBS: 56292.098 g NULL 6.147e+00 1.165e+01 0.53 99.000 5.000 98.976 +OBS: 56292.102 r NULL 4.777e+00 4.827e+00 0.99 25.802 102.198 28.486 +OBS: 56292.191 i NULL -4.096e+00 5.600e+00 -0.73 128.000 0.000 27.097 +OBS: 56292.199 z NULL 2.658e+00 5.158e+00 0.52 26.439 101.561 26.371 +OBS: 56304.051 g NULL 4.624e+00 2.481e+00 1.86 25.837 0.834 31.847 +OBS: 56304.055 r NULL 1.726e+00 1.657e+00 1.04 26.908 3.500 28.854 +OBS: 56304.070 i NULL 3.186e-01 2.507e+00 0.13 28.742 99.258 27.255 +OBS: 56304.086 z NULL -5.214e-01 3.934e+00 -0.13 128.000 0.000 26.552 +OBS: 56312.055 g NULL -1.671e+00 7.568e+00 -0.22 128.000 0.000 31.965 +OBS: 56312.066 r NULL -5.675e-01 2.962e+00 -0.19 128.000 0.000 29.058 +OBS: 56312.090 i NULL 2.797e+00 5.021e+00 0.56 26.383 101.617 27.337 +OBS: 56312.113 z NULL -1.740e+00 5.429e+00 -0.32 128.000 0.000 26.707 +OBS: 56320.043 g NULL -1.235e+01 6.172e+00 -2.00 99.000 5.000 98.976 +OBS: 56320.051 r NULL 2.545e+00 2.489e+00 1.02 26.486 4.151 29.149 +OBS: 56320.059 i NULL -3.943e-01 3.653e+00 -0.11 128.000 0.000 27.430 +OBS: 56320.070 z NULL 1.841e+00 4.394e+00 0.42 26.838 101.162 26.942 +OBS: 56328.047 g NULL -1.993e+00 3.351e+00 -0.59 99.000 5.000 98.976 +OBS: 56328.055 r NULL -2.547e+00 2.403e+00 -1.06 128.000 0.000 29.154 +OBS: 56328.070 i NULL 6.174e-01 4.045e+00 0.15 28.024 99.976 27.439 +OBS: 56328.086 z NULL -2.714e-01 6.782e+00 -0.04 128.000 0.000 26.965 +OBS: 56336.062 g NULL -1.609e-01 3.700e+00 -0.04 99.000 5.000 98.976 +OBS: 56336.082 r NULL -1.134e+00 3.007e+00 -0.38 128.000 0.000 29.154 +OBS: 56337.062 i NULL 6.960e-01 2.927e+00 0.24 27.893 100.107 27.439 +OBS: 56337.078 z NULL 3.897e+00 3.747e+00 1.04 26.023 3.534 26.965 +OBS: 56345.039 g NULL -9.085e+00 7.141e+00 -1.27 99.000 5.000 98.976 +OBS: 56345.055 r NULL -1.827e+00 3.770e+00 -0.48 128.000 0.000 29.154 +OBS: 56346.055 i NULL -3.314e-01 5.987e+00 -0.06 128.000 0.000 27.439 +OBS: 56348.027 z NULL -1.340e+00 5.019e+00 -0.27 128.000 0.000 26.965 +OBS: 56350.023 g NULL -1.237e+01 6.833e+00 -1.81 99.000 5.000 98.976 +OBS: 56350.027 r NULL -1.944e+00 3.936e+00 -0.49 128.000 0.000 29.154 +OBS: 56350.035 i NULL 1.233e+01 6.686e+00 1.84 24.772 0.847 27.439 +OBS: 56351.023 z NULL -1.008e+01 6.099e+00 -1.65 128.000 0.000 26.965 +END: diff --git a/data/tests/DES_data/DES_SN741381.DAT b/data/tests/DES_data/DES_SN741381.DAT new file mode 100644 index 000000000..0b83b7ae9 --- /dev/null +++ b/data/tests/DES_data/DES_SN741381.DAT @@ -0,0 +1,137 @@ +SURVEY: DES +SNID: 741381 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 0.500000 deg +DECL: -43.000000 deg +MAGTYPE: LOG10 +MAGREF: +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0111 MW E(B-V) +REDSHIFT_HELIO: 0.38630 +- 0.02340 (Helio, z_best) +REDSHIFT_FINAL: 0.38630 +- 0.02340 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 10367 +HOST_GALAXY_PHOTO-Z: 0.3863 +- 0.0234 + + + +SIM_MODEL: mlcs2k2.SNchallenge 3 (name index) +SIM_NON1a: 0 (non1a index) +SIM_COMMENT: SN Type = Ia , MODEL = mlcs2k2.SNchallenge +SIM_LIBID: 4 +SIM_REDSHIFT: 0.4113 +SIM_HOSTLIB_TRUEZ: 0.4100 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 10367 +SIM_DLMU: 41.755970 mag [ -5*log10(10pc/dL) ] +SIM_RA: 0.500000 deg +SIM_DECL: -43.000000 deg +SIM_MWEBV: 0.0111 (MilkyWay E(B-V)) +SIM_AVTAU: 0.250 (dN/dAV = exp(-AV/AVTAU)) +SIM_AV: 0.131 mag (host extinction at 5510 A) +SIM_RV: 2.344 (CCM89 extinction parameter) +SIM_PEAKMAG: 22.76 21.88 21.86 22.18 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56170.246094 days +SIM_DELTA: -0.192 mag (MLCS lumi-par) +SIM_STRETCH: 1.192 +SIM_MAGDIM: 0.212 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: 0.57 days +SIM_TRESTMAX: 67.96 days +SIM_RISETIME_SHIFT: -0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56172.180 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 77 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56171.051 g NULL 1.074e+02 7.814e+01 1.37 22.422 1.410 22.793 +OBS: 56172.039 r NULL 1.842e+02 1.796e+01 10.25 21.837 0.111 21.896 +OBS: 56172.051 i NULL 8.248e+01 5.000e+01 1.65 22.709 1.015 21.857 +OBS: 56176.160 z NULL 1.289e+02 4.336e+00 29.72 22.225 0.037 22.214 +OBS: 56179.023 g NULL 4.588e+01 6.503e+00 7.05 23.346 0.166 23.331 +OBS: 56179.031 r NULL 1.510e+02 5.233e+00 28.86 22.052 0.038 22.105 +OBS: 56179.047 i NULL 1.719e+02 7.871e+00 21.84 21.912 0.051 21.937 +OBS: 56179.062 z NULL 1.275e+02 8.490e+00 15.01 22.237 0.075 22.293 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56180.031 g NULL 4.727e+01 5.816e+00 8.13 23.314 0.142 23.408 +OBS: 56180.047 r NULL 1.464e+02 5.319e+00 27.53 22.086 0.040 22.151 +OBS: 56180.062 i NULL 1.635e+02 7.442e+00 21.98 21.966 0.051 21.963 +OBS: 56180.078 z NULL 1.015e+02 1.035e+01 9.81 22.483 0.117 22.335 +OBS: 56188.004 g NULL 1.793e+01 5.725e+00 3.13 24.366 0.418 24.127 +OBS: 56188.016 r NULL 8.883e+01 4.718e+00 18.83 22.629 0.059 22.625 +OBS: 56188.027 i NULL 1.193e+02 6.871e+00 17.36 22.309 0.065 22.296 +OBS: 56188.035 z NULL 7.844e+01 6.646e+00 11.80 22.764 0.096 22.725 +OBS: 56189.004 g NULL 3.053e+01 5.711e+00 5.35 23.788 0.224 24.228 +OBS: 56189.016 r NULL 8.738e+01 4.671e+00 18.71 22.646 0.059 22.682 +OBS: 56189.027 i NULL 1.152e+02 6.793e+00 16.96 22.346 0.066 22.340 +OBS: 56189.035 z NULL 6.615e+01 6.535e+00 10.12 22.949 0.114 22.761 +OBS: 56194.012 g NULL 1.265e+01 6.225e+00 2.03 24.745 0.736 24.775 +OBS: 56194.016 r NULL 6.055e+01 3.812e+00 15.89 23.045 0.071 23.016 +OBS: 56194.023 i NULL 9.194e+01 6.433e+00 14.29 22.591 0.079 22.549 +OBS: 56194.031 z NULL 4.176e+01 1.512e+01 2.76 23.448 0.490 22.854 +OBS: 56198.992 g NULL -1.733e+00 1.869e+01 -0.09 128.000 0.000 25.128 +OBS: 56199.000 r NULL 4.279e+01 9.095e+00 4.70 23.422 0.260 23.371 +OBS: 56199.008 i NULL 1.034e+02 1.198e+01 8.63 22.464 0.133 22.701 +OBS: 56199.016 z NULL 6.745e+01 7.804e+00 8.64 22.927 0.134 22.883 +OBS: 56199.039 g NULL 2.618e+01 3.350e+01 0.78 23.955 104.045 25.133 +OBS: 56208.215 g NULL 7.990e+00 2.677e+00 2.99 25.244 0.442 25.826 +OBS: 56208.223 r NULL 2.766e+01 1.873e+00 14.77 23.895 0.076 23.906 +OBS: 56208.238 i NULL 6.031e+01 3.201e+00 18.84 23.049 0.060 22.989 +OBS: 56209.160 z NULL 6.155e+01 3.454e+00 17.82 23.027 0.063 23.033 +OBS: 56216.215 g NULL 5.430e+00 2.483e+00 2.19 25.663 0.663 25.862 +OBS: 56216.223 r NULL 2.290e+01 1.951e+00 11.74 24.100 0.096 24.307 +OBS: 56216.230 i NULL 5.170e+01 3.194e+00 16.19 23.216 0.069 23.323 +OBS: 56218.152 z NULL 4.367e+01 2.807e+00 15.55 23.400 0.072 23.372 +OBS: 56221.004 g NULL -3.237e+00 5.233e+00 -0.62 128.000 0.000 25.946 +OBS: 56221.016 r NULL 1.574e+01 3.600e+00 4.37 24.507 0.282 24.477 +OBS: 56221.027 i NULL 4.222e+01 5.542e+00 7.62 23.436 0.153 23.511 +OBS: 56221.035 z NULL 3.985e+01 5.460e+00 7.30 23.499 0.160 23.504 +OBS: 56222.016 g NULL 7.991e+00 6.250e+00 1.28 25.243 1.653 26.003 +OBS: 56222.027 r NULL 6.714e+00 3.631e+00 1.85 25.432 0.848 24.511 +OBS: 56222.035 i NULL 3.603e+01 4.984e+00 7.23 23.608 0.162 23.540 +OBS: 56228.012 z NULL 3.602e+01 5.591e+00 6.44 23.609 0.183 23.738 +OBS: 56229.012 g NULL -3.412e+00 9.821e+00 -0.35 128.000 0.000 26.219 +OBS: 56229.016 r NULL 2.211e+01 4.346e+00 5.09 24.138 0.237 24.683 +OBS: 56229.023 i NULL 3.788e+01 7.853e+00 4.82 23.554 0.252 23.731 +OBS: 56230.012 z NULL 2.981e+01 4.951e+00 6.02 23.814 0.197 23.799 +OBS: 56231.012 g NULL 5.320e+00 6.920e+00 0.77 25.685 102.315 26.226 +OBS: 56231.020 r NULL 1.540e+01 2.811e+00 5.48 24.531 0.218 24.719 +OBS: 56231.027 i NULL 3.500e+01 4.139e+00 8.46 23.640 0.136 23.796 +OBS: 56235.020 z NULL 2.765e+01 5.717e+00 4.84 23.896 0.251 23.961 +OBS: 56236.027 g NULL -4.674e+00 5.181e+00 -0.90 128.000 0.000 26.169 +OBS: 56236.035 r NULL 1.205e+01 5.394e+00 2.23 24.797 0.644 24.787 +OBS: 56236.039 i NULL 3.308e+01 7.655e+00 4.32 23.701 0.285 23.940 +OBS: 56237.023 z NULL 1.306e+01 5.134e+00 2.54 24.710 0.544 24.043 +OBS: 56238.023 g NULL 7.533e+00 3.624e+00 2.08 25.308 0.712 26.236 +OBS: 56238.031 r NULL 1.015e+01 2.803e+00 3.62 24.984 0.351 24.773 +OBS: 56238.039 i NULL 2.866e+01 4.851e+00 5.91 23.857 0.201 23.978 +OBS: 56243.070 z NULL 2.350e+01 5.365e+00 4.38 24.072 0.281 24.221 +OBS: 56244.047 g NULL -5.130e+00 4.190e+00 -1.22 128.000 0.000 26.359 +OBS: 56244.055 r NULL 1.394e+01 2.846e+00 4.90 24.639 0.248 24.770 +OBS: 56244.070 i NULL 2.429e+01 4.443e+00 5.47 24.037 0.220 23.973 +OBS: 56245.027 z NULL 2.066e+01 3.565e+00 5.80 24.212 0.205 24.266 +OBS: 56246.082 g NULL -1.348e-01 2.843e+00 -0.05 128.000 0.000 26.401 +OBS: 56246.098 r NULL 9.779e+00 2.483e+00 3.94 25.024 0.319 24.813 +OBS: 56246.109 i NULL 2.094e+01 5.461e+00 3.83 24.198 0.329 24.017 +OBS: 56247.250 z NULL 2.469e+01 6.312e+00 3.91 24.019 0.320 24.315 +OBS: 56254.199 g NULL 9.989e+00 6.136e+00 1.63 25.001 1.034 26.601 +OBS: 56254.211 r NULL 6.876e+00 3.384e+00 2.03 25.407 0.736 24.994 +OBS: 56254.227 i NULL 2.897e+01 6.242e+00 4.64 23.845 0.263 24.188 +OBS: 56258.191 z NULL 7.426e+00 5.866e+00 1.27 25.323 1.698 24.552 +OBS: 56261.066 g NULL -9.174e+00 6.920e+00 -1.33 128.000 0.000 26.739 +OBS: 56261.082 r NULL 1.135e+01 4.071e+00 2.79 24.862 0.482 25.131 +OBS: 56261.090 i NULL 2.174e+01 8.232e+00 2.64 24.157 0.516 24.335 +OBS: 56266.156 z NULL 9.639e+00 5.287e+00 1.82 25.040 0.864 24.718 +END: diff --git a/data/tests/DES_data/DES_SN751672.DAT b/data/tests/DES_data/DES_SN751672.DAT new file mode 100644 index 000000000..b75fa83e0 --- /dev/null +++ b/data/tests/DES_data/DES_SN751672.DAT @@ -0,0 +1,221 @@ +SURVEY: DES +SNID: 751672 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 52.500000 deg +DECL: -27.500000 deg +MAGTYPE: LOG10 +MAGREF: +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0097 MW E(B-V) +REDSHIFT_HELIO: 0.86694 +- 0.01460 (Helio, z_best) +REDSHIFT_FINAL: 0.86694 +- 0.01460 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 18781 +HOST_GALAXY_PHOTO-Z: 0.8669 +- 0.0146 + + + +SIM_MODEL: mlcs2k2.SNchallenge 3 (name index) +SIM_NON1a: 0 (non1a index) +SIM_COMMENT: SN Type = Ia , MODEL = mlcs2k2.SNchallenge +SIM_LIBID: 0 +SIM_REDSHIFT: 0.8755 +SIM_HOSTLIB_TRUEZ: 0.8800 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 18781 +SIM_DLMU: 43.743858 mag [ -5*log10(10pc/dL) ] +SIM_RA: 52.500000 deg +SIM_DECL: -27.500000 deg +SIM_MWEBV: 0.0092 (MilkyWay E(B-V)) +SIM_AVTAU: 0.250 (dN/dAV = exp(-AV/AVTAU)) +SIM_AV: 0.442 mag (host extinction at 5510 A) +SIM_RV: 2.375 (CCM89 extinction parameter) +SIM_PEAKMAG: 27.74 24.94 24.02 24.03 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56237.570312 days +SIM_DELTA: -0.414 mag (MLCS lumi-par) +SIM_STRETCH: 1.414 +SIM_MAGDIM: 0.347 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -32.73 days +SIM_TRESTMAX: 60.53 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56237.066 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 161 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56176.191 g NULL -4.198e+00 4.764e+00 -0.88 99.000 5.000 99.000 +OBS: 56176.199 r NULL -2.115e+00 2.130e+00 -0.99 99.000 5.000 99.000 +OBS: 56176.215 i NULL -2.490e+00 3.146e+00 -0.79 99.000 5.000 99.000 +OBS: 56176.238 z NULL 5.311e-01 2.483e+00 0.21 99.000 5.000 99.000 +OBS: 56179.188 g NULL 5.781e-02 2.584e+00 0.02 99.000 5.000 99.000 +OBS: 56179.195 r NULL -7.860e-01 1.709e+00 -0.46 99.000 5.000 99.000 +OBS: 56179.234 i NULL 1.246e+00 1.984e+00 0.63 99.000 5.000 99.000 +OBS: 56179.266 z NULL -3.283e+00 3.730e+00 -0.88 99.000 5.000 99.000 +OBS: 56180.266 g NULL -2.179e+00 2.550e+00 -0.85 99.000 5.000 99.000 +OBS: 56180.281 r NULL -1.161e+00 1.301e+00 -0.89 99.000 5.000 99.000 +OBS: 56180.297 i NULL 1.410e-01 3.683e+00 0.04 99.000 5.000 99.000 +OBS: 56180.328 z NULL -2.448e+00 4.486e+00 -0.55 99.000 5.000 99.000 +OBS: 56188.160 g NULL -7.705e-02 5.683e+00 -0.01 99.000 5.000 99.000 +OBS: 56188.176 r NULL 1.098e+01 5.573e+00 1.97 99.000 5.000 99.000 +OBS: 56188.211 i NULL 5.167e+00 4.520e+00 1.14 99.000 5.000 99.000 +OBS: 56188.238 z NULL 2.885e+00 3.399e+00 0.85 99.000 5.000 99.000 +OBS: 56189.254 g NULL -3.360e+00 2.285e+00 -1.47 99.000 5.000 99.000 +OBS: 56189.270 r NULL 7.473e-01 3.267e+00 0.23 99.000 5.000 99.000 +OBS: 56189.281 i NULL 1.093e+01 9.048e+00 1.21 99.000 5.000 99.000 +OBS: 56189.312 z NULL 9.274e-01 2.964e+00 0.31 99.000 5.000 99.000 +OBS: 56194.258 g NULL 1.434e-01 2.636e+00 0.05 99.000 5.000 99.000 +OBS: 56194.270 r NULL -1.617e-01 1.485e+00 -0.11 99.000 5.000 99.000 +OBS: 56194.285 i NULL -1.951e+00 2.291e+00 -0.85 99.000 5.000 99.000 +OBS: 56194.305 z NULL 1.494e+00 2.384e+00 0.63 99.000 5.000 99.000 +OBS: 56202.160 g NULL 2.883e+00 4.791e+00 0.60 26.351 101.649 35.573 +OBS: 56202.176 r NULL 8.379e-01 2.322e+00 0.36 27.692 100.308 30.312 +OBS: 56202.191 i NULL 3.149e+00 4.163e+00 0.76 26.254 101.746 29.191 +OBS: 56202.215 z NULL 2.681e-01 2.711e+00 0.10 28.929 99.071 29.243 +OBS: 56210.172 g NULL 5.432e+00 3.692e+00 1.47 25.663 1.235 29.660 +OBS: 56210.188 r NULL 1.955e+00 3.215e+00 0.61 26.772 101.228 26.667 +OBS: 56210.203 i NULL 8.521e+00 3.213e+00 2.65 25.174 0.513 25.696 +OBS: 56210.234 z NULL 6.157e+00 3.847e+00 1.60 25.527 1.064 25.845 +OBS: 56218.172 g NULL -7.488e-01 1.251e+00 -0.60 128.000 0.000 28.108 +OBS: 56218.191 r NULL 6.437e+00 9.695e-01 6.64 25.478 0.177 25.392 +OBS: 56218.211 i NULL 1.475e+01 1.531e+00 9.63 24.578 0.119 24.590 +OBS: 56219.156 z NULL 1.460e+01 1.954e+00 7.47 24.589 0.156 24.603 +OBS: 56221.273 g NULL 3.592e+00 3.912e+00 0.92 26.112 101.888 27.618 +OBS: 56221.281 r NULL -2.732e-01 5.585e+00 -0.05 128.000 0.000 25.058 +OBS: 56221.297 i NULL 2.075e+01 4.504e+00 4.61 24.207 0.265 24.348 +OBS: 56221.324 z NULL 4.876e+01 1.442e+01 3.38 23.280 0.380 24.439 +OBS: 56222.074 g NULL 9.990e+00 5.912e+00 1.69 25.001 0.972 27.511 +OBS: 56222.090 r NULL 1.085e+01 2.637e+00 4.12 24.911 0.302 24.980 +OBS: 56222.113 i NULL 1.807e+01 3.344e+00 5.40 24.358 0.222 24.291 +OBS: 56222.133 z NULL 1.790e+01 5.068e+00 3.53 24.368 0.361 24.388 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56228.059 g NULL 4.691e+00 7.694e+00 0.61 25.822 102.178 27.076 +OBS: 56228.066 r NULL 1.106e+01 2.404e+00 4.60 24.891 0.267 24.668 +OBS: 56228.086 i NULL 1.589e+01 5.121e+00 3.10 24.497 0.423 24.048 +OBS: 56228.109 z NULL 2.630e+01 4.164e+00 6.31 23.950 0.187 24.111 +OBS: 56229.047 g NULL 8.699e-01 2.392e+01 0.04 27.651 100.349 27.085 +OBS: 56229.059 r NULL 1.074e+01 3.859e+00 2.78 24.923 0.484 24.672 +OBS: 56229.074 i NULL 3.015e+01 5.457e+00 5.52 23.802 0.216 24.036 +OBS: 56229.102 z NULL 1.676e+01 4.860e+00 3.45 24.439 0.373 24.086 +OBS: 56230.059 g NULL 2.834e+00 6.571e+00 0.43 26.369 101.631 27.109 +OBS: 56230.102 r NULL 1.250e+01 2.929e+00 4.27 24.758 0.290 24.682 +OBS: 56230.113 i NULL 2.476e+01 5.199e+00 4.76 24.016 0.256 24.024 +OBS: 56230.145 z NULL 2.018e+01 2.694e+00 7.49 24.238 0.156 24.064 +OBS: 56231.043 g NULL 4.879e+00 6.046e+00 0.81 25.779 102.221 27.196 +OBS: 56231.059 r NULL 1.087e+01 2.563e+00 4.24 24.910 0.292 24.713 +OBS: 56231.070 i NULL 3.023e+01 4.281e+00 7.06 23.799 0.165 24.014 +OBS: 56231.102 z NULL 1.815e+01 3.297e+00 5.50 24.353 0.219 24.059 +OBS: 56235.039 g NULL -3.117e+00 5.185e+00 -0.60 128.000 0.000 27.581 +OBS: 56235.047 r NULL 8.778e+00 3.713e+00 2.36 25.141 0.598 24.858 +OBS: 56235.062 i NULL 2.412e+01 4.221e+00 5.71 24.044 0.209 24.001 +OBS: 56235.090 z NULL 1.808e+01 8.240e+00 2.19 24.357 0.661 24.038 +OBS: 56236.047 g NULL 1.706e+00 4.873e+00 0.35 26.920 101.080 27.667 +OBS: 56236.062 r NULL 9.170e+00 2.669e+00 3.44 25.094 0.374 24.896 +OBS: 56236.074 i NULL 3.033e+01 5.257e+00 5.77 23.795 0.206 24.006 +OBS: 56236.105 z NULL 3.142e+01 5.353e+00 5.87 23.757 0.202 24.035 +OBS: 56237.039 g NULL 3.258e+00 3.165e+00 1.03 26.218 3.862 27.711 +OBS: 56237.051 r NULL 1.166e+01 2.226e+00 5.24 24.833 0.230 24.928 +OBS: 56237.094 i NULL 2.002e+01 2.526e+00 7.92 24.247 0.147 24.014 +OBS: 56237.125 z NULL 2.487e+01 3.726e+00 6.68 24.011 0.176 24.033 +OBS: 56238.074 g NULL 4.269e+00 2.524e+00 1.69 25.924 0.971 27.728 +OBS: 56238.094 r NULL 1.084e+01 1.606e+00 6.75 24.912 0.174 24.959 +OBS: 56238.109 i NULL 2.424e+01 2.765e+00 8.76 24.039 0.132 24.025 +OBS: 56238.129 z NULL 2.749e+01 3.150e+00 8.73 23.902 0.132 24.033 +OBS: 56243.098 g NULL -1.174e-01 2.169e+00 -0.05 128.000 0.000 27.865 +OBS: 56243.109 r NULL 7.840e+00 1.664e+00 4.71 25.264 0.259 25.124 +OBS: 56243.125 i NULL 2.180e+01 2.602e+00 8.38 24.154 0.138 24.103 +OBS: 56243.152 z NULL 1.557e+01 2.569e+00 6.06 24.519 0.198 24.051 +OBS: 56244.082 g NULL 1.341e-01 2.191e+00 0.06 29.682 98.318 27.930 +OBS: 56244.098 r NULL 1.013e+01 1.649e+00 6.14 24.986 0.193 25.162 +OBS: 56244.109 i NULL 2.478e+01 2.635e+00 9.41 24.015 0.122 24.123 +OBS: 56244.133 z NULL 2.186e+01 3.012e+00 7.26 24.151 0.161 24.060 +OBS: 56245.070 g NULL 2.954e+00 1.720e+00 1.72 26.324 0.947 27.993 +OBS: 56245.082 r NULL 7.055e+00 1.363e+00 5.17 25.379 0.234 25.199 +OBS: 56245.109 i NULL 2.255e+01 3.245e+00 6.95 24.117 0.169 24.143 +OBS: 56245.137 z NULL 2.357e+01 2.873e+00 8.20 24.069 0.141 24.070 +OBS: 56246.117 g NULL 1.517e+01 6.568e+00 2.31 24.547 0.615 28.060 +OBS: 56246.125 r NULL 3.453e+00 2.815e+00 1.23 26.154 1.839 25.241 +OBS: 56246.152 i NULL 2.013e+01 2.003e+00 10.05 24.241 0.114 24.166 +OBS: 56246.180 z NULL 2.313e+01 1.984e+00 11.66 24.090 0.097 24.084 +OBS: 56247.281 g NULL -1.036e+00 1.490e+00 -0.70 128.000 0.000 28.130 +OBS: 56247.297 r NULL 7.819e+00 1.147e+00 6.82 25.267 0.172 25.289 +OBS: 56247.316 i NULL 1.962e+01 2.015e+00 9.74 24.268 0.118 24.193 +OBS: 56247.340 z NULL 2.556e+01 2.537e+00 10.08 23.981 0.113 24.100 +OBS: 56248.324 g NULL 1.655e+00 1.703e+00 0.97 26.953 101.047 28.187 +OBS: 56248.340 r NULL 8.776e+00 1.350e+00 6.50 25.142 0.181 25.337 +OBS: 56258.035 i NULL 7.921e+00 9.887e+00 0.80 25.253 102.747 24.572 +OBS: 56258.066 z NULL 1.602e+01 3.980e+00 4.02 24.489 0.310 24.348 +OBS: 56258.215 g NULL -1.466e+00 4.947e+00 -0.30 128.000 0.000 28.805 +OBS: 56258.227 r NULL 3.537e+00 2.384e+00 1.48 26.128 1.217 25.939 +OBS: 56261.098 g NULL -9.653e-01 8.828e+00 -0.11 128.000 0.000 29.109 +OBS: 56261.102 r NULL 3.182e+00 3.396e+00 0.94 26.243 101.757 26.160 +OBS: 56261.125 i NULL 1.065e+01 3.862e+00 2.76 24.932 0.489 24.723 +OBS: 56261.156 z NULL 1.785e+01 3.106e+00 5.75 24.371 0.207 24.436 +OBS: 56273.160 g NULL -1.198e+00 1.753e+00 -0.68 128.000 0.000 29.830 +OBS: 56273.176 r NULL 1.037e+00 1.214e+00 0.85 27.460 100.540 26.950 +OBS: 56273.188 i NULL 7.478e+00 2.031e+00 3.68 25.316 0.344 25.418 +OBS: 56273.219 z NULL 1.138e+01 2.262e+00 5.03 24.860 0.241 24.851 +OBS: 56281.160 g NULL -3.424e+00 2.075e+00 -1.65 128.000 0.000 30.617 +OBS: 56281.184 r NULL 4.251e-01 1.274e+00 0.33 28.429 99.571 27.624 +OBS: 56281.203 i NULL 2.583e+00 1.801e+00 1.43 26.470 1.299 25.885 +OBS: 56281.227 z NULL 5.893e+00 2.294e+00 2.57 25.574 0.536 25.187 +OBS: 56288.086 g NULL 7.143e+00 4.851e+00 1.47 25.365 1.233 30.439 +OBS: 56288.094 r NULL 8.951e-01 2.114e+00 0.42 27.620 100.380 27.801 +OBS: 56288.109 i NULL 4.621e+00 3.061e+00 1.51 25.838 1.179 26.225 +OBS: 56288.141 z NULL 5.687e+00 2.587e+00 2.20 25.613 0.659 25.408 +OBS: 56289.227 g NULL -3.686e+00 6.491e+00 -0.57 128.000 0.000 30.253 +OBS: 56289.242 r NULL -6.936e-01 2.701e+00 -0.26 128.000 0.000 27.788 +OBS: 56289.258 i NULL 1.078e+01 5.089e+00 2.12 24.919 0.693 26.264 +OBS: 56292.035 z NULL 6.086e+00 2.065e+00 2.95 25.539 0.450 25.554 +OBS: 56292.141 g NULL 1.719e+00 3.054e+00 0.56 26.912 101.088 29.799 +OBS: 56292.156 r NULL 7.774e-01 1.735e+00 0.45 27.773 100.227 27.753 +OBS: 56292.172 i NULL 1.131e+00 2.654e+00 0.43 27.366 100.634 26.362 +OBS: 56303.039 g NULL -9.957e-01 1.371e+00 -0.73 128.000 0.000 29.487 +OBS: 56303.051 r NULL 1.507e+00 9.005e-01 1.67 27.054 0.987 27.938 +OBS: 56303.070 i NULL 2.989e+00 1.415e+00 2.11 26.311 0.696 26.722 +OBS: 56303.094 z NULL 4.360e+00 2.211e+00 1.97 25.901 0.768 25.948 +OBS: 56311.043 g NULL 2.457e+00 2.670e+00 0.92 26.524 101.476 30.377 +OBS: 56311.055 r NULL 1.537e+00 1.496e+00 1.03 27.033 3.933 28.341 +OBS: 56311.074 i NULL -3.943e-01 2.388e+00 -0.17 128.000 0.000 26.856 +OBS: 56311.098 z NULL 1.635e+00 2.435e+00 0.67 26.966 101.034 26.190 +OBS: 56317.125 g NULL 4.114e-01 4.216e+00 0.10 28.464 99.536 30.474 +OBS: 56317.141 r NULL -1.019e-01 1.860e+00 -0.05 128.000 0.000 28.400 +OBS: 56318.109 i NULL 1.531e+00 2.781e+00 0.55 27.037 100.963 26.954 +OBS: 56318.141 z NULL 3.827e+00 2.976e+00 1.29 26.043 1.633 26.328 +OBS: 56321.090 g NULL -1.869e+00 6.627e+00 -0.28 128.000 0.000 29.783 +OBS: 56321.098 r NULL -4.615e-01 2.887e+00 -0.16 128.000 0.000 28.209 +OBS: 56321.109 i NULL 1.858e-01 3.402e+00 0.05 29.327 98.673 26.960 +OBS: 56321.141 z NULL 3.376e+00 2.958e+00 1.14 26.179 2.268 26.375 +OBS: 56332.039 g NULL 3.707e-01 1.459e+00 0.25 28.577 99.423 31.357 +OBS: 56332.051 r NULL -3.128e-01 9.741e-01 -0.32 128.000 0.000 28.526 +OBS: 56332.070 i NULL 3.837e+00 1.584e+00 2.42 26.040 0.578 26.678 +OBS: 56332.094 z NULL 4.477e+00 2.578e+00 1.74 25.873 0.931 25.991 +OBS: 56340.043 g NULL -2.130e+00 2.749e+00 -0.77 128.000 0.000 31.416 +OBS: 56340.055 r NULL -2.449e+00 1.647e+00 -1.49 128.000 0.000 28.658 +OBS: 56340.074 i NULL 3.467e+00 2.721e+00 1.27 26.150 1.667 26.800 +OBS: 56340.098 z NULL 8.755e+00 2.985e+00 2.93 25.144 0.452 26.104 +OBS: 56348.055 g NULL -2.769e+00 3.249e+00 -0.85 128.000 0.000 31.604 +OBS: 56348.070 r NULL 8.076e-01 2.099e+00 0.38 27.732 100.268 28.817 +OBS: 56349.004 i NULL 2.874e+00 2.353e+00 1.22 26.354 1.854 26.928 +OBS: 56349.027 z NULL 1.895e+00 2.427e+00 0.78 26.806 101.194 26.246 +OBS: 56350.043 g NULL 5.728e+00 3.837e+00 1.49 25.605 1.202 31.653 +OBS: 56350.055 r NULL -1.095e+00 1.814e+00 -0.60 128.000 0.000 28.857 +OBS: 56350.070 i NULL 4.471e+00 3.160e+00 1.41 25.874 1.331 26.943 +OBS: 56350.098 z NULL 6.018e+00 4.861e+00 1.24 25.551 1.789 26.263 +OBS: 56351.043 g NULL -2.038e+00 3.350e+00 -0.61 128.000 0.000 31.677 +OBS: 56351.055 r NULL -1.261e+00 1.761e+00 -0.72 128.000 0.000 28.877 +OBS: 56351.070 i NULL 4.539e+00 3.059e+00 1.48 25.858 1.216 26.957 +OBS: 56351.098 z NULL 9.215e+00 4.783e+00 1.93 25.089 0.794 26.279 +END: diff --git a/data/tests/DES_data/DES_SN752418.DAT b/data/tests/DES_data/DES_SN752418.DAT new file mode 100644 index 000000000..2acee15be --- /dev/null +++ b/data/tests/DES_data/DES_SN752418.DAT @@ -0,0 +1,207 @@ +SURVEY: DES +SNID: 752418 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 52.500000 deg +DECL: -27.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0097 MW E(B-V) +REDSHIFT_HELIO: 1.06124 +- 0.03820 (Helio, z_best) +REDSHIFT_FINAL: 1.06124 +- 0.03820 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 12795 +HOST_GALAXY_PHOTO-Z: 1.0612 +- 0.0382 + + + +SIM_MODEL: SALT2.K09_LAMOPEN 6 (name index) +SIM_NON1a: 0 (non1a index) +SIM_COMMENT: SN Type = Ia , MODEL = SALT2.K09_LAMOPEN +SIM_LIBID: 0 +SIM_REDSHIFT: 1.0166 +SIM_HOSTLIB_TRUEZ: 1.0200 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 12795 +SIM_DLMU: 44.144547 mag [ -5*log10(10pc/dL) ] +SIM_RA: 52.500000 deg +SIM_DECL: -27.500000 deg +SIM_MWEBV: 0.0108 (MilkyWay E(B-V)) +SIM_PEAKMAG: 30.95 26.03 24.44 24.27 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56193.437500 days +SIM_SALT2alpha: 0.110 +SIM_SALT2beta: 3.200 +SIM_SALT2x0: 1.493e-06 +SIM_SALT2x1: -0.7925 +SIM_SALT2c: 0.1041 +SIM_SALT2mB: 25.1998 +SIM_STRETCH: 0.207 +SIM_MAGDIM: 1.538 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -8.55 days +SIM_TRESTMAX: 68.76 days +SIM_RISETIME_SHIFT: -0.0 days +SIM_FALLTIME_SHIFT: -0.0 days + +SEARCH_PEAKMJD: 56194.918 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 145 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56176.191 g NULL -4.648e+00 4.765e+00 -0.98 99.000 5.000 98.764 +OBS: 56176.199 r NULL 3.517e+00 2.131e+00 1.65 26.135 1.011 26.287 +OBS: 56176.215 i NULL 6.974e+00 3.150e+00 2.21 25.391 0.653 25.096 +OBS: 56176.238 z NULL 1.092e+01 2.492e+00 4.38 24.905 0.281 24.954 +OBS: 56179.188 g NULL 6.904e-01 2.584e+00 0.27 99.000 5.000 98.764 +OBS: 56179.195 r NULL -1.727e+00 1.711e+00 -1.01 128.000 0.000 25.993 +OBS: 56179.234 i NULL 1.499e+01 2.007e+00 7.47 24.561 0.155 24.830 +OBS: 56179.266 z NULL 1.419e+01 3.739e+00 3.80 24.620 0.332 24.687 +OBS: 56180.266 g NULL -2.306e+00 2.550e+00 -0.90 99.000 5.000 98.764 +OBS: 56180.281 r NULL 4.390e+00 1.306e+00 3.36 25.894 0.383 25.938 +OBS: 56180.297 i NULL 2.126e+01 3.707e+00 5.74 24.181 0.207 24.761 +OBS: 56180.328 z NULL 1.286e+01 4.494e+00 2.86 24.727 0.467 24.617 +OBS: 56188.160 g NULL 6.206e-01 5.683e+00 0.11 28.018 99.982 31.206 +OBS: 56188.176 r NULL 4.597e+00 5.572e+00 0.83 25.844 102.156 25.852 +OBS: 56188.211 i NULL 1.140e+01 4.528e+00 2.52 24.858 0.550 24.463 +OBS: 56188.238 z NULL 2.154e+01 3.424e+00 6.29 24.167 0.188 24.310 +OBS: 56189.254 g NULL -2.888e+00 2.284e+00 -1.26 128.000 0.000 31.152 +OBS: 56189.270 r NULL 7.465e+00 3.272e+00 2.28 25.317 0.626 25.872 +OBS: 56189.281 i NULL 1.405e+01 9.053e+00 1.55 24.631 1.123 24.446 +OBS: 56189.312 z NULL 2.180e+01 2.994e+00 7.28 24.154 0.160 24.291 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56194.258 g NULL -2.280e+00 2.636e+00 -0.86 128.000 0.000 30.878 +OBS: 56194.270 r NULL 4.655e+00 1.491e+00 3.12 25.830 0.419 26.076 +OBS: 56194.285 i NULL 1.441e+01 2.313e+00 6.23 24.603 0.190 24.453 +OBS: 56194.305 z NULL 2.242e+01 2.423e+00 9.25 24.123 0.124 24.275 +OBS: 56202.160 g NULL -2.744e+00 4.791e+00 -0.57 128.000 0.000 30.892 +OBS: 56202.176 r NULL 4.276e+00 2.324e+00 1.84 25.923 0.851 26.605 +OBS: 56202.191 i NULL 9.462e+00 4.168e+00 2.27 25.060 0.631 24.675 +OBS: 56202.215 z NULL 1.971e+01 2.737e+00 7.20 24.263 0.162 24.398 +OBS: 56210.172 g NULL 5.125e+00 3.691e+00 1.39 25.726 1.382 32.546 +OBS: 56210.188 r NULL 8.603e+00 3.219e+00 2.67 25.163 0.508 27.038 +OBS: 56210.203 i NULL 1.116e+01 3.217e+00 3.47 24.880 0.369 25.086 +OBS: 56210.234 z NULL 7.579e+00 3.849e+00 1.97 25.301 0.771 24.641 +OBS: 56218.172 g NULL -1.768e-01 1.249e+00 -0.14 128.000 0.000 31.894 +OBS: 56218.191 r NULL -4.715e-01 9.568e-01 -0.49 128.000 0.000 27.595 +OBS: 56218.211 i NULL 7.646e+00 1.509e+00 5.07 25.291 0.238 25.573 +OBS: 56219.156 z NULL 7.825e+00 1.940e+00 4.03 25.266 0.310 25.046 +OBS: 56221.273 g NULL 3.874e-01 3.910e+00 0.10 28.530 99.470 32.629 +OBS: 56221.281 r NULL 1.596e+00 5.581e+00 0.29 26.993 101.007 27.832 +OBS: 56221.297 i NULL 4.642e+00 4.484e+00 1.04 25.833 3.670 25.791 +OBS: 56221.324 z NULL 2.219e+01 1.440e+01 1.54 24.135 1.136 25.158 +OBS: 56222.074 g NULL -6.323e+00 5.909e+00 -1.07 128.000 0.000 33.046 +OBS: 56222.090 r NULL 1.132e+00 2.626e+00 0.43 27.365 100.635 27.894 +OBS: 56222.113 i NULL 2.255e+00 3.324e+00 0.68 26.617 101.383 25.852 +OBS: 56222.133 z NULL -5.314e-01 5.056e+00 -0.11 128.000 0.000 25.201 +OBS: 56228.059 g NULL 9.754e+00 7.695e+00 1.27 25.027 1.688 32.092 +OBS: 56228.066 r NULL 1.917e+00 2.391e+00 0.80 26.793 101.207 28.312 +OBS: 56228.086 i NULL 2.903e+00 5.108e+00 0.57 26.343 101.657 26.297 +OBS: 56228.109 z NULL 3.400e+00 4.134e+00 0.82 26.171 101.829 25.532 +OBS: 56229.047 g NULL -1.595e+00 2.391e+01 -0.07 128.000 0.000 31.551 +OBS: 56229.059 r NULL 6.438e-01 3.850e+00 0.17 27.978 100.022 28.359 +OBS: 56229.074 i NULL 3.713e+00 5.424e+00 0.68 26.076 101.924 26.359 +OBS: 56229.102 z NULL 2.350e+00 4.848e+00 0.48 26.572 101.428 25.587 +OBS: 56230.059 g NULL 1.491e+00 6.571e+00 0.23 27.066 100.934 31.185 +OBS: 56230.102 r NULL 2.983e+00 2.916e+00 1.02 26.313 4.124 28.407 +OBS: 56230.113 i NULL -1.858e+00 5.175e+00 -0.36 128.000 0.000 26.424 +OBS: 56230.145 z NULL 6.056e+00 2.667e+00 2.27 25.544 0.630 25.645 +OBS: 56231.043 g NULL -3.166e+00 6.045e+00 -0.52 128.000 0.000 30.920 +OBS: 56231.059 r NULL 1.394e+00 2.551e+00 0.55 27.139 100.861 28.444 +OBS: 56231.070 i NULL 9.674e+00 4.244e+00 2.28 25.036 0.626 26.478 +OBS: 56231.102 z NULL 7.075e+00 3.281e+00 2.16 25.376 0.676 25.696 +OBS: 56235.039 g NULL -3.327e+00 5.184e+00 -0.64 128.000 0.000 30.736 +OBS: 56235.047 r NULL -7.926e+00 3.708e+00 -2.14 128.000 0.000 28.640 +OBS: 56235.062 i NULL 2.594e+00 4.192e+00 0.62 26.465 101.535 26.724 +OBS: 56235.090 z NULL -3.334e+00 8.232e+00 -0.41 128.000 0.000 25.900 +OBS: 56236.047 g NULL 5.995e+00 4.873e+00 1.23 25.556 1.819 30.855 +OBS: 56236.062 r NULL -2.264e+00 2.660e+00 -0.85 128.000 0.000 28.702 +OBS: 56236.074 i NULL 6.775e+00 5.224e+00 1.30 25.423 1.599 26.790 +OBS: 56236.105 z NULL 1.157e+01 5.324e+00 2.17 24.841 0.668 25.948 +OBS: 56237.039 g NULL -9.626e-01 3.164e+00 -0.30 128.000 0.000 31.114 +OBS: 56237.051 r NULL -4.763e-01 2.212e+00 -0.22 128.000 0.000 28.768 +OBS: 56237.094 i NULL 3.631e+00 2.492e+00 1.46 26.100 1.258 26.858 +OBS: 56237.125 z NULL -9.172e-01 3.695e+00 -0.25 128.000 0.000 25.992 +OBS: 56238.074 g NULL -7.040e-01 2.522e+00 -0.28 128.000 0.000 31.479 +OBS: 56238.094 r NULL 5.186e-01 1.588e+00 0.33 28.213 99.787 28.841 +OBS: 56238.109 i NULL -5.809e-01 2.722e+00 -0.21 128.000 0.000 26.926 +OBS: 56238.129 z NULL 3.139e+00 3.107e+00 1.01 26.258 4.975 26.035 +OBS: 56243.098 g NULL 4.690e+00 2.169e+00 2.16 99.000 5.000 98.764 +OBS: 56243.109 r NULL -1.079e+00 1.654e+00 -0.65 128.000 0.000 29.134 +OBS: 56243.125 i NULL 3.591e-01 2.564e+00 0.14 28.612 99.388 27.192 +OBS: 56243.152 z NULL 4.220e+00 2.551e+00 1.65 25.937 1.007 26.253 +OBS: 56244.082 g NULL -3.400e+00 2.191e+00 -1.55 99.000 5.000 98.764 +OBS: 56244.098 r NULL -1.966e+00 1.634e+00 -1.20 128.000 0.000 29.178 +OBS: 56244.109 i NULL 2.231e-01 2.588e+00 0.09 29.129 98.871 27.229 +OBS: 56244.133 z NULL 4.398e+00 2.983e+00 1.47 25.892 1.231 26.298 +OBS: 56245.070 g NULL -1.476e+00 1.718e+00 -0.86 99.000 5.000 98.764 +OBS: 56245.082 r NULL -8.053e-01 1.352e+00 -0.60 128.000 0.000 29.210 +OBS: 56245.109 i NULL -2.675e+00 3.212e+00 -0.83 128.000 0.000 27.258 +OBS: 56245.137 z NULL 4.761e+00 2.838e+00 1.68 25.806 0.984 26.345 +OBS: 56246.117 g NULL -1.433e+00 6.561e+00 -0.22 99.000 5.000 98.764 +OBS: 56246.125 r NULL 1.779e+00 2.810e+00 0.63 26.874 101.126 29.244 +OBS: 56246.152 i NULL 2.551e-01 1.959e+00 0.13 28.983 99.017 27.286 +OBS: 56246.180 z NULL 1.585e+00 1.934e+00 0.82 27.000 101.000 26.394 +OBS: 56247.281 g NULL -6.188e-01 1.489e+00 -0.42 99.000 5.000 98.764 +OBS: 56247.297 r NULL 1.036e+00 1.132e+00 0.91 27.462 100.538 29.278 +OBS: 56247.316 i NULL -1.053e+00 1.974e+00 -0.53 128.000 0.000 27.313 +OBS: 56247.340 z NULL 4.811e+00 2.491e+00 1.93 25.794 0.791 26.447 +OBS: 56248.324 g NULL 8.418e-02 1.701e+00 0.05 99.000 5.000 98.764 +OBS: 56248.340 r NULL -3.522e+00 1.337e+00 -2.63 128.000 0.000 29.311 +OBS: 56258.035 i NULL 2.654e+00 9.885e+00 0.27 26.440 101.560 27.698 +OBS: 56258.066 z NULL -3.490e+00 3.968e+00 -0.88 128.000 0.000 26.769 +OBS: 56258.215 g NULL 6.669e+00 4.949e+00 1.35 25.440 1.470 31.702 +OBS: 56258.227 r NULL -1.689e+00 2.381e+00 -0.71 128.000 0.000 29.812 +OBS: 56261.098 g NULL 6.206e+00 8.828e+00 0.70 25.518 102.482 30.906 +OBS: 56261.102 r NULL -4.435e+00 3.395e+00 -1.31 128.000 0.000 29.855 +OBS: 56261.125 i NULL 6.439e+00 3.855e+00 1.67 25.478 0.991 27.831 +OBS: 56261.156 z NULL 1.732e+00 3.086e+00 0.56 26.903 101.097 26.823 +OBS: 56273.160 g NULL -1.712e+00 1.753e+00 -0.98 128.000 0.000 30.721 +OBS: 56273.176 r NULL 1.177e+00 1.213e+00 0.97 27.323 100.677 28.901 +OBS: 56273.188 i NULL 9.475e-01 2.024e+00 0.47 27.558 100.442 28.108 +OBS: 56273.219 z NULL 3.003e+00 2.251e+00 1.33 26.306 1.504 27.052 +OBS: 56281.160 g NULL 1.571e+00 2.074e+00 0.76 27.009 100.991 31.317 +OBS: 56281.184 r NULL -9.190e-01 1.273e+00 -0.72 128.000 0.000 28.780 +OBS: 56281.203 i NULL 2.048e+00 1.799e+00 1.14 26.722 2.285 28.141 +OBS: 56281.227 z NULL 6.640e-01 2.291e+00 0.29 27.945 100.055 27.227 +OBS: 56288.086 g NULL 6.002e+00 4.850e+00 1.24 25.554 1.791 31.953 +OBS: 56288.094 r NULL -8.958e-01 2.113e+00 -0.42 128.000 0.000 29.209 +OBS: 56288.109 i NULL -4.945e+00 3.060e+00 -1.62 128.000 0.000 28.143 +OBS: 56288.141 z NULL -3.731e+00 2.585e+00 -1.44 128.000 0.000 27.392 +OBS: 56289.227 g NULL -4.355e+00 6.491e+00 -0.67 128.000 0.000 32.071 +OBS: 56289.242 r NULL -3.604e+00 2.702e+00 -1.33 128.000 0.000 29.343 +OBS: 56289.258 i NULL -1.711e+01 5.094e+00 -3.36 128.000 0.000 28.141 +OBS: 56292.035 z NULL 4.607e-01 2.061e+00 0.22 28.341 99.659 27.486 +OBS: 56292.141 g NULL 1.077e+00 3.053e+00 0.35 27.420 100.580 32.412 +OBS: 56292.156 r NULL 1.369e+00 1.735e+00 0.79 27.159 100.841 29.814 +OBS: 56292.172 i NULL -8.762e+00 2.658e+00 -3.30 128.000 0.000 28.136 +OBS: 56303.039 g NULL 1.715e-01 1.371e+00 0.13 29.415 98.585 32.434 +OBS: 56303.051 r NULL -7.244e-01 8.997e-01 -0.81 128.000 0.000 29.847 +OBS: 56303.070 i NULL 1.107e+00 1.413e+00 0.78 27.390 100.610 28.137 +OBS: 56303.094 z NULL 9.548e-01 2.209e+00 0.43 27.550 100.450 27.494 +OBS: 56311.043 g NULL -4.130e+00 2.671e+00 -1.55 128.000 0.000 32.434 +OBS: 56311.055 r NULL 6.807e-01 1.496e+00 0.46 27.918 100.082 29.847 +OBS: 56311.074 i NULL 3.571e-01 2.388e+00 0.15 28.618 99.382 28.137 +OBS: 56311.098 z NULL 3.918e+00 2.435e+00 1.61 26.017 1.054 27.494 +OBS: 56317.125 g NULL -7.556e+00 4.219e+00 -1.79 128.000 0.000 32.434 +OBS: 56317.141 r NULL 9.696e-01 1.860e+00 0.52 27.533 100.467 29.847 +OBS: 56318.109 i NULL 1.581e+00 2.781e+00 0.57 27.003 100.997 28.137 +OBS: 56318.141 z NULL -3.643e+00 2.976e+00 -1.22 128.000 0.000 27.494 +OBS: 56321.090 g NULL -2.095e+00 6.627e+00 -0.32 128.000 0.000 32.434 +OBS: 56321.098 r NULL -6.617e-01 2.887e+00 -0.23 128.000 0.000 29.847 +OBS: 56321.109 i NULL 2.008e+00 3.401e+00 0.59 26.743 101.257 28.137 +OBS: 56321.141 z NULL 1.335e+00 2.957e+00 0.45 27.186 100.814 27.494 +OBS: 56332.039 g NULL -2.264e-02 1.459e+00 -0.02 128.000 0.000 32.434 +OBS: 56332.051 r NULL 1.131e+00 9.740e-01 1.16 27.367 2.144 29.847 +OBS: 56332.070 i NULL -4.056e-01 1.581e+00 -0.26 128.000 0.000 28.137 +OBS: 56332.094 z NULL -1.812e+00 2.577e+00 -0.70 128.000 0.000 27.494 +END: diff --git a/data/tests/DES_data/DES_SN768774.DAT b/data/tests/DES_data/DES_SN768774.DAT new file mode 100644 index 000000000..f083219e6 --- /dev/null +++ b/data/tests/DES_data/DES_SN768774.DAT @@ -0,0 +1,221 @@ +SURVEY: DES +SNID: 768774 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 52.500000 deg +DECL: -27.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0097 MW E(B-V) +REDSHIFT_HELIO: 1.05555 +- 0.06480 (Helio, z_best) +REDSHIFT_FINAL: 1.05555 +- 0.06480 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 18796 +HOST_GALAXY_PHOTO-Z: 1.0556 +- 0.0648 + + + +SIM_MODEL: SALT2.K09_LAMOPEN 6 (name index) +SIM_NON1a: 0 (non1a index) +SIM_COMMENT: SN Type = Ia , MODEL = SALT2.K09_LAMOPEN +SIM_LIBID: 0 +SIM_REDSHIFT: 1.0608 +SIM_HOSTLIB_TRUEZ: 1.0600 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 18796 +SIM_DLMU: 44.258617 mag [ -5*log10(10pc/dL) ] +SIM_RA: 52.500000 deg +SIM_DECL: -27.500000 deg +SIM_MWEBV: 0.0096 (MilkyWay E(B-V)) +SIM_PEAKMAG: 99.13 26.90 24.90 24.66 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56219.023438 days +SIM_SALT2alpha: 0.110 +SIM_SALT2beta: 3.200 +SIM_SALT2x0: 1.256e-06 +SIM_SALT2x1: -2.6817 +SIM_SALT2c: 0.0620 +SIM_SALT2mB: 25.3871 +SIM_MAGDIM: 1.612 +SIM_SEARCHEFF_MASK: 2 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -20.78 days +SIM_TRESTMAX: 64.09 days +SIM_RISETIME_SHIFT: -0.0 days +SIM_FALLTIME_SHIFT: -0.0 days + +SEARCH_PEAKMJD: 56216.328 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 161 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56176.191 g NULL 5.593e+00 4.765e+00 1.17 99.000 5.000 99.125 +OBS: 56176.199 r NULL -8.991e-01 2.129e+00 -0.42 99.000 5.000 99.017 +OBS: 56176.215 i NULL 7.577e+00 3.148e+00 2.41 99.000 5.000 99.154 +OBS: 56176.238 z NULL 2.381e+00 2.483e+00 0.96 99.000 5.000 99.177 +OBS: 56179.188 g NULL 6.207e+00 2.587e+00 2.40 99.000 5.000 99.125 +OBS: 56179.195 r NULL -3.666e+00 1.710e+00 -2.14 99.000 5.000 99.017 +OBS: 56179.234 i NULL -2.360e+00 1.984e+00 -1.19 99.000 5.000 99.154 +OBS: 56179.266 z NULL 4.975e+00 3.730e+00 1.33 99.000 5.000 99.177 +OBS: 56180.266 g NULL 5.943e+00 2.552e+00 2.33 99.000 5.000 99.125 +OBS: 56180.281 r NULL -6.413e-01 1.300e+00 -0.49 99.000 5.000 99.017 +OBS: 56180.297 i NULL -1.305e+00 3.683e+00 -0.35 99.000 5.000 99.154 +OBS: 56180.328 z NULL 1.151e+01 4.491e+00 2.56 99.000 5.000 99.177 +OBS: 56188.160 g NULL -2.913e+00 5.684e+00 -0.51 99.000 5.000 99.125 +OBS: 56188.176 r NULL 7.664e-01 5.569e+00 0.14 99.000 5.000 99.017 +OBS: 56188.211 i NULL -2.373e+00 4.519e+00 -0.53 99.000 5.000 99.154 +OBS: 56188.238 z NULL 1.986e+00 3.399e+00 0.58 99.000 5.000 99.177 +OBS: 56189.254 g NULL -1.761e+00 2.284e+00 -0.77 99.000 5.000 99.125 +OBS: 56189.270 r NULL 1.824e+00 3.267e+00 0.56 99.000 5.000 99.017 +OBS: 56189.281 i NULL 2.992e+00 9.045e+00 0.33 99.000 5.000 99.154 +OBS: 56189.312 z NULL 4.401e+00 2.965e+00 1.48 99.000 5.000 99.177 +OBS: 56194.258 g NULL 1.975e+00 2.636e+00 0.75 99.000 5.000 99.125 +OBS: 56194.270 r NULL -1.485e+00 1.486e+00 -1.00 99.000 5.000 99.017 +OBS: 56194.285 i NULL -1.799e+00 2.291e+00 -0.79 128.000 0.000 28.262 +OBS: 56194.305 z NULL 2.084e+00 2.384e+00 0.87 26.703 101.297 28.983 +OBS: 56202.160 g NULL -5.763e-01 4.790e+00 -0.12 99.000 5.000 99.125 +OBS: 56202.176 r NULL 6.796e-01 2.323e+00 0.29 27.919 100.081 26.782 +OBS: 56202.191 i NULL 2.944e+00 4.163e+00 0.71 26.328 101.672 25.964 +OBS: 56202.215 z NULL 4.918e+00 2.713e+00 1.81 25.771 0.871 25.575 +OBS: 56210.172 g NULL 1.677e+00 3.690e+00 0.45 99.000 5.000 99.125 +OBS: 56210.188 r NULL 3.295e-01 3.215e+00 0.10 28.705 99.295 26.736 +OBS: 56210.203 i NULL 7.621e+00 3.213e+00 2.37 25.295 0.595 25.091 +OBS: 56210.234 z NULL 1.012e+01 3.850e+00 2.63 24.988 0.520 24.853 +OBS: 56218.172 g NULL -7.156e-01 1.249e+00 -0.57 99.000 5.000 99.125 +OBS: 56218.191 r NULL 1.657e+00 9.580e-01 1.73 26.952 0.938 26.866 +OBS: 56218.211 i NULL 1.095e+01 1.518e+00 7.21 24.902 0.162 24.900 +OBS: 56219.156 z NULL 1.383e+01 1.952e+00 7.09 24.648 0.165 24.662 +OBS: 56221.273 g NULL -4.479e+00 3.911e+00 -1.15 99.000 5.000 99.125 +OBS: 56221.281 r NULL -1.704e+00 5.581e+00 -0.31 128.000 0.000 27.077 +OBS: 56221.297 i NULL 6.714e+00 4.487e+00 1.50 25.433 1.199 24.955 +OBS: 56221.324 z NULL 1.637e+01 1.440e+01 1.14 24.465 2.296 24.681 +OBS: 56222.074 g NULL -1.172e+01 5.912e+00 -1.98 99.000 5.000 99.125 +OBS: 56222.090 r NULL 3.488e+00 2.627e+00 1.33 26.143 1.518 27.165 +OBS: 56222.113 i NULL 1.942e+01 3.344e+00 5.81 24.279 0.204 24.983 +OBS: 56222.133 z NULL 2.579e+00 5.057e+00 0.51 26.471 101.529 24.694 +OBS: 56228.059 g NULL 8.127e+00 7.694e+00 1.06 99.000 5.000 99.125 +OBS: 56228.066 r NULL 4.750e+00 2.392e+00 1.99 25.808 0.760 27.767 +OBS: 56228.086 i NULL 6.207e+00 5.111e+00 1.21 25.518 1.884 25.238 +OBS: 56228.109 z NULL 1.033e+01 4.139e+00 2.50 24.965 0.556 24.843 +OBS: 56229.047 g NULL 2.400e+01 2.392e+01 1.00 99.000 5.000 99.125 +OBS: 56229.059 r NULL 2.982e+00 3.850e+00 0.77 26.314 101.686 27.839 +OBS: 56229.074 i NULL -2.262e+00 5.425e+00 -0.42 128.000 0.000 25.292 +OBS: 56229.102 z NULL 7.368e+00 4.851e+00 1.52 25.332 1.167 24.877 +OBS: 56230.059 g NULL -6.580e+00 6.572e+00 -1.00 99.000 5.000 99.125 +OBS: 56230.102 r NULL 5.165e+00 2.917e+00 1.77 25.717 0.903 27.895 +OBS: 56230.113 i NULL 6.617e+00 5.177e+00 1.28 25.448 1.656 25.352 +OBS: 56230.145 z NULL 1.225e+01 2.675e+00 4.58 24.780 0.267 24.916 +OBS: 56231.043 g NULL 2.362e+00 6.045e+00 0.39 99.000 5.000 99.125 +OBS: 56231.059 r NULL 1.704e+00 2.551e+00 0.67 26.921 101.079 27.942 +OBS: 56231.070 i NULL 9.133e+00 4.244e+00 2.15 25.098 0.678 25.411 +OBS: 56231.102 z NULL 3.801e+00 3.279e+00 1.16 26.050 2.167 24.954 +OBS: 56235.039 g NULL -2.586e+00 5.184e+00 -0.50 99.000 5.000 99.125 +OBS: 56235.047 r NULL 6.475e+00 3.707e+00 1.75 25.472 0.922 28.118 +OBS: 56235.062 i NULL 2.094e+00 4.193e+00 0.50 26.697 101.303 25.672 +OBS: 56235.090 z NULL 1.582e+01 8.237e+00 1.92 24.502 0.798 25.129 +OBS: 56236.047 g NULL -2.015e+00 4.872e+00 -0.41 99.000 5.000 99.125 +OBS: 56236.062 r NULL 1.374e+00 2.660e+00 0.52 27.155 100.845 28.159 +OBS: 56236.074 i NULL 9.326e-01 5.223e+00 0.18 27.576 100.424 25.743 +OBS: 56236.105 z NULL 4.182e+00 5.320e+00 0.79 25.946 102.054 25.178 +OBS: 56237.039 g NULL -3.408e+00 3.164e+00 -1.08 99.000 5.000 99.125 +OBS: 56237.051 r NULL -2.088e+00 2.212e+00 -0.94 128.000 0.000 28.197 +OBS: 56237.094 i NULL 5.644e+00 2.495e+00 2.26 25.621 0.633 25.818 +OBS: 56237.125 z NULL 1.459e+01 3.706e+00 3.94 24.590 0.318 25.230 +OBS: 56238.074 g NULL 2.991e+00 2.523e+00 1.19 99.000 5.000 99.125 +OBS: 56238.094 r NULL -1.205e+00 1.588e+00 -0.76 128.000 0.000 28.235 +OBS: 56238.109 i NULL 5.554e+00 2.725e+00 2.04 25.638 0.732 25.896 +OBS: 56238.129 z NULL 3.267e+00 3.107e+00 1.05 26.215 3.294 25.284 +OBS: 56243.098 g NULL 2.278e-01 2.167e+00 0.11 99.000 5.000 99.125 +OBS: 56243.109 r NULL -3.138e+00 1.655e+00 -1.90 128.000 0.000 28.457 +OBS: 56243.125 i NULL 3.253e+00 2.565e+00 1.27 26.219 1.687 26.328 +OBS: 56243.152 z NULL 6.505e+00 2.553e+00 2.55 25.467 0.541 25.591 +OBS: 56244.082 g NULL -1.694e-01 2.190e+00 -0.08 99.000 5.000 99.125 +OBS: 56244.098 r NULL -6.433e-01 1.634e+00 -0.39 128.000 0.000 28.519 +OBS: 56244.109 i NULL 2.318e+00 2.589e+00 0.90 26.587 101.413 26.423 +OBS: 56244.133 z NULL 4.126e+00 2.983e+00 1.38 25.961 1.394 25.658 +OBS: 56245.070 g NULL 6.205e-01 1.718e+00 0.36 99.000 5.000 99.125 +OBS: 56245.082 r NULL -8.910e-01 1.352e+00 -0.66 128.000 0.000 28.594 +OBS: 56245.109 i NULL -1.581e+00 3.212e+00 -0.49 128.000 0.000 26.521 +OBS: 56245.137 z NULL 1.887e+00 2.837e+00 0.67 26.811 101.189 25.729 +OBS: 56246.117 g NULL -4.578e-01 6.561e+00 -0.07 99.000 5.000 99.125 +OBS: 56246.125 r NULL -4.153e+00 2.811e+00 -1.48 128.000 0.000 28.683 +OBS: 56246.152 i NULL 2.522e+00 1.960e+00 1.29 26.496 1.630 26.629 +OBS: 56246.180 z NULL 6.703e+00 1.938e+00 3.46 25.434 0.370 25.807 +OBS: 56247.281 g NULL -2.323e+00 1.489e+00 -1.56 99.000 5.000 99.125 +OBS: 56247.297 r NULL 3.918e-01 1.132e+00 0.35 28.517 99.483 28.806 +OBS: 56247.316 i NULL 4.709e+00 1.977e+00 2.38 25.818 0.590 26.752 +OBS: 56247.340 z NULL 3.817e+00 2.491e+00 1.53 26.046 1.148 25.898 +OBS: 56248.324 g NULL 2.478e+00 1.702e+00 1.46 99.000 5.000 99.125 +OBS: 56248.340 r NULL -1.017e+00 1.335e+00 -0.76 128.000 0.000 28.926 +OBS: 56258.035 i NULL 2.836e+00 9.885e+00 0.29 26.368 101.632 27.685 +OBS: 56258.066 z NULL 7.877e+00 3.970e+00 1.98 25.259 0.761 26.752 +OBS: 56258.215 g NULL 2.918e+00 4.947e+00 0.59 99.000 5.000 99.125 +OBS: 56258.227 r NULL 4.592e-01 2.381e+00 0.19 28.345 99.655 29.087 +OBS: 56261.098 g NULL 1.746e+00 8.827e+00 0.20 99.000 5.000 99.125 +OBS: 56261.102 r NULL 1.392e+00 3.394e+00 0.41 27.141 100.859 29.081 +OBS: 56261.125 i NULL 5.737e+00 3.855e+00 1.49 25.603 1.209 27.851 +OBS: 56261.156 z NULL 1.767e+00 3.086e+00 0.57 26.882 101.118 26.927 +OBS: 56273.160 g NULL -1.112e+00 1.752e+00 -0.63 99.000 5.000 99.125 +OBS: 56273.176 r NULL 2.375e-01 1.213e+00 0.20 29.061 98.939 29.842 +OBS: 56273.188 i NULL 1.814e+00 2.024e+00 0.90 26.853 101.147 28.349 +OBS: 56273.219 z NULL -5.050e+00 2.253e+00 -2.24 128.000 0.000 27.486 +OBS: 56281.160 g NULL -7.603e-01 2.074e+00 -0.37 99.000 5.000 99.125 +OBS: 56281.184 r NULL -4.889e-01 1.273e+00 -0.38 128.000 0.000 31.534 +OBS: 56281.203 i NULL 1.715e+00 1.799e+00 0.95 26.915 101.085 28.612 +OBS: 56281.227 z NULL 8.000e-01 2.291e+00 0.35 27.742 100.258 27.693 +OBS: 56288.086 g NULL -1.651e+00 4.849e+00 -0.34 99.000 5.000 99.125 +OBS: 56288.094 r NULL 8.902e-01 2.113e+00 0.42 99.000 5.000 99.017 +OBS: 56288.109 i NULL 1.507e+00 3.059e+00 0.49 27.055 100.945 29.546 +OBS: 56288.141 z NULL 3.206e+00 2.585e+00 1.24 26.235 1.780 27.591 +OBS: 56289.227 g NULL -5.638e+00 6.492e+00 -0.87 99.000 5.000 99.125 +OBS: 56289.242 r NULL -1.631e-01 2.701e+00 -0.06 99.000 5.000 99.017 +OBS: 56289.258 i NULL -4.922e+00 5.085e+00 -0.97 128.000 0.000 29.743 +OBS: 56292.035 z NULL 3.850e-01 2.061e+00 0.19 28.536 99.464 27.615 +OBS: 56292.141 g NULL 1.217e+00 3.053e+00 0.40 99.000 5.000 99.125 +OBS: 56292.156 r NULL -2.924e-01 1.735e+00 -0.17 99.000 5.000 99.017 +OBS: 56292.172 i NULL -1.525e+00 2.653e+00 -0.57 128.000 0.000 30.181 +OBS: 56303.039 g NULL 1.669e+00 1.371e+00 1.22 99.000 5.000 99.125 +OBS: 56303.051 r NULL 9.075e-01 9.000e-01 1.01 27.605 5.191 28.535 +OBS: 56303.070 i NULL -2.811e-01 1.413e+00 -0.20 128.000 0.000 30.046 +OBS: 56303.094 z NULL 1.078e+00 2.209e+00 0.49 27.418 100.582 28.020 +OBS: 56311.043 g NULL -6.069e-01 2.670e+00 -0.23 99.000 5.000 99.125 +OBS: 56311.055 r NULL -5.633e-01 1.496e+00 -0.38 128.000 0.000 28.889 +OBS: 56311.074 i NULL -9.632e-01 2.388e+00 -0.40 128.000 0.000 29.212 +OBS: 56311.098 z NULL 1.480e+00 2.434e+00 0.61 27.075 100.925 28.208 +OBS: 56317.125 g NULL 2.460e+00 4.216e+00 0.58 99.000 5.000 99.125 +OBS: 56317.141 r NULL 1.315e+00 1.860e+00 0.71 99.000 5.000 99.017 +OBS: 56318.109 i NULL 4.217e+00 2.782e+00 1.52 25.938 1.169 28.696 +OBS: 56318.141 z NULL 3.648e+00 2.976e+00 1.23 26.095 1.835 28.182 +OBS: 56321.090 g NULL 1.035e+01 6.630e+00 1.56 99.000 5.000 99.125 +OBS: 56321.098 r NULL 1.291e+00 2.887e+00 0.45 99.000 5.000 99.017 +OBS: 56321.109 i NULL -8.662e+00 3.405e+00 -2.54 128.000 0.000 28.530 +OBS: 56321.141 z NULL 2.795e+00 2.958e+00 0.94 26.384 101.616 28.137 +OBS: 56332.039 g NULL 1.021e+00 1.459e+00 0.70 99.000 5.000 99.125 +OBS: 56332.051 r NULL -4.820e-01 9.738e-01 -0.50 99.000 5.000 99.017 +OBS: 56332.070 i NULL 1.017e+00 1.581e+00 0.64 27.482 100.518 28.586 +OBS: 56332.094 z NULL 3.252e+00 2.577e+00 1.26 26.220 1.707 28.156 +OBS: 56340.043 g NULL -9.275e-01 2.749e+00 -0.34 99.000 5.000 99.125 +OBS: 56340.055 r NULL 2.076e-02 1.646e+00 0.01 99.000 5.000 99.017 +OBS: 56340.074 i NULL 2.197e+00 2.720e+00 0.81 26.645 101.355 28.586 +OBS: 56340.098 z NULL -5.976e-02 2.980e+00 -0.02 128.000 0.000 28.156 +OBS: 56348.055 g NULL 3.749e+00 3.250e+00 1.15 99.000 5.000 99.125 +OBS: 56348.070 r NULL -1.686e+00 2.099e+00 -0.80 99.000 5.000 99.017 +OBS: 56349.004 i NULL 4.234e+00 2.353e+00 1.80 25.933 0.881 28.586 +OBS: 56349.027 z NULL 3.441e+00 2.427e+00 1.42 26.158 1.326 28.156 +OBS: 56350.043 g NULL -1.655e+00 3.835e+00 -0.43 99.000 5.000 99.125 +OBS: 56350.055 r NULL -1.434e+00 1.814e+00 -0.79 99.000 5.000 99.017 +OBS: 56350.070 i NULL 2.416e+00 3.159e+00 0.76 26.542 101.458 28.586 +OBS: 56350.098 z NULL -3.760e-01 4.859e+00 -0.08 128.000 0.000 28.156 +OBS: 56351.043 g NULL 3.603e+00 3.351e+00 1.08 99.000 5.000 99.125 +OBS: 56351.055 r NULL 2.081e+00 1.761e+00 1.18 99.000 5.000 99.017 +OBS: 56351.070 i NULL 8.752e-01 3.058e+00 0.29 27.645 100.355 28.586 +OBS: 56351.098 z NULL -3.332e+00 4.781e+00 -0.70 128.000 0.000 28.156 +END: diff --git a/data/tests/DES_data/DES_SN825069.DAT b/data/tests/DES_data/DES_SN825069.DAT new file mode 100644 index 000000000..03d866c69 --- /dev/null +++ b/data/tests/DES_data/DES_SN825069.DAT @@ -0,0 +1,223 @@ +SURVEY: DES +SNID: 825069 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 52.500000 deg +DECL: -27.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0097 MW E(B-V) +REDSHIFT_HELIO: 0.90223 +- 0.03150 (Helio, z_best) +REDSHIFT_FINAL: 0.90223 +- 0.03150 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 12355 +HOST_GALAXY_PHOTO-Z: 0.9022 +- 0.0315 + + + +SIM_MODEL: SALT2.K09_LAMOPEN 6 (name index) +SIM_NON1a: 0 (non1a index) +SIM_COMMENT: SN Type = Ia , MODEL = SALT2.K09_LAMOPEN +SIM_LIBID: 0 +SIM_REDSHIFT: 0.8703 +SIM_HOSTLIB_TRUEZ: 0.8700 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 12355 +SIM_DLMU: 43.727875 mag [ -5*log10(10pc/dL) ] +SIM_RA: 52.500000 deg +SIM_DECL: -27.500000 deg +SIM_MWEBV: 0.0116 (MilkyWay E(B-V)) +SIM_PEAKMAG: 26.06 23.86 23.34 23.39 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56231.308594 days +SIM_SALT2alpha: 0.110 +SIM_SALT2beta: 3.200 +SIM_SALT2x0: 3.901e-06 +SIM_SALT2x1: 1.2094 +SIM_SALT2c: -0.0227 +SIM_SALT2mB: 24.1571 +SIM_STRETCH: 2.209 +SIM_MAGDIM: 0.912 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -29.47 days +SIM_TRESTMAX: 64.05 days +SIM_RISETIME_SHIFT: -0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56230.875 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 161 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56176.191 g NULL 4.651e+00 4.765e+00 0.98 99.000 5.000 98.289 +OBS: 56176.199 r NULL -2.561e+00 2.130e+00 -1.20 99.000 5.000 98.767 +OBS: 56176.215 i NULL 2.907e+00 3.146e+00 0.92 99.000 5.000 98.964 +OBS: 56176.238 z NULL 1.351e-01 2.483e+00 0.05 99.000 5.000 98.918 +OBS: 56179.188 g NULL 2.851e+00 2.585e+00 1.10 99.000 5.000 98.289 +OBS: 56179.195 r NULL -1.678e+00 1.709e+00 -0.98 99.000 5.000 98.767 +OBS: 56179.234 i NULL 6.325e-01 1.984e+00 0.32 99.000 5.000 98.964 +OBS: 56179.266 z NULL -5.300e+00 3.730e+00 -1.42 99.000 5.000 98.918 +OBS: 56180.266 g NULL -9.040e-01 2.550e+00 -0.35 99.000 5.000 98.289 +OBS: 56180.281 r NULL 2.921e-01 1.300e+00 0.22 99.000 5.000 98.767 +OBS: 56180.297 i NULL 2.044e+00 3.683e+00 0.55 99.000 5.000 98.964 +OBS: 56180.328 z NULL 2.689e-01 4.486e+00 0.06 99.000 5.000 98.918 +OBS: 56188.160 g NULL 2.510e+00 5.684e+00 0.44 99.000 5.000 98.289 +OBS: 56188.176 r NULL 3.683e+00 5.569e+00 0.66 99.000 5.000 98.767 +OBS: 56188.211 i NULL -3.188e+00 4.519e+00 -0.71 99.000 5.000 98.964 +OBS: 56188.238 z NULL -2.594e+00 3.399e+00 -0.76 99.000 5.000 98.918 +OBS: 56189.254 g NULL 7.640e-02 2.284e+00 0.03 99.000 5.000 98.289 +OBS: 56189.270 r NULL 6.003e+00 3.269e+00 1.84 99.000 5.000 98.767 +OBS: 56189.281 i NULL 1.351e+01 9.049e+00 1.49 99.000 5.000 98.964 +OBS: 56189.312 z NULL 2.718e+00 2.964e+00 0.92 99.000 5.000 98.918 +OBS: 56194.258 g NULL 2.793e+00 2.636e+00 1.06 26.385 3.121 32.408 +OBS: 56194.270 r NULL 3.176e+00 1.487e+00 2.14 26.245 0.685 31.248 +OBS: 56194.285 i NULL -2.293e+00 2.291e+00 -1.00 128.000 0.000 30.618 +OBS: 56194.305 z NULL -1.562e-01 2.384e+00 -0.07 128.000 0.000 30.732 +OBS: 56202.160 g NULL 3.734e+00 4.792e+00 0.78 26.069 101.931 27.307 +OBS: 56202.176 r NULL 5.421e-01 2.323e+00 0.23 28.165 99.835 26.178 +OBS: 56202.191 i NULL -6.471e+00 4.165e+00 -1.55 128.000 0.000 25.590 +OBS: 56202.215 z NULL 6.540e+00 2.714e+00 2.41 25.461 0.582 25.751 +OBS: 56210.172 g NULL 7.679e+00 3.696e+00 2.08 25.287 0.712 26.162 +OBS: 56210.188 r NULL 1.992e+01 3.240e+00 6.15 24.252 0.192 24.641 +OBS: 56210.203 i NULL 2.242e+01 3.239e+00 6.92 24.124 0.169 24.205 +OBS: 56210.234 z NULL 2.168e+01 3.868e+00 5.60 24.160 0.213 24.328 +OBS: 56218.172 g NULL 5.151e+00 1.263e+00 4.08 25.720 0.305 26.004 +OBS: 56218.191 r NULL 2.890e+01 1.119e+00 25.83 23.848 0.043 23.847 +OBS: 56218.211 i NULL 3.805e+01 1.675e+00 22.71 23.549 0.049 23.549 +OBS: 56219.156 z NULL 3.732e+01 2.059e+00 18.13 23.570 0.061 23.626 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56221.273 g NULL 4.290e+00 3.916e+00 1.10 25.919 2.651 26.015 +OBS: 56221.281 r NULL 3.314e+01 5.629e+00 5.89 23.699 0.202 23.753 +OBS: 56221.297 i NULL 4.609e+01 4.576e+00 10.07 23.341 0.113 23.422 +OBS: 56221.324 z NULL 6.146e+01 1.444e+01 4.26 23.029 0.290 23.569 +OBS: 56222.074 g NULL 7.720e+00 5.913e+00 1.31 25.281 1.576 26.020 +OBS: 56222.090 r NULL 2.894e+01 2.691e+00 10.75 23.846 0.106 23.738 +OBS: 56222.113 i NULL 4.619e+01 3.442e+00 13.42 23.339 0.084 23.396 +OBS: 56222.133 z NULL 3.570e+01 5.102e+00 7.00 23.618 0.168 23.551 +OBS: 56228.059 g NULL 9.941e-01 7.695e+00 0.13 27.506 100.494 26.034 +OBS: 56228.066 r NULL 3.117e+01 2.470e+00 12.62 23.766 0.090 23.776 +OBS: 56228.086 i NULL 3.988e+01 5.171e+00 7.71 23.498 0.151 23.324 +OBS: 56228.109 z NULL 5.021e+01 4.242e+00 11.84 23.248 0.095 23.423 +OBS: 56229.047 g NULL 1.182e+01 2.392e+01 0.49 24.819 103.181 26.038 +OBS: 56229.059 r NULL 2.887e+01 3.895e+00 7.41 23.849 0.157 23.800 +OBS: 56229.074 i NULL 4.813e+01 5.505e+00 8.74 23.294 0.132 23.327 +OBS: 56229.102 z NULL 4.072e+01 4.911e+00 8.29 23.476 0.140 23.408 +OBS: 56230.059 g NULL 4.036e+00 6.573e+00 0.61 25.985 102.015 26.047 +OBS: 56230.102 r NULL 3.168e+01 2.983e+00 10.62 23.748 0.107 23.827 +OBS: 56230.113 i NULL 4.303e+01 5.243e+00 8.21 23.416 0.141 23.333 +OBS: 56230.145 z NULL 4.263e+01 2.785e+00 15.30 23.426 0.074 23.399 +OBS: 56231.043 g NULL 1.794e+00 6.047e+00 0.30 26.866 101.134 26.060 +OBS: 56231.059 r NULL 2.819e+01 2.613e+00 10.79 23.875 0.106 23.854 +OBS: 56231.070 i NULL 5.057e+01 4.351e+00 11.62 23.240 0.097 23.339 +OBS: 56231.102 z NULL 4.119e+01 3.370e+00 12.22 23.463 0.093 23.395 +OBS: 56235.039 g NULL -1.881e+00 5.187e+00 -0.36 128.000 0.000 26.159 +OBS: 56235.047 r NULL 2.345e+01 3.741e+00 6.27 24.075 0.189 23.983 +OBS: 56235.062 i NULL 4.216e+01 4.274e+00 9.87 23.438 0.116 23.392 +OBS: 56235.090 z NULL 3.409e+01 8.259e+00 4.13 23.668 0.302 23.424 +OBS: 56236.047 g NULL 6.165e-01 4.876e+00 0.13 28.025 99.975 26.208 +OBS: 56236.062 r NULL 2.401e+01 2.707e+00 8.87 24.049 0.130 24.021 +OBS: 56236.074 i NULL 4.107e+01 5.285e+00 7.77 23.466 0.150 23.412 +OBS: 56236.105 z NULL 3.106e+01 5.353e+00 5.80 23.770 0.207 23.436 +OBS: 56237.039 g NULL 6.310e+00 3.169e+00 1.99 25.500 0.757 26.259 +OBS: 56237.051 r NULL 2.249e+01 2.260e+00 9.95 24.120 0.115 24.059 +OBS: 56237.094 i NULL 4.414e+01 2.635e+00 16.75 23.388 0.067 23.434 +OBS: 56237.125 z NULL 4.003e+01 3.773e+00 10.61 23.494 0.108 23.448 +OBS: 56238.074 g NULL 6.948e-01 2.526e+00 0.28 27.895 100.105 26.330 +OBS: 56238.094 r NULL 1.939e+01 1.640e+00 11.82 24.281 0.097 24.103 +OBS: 56238.109 i NULL 4.371e+01 2.851e+00 15.33 23.398 0.073 23.459 +OBS: 56238.129 z NULL 4.478e+01 3.220e+00 13.91 23.372 0.081 23.460 +OBS: 56243.098 g NULL 3.342e+00 2.171e+00 1.54 26.190 1.138 26.866 +OBS: 56243.109 r NULL 1.982e+01 1.703e+00 11.64 24.257 0.097 24.346 +OBS: 56243.125 i NULL 3.869e+01 2.673e+00 14.47 23.531 0.077 23.616 +OBS: 56243.152 z NULL 3.495e+01 2.636e+00 13.26 23.641 0.086 23.530 +OBS: 56244.082 g NULL 1.004e+00 2.193e+00 0.46 27.495 100.505 27.000 +OBS: 56244.098 r NULL 1.732e+01 1.674e+00 10.35 24.403 0.110 24.402 +OBS: 56244.109 i NULL 3.038e+01 2.659e+00 11.43 23.793 0.100 23.651 +OBS: 56244.133 z NULL 3.737e+01 3.066e+00 12.19 23.569 0.093 23.548 +OBS: 56245.070 g NULL 3.615e-01 1.721e+00 0.21 28.605 99.395 27.139 +OBS: 56245.082 r NULL 1.632e+01 1.395e+00 11.69 24.468 0.097 24.460 +OBS: 56245.109 i NULL 3.343e+01 3.281e+00 10.19 23.690 0.112 23.688 +OBS: 56245.137 z NULL 3.780e+01 2.927e+00 12.91 23.556 0.087 23.571 +OBS: 56246.117 g NULL 9.729e+00 6.566e+00 1.48 25.030 1.219 27.298 +OBS: 56246.125 r NULL 1.778e+01 2.839e+00 6.26 24.375 0.189 24.525 +OBS: 56246.152 i NULL 3.001e+01 2.050e+00 14.64 23.807 0.077 23.727 +OBS: 56246.180 z NULL 3.597e+01 2.051e+00 17.54 23.610 0.064 23.596 +OBS: 56247.281 g NULL 3.121e+00 1.492e+00 2.09 26.264 0.705 27.478 +OBS: 56247.297 r NULL 1.332e+01 1.169e+00 11.40 24.688 0.100 24.603 +OBS: 56247.316 i NULL 3.132e+01 2.069e+00 15.14 23.760 0.074 23.773 +OBS: 56247.340 z NULL 3.324e+01 2.569e+00 12.94 23.696 0.088 23.629 +OBS: 56248.324 g NULL -1.807e+00 1.703e+00 -1.06 128.000 0.000 27.658 +OBS: 56248.340 r NULL 1.353e+01 1.367e+00 9.90 24.672 0.116 24.679 +OBS: 56258.035 i NULL 2.643e+01 9.899e+00 2.67 23.945 0.509 24.286 +OBS: 56258.066 z NULL 2.991e+01 4.008e+00 7.46 23.811 0.156 24.010 +OBS: 56258.215 g NULL 5.639e+00 4.948e+00 1.14 25.622 2.278 30.300 +OBS: 56258.227 r NULL 5.736e+00 2.386e+00 2.40 25.603 0.584 25.424 +OBS: 56261.098 g NULL -2.078e+01 8.836e+00 -2.35 128.000 0.000 31.457 +OBS: 56261.102 r NULL 7.522e+00 3.400e+00 2.21 25.309 0.653 25.597 +OBS: 56261.125 i NULL 2.091e+01 3.877e+00 5.39 24.199 0.222 24.471 +OBS: 56261.156 z NULL 2.647e+01 3.128e+00 8.46 23.943 0.136 24.117 +OBS: 56273.160 g NULL 1.163e+00 1.754e+00 0.66 27.336 100.664 27.393 +OBS: 56273.176 r NULL 1.865e+00 1.215e+00 1.53 26.823 1.146 26.476 +OBS: 56273.188 i NULL 8.717e+00 2.033e+00 4.29 25.149 0.288 25.224 +OBS: 56273.219 z NULL 1.253e+01 2.265e+00 5.53 24.755 0.217 24.540 +OBS: 56281.160 g NULL 1.423e+00 2.074e+00 0.69 27.117 100.883 29.730 +OBS: 56281.184 r NULL -7.864e-02 1.274e+00 -0.06 128.000 0.000 27.057 +OBS: 56281.203 i NULL 2.341e+00 1.801e+00 1.30 26.577 1.598 25.652 +OBS: 56281.227 z NULL 1.418e+01 2.307e+00 6.15 24.620 0.192 24.913 +OBS: 56288.086 g NULL 7.130e-01 4.849e+00 0.15 99.000 5.000 98.289 +OBS: 56288.094 r NULL 1.293e+00 2.114e+00 0.61 27.221 100.779 27.439 +OBS: 56288.109 i NULL -5.641e-02 3.060e+00 -0.02 128.000 0.000 25.995 +OBS: 56288.141 z NULL 9.512e+00 2.591e+00 3.67 25.054 0.345 25.203 +OBS: 56289.227 g NULL -1.494e+01 6.497e+00 -2.30 99.000 5.000 98.289 +OBS: 56289.242 r NULL 1.676e+00 2.701e+00 0.62 26.939 101.061 27.532 +OBS: 56289.258 i NULL 6.288e-01 5.085e+00 0.12 28.004 99.996 26.034 +OBS: 56292.035 z NULL 6.160e+00 2.066e+00 2.98 25.526 0.444 25.340 +OBS: 56292.141 g NULL -7.097e+00 3.056e+00 -2.32 99.000 5.000 98.289 +OBS: 56292.156 r NULL 1.067e+00 1.735e+00 0.61 27.430 100.570 27.804 +OBS: 56292.172 i NULL 1.212e+00 2.654e+00 0.46 27.291 100.709 26.106 +OBS: 56303.039 g NULL 1.788e+00 1.371e+00 1.30 99.000 5.000 98.289 +OBS: 56303.051 r NULL 1.188e+00 9.002e-01 1.32 27.313 1.540 28.171 +OBS: 56303.070 i NULL 4.207e+00 1.416e+00 2.97 25.940 0.445 26.351 +OBS: 56303.094 z NULL 8.265e+00 2.215e+00 3.73 25.207 0.338 25.619 +OBS: 56311.043 g NULL -1.283e+00 2.670e+00 -0.48 128.000 0.000 29.232 +OBS: 56311.055 r NULL -4.725e-01 1.496e+00 -0.32 128.000 0.000 27.787 +OBS: 56311.074 i NULL 2.397e+00 2.389e+00 1.00 26.551 6.146 26.494 +OBS: 56311.098 z NULL 4.634e+00 2.436e+00 1.90 25.835 0.810 25.714 +OBS: 56317.125 g NULL -6.864e+00 4.218e+00 -1.63 99.000 5.000 98.289 +OBS: 56317.141 r NULL 3.121e-02 1.860e+00 0.02 31.264 96.736 27.492 +OBS: 56318.109 i NULL 2.631e+00 2.781e+00 0.95 26.450 101.550 26.560 +OBS: 56318.141 z NULL 8.425e+00 2.980e+00 2.83 25.186 0.473 25.734 +OBS: 56321.090 g NULL -5.531e+00 6.628e+00 -0.83 99.000 5.000 98.289 +OBS: 56321.098 r NULL 6.252e+00 2.890e+00 2.16 25.510 0.673 27.328 +OBS: 56321.109 i NULL -9.018e-01 3.402e+00 -0.27 128.000 0.000 26.574 +OBS: 56321.141 z NULL 9.616e+00 2.963e+00 3.25 25.043 0.399 25.730 +OBS: 56332.039 g NULL -5.382e-01 1.459e+00 -0.37 99.000 5.000 98.289 +OBS: 56332.051 r NULL 5.900e-01 9.749e-01 0.61 28.073 99.927 27.259 +OBS: 56332.070 i NULL 4.059e+00 1.584e+00 2.56 25.979 0.537 26.580 +OBS: 56332.094 z NULL 4.705e+00 2.579e+00 1.82 25.819 0.862 25.726 +OBS: 56340.043 g NULL 7.325e-01 2.749e+00 0.27 99.000 5.000 98.289 +OBS: 56340.055 r NULL 2.778e+00 1.648e+00 1.69 26.391 0.976 27.259 +OBS: 56340.074 i NULL 2.200e+00 2.721e+00 0.81 26.644 101.356 26.580 +OBS: 56340.098 z NULL 3.654e+00 2.982e+00 1.23 26.093 1.839 25.726 +OBS: 56348.055 g NULL -5.446e-01 3.249e+00 -0.17 99.000 5.000 98.289 +OBS: 56348.070 r NULL 2.653e+00 2.100e+00 1.26 26.441 1.701 27.259 +OBS: 56349.004 i NULL 1.695e+00 2.353e+00 0.72 26.927 101.073 26.580 +OBS: 56349.027 z NULL 4.142e+00 2.428e+00 1.71 25.957 0.959 25.726 +OBS: 56350.043 g NULL 4.972e+00 3.836e+00 1.30 99.000 5.000 98.289 +OBS: 56350.055 r NULL -6.713e-01 1.814e+00 -0.37 128.000 0.000 27.259 +OBS: 56350.070 i NULL 1.096e+01 3.166e+00 3.46 24.901 0.369 26.580 +OBS: 56350.098 z NULL 2.023e+00 4.860e+00 0.42 26.735 101.265 25.726 +OBS: 56351.043 g NULL 1.345e+00 3.350e+00 0.40 99.000 5.000 98.289 +OBS: 56351.055 r NULL 1.750e+00 1.761e+00 0.99 26.893 101.107 27.259 +OBS: 56351.070 i NULL -2.571e-01 3.058e+00 -0.08 128.000 0.000 26.580 +OBS: 56351.098 z NULL -7.250e-01 4.781e+00 -0.15 128.000 0.000 25.726 +END: diff --git a/data/tests/DES_data/DES_SN831998.DAT b/data/tests/DES_data/DES_SN831998.DAT new file mode 100644 index 000000000..2a0b2085c --- /dev/null +++ b/data/tests/DES_data/DES_SN831998.DAT @@ -0,0 +1,93 @@ +SURVEY: DES +SNID: 831998 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 36.750000 deg +DECL: -4.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0283 MW E(B-V) +REDSHIFT_HELIO: 0.56739 +- 0.03440 (Helio, z_best) +REDSHIFT_FINAL: 0.56739 +- 0.03440 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 19222 +HOST_GALAXY_PHOTO-Z: 0.5674 +- 0.0344 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 27 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-015339 +SIM_LIBID: 2 +SIM_REDSHIFT: 0.5735 +SIM_HOSTLIB_TRUEZ: 0.5700 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 19222 +SIM_DLMU: 42.620083 mag [ -5*log10(10pc/dL) ] +SIM_RA: 36.750000 deg +SIM_DECL: -4.500000 deg +SIM_MWEBV: 0.0307 (MilkyWay E(B-V)) +SIM_PEAKMAG: 24.24 23.70 23.74 24.02 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56324.242188 days +SIM_SALT2x0: 8.953e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -31.81 days +SIM_TRESTMAX: 15.73 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56324.242 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 37 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56274.188 g NULL -5.880e-01 3.586e+00 -0.16 99.000 5.000 99.068 +OBS: 56274.195 r NULL -2.129e+00 2.730e+00 -0.78 99.000 5.000 98.991 +OBS: 56274.203 i NULL -8.137e+00 4.262e+00 -1.91 99.000 5.000 98.989 +OBS: 56274.219 z NULL 7.021e+00 5.012e+00 1.40 99.000 5.000 99.074 +OBS: 56282.203 g NULL 5.339e-01 6.352e+00 0.08 28.181 99.819 58.578 +OBS: 56283.156 r NULL 7.405e+00 3.132e+00 2.36 25.326 0.596 56.027 +OBS: 56283.168 i NULL 2.230e-01 5.037e+00 0.04 29.129 98.871 56.694 +OBS: 56283.184 z NULL -3.461e+00 4.104e+00 -0.84 128.000 0.000 41.946 +OBS: 56288.191 g NULL -1.008e+01 1.255e+01 -0.80 128.000 0.000 46.694 +OBS: 56289.066 r NULL 7.578e+00 5.049e+00 1.50 25.301 1.191 47.179 +OBS: 56289.078 i NULL 8.347e+00 8.735e+00 0.96 25.196 102.804 47.943 +OBS: 56289.086 z NULL 2.421e+00 5.621e+00 0.43 26.540 101.460 34.154 +OBS: 56292.090 g NULL -1.138e+01 1.142e+01 -1.00 128.000 0.000 41.745 +OBS: 56298.039 r NULL 1.022e+00 2.411e+00 0.42 27.476 100.524 36.233 +OBS: 56298.047 i NULL -1.327e+00 3.550e+00 -0.37 128.000 0.000 37.487 +OBS: 56298.055 z NULL 6.740e+00 3.960e+00 1.70 25.428 0.961 30.250 +OBS: 56304.043 g NULL 5.766e+00 2.562e+00 2.25 25.598 0.638 26.160 +OBS: 56306.102 r NULL -1.033e-01 3.211e+00 -0.03 128.000 0.000 25.999 +OBS: 56306.113 i NULL 8.325e+00 4.307e+00 1.93 25.199 0.790 27.189 +OBS: 56306.121 z NULL 9.114e+00 5.392e+00 1.69 25.101 0.972 25.688 +OBS: 56312.047 g NULL 1.506e+01 9.629e+00 1.56 24.556 1.108 24.197 +OBS: 56318.066 r NULL 3.699e+01 4.634e+00 7.98 23.580 0.145 23.670 +OBS: 56318.078 i NULL 2.996e+01 7.995e+00 3.75 23.809 0.337 23.985 +OBS: 56318.086 z NULL 2.414e+01 6.386e+00 3.78 24.043 0.333 24.210 +OBS: 56320.035 g NULL 1.322e+01 1.148e+01 1.15 24.697 2.205 24.068 +OBS: 56327.039 r NULL 3.212e+01 2.888e+00 11.12 23.733 0.102 23.745 +OBS: 56327.047 i NULL 3.571e+01 4.241e+00 8.42 23.618 0.137 23.713 +OBS: 56327.055 z NULL 3.238e+01 4.793e+00 6.75 23.724 0.173 23.966 +OBS: 56328.039 g NULL 1.343e+01 3.755e+00 3.58 24.680 0.357 24.453 +OBS: 56336.043 r NULL 2.350e+01 3.131e+00 7.51 24.072 0.156 23.975 +OBS: 56336.055 i NULL 2.583e+01 5.043e+00 5.12 23.970 0.236 23.791 +OBS: 56337.043 z NULL 2.976e+01 4.083e+00 7.29 23.816 0.160 23.905 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56338.043 g NULL 8.546e+00 3.579e+00 2.39 25.171 0.589 25.149 +OBS: 56347.996 r NULL 2.030e+01 2.526e+00 8.04 24.231 0.144 24.436 +OBS: 56348.004 i NULL 3.227e+01 4.916e+00 6.57 23.728 0.179 23.941 +OBS: 56348.008 z NULL 2.455e+01 6.581e+00 3.73 24.025 0.339 23.960 +OBS: 56348.996 g NULL 6.009e-01 5.511e+00 0.11 28.053 99.947 26.100 +END: diff --git a/data/tests/DES_data/DES_SN848233.DAT b/data/tests/DES_data/DES_SN848233.DAT new file mode 100644 index 000000000..28669958d --- /dev/null +++ b/data/tests/DES_data/DES_SN848233.DAT @@ -0,0 +1,164 @@ +SURVEY: DES +SNID: 848233 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: 22 +FILTERS: griz +RA: 36.750000 deg +DECL: -4.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0283 MW E(B-V) +REDSHIFT_HELIO: 0.50369 +- 0.00500 (Helio, z_best) +REDSHIFT_FINAL: 0.50369 +- 0.00500 (CMB) +REDSHIFT_SPEC: 0.50369 +- 0.00500 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 17173 +HOST_GALAXY_PHOTO-Z: 0.4873 +- 0.0318 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 30 (non1a index) +SIM_COMMENT: SN Type = II , MODEL = SDSS-017564 +SIM_LIBID: 2 +SIM_REDSHIFT: 0.5029 +SIM_HOSTLIB_TRUEZ: 0.5000 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 17173 +SIM_DLMU: 42.276020 mag [ -5*log10(10pc/dL) ] +SIM_RA: 36.750000 deg +SIM_DECL: -4.500000 deg +SIM_MWEBV: 0.0256 (MilkyWay E(B-V)) +SIM_PEAKMAG: 22.48 22.87 22.70 22.82 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56251.609375 days +SIM_SALT2x0: 1.229e-17 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -38.24 days +SIM_TRESTMAX: 64.80 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56250.734 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 108 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56194.145 g NULL 7.600e+00 4.680e+00 1.62 99.000 5.000 98.926 +OBS: 56194.156 r NULL 3.875e+00 2.752e+00 1.41 99.000 5.000 98.953 +OBS: 56194.172 i NULL 3.585e+00 4.628e+00 0.77 99.000 5.000 99.033 +OBS: 56194.188 z NULL -2.203e+00 4.463e+00 -0.49 99.000 5.000 98.983 +OBS: 56207.188 g NULL -7.008e+00 4.367e+00 -1.60 99.000 5.000 98.926 +OBS: 56207.195 r NULL -1.189e+00 3.459e+00 -0.34 99.000 5.000 98.953 +OBS: 56207.203 i NULL 8.799e+00 6.249e+00 1.41 99.000 5.000 99.033 +OBS: 56207.219 z NULL 8.907e+00 5.954e+00 1.50 99.000 5.000 98.983 +OBS: 56215.195 g NULL 2.477e+00 2.683e+00 0.92 26.515 101.485 28.105 +OBS: 56215.203 r NULL 2.093e+01 2.224e+00 9.41 24.198 0.121 24.412 +OBS: 56215.211 i NULL 1.728e+01 2.668e+00 6.48 24.406 0.183 24.213 +OBS: 56215.227 z NULL 1.672e+01 3.444e+00 4.85 24.442 0.250 24.433 +OBS: 56221.090 g NULL 2.618e+00 6.271e+00 0.42 26.455 101.545 26.984 +OBS: 56221.105 r NULL 2.780e+01 5.128e+00 5.42 23.890 0.222 23.673 +OBS: 56221.113 i NULL 2.369e+01 5.606e+00 4.23 24.064 0.294 23.897 +OBS: 56221.117 z NULL 2.000e+01 7.717e+00 2.59 24.247 0.529 24.157 +OBS: 56222.270 g NULL 1.652e+00 7.735e+00 0.21 26.955 101.045 26.693 +OBS: 56222.273 r NULL 3.610e+01 5.763e+00 6.26 23.606 0.189 23.565 +OBS: 56222.281 i NULL 3.322e+01 1.701e+01 1.95 23.697 0.779 23.847 +OBS: 56222.289 z NULL 2.531e+01 8.083e+00 3.13 23.992 0.418 24.107 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56228.234 g NULL 7.506e+00 1.236e+01 0.61 25.311 102.689 24.750 +OBS: 56228.242 r NULL 4.281e+01 5.649e+00 7.58 23.421 0.154 23.345 +OBS: 56228.258 i NULL 6.225e+01 1.209e+01 5.15 23.015 0.234 23.580 +OBS: 56228.270 z NULL 1.815e+01 6.662e+00 2.72 24.353 0.498 23.766 +OBS: 56229.258 g NULL 1.074e+01 1.722e+01 0.62 24.923 103.077 24.375 +OBS: 56229.270 r NULL 5.237e+01 8.140e+00 6.43 23.202 0.183 23.331 +OBS: 56229.285 i NULL 6.093e+01 1.511e+01 4.03 23.038 0.309 23.530 +OBS: 56229.297 z NULL 2.760e+01 8.919e+00 3.09 23.898 0.424 23.713 +OBS: 56230.273 g NULL 2.344e+01 1.385e+01 1.69 24.075 0.971 24.034 +OBS: 56230.277 r NULL 4.896e+01 6.488e+00 7.55 23.275 0.154 23.321 +OBS: 56230.285 i NULL 5.784e+01 1.126e+01 5.14 23.095 0.234 23.482 +OBS: 56230.293 z NULL 3.383e+01 6.194e+00 5.46 23.677 0.220 23.663 +OBS: 56231.242 g NULL 1.214e+01 9.813e+00 1.24 24.790 1.803 23.736 +OBS: 56231.258 r NULL 5.247e+01 5.063e+00 10.36 23.200 0.110 23.315 +OBS: 56231.273 i NULL 2.886e+01 9.681e+00 2.98 23.849 0.445 23.435 +OBS: 56231.277 z NULL 3.487e+01 5.350e+00 6.52 23.644 0.181 23.617 +OBS: 56235.242 g NULL 8.641e+01 7.163e+00 12.06 22.659 0.093 22.778 +OBS: 56235.258 r NULL 4.436e+01 4.026e+00 11.02 23.383 0.104 23.274 +OBS: 56235.270 i NULL 4.233e+01 7.306e+00 5.79 23.433 0.206 23.247 +OBS: 56235.277 z NULL 3.310e+01 7.013e+00 4.72 23.700 0.259 23.442 +OBS: 56236.258 g NULL 8.079e+01 6.834e+00 11.82 22.732 0.096 22.661 +OBS: 56236.270 r NULL 5.043e+01 4.384e+00 11.50 23.243 0.099 23.258 +OBS: 56236.277 i NULL 4.281e+01 6.066e+00 7.06 23.421 0.167 23.202 +OBS: 56236.285 z NULL 3.997e+01 7.845e+00 5.09 23.496 0.237 23.400 +OBS: 56237.289 g NULL 1.019e+02 2.698e+01 3.78 22.480 0.334 22.580 +OBS: 56237.297 r NULL 2.088e-01 4.071e+01 0.01 29.201 98.799 23.238 +OBS: 56237.301 i NULL 1.399e+02 4.393e+01 3.18 22.135 0.408 23.158 +OBS: 56237.316 z NULL 3.802e+01 2.568e+01 1.48 23.550 1.222 23.357 +OBS: 56238.301 g NULL 5.216e+01 4.154e+01 1.26 23.207 1.731 22.539 +OBS: 56238.316 r NULL 5.517e+01 1.376e+01 4.01 23.146 0.311 23.215 +OBS: 56238.328 i NULL 6.165e+01 8.037e+00 7.67 23.025 0.151 23.115 +OBS: 56243.027 z NULL 5.965e+01 7.906e+00 7.54 23.061 0.154 23.127 +OBS: 56243.309 g NULL 9.837e+01 5.065e+00 19.42 22.518 0.058 22.456 +OBS: 56244.027 r NULL 5.680e+01 4.274e+00 13.29 23.114 0.085 23.054 +OBS: 56244.031 i NULL 5.803e+01 6.725e+00 8.63 23.091 0.134 22.905 +OBS: 56244.273 g NULL 1.094e+02 4.771e+00 22.94 22.402 0.048 22.453 +OBS: 56244.277 z NULL 6.480e+01 6.181e+00 10.48 22.971 0.108 23.079 +OBS: 56245.293 g NULL 1.299e+02 1.434e+01 9.06 22.216 0.126 22.451 +OBS: 56245.309 r NULL 5.752e+01 1.022e+01 5.63 23.100 0.213 23.017 +OBS: 56246.027 i NULL 6.990e+01 3.956e+00 17.67 22.889 0.064 22.842 +OBS: 56246.035 z NULL 5.526e+01 4.427e+00 12.48 23.144 0.091 23.013 +OBS: 56247.207 g NULL 1.047e+02 3.844e+00 27.24 22.450 0.041 22.454 +OBS: 56247.215 r NULL 6.365e+01 2.634e+00 24.16 22.990 0.046 22.965 +OBS: 56254.160 i NULL 8.656e+01 5.210e+00 16.61 22.657 0.068 22.641 +OBS: 56254.172 z NULL 8.319e+01 4.320e+00 19.26 22.700 0.058 22.740 +OBS: 56258.125 g NULL 9.369e+01 1.085e+01 8.63 22.571 0.134 22.547 +OBS: 56258.141 r NULL 8.644e+01 5.341e+00 16.19 22.658 0.069 22.766 +OBS: 56261.035 i NULL 9.440e+01 6.370e+00 14.82 22.563 0.076 22.530 +OBS: 56261.043 z NULL 9.209e+01 4.941e+00 18.64 22.590 0.060 22.557 +OBS: 56261.242 g NULL 1.027e+02 8.076e+00 12.72 22.471 0.088 22.588 +OBS: 56261.258 r NULL 8.220e+01 4.254e+00 19.33 22.713 0.058 22.733 +OBS: 56274.188 g NULL 8.236e+01 4.091e+00 20.13 22.711 0.055 22.805 +OBS: 56274.195 r NULL 8.228e+01 3.201e+00 25.71 22.712 0.044 22.663 +OBS: 56274.203 i NULL 1.124e+02 4.797e+00 23.43 22.373 0.047 22.437 +OBS: 56274.219 z NULL 1.097e+02 5.433e+00 20.19 22.400 0.056 22.334 +OBS: 56282.203 g NULL 7.973e+01 6.624e+00 12.04 22.746 0.093 22.937 +OBS: 56283.156 r NULL 9.012e+01 3.611e+00 24.95 22.613 0.044 22.677 +OBS: 56283.168 i NULL 1.184e+02 5.538e+00 21.38 22.317 0.051 22.437 +OBS: 56283.184 z NULL 1.208e+02 4.704e+00 25.68 22.295 0.043 22.269 +OBS: 56288.191 g NULL 6.658e+01 1.265e+01 5.26 22.942 0.229 23.030 +OBS: 56289.066 r NULL 8.984e+01 5.342e+00 16.82 22.616 0.066 22.706 +OBS: 56289.078 i NULL 9.971e+01 8.946e+00 11.15 22.503 0.102 22.453 +OBS: 56289.086 z NULL 1.280e+02 6.124e+00 20.90 22.232 0.053 22.258 +OBS: 56292.090 g NULL 6.464e+01 1.160e+01 5.57 22.974 0.215 23.086 +OBS: 56298.039 r NULL 7.745e+01 2.882e+00 26.88 22.777 0.041 22.767 +OBS: 56298.047 i NULL 1.095e+02 4.149e+00 26.39 22.402 0.041 22.496 +OBS: 56298.055 z NULL 1.189e+02 4.563e+00 26.07 22.312 0.043 22.275 +OBS: 56304.043 g NULL 4.894e+01 2.890e+00 16.94 23.276 0.066 23.255 +OBS: 56306.102 r NULL 6.965e+01 3.514e+00 19.82 22.893 0.057 22.826 +OBS: 56306.113 i NULL 9.360e+01 4.688e+00 19.97 22.572 0.056 22.547 +OBS: 56306.121 z NULL 1.131e+02 5.804e+00 19.48 22.367 0.058 22.314 +OBS: 56312.047 g NULL 4.120e+01 9.682e+00 4.26 23.463 0.291 23.372 +OBS: 56318.066 r NULL 6.878e+01 4.770e+00 14.42 22.906 0.078 22.908 +OBS: 56318.078 i NULL 8.988e+01 8.160e+00 11.01 22.616 0.103 22.633 +OBS: 56318.086 z NULL 1.212e+02 6.769e+00 17.90 22.292 0.062 22.401 +OBS: 56320.035 g NULL 4.723e+01 1.152e+01 4.10 23.314 0.303 23.492 +OBS: 56327.039 r NULL 6.204e+01 3.080e+00 20.14 23.018 0.055 22.991 +OBS: 56327.047 i NULL 8.227e+01 4.487e+00 18.34 22.712 0.061 22.694 +OBS: 56327.055 z NULL 1.057e+02 5.161e+00 20.48 22.440 0.054 22.478 +OBS: 56328.039 g NULL 3.885e+01 3.869e+00 10.04 23.526 0.114 23.608 +OBS: 56336.043 r NULL 6.260e+01 3.337e+00 18.76 23.009 0.059 23.073 +OBS: 56336.055 i NULL 7.939e+01 5.254e+00 15.11 22.751 0.074 22.763 +OBS: 56337.043 z NULL 1.029e+02 4.489e+00 22.93 22.469 0.048 22.566 +OBS: 56338.043 g NULL 2.791e+01 3.672e+00 7.60 23.886 0.154 23.767 +OBS: 56347.996 r NULL 5.477e+01 2.741e+00 19.98 23.154 0.056 23.122 +OBS: 56348.004 i NULL 7.389e+01 5.092e+00 14.51 22.828 0.077 22.889 +OBS: 56348.008 z NULL 7.069e+01 6.706e+00 10.54 22.877 0.109 22.655 +OBS: 56348.996 g NULL 2.600e+01 5.581e+00 4.66 23.963 0.262 23.945 +END: diff --git a/data/tests/DES_data/DES_SN857013.DAT b/data/tests/DES_data/DES_SN857013.DAT new file mode 100644 index 000000000..e758bed06 --- /dev/null +++ b/data/tests/DES_data/DES_SN857013.DAT @@ -0,0 +1,217 @@ +SURVEY: DES +SNID: 857013 +IAUC: UNKNOWN +PHOTOMETRY_VERSION: DES +SNTYPE: -9 +FILTERS: griz +RA: 52.500000 deg +DECL: -27.500000 deg +MAGTYPE: LOG10 +MAGREF: AB +FAKE: 2 (=> simulated LC with snlc_sim.exe) +MWEBV: 0.0097 MW E(B-V) +REDSHIFT_HELIO: 0.96009 +- 0.01900 (Helio, z_best) +REDSHIFT_FINAL: 0.96009 +- 0.01900 (CMB) +REDSHIFT_SPEC: -9.00000 +- 9.00000 +REDSHIFT_STATUS: OK + +HOST_GALAXY_GALID: 15965 +HOST_GALAXY_PHOTO-Z: 0.9601 +- 0.0190 + + + +SIM_MODEL: NONIA 10 (name index) +SIM_NON1a: 1 (non1a index) +SIM_COMMENT: SN Type = Ibc , MODEL = NUGENT1bc +SIM_LIBID: 0 +SIM_REDSHIFT: 0.9608 +SIM_HOSTLIB_TRUEZ: 0.9600 (actual Z of hostlib) +SIM_HOSTLIB_GALID: 15965 +SIM_DLMU: 43.992901 mag [ -5*log10(10pc/dL) ] +SIM_RA: 52.500000 deg +SIM_DECL: -27.500000 deg +SIM_MWEBV: 0.0114 (MilkyWay E(B-V)) +SIM_PEAKMAG: 28.22 25.80 24.19 24.05 (griz obs) +SIM_EXPOSURE: 1.0 1.0 1.0 1.0 (griz obs) +SIM_PEAKMJD: 56214.664062 days +SIM_SALT2x0: 2.528e-18 +SIM_MAGDIM: 0.000 +SIM_SEARCHEFF_MASK: 3 (bits 1,2=> found by software,humans) +SIM_SEARCHEFF: 1.0000 (spectro-search efficiency (ignores pipelines)) +SIM_TRESTMIN: -19.62 days +SIM_TRESTMAX: 69.58 days +SIM_RISETIME_SHIFT: 0.0 days +SIM_FALLTIME_SHIFT: 0.0 days + +SEARCH_PEAKMJD: 56215.312 + + +# ============================================ +# TERSE LIGHT CURVE OUTPUT: +# +NOBS: 161 +NVAR: 9 +VARLIST: MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG +OBS: 56176.191 g NULL -8.266e+00 4.766e+00 -1.73 99.000 5.000 96.363 +OBS: 56176.199 r NULL 2.459e+00 2.130e+00 1.15 99.000 5.000 96.347 +OBS: 56176.215 i NULL -2.786e+00 3.146e+00 -0.89 99.000 5.000 96.377 +OBS: 56176.238 z NULL -1.690e+00 2.483e+00 -0.68 99.000 5.000 96.381 +OBS: 56179.188 g NULL -6.754e-01 2.584e+00 -0.26 99.000 5.000 96.363 +OBS: 56179.195 r NULL -2.153e+00 1.710e+00 -1.26 99.000 5.000 96.347 +OBS: 56179.234 i NULL 1.100e+00 1.984e+00 0.55 99.000 5.000 96.377 +OBS: 56179.266 z NULL 7.096e-01 3.729e+00 0.19 99.000 5.000 96.381 +OBS: 56180.266 g NULL 1.029e-01 2.552e+00 0.04 29.969 98.031 27.261 +OBS: 56180.281 r NULL 1.366e+00 1.301e+00 1.05 27.161 3.309 27.352 +OBS: 56180.297 i NULL 8.901e-01 3.683e+00 0.24 27.626 100.374 27.292 +OBS: 56180.328 z NULL 4.385e+00 4.487e+00 0.98 25.895 102.105 27.212 +OBS: 56188.160 g NULL 5.068e-01 5.683e+00 0.09 28.238 99.762 31.844 +OBS: 56188.176 r NULL -8.885e+00 5.572e+00 -1.59 128.000 0.000 27.842 +OBS: 56188.211 i NULL 4.697e+00 4.521e+00 1.04 25.820 3.558 26.235 +OBS: 56188.238 z NULL 7.710e+00 3.403e+00 2.27 25.282 0.632 25.548 +OBS: 56189.254 g NULL -2.155e-01 2.284e+00 -0.09 128.000 0.000 31.412 +OBS: 56189.270 r NULL 1.332e+00 3.268e+00 0.41 27.189 100.811 27.467 +OBS: 56189.281 i NULL -9.696e-01 9.046e+00 -0.11 128.000 0.000 25.945 +OBS: 56189.312 z NULL 1.057e+01 2.972e+00 3.56 24.940 0.358 25.319 +OBS: 56194.258 g NULL 1.421e+00 2.636e+00 0.54 27.118 100.882 29.990 +OBS: 56194.270 r NULL 4.263e+00 1.490e+00 2.86 25.926 0.467 26.150 +OBS: 56194.285 i NULL 1.014e+01 2.303e+00 4.40 24.985 0.280 24.975 +OBS: 56194.305 z NULL 9.258e+00 2.392e+00 3.87 25.084 0.326 24.610 +OBS: 56202.160 g NULL -1.056e+01 4.795e+00 -2.20 128.000 0.000 29.256 +OBS: 56202.176 r NULL 3.959e+00 2.326e+00 1.70 26.006 0.963 25.427 +OBS: 56202.191 i NULL 1.781e+01 4.179e+00 4.26 24.373 0.290 24.349 +OBS: 56202.215 z NULL 2.131e+01 2.742e+00 7.77 24.179 0.150 24.094 +OBS: 56210.172 g NULL 7.001e-01 3.691e+00 0.19 27.887 100.113 27.881 +OBS: 56210.188 r NULL 4.370e+00 3.217e+00 1.36 25.899 1.448 25.576 +OBS: 56210.203 i NULL 2.719e+01 3.252e+00 8.36 23.914 0.138 24.109 +OBS: 56210.234 z NULL 2.081e+01 3.866e+00 5.38 24.204 0.224 24.050 +OBS: 56218.172 g NULL -8.291e-01 1.250e+00 -0.66 128.000 0.000 28.658 +OBS: 56218.191 r NULL 4.987e+00 9.637e-01 5.18 25.755 0.233 26.080 +OBS: 56218.211 i NULL 2.052e+01 1.556e+00 13.19 24.220 0.085 24.325 +DETECTION: 6 MJDs satisfy g+r+i+z +OBS: 56219.156 z NULL 2.184e+01 1.978e+00 11.04 24.152 0.103 24.107 +OBS: 56221.273 g NULL -2.049e+00 3.910e+00 -0.52 128.000 0.000 29.305 +OBS: 56221.281 r NULL 8.767e+00 5.584e+00 1.57 25.143 1.099 26.448 +OBS: 56221.297 i NULL 1.265e+01 4.493e+00 2.82 24.745 0.477 24.503 +OBS: 56221.324 z NULL 2.836e+01 1.441e+01 1.97 23.868 0.770 24.105 +OBS: 56222.074 g NULL 1.775e+00 5.908e+00 0.30 26.877 101.123 29.466 +OBS: 56222.090 r NULL 2.625e+00 2.627e+00 1.00 26.452 101.548 26.536 +OBS: 56222.113 i NULL 1.207e+01 3.334e+00 3.62 24.796 0.352 24.550 +OBS: 56222.133 z NULL 1.636e+01 5.067e+00 3.23 24.466 0.403 24.103 +OBS: 56228.059 g NULL 7.484e+00 7.694e+00 0.97 25.315 102.685 30.001 +OBS: 56228.066 r NULL 3.927e+00 2.392e+00 1.64 26.015 1.019 27.065 +OBS: 56228.086 i NULL 2.364e+00 5.110e+00 0.46 26.566 101.434 24.914 +OBS: 56228.109 z NULL 1.313e+01 4.142e+00 3.17 24.704 0.413 24.283 +OBS: 56229.047 g NULL 3.650e+01 2.392e+01 1.53 23.594 1.156 30.136 +OBS: 56229.059 r NULL -1.690e+00 3.850e+00 -0.44 128.000 0.000 27.155 +OBS: 56229.074 i NULL 1.196e+01 5.430e+00 2.20 24.805 0.657 24.977 +OBS: 56229.102 z NULL 2.059e+01 4.865e+00 4.23 24.216 0.292 24.335 +OBS: 56230.059 g NULL -1.105e+01 6.574e+00 -1.68 128.000 0.000 30.418 +OBS: 56230.102 r NULL -3.418e-01 2.916e+00 -0.12 128.000 0.000 27.270 +OBS: 56230.113 i NULL 1.710e+01 5.186e+00 3.30 24.417 0.392 25.047 +OBS: 56230.145 z NULL 2.066e+01 2.694e+00 7.67 24.212 0.151 24.393 +OBS: 56231.043 g NULL 2.751e+00 6.045e+00 0.46 26.401 101.599 30.470 +OBS: 56231.059 r NULL 5.104e+00 2.552e+00 2.00 25.730 0.752 27.346 +OBS: 56231.070 i NULL 1.318e+01 4.248e+00 3.10 24.701 0.422 25.123 +OBS: 56231.102 z NULL 1.809e+01 3.296e+00 5.49 24.356 0.218 24.430 +OBS: 56235.039 g NULL -5.631e-01 5.184e+00 -0.11 128.000 0.000 30.042 +OBS: 56235.047 r NULL 2.350e+00 3.706e+00 0.63 26.573 101.427 27.451 +OBS: 56235.062 i NULL 4.971e+00 4.194e+00 1.19 25.759 2.016 25.464 +OBS: 56235.090 z NULL 1.752e+00 8.233e+00 0.21 26.891 101.109 24.583 +OBS: 56236.047 g NULL 1.605e+00 4.872e+00 0.33 26.986 101.014 29.901 +OBS: 56236.062 r NULL 1.877e+00 2.660e+00 0.71 26.816 101.184 27.425 +OBS: 56236.074 i NULL 1.260e+01 5.228e+00 2.41 24.749 0.581 25.550 +OBS: 56236.105 z NULL 1.936e+01 5.332e+00 3.63 24.283 0.349 24.625 +OBS: 56237.039 g NULL -5.457e+00 3.165e+00 -1.72 128.000 0.000 29.880 +OBS: 56237.051 r NULL 1.455e+00 2.212e+00 0.66 27.093 100.907 27.442 +OBS: 56237.094 i NULL 8.888e+00 2.498e+00 3.56 25.128 0.358 25.620 +OBS: 56237.125 z NULL 1.233e+01 3.703e+00 3.33 24.772 0.388 24.686 +OBS: 56238.074 g NULL -5.398e-01 2.522e+00 -0.21 128.000 0.000 29.884 +OBS: 56238.094 r NULL -1.747e+00 1.589e+00 -1.10 128.000 0.000 27.469 +OBS: 56238.109 i NULL 3.606e+00 2.724e+00 1.32 26.107 1.530 25.689 +OBS: 56238.129 z NULL 1.042e+01 3.113e+00 3.35 24.955 0.386 24.752 +OBS: 56243.098 g NULL -3.203e+00 2.168e+00 -1.48 128.000 0.000 29.824 +OBS: 56243.109 r NULL -3.270e-01 1.654e+00 -0.20 128.000 0.000 27.598 +OBS: 56243.125 i NULL 4.459e+00 2.566e+00 1.74 25.877 0.930 25.929 +OBS: 56243.152 z NULL 9.764e+00 2.557e+00 3.82 25.026 0.330 24.983 +OBS: 56244.082 g NULL 2.331e+00 2.191e+00 1.06 26.581 3.050 29.685 +OBS: 56244.098 r NULL 1.076e+00 1.634e+00 0.66 27.421 100.579 27.600 +OBS: 56244.109 i NULL 4.457e+00 2.591e+00 1.72 25.877 0.945 25.991 +OBS: 56244.133 z NULL 6.848e+00 2.985e+00 2.29 25.411 0.622 25.043 +OBS: 56245.070 g NULL -2.782e+00 1.719e+00 -1.62 128.000 0.000 29.793 +OBS: 56245.082 r NULL 1.819e+00 1.353e+00 1.34 26.851 1.479 27.601 +OBS: 56245.109 i NULL -1.319e+00 3.212e+00 -0.41 128.000 0.000 26.056 +OBS: 56245.137 z NULL 9.729e+00 2.843e+00 3.42 25.030 0.375 25.112 +OBS: 56246.117 g NULL -6.049e+00 6.563e+00 -0.92 128.000 0.000 29.910 +OBS: 56246.125 r NULL -5.106e-01 2.810e+00 -0.18 128.000 0.000 27.602 +OBS: 56246.152 i NULL 5.644e+00 1.963e+00 2.88 25.621 0.463 26.127 +OBS: 56246.180 z NULL 1.091e+01 1.945e+00 5.61 24.906 0.213 25.187 +OBS: 56247.281 g NULL -1.141e+00 1.489e+00 -0.77 128.000 0.000 29.893 +OBS: 56247.297 r NULL 2.446e+00 1.133e+00 2.16 26.529 0.675 27.597 +OBS: 56247.316 i NULL 5.043e+00 1.977e+00 2.55 25.743 0.540 26.197 +OBS: 56247.340 z NULL 9.516e+00 2.497e+00 3.81 25.054 0.330 25.266 +OBS: 56248.324 g NULL -1.127e+00 1.702e+00 -0.66 128.000 0.000 29.894 +OBS: 56248.340 r NULL 1.395e+00 1.336e+00 1.04 27.138 3.430 27.601 +OBS: 56258.035 i NULL 2.643e+01 9.897e+00 2.67 23.945 0.509 26.477 +OBS: 56258.066 z NULL 2.144e+00 3.968e+00 0.54 26.672 101.328 25.646 +OBS: 56258.215 g NULL 5.446e+00 4.948e+00 1.10 25.660 2.596 30.320 +OBS: 56258.227 r NULL 1.188e+00 2.381e+00 0.50 27.313 100.687 27.937 +OBS: 56261.098 g NULL 5.803e+00 8.828e+00 0.66 25.591 102.409 30.374 +OBS: 56261.102 r NULL 4.480e+00 3.395e+00 1.32 25.872 1.539 28.003 +OBS: 56261.125 i NULL -4.929e+00 3.855e+00 -1.28 128.000 0.000 26.558 +OBS: 56261.156 z NULL 3.653e+00 3.087e+00 1.18 26.093 2.026 25.777 +OBS: 56273.160 g NULL 4.679e-02 1.752e+00 0.03 30.825 97.175 30.383 +OBS: 56273.176 r NULL 1.512e-01 1.213e+00 0.12 29.551 98.449 28.138 +OBS: 56273.188 i NULL 2.401e+00 2.025e+00 1.19 26.549 2.012 26.834 +OBS: 56273.219 z NULL 4.424e+00 2.253e+00 1.96 25.885 0.772 26.104 +OBS: 56281.160 g NULL -2.378e+00 2.074e+00 -1.15 128.000 0.000 30.603 +OBS: 56281.184 r NULL -7.025e-01 1.273e+00 -0.55 128.000 0.000 28.296 +OBS: 56281.203 i NULL 6.763e-01 1.799e+00 0.38 27.925 100.075 26.963 +OBS: 56281.227 z NULL 3.290e+00 2.292e+00 1.44 26.207 1.295 26.258 +OBS: 56288.086 g NULL 2.993e+00 4.849e+00 0.62 26.310 101.690 30.425 +OBS: 56288.094 r NULL -1.035e+00 2.114e+00 -0.49 128.000 0.000 28.367 +OBS: 56288.109 i NULL 6.762e-01 3.059e+00 0.22 27.925 100.075 27.047 +OBS: 56288.141 z NULL -1.416e-01 2.584e+00 -0.05 128.000 0.000 26.361 +OBS: 56289.227 g NULL 4.462e+00 6.491e+00 0.69 25.876 102.124 30.444 +OBS: 56289.242 r NULL -5.875e-01 2.701e+00 -0.22 128.000 0.000 28.384 +OBS: 56289.258 i NULL 6.836e+00 5.086e+00 1.34 25.413 1.478 27.059 +OBS: 56292.035 z NULL 3.240e+00 2.063e+00 1.57 26.224 1.099 26.412 +OBS: 56292.141 g NULL -3.007e+00 3.054e+00 -0.98 128.000 0.000 30.506 +OBS: 56292.156 r NULL -1.171e+00 1.735e+00 -0.68 128.000 0.000 28.436 +OBS: 56292.172 i NULL 1.809e+00 2.654e+00 0.68 26.857 101.143 27.090 +OBS: 56303.039 g NULL 6.916e-01 1.371e+00 0.50 27.900 100.100 30.767 +OBS: 56303.051 r NULL 1.506e+00 9.002e-01 1.67 27.055 0.988 28.655 +OBS: 56303.070 i NULL 1.625e+00 1.414e+00 1.15 26.973 2.214 27.243 +OBS: 56303.094 z NULL 2.862e+00 2.209e+00 1.30 26.358 1.605 26.527 +OBS: 56311.043 g NULL -3.265e+00 2.670e+00 -1.22 128.000 0.000 31.007 +OBS: 56311.055 r NULL -3.688e-01 1.496e+00 -0.25 128.000 0.000 28.850 +OBS: 56311.074 i NULL 8.014e-02 2.388e+00 0.03 30.240 97.760 27.377 +OBS: 56311.098 z NULL -8.826e-01 2.434e+00 -0.36 128.000 0.000 26.611 +OBS: 56317.125 g NULL -1.758e+00 4.216e+00 -0.42 128.000 0.000 31.330 +OBS: 56317.141 r NULL 1.816e+00 1.860e+00 0.98 26.852 101.148 29.077 +OBS: 56318.109 i NULL -3.841e+00 2.782e+00 -1.38 128.000 0.000 27.487 +OBS: 56318.141 z NULL -4.904e+00 2.977e+00 -1.65 128.000 0.000 26.674 +OBS: 56321.090 g NULL -3.564e-01 6.627e+00 -0.05 128.000 0.000 31.587 +OBS: 56321.098 r NULL -3.774e+00 2.888e+00 -1.31 128.000 0.000 29.240 +OBS: 56321.109 i NULL 3.597e-01 3.401e+00 0.11 28.610 99.390 27.529 +OBS: 56321.141 z NULL -1.276e+00 2.957e+00 -0.43 128.000 0.000 26.698 +OBS: 56332.039 g NULL 4.921e-02 1.459e+00 0.03 30.770 97.230 32.441 +OBS: 56332.051 r NULL 4.324e-01 9.739e-01 0.44 28.410 99.590 29.704 +OBS: 56332.070 i NULL 3.315e-01 1.582e+00 0.21 28.699 99.301 27.697 +OBS: 56332.094 z NULL 2.594e+00 2.577e+00 1.01 26.465 5.439 26.801 +OBS: 56340.043 g NULL -8.263e-01 2.749e+00 -0.30 128.000 0.000 33.207 +OBS: 56340.055 r NULL 1.015e+00 1.647e+00 0.62 27.484 100.516 30.010 +OBS: 56340.074 i NULL 3.791e+00 2.721e+00 1.39 26.053 1.372 27.830 +OBS: 56340.098 z NULL 2.521e+00 2.981e+00 0.85 26.496 101.504 26.894 +OBS: 56348.055 g NULL 2.787e+00 3.249e+00 0.86 99.000 5.000 96.363 +OBS: 56348.070 r NULL 3.583e+00 2.100e+00 1.71 99.000 5.000 96.347 +OBS: 56349.004 i NULL 9.305e-02 2.352e+00 0.04 99.000 5.000 96.377 +OBS: 56349.027 z NULL 6.633e+00 2.429e+00 2.73 99.000 5.000 96.381 +OBS: 56350.043 g NULL 1.735e+00 3.835e+00 0.45 99.000 5.000 96.363 +OBS: 56350.055 r NULL 1.608e+00 1.814e+00 0.89 99.000 5.000 96.347 +OBS: 56350.070 i NULL -2.220e-01 3.159e+00 -0.07 99.000 5.000 96.377 +OBS: 56350.098 z NULL -1.635e+00 4.859e+00 -0.34 99.000 5.000 96.381 +OBS: 56351.043 g NULL 3.669e+00 3.351e+00 1.09 99.000 5.000 96.363 +OBS: 56351.055 r NULL -3.528e-01 1.760e+00 -0.20 99.000 5.000 96.347 +OBS: 56351.070 i NULL 1.633e+00 3.058e+00 0.53 99.000 5.000 96.377 +OBS: 56351.098 z NULL -1.085e+01 4.784e+00 -2.27 99.000 5.000 96.381 +END: diff --git a/data/tests/test_features.csv b/data/tests/test_features.csv new file mode 100644 index 000000000..8d55286f1 --- /dev/null +++ b/data/tests/test_features.csv @@ -0,0 +1,52 @@ +id,redshift,type,code,orig_sample,ganderson_darling_normal,ginter_percentile_range_5,gchi2,gstetson_K,gweighted_mean,gduration,gotsu_mean_diff,gotsu_std_lower,gotsu_std_upper,gotsu_lower_to_all_ratio,glinear_fit_slope,glinear_fit_slope_sigma,glinear_fit_reduced_chi2,randerson_darling_normal,rinter_percentile_range_5,rchi2,rstetson_K,rweighted_mean,rduration,rotsu_mean_diff,rotsu_std_lower,rotsu_std_upper,rotsu_lower_to_all_ratio,rlinear_fit_slope,rlinear_fit_slope_sigma,rlinear_fit_reduced_chi2,ianderson_darling_normal,iinter_percentile_range_5,ichi2,istetson_K,iweighted_mean,iduration,iotsu_mean_diff,iotsu_std_lower,iotsu_std_upper,iotsu_lower_to_all_ratio,ilinear_fit_slope,ilinear_fit_slope_sigma,ilinear_fit_reduced_chi2,zanderson_darling_normal,zinter_percentile_range_5,zchi2,zstetson_K,zweighted_mean,zduration,zotsu_mean_diff,zotsu_std_lower,zotsu_std_upper,zotsu_lower_to_all_ratio,zlinear_fit_slope,zlinear_fit_slope_sigma,zlinear_fit_reduced_chi2 +232808,0.4755,Ibc,29,test,1.0735909953785738,31.74575,1.8313547362534042,0.7624033234079006,3.339438597696568,121.72600000000239,18.94739649122807,4.7853065591117945,7.327543699403414,0.76,-0.018618847679732563,0.028291921398278616,1.892148744386133,1.539485835770449,39.92469515872001,10.840784049265734,0.7629321100802687,8.191228749974933,121.72200000000157,28.969966666666668,6.197909125449754,4.00075409558415,0.875,0.04873138970086242,0.017843757178638443,10.994529315329121,0.20757958806846952,41.00300065159798,4.330615581205453,0.824364332951595,9.787144851712863,121.72300000000541,19.903891818181815,7.541964986064188,7.038943142520499,0.5217391304347826,0.08577899254691651,0.027889222016265945,4.086361309848545,0.4796111887139088,40.56984101617336,5.631661294472274,0.8810969992634268,14.902806992548367,122.70300000000134,22.597909090909095,5.3122524498473425,7.386290980217638,0.5238095238095238,0.17569583034121927,0.029229091336229383,4.026379086746307 +635943,0.2286,II,37,train,0.7828579085826229,59.861992439031596,8.258176229094131,0.7195246532926353,9.821831193309036,91.87099999999919,32.68368181818182,13.50573952066306,9.182894336625917,0.15384615384615385,0.01381450750955881,0.05603956568700494,9.003395078249836,0.47261792361504446,47.68759625041485,33.26320309823096,0.782779285689856,25.02950190194667,91.75400000000081,29.41374047619048,7.65684550723512,7.177645190185322,0.46153846153846156,0.45345727355295745,0.03463481634650784,20.704015441220438,0.52200621701236,51.63991804180145,14.781268590630605,0.8076789384565504,34.93795218490156,91.75400000000081,34.157889999999995,5.508898977835771,9.17754937333491,0.38461538461538464,0.35996079523042585,0.05384168790714394,12.061706253871643,0.9031935000166682,52.09739978671074,16.77446530607071,0.9420925364364239,21.837911341202684,92.8550000000032,38.45464523809523,4.998011368701222,7.178754368671093,0.46153846153846156,0.5113050414380897,0.048242492027981775,8.087482749591985 +649902,0.6667,Ia,0,test,0.3383817027310744,25.884196360349655,0.7071154849394287,0.8472708722483908,3.37047296729678,91.87099999999919,11.833116666666665,4.371866372996014,4.505035918003319,0.3076923076923077,0.06129399522658615,0.05594287307429256,0.6622663270597541,0.40091776358591424,34.17614916461706,10.934655573478894,0.8590889694588433,11.284665622443107,91.75400000000081,18.468037499999998,5.5943948361443505,5.941760681818143,0.6153846153846154,0.2263048935072801,0.03431986575872107,7.975922423965952,0.43274458098300417,38.49630358088613,6.5761559908629605,0.7783196890766897,14.364976531318765,91.75400000000081,18.856337500000002,5.6240909815180675,8.009592374147388,0.6153846153846154,0.25469710576415533,0.053373215733630394,5.10380603470569,0.45141566925212345,49.241748919069764,12.383766904636893,0.8588129939159905,17.450005845320657,92.8550000000032,29.918761904761908,5.031780029638286,10.419228104121451,0.46153846153846156,0.4546985744524526,0.04823520296708931,5.4311466690406895 +415553,0.4758,II,36,test,0.17837849277518547,42.803,3.0242384606202735,0.829200585121683,8.714859478451476,123.02300000000105,19.89773333333333,7.638301956626621,8.38611437351735,0.6,0.010079264107167293,0.03141609716423229,3.1865332274345604,0.41149384599629013,33.110124221414324,12.738017888620503,0.8387151708613442,11.405219718184851,123.02699999999459,18.527055555555556,5.245719376575322,5.054047442946649,0.47368421052631576,0.06808723086957272,0.021121140568124863,12.876022500141023,0.2060584238154407,40.21989801514148,4.957593720880829,0.8887005154832809,12.571146588161302,123.02799999999843,20.918111111111116,6.436390631488359,7.089412763645049,0.47368421052631576,0.07466196812790157,0.02863065790299718,4.849191736211414,0.40606744654141974,33.00874920600653,4.939357967113569,0.7784949729987156,12.30281248373313,124.00400000000081,16.889799999999997,4.844226249418535,5.600232138045708,0.5263157894736842,0.1076768517634619,0.03403803971993923,4.6412454950937425 +47753,0.4347,II,44,test,0.8817146974002508,52.35599608898163,1.7909679876868525,0.7448178479072308,3.215909206707942,83.05399999999645,25.37018823529412,11.082162913996209,7.395821793418227,0.7727272727272727,-0.22106044997105634,0.052891153506367534,1.0070905668748786,0.7664267681886674,39.488283510208134,2.2859132503318045,0.7607171782590711,9.601566551535392,83.06300000000192,20.19133823529412,8.352350781865745,7.030214933225936,0.19047619047619047,-0.12310423505827457,0.03668532671902456,1.8135617616160562,0.5697827769275949,34.227000000000004,1.2950026507879702,0.8670351090228928,15.133919380677657,82.83200000000215,20.249786666666665,6.49702597593699,5.6720729250131,0.25,-0.14826258785547505,0.05370068181209804,0.9434690527811066,1.0604762198877349,33.405,1.4731164211485062,0.9048079903058552,20.944875153512214,82.83199999999488,16.792747252747247,10.703865123002466,3.6323381958775216,0.35,-0.14205777062448718,0.05101536118934615,1.124176201512505 +18336,0.6574,II,21,test,1.5327256875254218,21.569,4.118421332530352,0.647294977908605,1.8851974076143607,122.98399999999674,13.655684,2.999876585194798,4.696845217803116,0.8333333333333334,-0.00040779596644082816,0.012727978562594838,4.265471147300219,3.04027573015274,24.019000000000002,19.02925235959511,0.7956528076737361,5.253978070456181,122.9890000000014,16.418361894409937,2.1404890098239178,5.285489120043219,0.7666666666666667,0.06573219023623066,0.007901634594432027,17.23734759293895,0.4710060266365992,19.152048466444015,5.268468907252893,0.8242071298477271,7.951705747939418,122.98399999999674,10.780879047619045,3.0887397653103643,3.7017085956990896,0.5172413793103449,0.08277534294357916,0.012550165132618881,3.852434930514898,0.680171816807388,23.254100200533866,7.671240189724096,0.8454208650432681,6.251443097234501,122.9890000000014,13.155,2.4560800886100327,4.379393173880209,0.4642857142857143,0.14472123681606905,0.014119552286763846,3.9256555920027036 +741381,0.4113,Ia,0,test,1.8562001031937334,84.48700000000001,7.269016263160635,0.7079349831093449,7.550457839470692,90.01499999999942,60.729517647058834,11.072578866519493,35.124206752608664,0.85,-0.4497382327897028,0.04957346778831807,3.1004052597340515,2.2600075347317508,162.47307467234134,99.1483255238281,0.7674252299156986,28.446936020809943,89.04300000000512,111.70421428571427,15.189181029112952,42.2694750381407,0.7368421052631579,-1.2030516683263124,0.03652177601454797,41.15190032421043,1.3070869310057651,146.81999360084535,47.70260306439203,0.8096315178112431,54.957951891211195,89.03899999999703,86.03452380952382,11.86810839896978,34.33062273164961,0.631578947368421,-1.6056416258903656,0.06118027123525299,9.992735814493587,0.8932495261247785,119.84814895826578,43.61175639908238,0.770885029044559,45.831139464641346,89.99599999999919,63.734940476190474,12.372727504536547,29.073911395089652,0.631578947368421,-1.258297029243355,0.048137400949157416,5.983994459984717 +848233,0.5029,II,30,train,0.6999527091452112,109.20598394680023,50.73321137101211,0.7773462021589348,45.88031122357583,154.8510000000024,70.93175480769233,19.367843784544007,18.141751180562366,0.5517241379310345,0.15829281961564554,0.021856602480228287,50.669574582929584,0.6196716544128411,89.88286985986232,49.11742615911828,0.7084383110033868,52.16759628269039,153.8399999999965,49.69872380952381,15.79861441772664,15.047670409797815,0.2222222222222222,0.3739943751450611,0.01561194684169839,28.127191521787346,0.16892211643234523,114.9437750222683,44.147192491333726,0.7485488255232259,62.484583784103,153.83200000000215,57.5789230769231,20.9828986781116,19.712622794440556,0.5,0.6184827339294333,0.024335638203735584,19.07388647917094,0.9153205354223225,115.87499142336846,60.13410900190787,0.8540057216358021,66.33991308582111,153.8199999999997,74.42561212121211,18.570489725316754,17.705546229154503,0.5769230769230769,0.8420199664413941,0.02548746689864695,17.163913560923405 +29663,0.8007,II,27,test,0.3972353666484981,14.666199024915695,1.1344512285070811,0.7492092090697492,-0.6508374899684507,88.75699999999779,7.784782857142857,2.269935075723533,2.2386240884802002,0.4166666666666667,0.14927132081632466,0.057465021629207365,0.5731421423269375,0.4562806828404699,29.20194913762808,9.072774348391157,0.7793242122166287,8.226170477616588,88.75400000000081,16.225611111111114,4.923231131866325,3.769420822000819,0.75,0.22149866739163368,0.035173046647761455,6.014329848984445,0.4044866086022773,23.115489246714112,2.1583301424931176,0.8332166319477207,5.184087912460139,88.75400000000081,11.130671428571429,4.8739664301655745,2.485763464209738,0.5833333333333334,0.20156169100567667,0.054713434301694,1.017012582438764,1.0386055662203877,29.538744874489307,3.4016672510863257,0.8237893016877438,8.027473139451997,89.73400000000402,15.078557142857141,1.3783106179391529,8.24910479991617,0.5833333333333334,0.24265925892115672,0.05238024078752907,1.5956904982831304 +310648,0.8734,II,17,test,1.070352560412848,14.09359866833687,0.8079095721781404,0.8133733851041868,-0.32602705517201097,172.82400000000052,7.781554666666666,3.452725083177055,3.7232553404603705,0.2647058823529412,0.0013452222597764446,0.009993345002759977,0.8325904857018805,0.4632788921937679,20.819760690309998,11.795037646381648,0.8230377304886968,9.377924788884625,172.8159999999989,11.863801368421052,3.488544067744758,3.675296049657983,0.4411764705882353,0.018455416459408215,0.006861327570356903,11.937542541586723,0.4003324805269793,29.73159887242317,5.531932323690232,0.7727043497417454,11.497633024168511,173.79299999999785,14.388358333333333,5.972060489386296,4.718683654682841,0.29411764705882354,0.07364807696301755,0.010911287437816948,4.28109745194076,0.3252658718921032,20.439864404592516,3.5170334917341006,0.8135371306711792,8.126398459076817,168.75800000000163,10.337318923076925,3.449190890433353,4.239969309274507,0.6060606060606061,0.07983388252615495,0.01259349978013106,2.334143177030861 +391963,0.8118,Ibc,29,test,3.543443055717188,14.335655198097228,0.9782757666452205,0.8349349717095237,0.24700599008755583,174.85199999999895,36.835660999999995,3.656199776020634,0.0,0.975609756097561,-0.0048228136916201895,0.008640588213897668,0.9953715456373912,0.8069644448196254,12.175001057386398,2.3521144320734724,0.7711021348227232,1.953364726748503,174.85599999999977,5.868234242424242,3.1781678081733027,2.2163361281369434,0.2682926829268293,-0.015420614256375798,0.005348269433129065,2.199261881593724,0.32726128338116384,19.641000000000002,2.981146357939636,0.8396819450557015,4.415082931710032,174.8550000000032,10.401528516483516,3.5757638452539604,3.7188734683538742,0.65,-0.03734177309031328,0.008313747524301068,2.528697716983339,1.3425716366809397,11.984698183774947,1.3230567190370486,0.801888905433503,4.3211278380554,174.86000000000058,21.892165789473683,3.353609682221516,0.0,0.9743589743589743,0.003177256888385776,0.009503182252499073,1.3557939106997372 +339756,0.6206,II,24,test,1.1074014668243244,47.01378919756412,1.8938087886893993,0.7128924964680121,3.532337299817425,91.87099999999919,18.875439999999998,8.129381635387636,10.123838204949742,0.7692307692307693,0.06945853504811375,0.05595287281095411,1.9258810824477466,0.30949928871491333,26.579696593165398,9.455869541871044,0.8047436225632902,7.412908477574918,91.75400000000081,14.8143,4.038726248990604,5.049405628388355,0.6153846153846154,0.242957813393171,0.034297542328552956,5.753622481255929,0.4681304103695094,25.743649775087835,3.470115761260725,0.8762767272951185,7.477694333387477,91.75400000000081,16.994564999999998,2.4282698507373515,5.352138756409175,0.38461538461538464,0.1782574426967266,0.05330093997839328,2.7687869532049523,0.5043860386978145,26.699847012341024,2.5508370533371663,0.8227268008465132,6.2680715299799665,92.8550000000032,13.795962500000002,3.802109478373251,6.86182095365363,0.6153846153846154,0.1510047747163771,0.04803887079007356,1.884469194159311 +187477,0.4536,II,19,test,3.2268314590533045,95.7822918254733,1.278160617175143,0.8318142087622472,1.4443311888307317,83.14800000000105,93.13045,17.294170336620915,0.0,0.9473684210526315,-0.10253335232265777,0.05128532594260943,1.1182235153120192,0.5358529885180191,21.391241262233258,1.552549513577452,0.8095996527913766,7.09170212500291,82.17200000000594,12.566960000000003,3.54325872275522,4.60439283004104,0.8333333333333334,-0.06842557209922463,0.03673224634539909,1.4327026543381742,4.877990644008211,135.2072664361,2.4465275344138786,0.7584970815044739,16.00926789013216,82.17599999999948,190.55817647058825,7.980381227072537,0.0,0.9444444444444444,0.11475406142500683,0.06161915976313574,2.3826727794427924,0.4257441508365347,24.541447907090188,0.9304868600045786,0.8549683033436423,18.641962180866745,71.08999999999651,10.966257575757577,5.4338491115107965,3.566170087209679,0.35294117647058826,-0.0033434192464425493,0.05261309454365819,0.9922501001870913 +8623,0.7867,Ia,0,test,0.4103500794143451,17.9175,1.528888171040893,0.7121928885748035,1.508344805005246,121.96499999999651,8.297256294117647,2.869239965939213,3.758319776924719,0.32,0.01105689780951432,0.015048864581943993,1.571890586336563,1.9046652584838955,35.2845,23.982310436116975,0.7369014459542262,5.7812668363811595,121.95700000000215,22.334654999999998,4.962179435487363,7.311046436728465,0.8,0.11548744441436265,0.009473894019662409,18.56424391486411,2.605302268682644,42.409,29.138276543799638,0.7566853099551027,9.205203319906932,122.83999999999651,34.052544999999995,5.743614599432642,5.296992542943591,0.8,0.20873637769277445,0.015324054677829579,22.33799083508402,1.3845948303582778,45.15729626822471,22.157245713132408,0.796439401341067,8.878944270001742,117.80399999999645,28.192785714285712,5.444078124439435,8.246471684186833,0.7083333333333334,0.291982227052825,0.017827660169002994,10.97164915120786 +233023,0.5844,II,24,test,0.3125233690795079,21.53739989209175,2.277582956580222,0.7997243335397541,2.4485576552523725,74.87099999999919,12.043466666666667,3.9729609801758685,3.410304292386043,0.45454545454545453,0.07137631773789016,0.059913054387323555,2.3729509415047496,0.46550329228121473,26.43669880914688,7.979866323854684,0.8291454871845866,4.782884434692603,74.8550000000032,15.097242857142858,3.4997212335923473,5.884619274005754,0.6363636363636364,0.20022689384139403,0.03839267236750335,5.844440443920073,0.8031762221555516,26.71574912661314,6.855835306969522,0.7971395025190777,6.5760743545274725,74.8440000000046,16.6069,1.7407389178162245,6.262022037648861,0.5454545454545454,0.3291254305655445,0.059944866619464715,4.268122607903624,0.2996745791384673,29.77154851037264,3.3511726208859733,0.8322214983827635,6.650480767155446,75.81999999999971,16.150857142857145,4.86255448739211,4.70995045975362,0.6363636363636364,0.2820684903532337,0.06182281495209898,1.4105599935930093 +143768,0.6138,Ibc,22,test,1.416609376924842,19.355,1.1748728397692219,0.801297147950836,0.5589534847484136,89.94499999999971,18.500564285714287,0.0,2.6538172528837203,0.06666666666666667,0.011907464959778217,0.025774272005351106,1.2488295902105406,0.3649766028612286,19.57525,7.112841163354416,0.8247271599236338,3.1293392191137746,89.95300000000134,8.583219999999999,3.719435394922192,3.6454046887066522,0.3333333333333333,0.0946955262373442,0.015452962508288632,4.771351779073882,0.36616225206191194,23.623,14.565643340758518,0.7760863316475316,6.286818402622023,89.94499999999971,13.855555555555554,4.484925801442476,4.024671001046753,0.6,0.23535918028107808,0.02344203357176195,7.932031567345314,0.7388542908660344,32.05980019843578,20.786883301782872,0.9009666835862398,9.355818246298762,89.94199999999546,21.435714285714283,2.9496592700723605,5.646836029393552,0.5,0.37026492345163914,0.026891472794728657,6.7206648243391625 +388884,0.9235,II,2,test,0.8826524563662602,30.527095622777935,7.7079532482254836,0.729955999253692,6.426612580941365,155.84799999999814,15.231474814814815,5.3192674775374345,5.751710316650749,0.7297297297297297,-0.13713154341260295,0.009965800457797349,2.5183667846581788,0.5208346040480349,24.048137673711775,15.817480441800477,0.7598162320052383,7.045392529806902,155.85199999999895,13.311135174825177,4.119996326767967,4.377015587651642,0.7027027027027027,-0.12944424861720208,0.006319055012806507,4.280125749560495,0.9146635146212093,21.047499778592588,6.931071437457912,0.8468816205901626,8.218148383565964,155.8550000000032,12.556824444444441,3.578857089774621,3.011428341102403,0.5,-0.13049732139740033,0.009798085476873749,1.917674289652586,0.4375988235257319,24.8713,7.352678347949922,0.8341478088318302,9.431289110819382,155.85599999999977,13.585747614379088,4.23644530041606,4.400527708996622,0.5142857142857142,-0.14215607932163027,0.011258693618953198,2.744443455610932 +305395,0.9102,II,27,test,1.5792251189408313,14.655607738888264,0.6351033286631408,0.7588815543031316,-1.2987706422180247,92.82800000000134,14.821893333333334,1.9782268923987267,0.0,0.9375,-0.010175867214971206,0.024912972605425403,0.6685509403167823,0.9813455131837199,16.919079731225967,15.210212572524647,0.7543531649874281,4.313138440990015,92.82800000000134,11.730608333333333,2.5159094283662964,2.0678652438364225,0.75,0.14049235839910998,0.014733789943379531,9.802115933490793,0.6005778604692197,21.192999999999998,7.974723526704588,0.9013505302725797,4.924506604824602,89.94499999999971,12.875174999999999,2.7001835359577213,3.478421528988879,0.5333333333333333,0.20323956956592776,0.02340508554219351,2.787833632391025,0.3640389121025527,19.892640312170982,4.797035858582094,0.889998150146327,5.094448352866104,89.94199999999546,11.2549225,2.8931382289911416,3.3743225542321817,0.5714285714285714,0.16645781387652134,0.026767025940418063,1.9740368389232135 +588995,1.0611,II,30,test,3.6689527197690506,17.03589911746979,0.9804047576391217,0.8025746124059172,1.183761136749235,155.84799999999814,39.48732305555556,4.1677252909325695,0.0,0.972972972972973,-0.017137819036600853,0.009890568763410929,0.9226334609408425,0.3551431761064461,21.85884870994091,13.602550914903723,0.733581944437547,12.095086030197416,155.85199999999895,10.007602339181284,2.9932400925188056,4.3118226284351,0.5135135135135135,-0.13305662754313669,0.006402885184885662,1.6529456622631318,0.38927126446620797,15.164100799679757,2.581830359127815,0.7927406300533416,13.587602782489967,155.8550000000032,8.655077922077924,3.493913913206854,2.9257779091425196,0.6111111111111112,-0.05177136596547136,0.009833784076411332,1.8425762630267644,1.7865833632105335,19.2775,1.2356285972314767,0.800704735292053,17.77382534444295,155.85599999999977,18.418181818181818,3.2944474636741576,5.1053109601668725,0.9428571428571428,-0.018390745871712133,0.01130622951514739,1.19289500809639 +592729,0.3393,II,3,train,0.2676560309953866,42.028648717224605,9.2292502985606,0.7779025765221886,13.815946852211418,74.87099999999919,21.487357142857146,6.511518446275836,7.608356699489495,0.6363636363636364,-0.007003242856537728,0.05998579979561276,10.25320808994649,0.37468224949412976,76.88614182155729,87.21989794940876,0.7975582763877459,34.095196988334614,74.8550000000032,45.21200357142857,3.4460400581682156,17.28090991872383,0.36363636363636365,0.5293804945432639,0.038945773155077267,76.38176578336281,0.43616483467478834,76.70729850316047,30.948946271867364,0.8403549714635319,42.32458986345751,74.8440000000046,48.96271428571429,7.9170619550436765,13.19188621482015,0.36363636363636365,0.5188154080301102,0.060877107624168605,26.317687113732248,0.691423105987247,92.07489945292473,48.15428659527451,0.8798187483604185,42.728412354026155,75.81999999999971,65.29736071428572,4.965647230976038,15.266876844051257,0.36363636363636365,0.824671519216635,0.06256074598747575,34.19772515348341 +831998,0.5735,II,27,test,0.38109217663907896,26.44,1.6268996426529823,0.8932107731918769,5.53463403149982,74.80799999999726,15.387040000000002,6.013116645550792,3.889886733569501,0.5,0.13554711607625983,0.06142484491064063,1.2215633064304514,0.44324580768974636,39.119,20.792641310882985,0.9126842392296457,12.463972031225357,73.80099999999948,25.47296,4.469632306801087,7.683911221940729,0.5555555555555556,0.38844886627171327,0.04009702793121942,10.355595675071887,0.4840572533846256,43.847,12.947751645770538,0.8800925441847021,12.26867111995593,73.80099999999948,29.456300000000002,6.999205469194343,4.14705819427057,0.5555555555555556,0.6284838219337122,0.067595538305896,2.4477959723675577,0.48990523957794985,35.841,7.893420440874139,0.892383578057994,13.804415851704185,73.78900000000431,23.340500000000002,5.006829186221555,4.030792932744955,0.5555555555555556,0.49624811276921826,0.06980365720753752,1.8009497815358533 +768774,1.0608,Ia,0,test,1.598547046770675,15.189251740932464,0.9775847185163056,0.8279150861305209,0.4443885687635921,174.85199999999895,10.646395238095238,3.1909936941677732,7.069516381384703,0.8536585365853658,0.0003159028081048427,0.008641241404186486,1.0026167252449685,0.5835208729240947,8.312350341796876,0.9159596833774664,0.7963973197011733,-6.00703929114686e-05,174.85599999999977,3.328991862745098,1.229745663091663,1.7162446596892194,0.5853658536585366,0.002264123314636212,0.005343442213996117,0.9348422743567878,0.5908465764880119,13.689,2.790210757420461,0.6966834007607761,2.6887667787597804,174.8550000000032,7.321678571428571,2.829133369956249,3.9153362899930153,0.65,-0.023849116161575958,0.00831571140192818,2.6471850767765526,1.425915776809683,17.26829892063141,2.3699222338712858,0.7096567735925727,4.1000700083745425,174.86000000000058,9.921414222222221,2.6468170507126083,2.8486842771902805,0.7692307692307693,-0.03818694278249124,0.009505517055099819,1.9977833211110394 +857013,0.9608,Ibc,1,test,3.4247490733734907,15.857751391887664,0.8160535123272336,0.8125023862552821,-0.665179420548714,174.85199999999895,36.993455,3.951098215352803,0.0,0.975609756097561,0.01064173826987008,0.008641096159042344,0.7980893116676064,0.6686831074819994,7.92210016655922,1.4167014667298121,0.7722126860566154,1.3007482943801607,174.85599999999977,4.272320000000001,2.231943625632153,1.819233857058148,0.3902439024390244,-0.012238858980680839,0.005347541259901124,1.3187169545117108,1.8111512449514704,26.788500000000003,6.684225554104999,0.7095598919623566,4.830467321192681,174.8550000000032,14.70796774294671,3.133916015019871,5.940172173813268,0.725,-0.06611862066130574,0.008334627666167488,5.204007123872018,0.6404671589912141,25.059199442386628,6.824898757829498,0.8143016227656583,7.523140659652371,174.86000000000058,14.228020634920636,4.2193929181701915,5.7870979940563005,0.5384615384615384,-0.08233630994541945,0.009520930655537213,4.988095066486451 +557920,0.9778,II,27,test,0.7974802096760488,9.356199902296066,0.7043161014756001,0.8113052627294288,-0.3964448055589793,172.82400000000052,5.679340416666666,3.2030341951898604,2.194459202763968,0.29411764705882354,0.011726983885498326,0.009992604809182463,0.6832866742057712,0.8822262506750859,19.027196246623994,7.477701188237785,0.8777819258347579,4.235026300362239,172.8159999999989,10.831008807017543,2.355525147491279,5.290998620077388,0.4411764705882353,-0.04725495239830839,0.006838787325586203,6.2193186710367305,0.21207924936947747,18.11859858059883,2.7046837001408193,0.8133629010975357,5.15449742800547,173.79299999999785,9.245384722222223,4.150229097270817,3.253453401533164,0.47058823529411764,-0.03764668089688661,0.010880434162311423,2.415085039114785,0.38761872923273083,16.236950268149375,2.704894865562217,0.793896280478598,6.01631524149701,168.75800000000163,8.597736176470589,3.752496561773712,2.206357869884213,0.5151515151515151,-0.0023547035957025243,0.012575690854179216,2.791018579035882 +435590,0.2853,II,19,train,2.8269904784715894,49.45899573040008,31.729015207579668,0.6942993924359746,9.265670237045779,128.9340000000011,36.75984681818181,6.967222464856003,11.972745299220225,0.8148148148148148,0.13347546551516154,0.014850040816797047,29.76665033287078,3.3617007757330204,40.52579515838623,83.10585423931153,0.8914022980668678,14.461764162381748,128.9300000000003,33.820939411764705,2.482065869020378,5.05593776333003,0.6296296296296297,0.3827584169306682,0.009688841716278112,24.00405094426537,2.543681745594099,59.78104712975025,60.38134402760014,0.9078645694891122,19.898312768723336,129.80099999999948,46.27613522727273,5.734757732735243,5.560010954861674,0.5925925925925926,0.4979365066494271,0.015597572981233961,22.030994405891924,3.3826973444038715,49.29559860825538,38.255070467747544,0.9302573983271708,16.158709515040734,124.76499999999942,39.85856875,3.0532291480155345,3.1325417439800822,0.6153846153846154,0.4954079529566498,0.01752399151259072,6.548693990623206 +324610,0.6816,II,2,test,2.373395614976508,61.573,54.77451266343407,0.8306497056049646,16.21901489422359,171.85499999999593,44.073835219780214,8.129817965460244,10.041325516676975,0.65,-0.09018697446450134,0.00879316809351837,53.44764634427253,2.936830465342416,52.37550000000001,106.65429343145978,0.872246197121857,16.609796172333073,171.86000000000058,38.862502500000005,7.210069632804466,4.851429342643946,0.6,-0.0945079836713649,0.0055335822684301665,101.78488478707936,2.2507965921361786,50.70114936900139,39.84222060793449,0.860881669193894,16.61424539311916,171.83600000000297,36.762924999999996,7.164267604450703,6.080924511673095,0.5897435897435898,-0.06547616308934344,0.008585420542927935,39.34707708352486,1.7580921989288891,49.9707991067171,32.76418839629246,0.8908125526800353,19.07340867643725,171.83199999999488,33.797675909090906,8.058729590274204,6.05677936282972,0.5789473684210527,-0.04372836932727177,0.010059302382077263,33.14939052116702 +825069,0.8703,Ia,0,test,1.9139533962593087,19.250401906728744,1.425542788291509,0.751957003018738,1.428564429034164,174.85199999999895,13.711733333333331,6.584316160392057,3.199058437192329,0.12195121951219512,-0.022775710626873842,0.008648624684181335,1.2842733012323222,2.3885096847993945,32.523815437102314,35.396401567317454,0.8562443783776734,8.2810901147387,174.85599999999977,21.381817729468604,2.596598139286297,6.403256728573838,0.5609756097560976,-0.08577237226582282,0.005403205676936941,29.84259253038552,2.537531944885324,49.900499999999994,40.569913826769636,0.9041241805844672,15.241156270247577,174.8550000000032,35.47945912280702,4.5092108330431095,8.737041967346917,0.525,-0.13460103917400643,0.008391056882178383,34.86612084855971,1.7291044583052573,49.51944576811791,30.439080861028653,0.9208561101107234,18.041492670425576,174.86000000000058,33.27809684210527,5.070086643441115,8.684160784900962,0.5128205128205128,-0.07944282078718977,0.009542990816434909,29.388755274497147 +194826,0.2219,II,12,test,1.0012159677883719,73.55859972059727,26.38057710778431,0.7778888004428752,17.517221234724463,129.03100000000268,45.85145714285714,10.280470353330838,12.5306939343434,0.6818181818181818,0.05145172634430186,0.029161016459391984,27.543950420292852,0.605993134421661,58.00189283657073,40.552552718510576,0.8262745701887294,19.448536048097875,129.0269999999946,35.264108333333326,8.571892078619515,8.797846327368989,0.5714285714285714,0.1611261409880802,0.01997249016261113,39.261476418438086,0.8494078342899665,64.83025156795978,18.978563325690907,0.8698277287826518,22.878162211522305,129.0239999999976,41.743602777777774,8.633295965089657,12.523219877935192,0.5714285714285714,0.1491433382679559,0.026919778904617993,18.361919535574607,0.38265210457653914,71.83199676275254,18.55391852936289,0.8118413016710418,21.042267443001364,130.0,40.4998,9.242821226536533,13.267469615567244,0.38095238095238093,0.257569717758439,0.03151254082428113,16.01427625400843 +504422,0.8104,II,17,test,1.969933827787951,44.612001221179966,0.8600222502177078,0.8199686697068594,2.621903883165306,141.80799999999726,26.547300000000003,12.88923387948252,5.209014198832286,0.17857142857142858,0.027550543066825427,0.02239904553469501,0.8349127626927131,0.7780782430818688,48.64199211716651,8.148874403390902,0.8555728543948232,10.441265517914676,140.80099999999948,22.664072363636365,13.634856868398938,6.42260456937413,0.5769230769230769,0.18812244341007028,0.016173624137360853,2.8513166967051453,0.19894219907456911,43.0775,3.9435169444527287,0.8079112020938531,9.916846487860495,140.80099999999948,21.057939743589746,6.6517579761736485,8.223064596369202,0.52,0.18294049811208735,0.025080205070276196,1.8016861652441893,1.3458523568077363,29.894624999999998,1.3777315938655132,0.8389734621647951,10.544727400220339,140.7890000000043,41.767854166666666,0.0,6.532437922098367,0.04,0.11510178583210007,0.026311435079593097,0.6055872002329676 +178508,0.3968,II,38,test,3.0893486296296606,56.75149713397027,6.694233211280909,0.6510741747799745,7.784355247084733,133.99199999999837,68.43733913043478,0.0,10.546505832770963,0.041666666666666664,-0.16063940032928226,0.027543366935104896,5.452381537314888,0.23892832242544437,44.3182509778738,15.481667659358909,0.7431870742700448,18.35500608155774,133.01200000000244,19.239627272727272,6.578497657382103,8.803875696119707,0.4782608695652174,-0.07296891644783737,0.019466463518885806,15.549803256279382,0.364338355456142,42.38930081725121,5.961034389530917,0.7606766078134475,18.031108273580838,133.00400000000081,22.704412698412696,6.452256196694128,6.7861886647371215,0.391304347826087,0.011401481272082322,0.026368422932662543,6.235990199164845,0.66820676076133,52.42550111174583,8.386288082570466,0.7755488472203569,22.472303734092357,128.90999999999622,29.292500000000004,8.43079468377685,7.508476543214343,0.30434782608695654,0.08132312526775742,0.027106952694899586,8.357039808521934 +751672,0.8755,Ia,0,test,0.9277213352098499,11.966052184581757,0.9251341890280246,0.8048435554931178,0.1505454096527356,174.85199999999895,6.425548042328042,1.706679565659972,3.4766746237691613,0.6585365853658537,-0.0015952059733947877,0.008641585565249715,0.9479818388118451,2.4603912726171853,12.975300498485566,6.419668991202106,0.8800205394864815,3.3382727357841064,174.85599999999977,9.3259945,1.5792236187760111,1.7710072640073125,0.6097560975609756,-0.03252200798707479,0.005350739814869228,5.637030651233238,1.5284498820720236,31.36265,11.56424790094756,0.8744195765216072,9.24097703461905,174.8550000000032,18.7461875,3.8540088433499426,4.776600909642755,0.6,-0.058727724879087694,0.008329130583575074,10.560282043744767,0.9585248816902974,30.87725187213421,9.911410760120557,0.8886424959050147,10.665490644492403,174.86000000000058,18.902193650793652,3.6809890670139445,8.032650630009426,0.5384615384615384,-0.027730633955572234,0.009511814503621626,9.949570788776313 +361356,0.8592,II,30,test,0.7557593758429524,57.47000129580498,1.764122336053667,0.8411453965860086,7.151916870254437,133.85899999999674,21.447508333333335,7.296201680554981,10.768480888686204,0.42857142857142855,-0.03471671472084647,0.026965535775760937,1.7682223735446934,5.2994060096354865,46.90989873731135,5.392132557739641,0.8066201061665744,20.706800347867834,139.87099999999919,147.27073076923077,8.302509334208267,0.0,0.9629629629629629,-0.1976474118816666,0.01886387204624186,1.2166446214246474,0.2892756443059308,29.151789384961127,1.7819838800608954,0.8207418721418933,24.456448463584,139.875,15.333687500000003,4.822824645630401,6.058881451591906,0.6153846153846154,-0.0932586473134181,0.027726457939901382,1.3848455605463459,0.15395498498457733,29.595992755889892,2.3655770093747237,0.7693198568222591,33.10583481488308,139.875,14.11025,5.825462356471516,4.40406743817576,0.6153846153846154,-0.08320647821061256,0.028170261408059612,2.100628597864324 +256666,0.6067,II,32,test,0.9664432148063079,24.877099171996115,1.895290439819361,0.7749597453924453,1.0128014060682793,115.95000000000437,10.247558095238094,6.31856467878584,4.072035290257955,0.34375,-0.05987887563583171,0.01621043341744942,1.5036497078508526,3.112422706037527,21.579355409847615,13.07114982494331,0.6590968275774172,4.765180336608682,115.95700000000215,18.10917171264368,3.2312454522268794,0.4539089482851537,0.90625,-0.16547607373988923,0.01008890245167488,4.539562751931405,0.3608745171093855,16.257599234819413,3.0526139681653035,0.7736003529463393,9.31423478711992,115.95700000000215,9.089045454545454,4.057816608914078,3.6395861403087126,0.6451612903225806,-0.11915742926047368,0.015634532870755714,1.1549065751132226,0.27501211001144515,13.491,1.8618209841086482,0.8262293945603943,11.096856236750764,115.79700000000594,6.923866666666669,2.0845156980071162,2.2418844114462537,0.5,-0.09589354149322474,0.015897562372864892,0.6288644823979149 +129778,0.6811,Ibc,23,test,0.5578225732608163,13.739,0.9664276952550265,0.7932956204902405,0.4865675042553893,171.85499999999593,6.807714576802508,2.6955429792356127,3.004335361379679,0.725,0.0007843794026872304,0.008741733972806795,0.9916481310117543,1.6965044558528624,10.152999999999999,3.4365085523305483,0.7940645035599185,1.7697893042895325,171.86000000000058,6.532220357142857,1.3163102642993663,1.9207849484473316,0.7,-0.017995274750006153,0.005479476767821432,3.243115020472324,0.7405240606749061,16.42599955320358,2.393514726297702,0.7740469395723184,2.356707131140119,171.83600000000297,8.526674482758622,2.8188457336236885,3.30279137834785,0.7435897435897436,-0.01924858036344522,0.008548832000171511,2.321184894981072,1.2098565652411122,16.615399198055268,2.551288678749518,0.7785336193870835,4.0086856243595985,171.83199999999488,8.855224242424242,2.799310699769883,2.603822284816898,0.7105263157894737,-0.006791531027857855,0.010028268478874837,2.609417470049665 +453970,0.677,Ia,0,test,0.5265505792043605,17.289196965932845,1.9792079449290174,0.812143209291561,2.0404820972119824,134.85199999999895,9.186326877470355,3.060887148570588,4.044479170874337,0.6764705882352942,-0.04739779021872929,0.012311032272754922,1.577848892430279,3.99903065270037,45.037557995247845,44.254843368201634,0.72966479563708,8.655003662277082,134.85599999999977,30.289596153846148,3.6445865199202796,10.044553605952688,0.7647058823529411,-0.23611850908116006,0.007964733588706118,18.173567649769954,2.005796730878097,49.86323663243056,24.739970941004916,0.7586083690641809,14.304334844481708,134.85900000000402,33.839034,6.510126468285133,14.07561816709001,0.7575757575757576,-0.269346276205871,0.01227510653722251,10.006666258732329,0.9416250398115678,44.03729953300953,22.60086568519806,0.7640513517844019,19.76941677949146,134.86000000000058,27.659166666666664,7.433438702866619,6.333694334949502,0.75,-0.2979614835299469,0.01350820094255765,7.135978409836966 +256689,0.4107,II,19,test,1.248530412683653,30.537,7.121032648866501,0.7059286414442668,4.677813217316473,96.98800000000483,16.93588701754386,5.119005430016233,5.194387997316591,0.76,-0.23130391025039537,0.020554150742740182,1.9246068632106155,0.5168508377700726,19.46375,4.781349828398954,0.8145193603146538,11.663808712375651,96.98799999999756,10.563485294117646,3.1911997259927922,5.106109610764624,0.68,-0.12942061515330444,0.015841242274334467,2.087213199152965,0.9256566045843029,21.9525,1.1711645029010023,0.7905640938225346,17.565455222790998,98.0199999999968,12.468090909090908,4.012349387876088,3.496097824718297,0.88,-0.03652041669294921,0.024097269490873714,1.1222209319486127,0.35819155971115146,18.59,2.942346554916123,0.8222770148612958,23.211084746399628,98.95700000000215,10.641470588235293,1.9820552104174238,3.525423629112661,0.32,-0.1603348570411376,0.026102314542147488,1.429798125233352 +117268,0.9433,II,24,test,1.4833353181381657,21.925083877444266,1.4812382316911923,0.8319905765349147,0.2730396764888144,155.84799999999814,21.006697142857142,4.399404757630535,7.721606050557098,0.9459459459459459,0.014284019538673545,0.009876210796239857,1.4637936082590928,1.6319745951509526,12.349646239638329,2.947047073396914,0.6981056037391822,0.649667898567093,155.85199999999895,7.688401075268817,1.745925504593881,2.6721654639386885,0.8378378378378378,-0.01790553017789637,0.006241892306732192,2.7961369668693212,0.7287647639606961,13.053300298929214,1.8697482910215963,0.7687975323317991,2.4642423721924227,155.8550000000032,7.454862727272727,4.23048744905381,2.2510302700467326,0.3055555555555556,-0.0283513148907683,0.009755368126851101,1.6763245419288133,0.8017950108449624,9.747499999999999,0.9325633200743846,0.7643793148012015,4.976817886557684,155.85599999999977,5.44718,2.492532868389101,1.6043298320482604,0.2857142857142857,-0.005875273918284256,0.011228962991910911,0.9525269243806297 +60962,0.2031,II,12,train,3.367888592062117,71.81819855690001,49.36510743264476,0.7193400551666669,11.6861905745175,120.96499999999651,60.36569142857144,9.463308157792541,1.5900943368240765,0.875,0.19011550936474433,0.01523780872109584,44.533309062461804,2.0975625102324518,55.876492501974106,104.29745793728357,0.8097112085187813,12.537119770459764,120.84799999999814,38.14713277310925,6.301836060736352,13.128129921588041,0.7083333333333334,0.2754767709066834,0.009671939774308127,72.16426269532339,1.3927001197728133,72.11378876399993,66.31748673324515,0.838825708135173,17.33812919987665,121.82400000000052,46.7120234375,8.739554895843135,15.022805283016503,0.6666666666666666,0.40761429642057434,0.015674749465862312,38.59396662237355,1.6775428074147072,55.15745264971256,35.90192028439753,0.8540698403444569,15.532732602628824,116.79299999999785,36.34308,5.7078745964550714,11.809915628100699,0.6521739130434783,0.38334450861011216,0.018480524240130754,17.12207026110748 +586355,0.887,Ibc,8,test,1.7919625412153797,24.279839761435987,0.6181569855595469,0.709046133328079,-0.612051605089595,91.87099999999919,22.361791666666665,2.6270032191759123,0.0,0.9230769230769231,-0.07835051086646042,0.055910964300470434,0.49582890843460564,0.13093177794207084,18.66044794142246,2.5689324437386776,0.8218371500303253,3.4611390930146677,91.75400000000081,8.772390476190477,3.556615475353473,2.798144772285142,0.5384615384615384,0.09575663945120245,0.03421688864694921,2.090497854967941,0.3740500967765773,30.859752390807866,3.7255923479344855,0.8758306497665932,9.872297538792079,91.75400000000081,16.5181,5.130178190618723,3.8165287456885038,0.6923076923076923,0.24638669259856966,0.05330098002118792,2.1217360691475053,0.45254915399584916,32.76184898716211,4.94871578260396,0.85485803533714,10.925591096398373,92.8550000000032,19.03905,5.984367819577938,5.025143402360347,0.38461538461538464,0.2364868234662918,0.048075778741236114,3.1988732033442613 +315558,0.6393,II,38,test,1.8223765642386023,16.913599095106125,1.0219700047480174,0.8382503996501843,0.019092290296771335,115.95000000000437,28.122189032258063,0.0,4.047392230470014,0.03125,-0.03155581111997456,0.01619491077730103,0.9294803762316921,1.9856903063254554,16.807199009656905,6.962025974818877,0.6589594157471168,3.9444673102070835,115.95700000000215,13.160367857142855,3.1231932731614878,4.9776272376170025,0.875,-0.10100978277524232,0.010016191881540659,3.8040884351337962,0.23285207708232497,16.31329988527298,1.834027776430003,0.8550182114952175,6.451484699527702,115.95700000000215,8.286004385964912,3.0803210567837724,2.520469561531355,0.6129032258064516,-0.05500477733147491,0.015599622181896998,1.4685492054463056,0.46792993647601727,13.655,1.183229177627394,0.8448724759292406,8.825766802688106,115.79700000000594,6.440027777777781,2.9555414965584204,1.8948030930515993,0.4,-0.043392355328763156,0.01586635316087177,0.9583625788750377 +712203,0.9468,Ia,0,test,1.3076299149565827,33.47255383563042,1.1285733539566212,0.7845490484057203,0.055575220583409815,171.7890000000043,17.675713194444445,6.233099037486177,8.885945785981844,0.2727272727272727,-0.017467250134996955,0.01744563474587045,1.1326408955826337,1.18609802077341,26.760499092698097,2.7316903355755526,0.7747842334802427,2.967450966520473,171.77700000000186,13.677072946859903,3.177353950531247,5.758568118706053,0.71875,-0.0480043318913034,0.011916558413237905,2.2818206107202186,0.3710865471231747,49.39,4.2830608945001565,0.8073087672865956,7.3597031371422155,171.76900000000023,21.295951250000005,7.109545653154755,8.057107707818274,0.5333333333333333,-0.1222153491718083,0.019443799212051263,3.025013691841394,0.7686716266786824,51.022001222372054,3.361538463975753,0.8317401365711581,6.885804962617742,171.81199999999808,21.89988888888889,9.178088342343916,7.782274731722082,0.6428571428571429,-0.11996552291103069,0.02164028587437172,2.3088390438637085 +510080,0.3886,II,34,test,0.7697055619735549,45.61364931219816,2.761571138370552,0.8328526792952353,6.333866823109757,118.04300000000512,18.70553214285714,7.829241974584188,8.721984874032811,0.631578947368421,0.008278136336214732,0.03245532719905193,2.9201896247368344,0.937420592146413,26.805922983890774,9.24481310892629,0.8497781596940381,8.667005527213403,118.04299999999785,16.043555555555553,1.461019167776765,5.842328540725674,0.5,0.18635416137954072,0.022099361291906088,5.378361036397513,0.4125532737603971,44.156002378225324,6.382040224000178,0.7804214183128642,10.574580833852425,118.04299999999785,22.006115384615388,6.720911254416591,9.565428897859208,0.7222222222222222,0.22989698855058904,0.02973570558954509,3.0450620995603757,0.6198853830518932,43.16400396823883,8.54689149179972,0.8636113936491596,10.608104982876592,119.01900000000023,25.79735,6.680562525383289,5.472650017522198,0.5555555555555556,0.3505183812881493,0.034397530224802214,2.5910364414951776 +752418,1.0166,Ia,0,test,0.9273990175304405,12.243698900341986,0.843967849900471,0.8036052926833623,-0.4205418161064117,155.84799999999814,8.076239619047618,2.2517500052085673,1.6438296459067476,0.8108108108108109,0.0035849601150070836,0.009873050306255113,0.8643141971589088,0.5395112233707892,10.625643548607826,1.8491998971730021,0.7976280106308727,0.3748050130873368,155.85199999999895,4.731432142857143,1.9804490176051828,2.2720819563940533,0.43243243243243246,-0.014837257145006059,0.0062401902388089375,1.740507769096173,0.7823819797636509,22.432900169491766,5.099666678154134,0.742033563353114,3.1024365403251104,155.8550000000032,11.441316666666665,4.632888766014231,4.391322276186677,0.6666666666666666,-0.09089507798330893,0.009778204288807392,2.708194975326106,1.5692064518030993,25.69725,6.215777653336314,0.7533157724054533,5.36700531852391,155.85599999999977,15.474055128205126,3.4652060083437375,4.960282250033762,0.7428571428571429,-0.1261577367271684,0.011255002748585728,2.5967860828707576 +418218,0.6496,II,27,test,1.01286775191451,33.55839927244186,4.403553844084261,0.8811208172996834,4.383996882561749,172.82400000000052,16.733573406593408,7.270497449066722,8.923721387259684,0.6176470588235294,-0.01875550717046736,0.009998030098481086,4.43119375163004,1.4364295441438912,38.11859336185455,34.12296088046136,0.8750084849786302,9.914814045827631,172.8159999999989,23.53846289377289,4.788959043646025,8.372599694301982,0.6176470588235294,-0.0552036354368319,0.006844372233468602,33.15639347230331,0.33690675124355607,27.66719993305206,11.048527506241783,0.7815852895889452,11.017321794280198,173.79299999999785,15.492135294117647,5.2910029550727184,5.5999930409620635,0.5,0.002176919100127349,0.010882869581139858,11.392543594304197,0.5734460752837389,28.5792102987051,9.229691281246566,0.8396056028039962,13.235149822262402,168.75800000000163,16.17437426470588,5.355659167257876,4.17074853981308,0.48484848484848486,0.04013188120362475,0.012592894052087408,9.199806398395102 +367356,0.723,II,19,test,1.3882743683169207,15.259598690986635,0.8569728625475803,0.7930196488673251,1.0609908500350953,172.82400000000052,9.963817500000001,4.497793981498042,3.1432784576895187,0.17647058823529413,-0.013325448483143529,0.009993081906372464,0.8281865400369224,0.6128467931457461,15.13031780114174,5.834275906284778,0.8438014795504148,4.160510967234778,172.8159999999989,8.614076470588234,3.763394798260412,3.227812046928092,0.5,-0.026499517062408457,0.006830021713055675,5.546181367617353,0.13004484591730275,14.94999969124794,2.1268425005430345,0.7909950715498975,4.311045141714168,173.79299999999785,7.491233333333334,2.6097629253759176,2.976412353824651,0.47058823529411764,0.003570779208807067,0.010872647053956522,2.1899357425038053,0.7754083864534788,18.622400805950164,1.9987850150757476,0.8265136769900004,3.6808355491185827,168.75800000000163,8.584153846153844,4.265939440032598,2.1579190146259455,0.3939393939393939,0.04824654644626447,0.012578887638846355,1.5887072353592684 +138365,0.448,Ia,0,train,0.23763294398655083,49.46,6.997062046915769,0.8601263760647891,8.386932860908571,66.81999999999971,25.06286,9.606481561841463,6.599684083348232,0.5,0.4714665435208784,0.0840248606266155,3.936228750406544,0.6368028808252126,74.855,80.97630447617811,0.8861304318524856,22.422236834315008,66.8159999999989,48.637040000000006,4.550119559747854,14.512318904985516,0.5,1.1615621814663388,0.05133040130272883,27.088667678676742,0.41035517507148234,85.17,52.83328263967722,0.8507242203444417,29.012910263439636,66.82000000000698,53.06838,10.101550295474453,17.002604800441606,0.5,1.4427502162262438,0.07295937974039819,10.557572909582397,0.5423124351094623,80.05600000000001,37.31938654925393,0.9021224198074619,28.21404638483414,67.80000000000291,52.9476,7.4063165811353215,15.861178077305611,0.5,1.1136310757867045,0.07060005963964673,10.882722159638211 +174550,0.4899,Ibc,16,test,0.8683342227393903,49.41599148988724,1.7568435440834858,0.7862000489199568,0.6472384240993225,113.90199999999459,30.020250952380955,12.752257447213024,8.076035299086987,0.19230769230769232,-0.07681111787313949,0.03899682870964285,1.6683943761688076,0.7407753270137939,34.652,3.583744658854029,0.7140056869446811,3.7473380415439177,119.84399999999732,21.393390476190472,5.755780589538204,7.234929163440371,0.84,-0.09251052887370975,0.021367670505888815,2.924592434238169,2.606309383519149,53.08959531402588,2.0607006664236986,0.8043102554195147,3.28244956455441,119.84399999999732,82.77863478260869,0.0,9.242730918875393,0.041666666666666664,-0.09586924115921219,0.03179950854173727,1.7412309357425344,2.2779334729962484,39.77867299437523,2.671978804834096,0.7496434241648902,6.585520667499898,119.84399999999732,54.838013043478256,7.803625429265341,0.0,0.9583333333333334,-0.1460621353468191,0.0317986187618898,1.8343937625070985 +456881,0.3925,II,4,test,0.43055929070888144,24.88874939274788,1.5030343231782348,0.8197579909117018,1.679891217815184,81.00800000000163,14.566721428571427,4.36147134004111,3.830864535460321,0.36363636363636365,-0.08157987706993387,0.05076199157069957,1.3830616740042603,0.5743362947931333,28.388148693859577,5.703112616644036,0.7658069363432961,3.0695360644500296,81.00799999999435,17.905055555555556,4.406208322103913,4.659833688019349,0.8181818181818182,0.12788130979311535,0.03692150767595856,5.00384508284276,0.279752759524491,30.728147669255733,3.7512066561730086,0.7683999324941977,7.742894235293373,81.01200000000244,14.089285714285714,4.855429013461314,6.513555096872981,0.6363636363636364,0.1123678654033564,0.05336054210173065,3.6752861532577543,0.37084084430669423,26.5542983161211,2.5298001206581016,0.8586991313485564,4.684927883772661,83.0150000000067,15.102885714285714,3.570219950007082,5.523968682025632,0.5833333333333334,0.1513998651040101,0.05611390267773312,2.0548159239437824 +43274,0.6235,Ia,0,train,2.116325006919368,31.78500746011734,1.06036774356328,0.7816375287972955,-0.050323307672194575,141.80799999999726,59.009405925925925,0.0,8.66658321926736,0.03571428571428571,-0.003904034705364014,0.02236321303966319,1.099978961844974,2.157069554173066,48.251983723640436,14.787592843443484,0.6934624046479857,9.428190005042229,140.80099999999948,33.03234,6.103565002673983,11.19979464097445,0.8461538461538461,0.02379638149393017,0.016068885143959828,15.312365079196837,0.9792831138479845,63.955,11.657523983775716,0.7601248435795244,11.909132523434995,140.80099999999948,34.81312301587301,8.077327552256248,14.565584355563892,0.72,0.12785013641874102,0.025033452808763994,11.030320652512874,0.4202757567537932,68.6275,12.745020895027848,0.8078868770356948,14.932332870414994,140.7890000000043,35.956612301587306,10.855850884757938,12.62834736388167,0.72,0.18981753365909476,0.026318516027215775,11.03751982036701 +673933,0.4921,Ia,0,test,2.266243296985972,41.04400011062622,8.636623892236928,0.5911078482378623,3.494824104951311,134.83200000000215,27.982723999999994,5.50142055111526,2.0969501663129715,0.8928571428571429,0.004135598221685867,0.013190182935815392,8.96502077763025,3.545256316211537,88.21170590341092,141.05805942736845,0.6870787341265172,12.269282271706336,134.82400000000052,66.85834782608696,9.247061748266045,19.57635614714853,0.8214285714285714,0.1357967150669142,0.00845216842117699,136.5552064648811,2.4459596521439795,99.45710227406025,96.54096514215715,0.7439336972516579,16.69596017245658,133.84399999999732,66.46228095238095,10.005644372826579,19.55349913880962,0.75,0.29893919045914447,0.013410753526054817,81.14296538034722,2.8838333867883836,96.71824892055989,87.56277922751278,0.8191266066547469,20.395071377636484,128.80099999999948,64.59843157894737,7.655499581785969,18.639714705051528,0.7037037037037037,0.41386891376867935,0.01608425199999386,64.58127277651106 +168741,1.0136,II,30,test,0.5152552593730869,22.050448143482207,0.648746745453942,0.8304069017383165,1.1494807496895116,157.82800000000134,9.920782807017545,4.477913969827014,5.1465584941136475,0.6129032258064516,-0.0019671475221778277,0.018486437564214198,0.6707268693064603,0.19849667934930695,22.814999999999998,3.4848018141864228,0.7614863000122521,12.334295345512928,157.83200000000215,10.053592760180992,3.4340039719563173,4.20124477890871,0.5666666666666667,-0.1072033213629483,0.012933514673772952,1.1555371730710966,0.35077580601895797,22.65450075519085,1.235158106057307,0.8203289379567027,12.43210006812055,158.79599999999482,12.061210256410256,3.867255170321833,3.6489071071929304,0.5357142857142857,-0.04428127406491542,0.020557571376387473,1.1042114332098143,0.727048300052228,26.030797195911408,0.8964654564851225,0.8176395425952208,20.138321269186424,157.86699999999837,11.267071428571425,4.591914913348087,5.752191874723614,0.5384615384615384,-0.05576392424414224,0.024352143594302773,0.7153334869745671 diff --git a/pyproject.toml b/pyproject.toml index 8ecf9cdd3..f293677d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,15 +1,20 @@ -[build-system] -requires = ["setuptools>=65.5.0", "wheel"] - [project] name = "resspect" -version = "0.1.0" -description = "resspect - Recommendation System for Spectroscopic Follow-up" +license = {file = "LICENSE"} readme = "README.md" authors = [ { name = "The RESSPECT team", email = "contact@cosmostatistics-initiative.org" } ] -license = { text = "GPL-3.0-or-later" } +classifiers = [ + "Development Status :: 4 - Beta", + "License :: OSI Approved :: MIT License", + "Intended Audience :: Developers", + "Intended Audience :: Science/Research", + "Operating System :: OS Independent", + "Programming Language :: Python", +] +dynamic = ["version"] +requires-python = ">=3.9" dependencies = [ "flask==2.3.2", "astropy>=5.2.1", @@ -17,24 +22,26 @@ dependencies = [ "numpy>=1.24.2", "pandas>=1.5.3", "progressbar2>=4.2.0", - "pytest>=7.2.1", "scikit_learn>=1.2.1", "scipy>=1.10.0", "seaborn>=0.12.2", "xgboost>=1.7.3", "iminuit>=1.20.0", - "light_curve>=0.8.1" + "light_curve>=0.8.1", + "requests", + "pooch", ] [project.urls] -Homepage = "https://github.com/COINtoolbox/resspect" -Source = "https://github.com/COINtoolbox/resspect" +Homepage = "https://lsst-resspect.readthedocs.io/en/latest/" +Source = "https://github.com/LSSTDESC/RESSPECT" [project.scripts] build_canonical = "resspect.scripts.build_canonical:main" build_time_domain_snpcc = "resspect.scripts.build_time_domain_snpcc:main" build_time_domain_plasticc = "resspect.scripts.build_time_domain_plasticc:main" calculate_cosmology_metric = "resspect.scripts.calculate_cosmology_metric:main" +fetch_example_data = "resspect.scripts.fetch_example_data:fetch_example_data" fit_dataset = "resspect.scripts.fit_dataset:main" make_metrics_plots = "resspect.scripts.make_metrics_plots:main" run_loop = "resspect.scripts.run_loop:main" @@ -42,23 +49,81 @@ run_time_domain = "resspect.scripts.run_time_domain:main" [project.optional-dependencies] dev = [ - "pytest", + "asv==0.6.4", # Used to compute performance benchmarks + "jupyter", # Clears output from Jupyter notebooks + "pre-commit", # Used to run checks before finalizing a git commit + "pytest", + "pytest-cov", # Used to report total code coverage ] -[tool.setuptools.packages.find] -include = ["resspect*"] +[build-system] +requires = [ + "setuptools>=62", # Used to build and package the Python project + "setuptools_scm>=6.2", # Gets release version from git. Makes it available programmatically +] +build-backend = "setuptools.build_meta" + +[tool.setuptools_scm] +write_to = "src/resspect/_version.py" -[tool.pytest] -addopts = ["--pyargs"] +[tool.pytest.ini_options] +testpaths = [ + "tests", +] -[tool.tox] -legacy_tox_ini = """ -[tox] -envlist = py38 +[tool.black] +line-length = 110 +target-version = ["py39"] + +[tool.isort] +profile = "black" +line_length = 110 + +[tool.ruff] +line-length = 110 +target-version = "py39" + +[tool.ruff.lint] +select = [ + # pycodestyle + "E", + "W", + # Pyflakes + "F", + # pep8-naming + "N", + # pyupgrade + "UP", + # flake8-bugbear + "B", + # flake8-simplify + "SIM", + # isort + "I", + # docstrings + "D101", + "D102", + "D103", + "D106", + "D206", + "D207", + "D208", + "D300", + "D417", + "D419", + # Numpy v2.0 compatibility + "NPY201", +] + +ignore = [ + "UP006", # Allow non standard library generics in type hints + "UP007", # Allow Union in type hints + "SIM114", # Allow if with same arms + "B028", # Allow default warning level + "SIM117", # Allow nested with + "UP015", # Allow redundant open parameters + "UP028", # Allow yield in for loop +] -[testenv] -extras = dev -isolated_build = true -commands = - pytest -s -""" +[tool.coverage.run] +omit=["src/resspect/_version.py"] diff --git a/resspect/learn_loop.py b/resspect/learn_loop.py deleted file mode 100644 index 229fd117a..000000000 --- a/resspect/learn_loop.py +++ /dev/null @@ -1,480 +0,0 @@ -# Copyright 2020 resspect software -# Author: The RESSPECT team -# -# created on 14 August 2020 -# -# Licensed GNU General Public License v3.0; -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.gnu.org/licenses/gpl-3.0.en.html -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -__all__ = ['learn_loop', 'load_features', 'run_classification', - 'run_evaluation', 'save_photo_ids', 'run_make_query', - 'update_alternative_label'] - -import copy -import logging -from typing import Union - -import progressbar -from resspect import DataBase - - -def load_features(database_class: DataBase, - path_to_features: Union[str, dict], - survey: str, features_method: str, number_of_classes: int, - training_method: str, is_queryable: bool, - separate_files: bool = False, - initial_training_samples_file: str = None) -> DataBase: - """ - Load features according to feature extraction method - - Parameters - ---------- - database_class - An instance of DataBase class - path_to_features - Complete path to input features file. - if dict, keywords should be 'train' and 'test', - and values must contain the path for separate train - and test sample files. - survey - 'DES' or 'LSST'. Default is 'DES'. - Name of the survey which characterizes filter set. - features_method - Feature extraction method. Currently only 'bazin' and "bump" are implemented. - number_of_classes - Number of classes to consider in the classification - Currently only nclass == 2 is implemented. - training_method - Choice of initial training sample. - If 'original': begin from the train sample flagged in the file - If int: choose the required number of samples at random, - ensuring that at least half are SN Ia - Default is 'original'. - is_queryable - If True, check if randomly chosen object is queryable. - Default is False. - separate_files: bool (optional) - If True, consider train and test samples separately read - from independent files. Default is False. - initial_training_samples_file - File name to save initial training samples. - File will be saved if "training"!="original" - """ - if isinstance(path_to_features, str): - database_class.load_features( - path_to_file=path_to_features, feature_extractor=features_method, - survey=survey) - else: - features_set_names = ['train', 'test', 'validation', 'pool'] - for sample_name in features_set_names: - if sample_name in path_to_features.keys(): - database_class.load_features( - path_to_features[sample_name], feature_extractor=features_method, - survey=survey, sample=sample_name) - else: - logging.warning(f'Path to {sample_name} not given.' - f' Proceeding without this sample') - - database_class.build_samples( - initial_training=training_method, nclass=number_of_classes, - queryable=is_queryable, sep_files=separate_files, - output_fname=initial_training_samples_file) - - return database_class - - -def run_classification(database_class: DataBase, classifier: str, - is_classifier_bootstrap: bool, prediction_dir: str, - is_save_prediction: bool, iteration_step: int, - **kwargs: dict) -> DataBase: - """ - Run active learning classification model - - Parameters - ---------- - database_class - An instance of DataBase class - classifier - Machine Learning algorithm. - Currently implemented options are 'RandomForest', 'GradientBoostedTrees', - 'KNNclassifier','MLPclassifier','SVMclassifier' and 'NBclassifier'. - Default is 'RandomForest'. - is_classifier_bootstrap - if tp apply a machine learning classifier by bootstrapping - prediction_dir - Output directory to store prediction file for each loop. - Only used if `save_predictions==True - is_save_prediction - if predictions should be saved - iteration_step - active learning iteration number - kwargs - All keywords required by the classifier function. - ------- - - """ - if is_classifier_bootstrap: - database_class.classify_bootstrap( - method=classifier, loop=iteration_step, pred_dir=prediction_dir, - save_predictions=is_save_prediction, **kwargs) - else: - database_class.classify( - method=classifier, pred_dir=prediction_dir, loop=iteration_step, - save_predictions=is_save_prediction, **kwargs) - return database_class - - -def run_evaluation(database_class: DataBase, metric_label: str): - """ - Evaluates the active learning model - - Parameters - ---------- - database_class - An instance of DataBase class - metric_label - Choice of metric. - Currently only "snpcc", "cosmo" or "snpcc_cosmo" are accepted. - Default is "snpcc". - - """ - database_class.evaluate_classification(metric_label=metric_label) - - -def save_photo_ids(database_class: DataBase, is_save_photoids_to_file: bool, - is_save_snana_types: bool, metadata_fname: str, - photo_class_threshold: float, iteration_step: int, - file_name_prefix: str = None, file_name_suffix: str = None): - """ - Function to save photo IDs to a file - - Parameters - ---------- - database_class - An instance of DataBase class - is_save_photoids_to_file - If true, populate the photo_Ia_list attribute. Otherwise - write to file. Default is False. - is_save_snana_types - if True, translate type to SNANA codes and - add column with original values. Default is False. - metadata_fname - Full path to PLAsTiCC zenodo test metadata file. - photo_class_threshold - Probability threshold above which an object is considered Ia. - iteration_step - active learning iteration number - file_name_suffix - suffix string for save file name with file extension - file_name_prefix - prefix string for save file name - """ - if is_save_photoids_to_file or is_save_snana_types: - file_name = file_name_prefix + '_' + str(iteration_step) + file_name_suffix - database_class.output_photo_Ia( - photo_class_threshold, to_file=is_save_photoids_to_file, - filename=file_name, SNANA_types=is_save_snana_types, - metadata_fname=metadata_fname) - - -def run_make_query(database_class: DataBase, strategy: str, batch_size: int, - is_queryable: bool): - """ - Run active learning query process - - Parameters - ---------- - database_class - An instance of DataBase class - strategy - Strategy used to choose the most informative object. - Current implementation accepts 'UncSampling' and - 'RandomSampling', 'UncSamplingEntropy', - 'UncSamplingLeastConfident', 'UncSamplingMargin', - 'QBDMI', 'QBDEntropy', . Default is `UncSampling`. - batch_size - Number of objects to be chosen in each batch query. - Default is 1 - is_queryable - If True, consider only queryable objects. - Default is False. - """ - return database_class.make_query(strategy=strategy, batch=batch_size, - queryable=is_queryable) - - -def _save_metrics_and_queried_samples( - database_class: DataBase, metrics_file_name: str, - queried_file_name: str, iteration_step: int, batch: int, - full_sample: bool, file_name_suffix: str = None): - """ - Save metrics and queried samples details - - Parameters - ---------- - database_class - An instance of DataBase class - metrics_file_name - Full path to file to store metrics results. - queried_file_name - Complete path to output file. - iteration_step - active learning iteration number - batch - Number of queries in each loop. - full_sample - If true, write down a complete queried sample stored in - property 'queried_sample'. Otherwise append 1 line per loop to - 'queried_sample_file'. Default is False. - file_name_suffix - suffix string for save file name with file extension - """ - if file_name_suffix is not None: - metrics_file_name = metrics_file_name.replace('.dat', file_name_suffix) - queried_file_name = queried_file_name.replace( - '.dat', file_name_suffix) - database_class.save_metrics( - loop=iteration_step, output_metrics_file=metrics_file_name, - batch=batch, epoch=iteration_step) - database_class.save_queried_sample( - queried_file_name, loop=iteration_step, full_sample=full_sample, - epoch=iteration_step, batch=batch) - - -def update_alternative_label(database_class_alternative: DataBase, - indices_to_query: list, iteration_step: int, - classifier: str, pred_dir: str, - is_save_prediction: bool, metric_label: str, - is_save_snana_types: bool, - is_save_photoids_to_file: bool, - meta_data_fname: str, photo_class_threshold: float, - photo_ids_froot: str, - **kwargs: dict): - """ - Function to update active learning training with alternative label - - Parameters - ---------- - database_class_alternative - An instance of DataBase class for alternative label - indices_to_query - List of indexes identifying objects to be moved. - iteration_step - active learning iteration number - classifier - Machine Learning algorithm. - Currently implemented options are 'RandomForest', 'GradientBoostedTrees', - 'K-NNclassifier','MLPclassifier','SVMclassifier' and 'NBclassifier'. - Default is 'RandomForest'. - pred_dir - Output diretory to store prediction file for each loop. - Only used if `save_predictions==True`. - is_save_prediction - if predictions should be saved - metric_label - Choice of metric. - Currently only "snpcc", "cosmo" or "snpcc_cosmo" are accepted. - Default is "snpcc". - is_save_snana_types - if True, translate type to SNANA codes and - add column with original values. Default is False. - is_save_photoids_to_file - If true, populate the photo_Ia_list attribute. Otherwise - write to file. Default is False. - meta_data_fname - Full path to PLAsTiCC zenodo test metadata file. - photo_class_threshold - Probability threshold above which an object is considered Ia. - photo_ids_froot - Output root of file name to store photo ids. - Only used if photo_ids is True. - kwargs - additional arguments - """ - database_class_alternative.update_samples( - indices_to_query, epoch=iteration_step, - alternative_label=True) - - database_class_alternative = run_classification( - database_class_alternative, classifier, False, pred_dir, - is_save_prediction, iteration_step, **kwargs) - - run_evaluation(database_class_alternative, metric_label) - - save_photo_ids(database_class_alternative, is_save_photoids_to_file, - is_save_snana_types, meta_data_fname, photo_class_threshold, - iteration_step, photo_ids_froot,'_alt_label.dat') - - return database_class_alternative - - -# TODO: too many arguments! refactor further and update docs -def learn_loop(nloops: int, strategy: str, path_to_features: str, - output_metrics_file: str, output_queried_file: str, - features_method: str = 'bazin', classifier: str = 'RandomForest', - training: str = 'original', batch: int =1, survey: str = 'DES', - nclass: int = 2, photo_class_thr: float = 0.5, - photo_ids_to_file: bool = False, photo_ids_froot: str =' ', - classifier_bootstrap: bool = False, save_predictions: - bool = False, sep_files=False, pred_dir: str = None, - queryable: bool = False, metric_label: str = 'snpcc', - save_alt_class: bool = False, SNANA_types: bool = False, - metadata_fname: str = None, bar: bool = True, - initial_training_samples_file: str = None, **kwargs): - """ - Perform the active learning loop. All results are saved to file. - - Parameters - ---------- - nloops: int - Number of active learning loops to run. - strategy: str - Query strategy. Options are 'UncSampling', 'RandomSampling', - 'UncSamplingEntropy', 'UncSamplingLeastConfident', 'UncSamplingMargin', - 'QBDMI' and 'QBDEntropy'. - path_to_features: str or dict - Complete path to input features file. - if dict, keywords should be 'train' and 'test', - and values must contain the path for separate train - and test sample files. - output_metrics_file: str - Full path to output file to store metric values of each loop. - output_queried_file: str - Full path to output file to store the queried sample. - features_method: str (optional) - Feature extraction method. Currently only 'bazin' and 'Bump' are implemented. - classifier: str (optional) - Machine Learning algorithm. - Currently implemented options are 'RandomForest', 'GradientBoostedTrees', - 'K-NNclassifier','MLPclassifier','SVMclassifier' and 'NBclassifier'. - Default is 'RandomForest'. - sep_files: bool (optional) - If True, consider train and test samples separately read - from independent files. Default is False. - batch: int (optional) - Size of batch to be queried in each loop. Default is 1. - classifier_bootstrap: bool (optional) - Flag for bootstrapping on the classifier - Must be true if using disagreement based strategy. - metadata_fname: str (optional) - Complete path to PLAsTiCC zenodo test metadata. Only used it - SNANA_types == True. Default is None. - metric_label: str (optional) - Choice of metric. - Currently only "snpcc", "cosmo" or "snpcc_cosmo" are accepted. - Default is "snpcc". - nclass: int (optional) - Number of classes to consider in the classification - Currently only nclass == 2 is implemented. - photo_class_thr: float (optional) - Threshold for photometric classification. Default is 0.5. - Only used if photo_ids is True. - photo_ids_to_file: bool (optional) - If True, save photometric ids to file. Default is False. - photo_ids_froot: str (optional) - Output root of file name to store photo ids. - Only used if photo_ids is True. - pred_dir: str (optional) - Output diretory to store prediction file for each loop. - Only used if `save_predictions==True`. - queryable: bool (optional) - If True, check if randomly chosen object is queryable. - Default is False. - save_alt_class: bool (optional) - If True, train the model and save classifications for alternative - query label (this is necessary to calculate impact on cosmology). - Default is False. - save_predictions: bool (optional) - If True, save classification predictions to file in each loop. - Default is False. - SNANA_types: bool (optional) - If True, translate zenodo types to SNANA codes. - Default is False. - survey: str (optional) - 'DES' or 'LSST'. Default is 'DES'. - Name of the survey which characterizes filter set. - training: str or int (optional) - Choice of initial training sample. - If 'original': begin from the train sample flagged in the file - If int: choose the required number of samples at random, - ensuring that at least half are SN Ia - Default is 'original'. - bar: bool (optional) - If True, display progress bar. - initial_training_samples_file - File name to save initial training samples. - File will be saved if "training"!="original" - kwargs: extra parameters - All keywords required by the classifier function. - """ - if 'QBD' in strategy and not classifier_bootstrap: - raise ValueError( - 'Bootstrap must be true when using disagreement strategy') - - # initiate object - database_class = DataBase() - logging.info('Loading features') - database_class = load_features(database_class, path_to_features, survey, - features_method, nclass, training, queryable, - sep_files, initial_training_samples_file) - - logging.info('Running active learning loop') - - if bar: - ensemble = progressbar.progressbar(range(nloops)) - else: - ensemble = range(nloops) - - for iteration_step in ensemble: - if not bar: - print(iteration_step) - - database_class = run_classification( - database_class, classifier, classifier_bootstrap, pred_dir, - save_predictions, iteration_step, **kwargs) - run_evaluation(database_class, metric_label) - save_photo_ids(database_class, photo_ids_to_file, SNANA_types, - metadata_fname, photo_class_thr, iteration_step, - photo_ids_froot, '.dat') - indices_to_query = run_make_query(database_class, strategy, batch, - queryable) - if save_alt_class and batch == 1: - database_class_alternative = copy.deepcopy(database_class) - database_class_alternative = update_alternative_label( - database_class_alternative, indices_to_query, iteration_step, - classifier, pred_dir, save_predictions, metric_label, - SNANA_types, photo_ids_to_file, metadata_fname, photo_class_thr, - photo_ids_froot, **kwargs) - _save_metrics_and_queried_samples( - database_class_alternative, output_metrics_file, - output_queried_file, iteration_step, batch, False, - '_alt_label.dat') - - elif save_alt_class and batch > 1: - raise ValueError('Alternative label only works with batch=1!') - - database_class.update_samples( - indices_to_query, epoch=iteration_step, - queryable=queryable, alternative_label=False) - _save_metrics_and_queried_samples(database_class, output_metrics_file, - output_queried_file, iteration_step, batch, - False) - return database_class - - -def main(): - return None - - -if __name__ == '__main__': - main() - diff --git a/resspect/snanapipe/snana_hook.pyc b/resspect/snanapipe/snana_hook.pyc deleted file mode 100644 index 525f268c6..000000000 Binary files a/resspect/snanapipe/snana_hook.pyc and /dev/null differ diff --git a/resspect/__init__.py b/src/resspect/__init__.py similarity index 98% rename from resspect/__init__.py rename to src/resspect/__init__.py index 79507d9d4..973020d19 100644 --- a/resspect/__init__.py +++ b/src/resspect/__init__.py @@ -24,6 +24,7 @@ from .exposure_time_calculator import * from .fit_lightcurves import * from .learn_loop import * +from .loop_configuration import * from .metrics import * from .plot_results import * from .query_strategies import * @@ -104,5 +105,4 @@ 'svm', 'time_domain_loop', 'uncertainty_sampling', - 'update_matrix'] - + 'update_matrix'] \ No newline at end of file diff --git a/resspect/batch_functions.py b/src/resspect/batch_functions.py similarity index 100% rename from resspect/batch_functions.py rename to src/resspect/batch_functions.py diff --git a/resspect/bazin.py b/src/resspect/bazin.py similarity index 100% rename from resspect/bazin.py rename to src/resspect/bazin.py diff --git a/resspect/build_plasticc_canonical.py b/src/resspect/build_plasticc_canonical.py similarity index 99% rename from resspect/build_plasticc_canonical.py rename to src/resspect/build_plasticc_canonical.py index a9c39dc10..1a47a34e9 100644 --- a/resspect/build_plasticc_canonical.py +++ b/src/resspect/build_plasticc_canonical.py @@ -16,7 +16,6 @@ # limitations under the License. import numpy as np -import os import pandas as pd import matplotlib.pylab as plt import seaborn as sns diff --git a/resspect/build_plasticc_metadata.py b/src/resspect/build_plasticc_metadata.py similarity index 100% rename from resspect/build_plasticc_metadata.py rename to src/resspect/build_plasticc_metadata.py diff --git a/resspect/build_snpcc_canonical.py b/src/resspect/build_snpcc_canonical.py similarity index 100% rename from resspect/build_snpcc_canonical.py rename to src/resspect/build_snpcc_canonical.py diff --git a/resspect/bump.py b/src/resspect/bump.py similarity index 100% rename from resspect/bump.py rename to src/resspect/bump.py diff --git a/resspect/classifiers.py b/src/resspect/classifiers.py similarity index 100% rename from resspect/classifiers.py rename to src/resspect/classifiers.py diff --git a/resspect/cosmo_metric_utils.py b/src/resspect/cosmo_metric_utils.py similarity index 98% rename from resspect/cosmo_metric_utils.py rename to src/resspect/cosmo_metric_utils.py index 5bc99bb38..7c7b161e0 100644 --- a/resspect/cosmo_metric_utils.py +++ b/src/resspect/cosmo_metric_utils.py @@ -15,18 +15,17 @@ # See the License for the specific language governing permissions and # limitations under the License. -import astropy as ap import numpy as np -import pandas as pd -from astropy.cosmology import Planck15, Flatw0waCDM from astropy.cosmology import w0waCDM from astropy import constants as const + __all__ = ['assign_cosmo', 'fish_deriv_m', 'fisher_results', 'column_deriv_m', 'update_matrix', 'find_most_useful', 'compare_two_fishers'] + def assign_cosmo(cosmo, model=[70, 0.3, 0.7, -0.9, 0.0]): """Define a new cosmology model. @@ -83,10 +82,10 @@ def fish_deriv_m(redshift, model, step, screen=False): at given redshifts. """ - Ob0=0.022 - Om0=model[1] - Ode0 =model[2] - cosmo = w0waCDM(model[0], Ob0, Om0, Ode0, model[3],model[4], name="w0waCDM") + Ob0 = 0.022 + Om0 = model[1] + Ode0 = model[2] + cosmo = w0waCDM(H0=model[0], Ob0=Ob0, Om0=Om0, Ode0=Ode0, w0=model[3], wa=model[4], name="w0waCDM") cosmo=assign_cosmo(cosmo, model) diff --git a/resspect/database.py b/src/resspect/database.py similarity index 99% rename from resspect/database.py rename to src/resspect/database.py index 0d24d545f..6fb14f839 100644 --- a/resspect/database.py +++ b/src/resspect/database.py @@ -1640,16 +1640,17 @@ def save_metrics(self, loop: int, output_metrics_file: str, epoch: int, batch=1) # write to file) queried_sample = np.array(self.queried_sample) - flag = queried_sample[:,0].astype(int) == epoch + if len(queried_sample) > 0: + flag = queried_sample[:,0].astype(int) == epoch - if sum(flag) > 0: - with open(output_metrics_file, 'a') as metrics: - metrics.write(str(epoch) + ',') - for value in self.metrics_list_values: - metrics.write(str(value) + ',') - for j in range(sum(flag) - 1): - metrics.write(str(queried_sample[flag][j][1]) + ',') - metrics.write(str(queried_sample[flag][sum(flag) - 1][1]) + '\n') + if sum(flag) > 0: + with open(output_metrics_file, 'a') as metrics: + metrics.write(str(epoch) + ',') + for value in self.metrics_list_values: + metrics.write(str(value) + ',') + for j in range(sum(flag) - 1): + metrics.write(str(queried_sample[flag][j][1]) + ',') + metrics.write(str(queried_sample[flag][sum(flag) - 1][1]) + '\n') def save_queried_sample(self, queried_sample_file: str, loop: int, @@ -1675,7 +1676,7 @@ def save_queried_sample(self, queried_sample_file: str, loop: int, query_sample = pd.DataFrame(self.queried_sample, columns=full_header) query_sample.sort_values(by='epoch').to_csv(queried_sample_file, index=False) - elif isinstance(loop, int): + elif isinstance(loop, int) and len(self.queried_sample) > 0: queried_sample = np.array(self.queried_sample) flag = queried_sample[:,0].astype(int) == epoch if sum(flag) > 0: diff --git a/resspect/exposure_time_calculator.py b/src/resspect/exposure_time_calculator.py similarity index 99% rename from resspect/exposure_time_calculator.py rename to src/resspect/exposure_time_calculator.py index 732857be5..a8fa48197 100644 --- a/resspect/exposure_time_calculator.py +++ b/src/resspect/exposure_time_calculator.py @@ -28,7 +28,6 @@ __all__ = ['ExpTimeCalc'] import numpy as np -import sys, getopt from scipy.interpolate import interp1d class ExpTimeCalc(object): diff --git a/resspect/snanapipe/__init__.py b/src/resspect/feature_extractors/__init__.py similarity index 100% rename from resspect/snanapipe/__init__.py rename to src/resspect/feature_extractors/__init__.py diff --git a/resspect/feature_extractors/bazin.py b/src/resspect/feature_extractors/bazin.py similarity index 100% rename from resspect/feature_extractors/bazin.py rename to src/resspect/feature_extractors/bazin.py diff --git a/resspect/feature_extractors/bump.py b/src/resspect/feature_extractors/bump.py similarity index 100% rename from resspect/feature_extractors/bump.py rename to src/resspect/feature_extractors/bump.py diff --git a/resspect/feature_extractors/light_curve.py b/src/resspect/feature_extractors/light_curve.py similarity index 100% rename from resspect/feature_extractors/light_curve.py rename to src/resspect/feature_extractors/light_curve.py diff --git a/resspect/feature_extractors/malanchev.py b/src/resspect/feature_extractors/malanchev.py similarity index 100% rename from resspect/feature_extractors/malanchev.py rename to src/resspect/feature_extractors/malanchev.py diff --git a/resspect/fit_lightcurves.py b/src/resspect/fit_lightcurves.py similarity index 99% rename from resspect/fit_lightcurves.py rename to src/resspect/fit_lightcurves.py index 2af778246..4ea5117a8 100644 --- a/resspect/fit_lightcurves.py +++ b/src/resspect/fit_lightcurves.py @@ -21,7 +21,6 @@ from copy import copy from itertools import repeat from typing import IO -from typing import Union import numpy as np import pandas as pd diff --git a/src/resspect/learn_loop.py b/src/resspect/learn_loop.py new file mode 100644 index 000000000..58b7abf80 --- /dev/null +++ b/src/resspect/learn_loop.py @@ -0,0 +1,379 @@ +# Copyright 2020 resspect software +# Author: The RESSPECT team +# +# created on 14 August 2020 +# +# Licensed GNU General Public License v3.0; +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.gnu.org/licenses/gpl-3.0.en.html +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +__all__ = ['learn_loop', 'load_features', 'run_classification', + 'run_evaluation', 'save_photo_ids', 'run_make_query', + 'update_alternative_label'] + +import copy +import logging +from typing import Union + +import progressbar +from resspect import DataBase +from resspect.loop_configuration import LoopConfiguration + + +def load_features(database_class: DataBase, config: LoopConfiguration) -> DataBase: + """ + Load features according to feature extraction method + + Parameters + ---------- + database_class: `resspect.DataBase` + An instance of DataBase class + config: `resspect.loop_configuration.LoopConfiguration` + The configuration elements of the learn loop. + """ + if isinstance(config.path_to_features, str): + database_class.load_features( + path_to_file=config.path_to_features, + feature_extractor=config.features_method, + survey=config.survey + ) + else: + features_set_names = ['train', 'test', 'validation', 'pool'] + for sample_name in features_set_names: + if sample_name in config.path_to_features.keys(): + database_class.load_features( + config.path_to_features[sample_name], + feature_extractor=config.features_method, + survey=config.survey, + sample=sample_name + ) + else: + logging.warning(f'Path to {sample_name} not given.' + f' Proceeding without this sample') + + database_class.build_samples( + initial_training=config.training, + nclass=config.nclass, + queryable=config.queryable, + sep_files=config.sep_files, + output_fname=config.initial_training_samples_file + ) + + return database_class + + +def run_classification( + database_class: DataBase, + config: LoopConfiguration, + iteration_step: int, + **kwargs: dict +) -> DataBase: + """ + Run active learning classification model + + Parameters + ---------- + database_class: `resspect.DataBase` + An instance of DataBase class + config: `resspect.loop_configuration.LoopConfiguration` + An instance of the LoopConfiguration class containing + relevant elements. + iteration_step: int + active learning iteration number + kwargs: dict + All keywords required by the classifier function. + ------- + + """ + if config.classifier_bootstrap: + database_class.classify_bootstrap( + method=config.classifier, + loop=iteration_step, + pred_dir=config.prediction_dir, + save_predictions=config.save_predictions, + **kwargs + ) + else: + database_class.classify( + method=config.classifier, + pred_dir=config.pred_dir, + loop=iteration_step, + save_predictions=config.save_predictions, + **kwargs + ) + return database_class + + +def run_evaluation(database_class: DataBase, metric_label: str): + """ + Evaluates the active learning model + + Parameters + ---------- + database_class: `resspect.DataBase` + An instance of DataBase class + metric_label: str + Choice of metric. + Currently only "snpcc", "cosmo" or "snpcc_cosmo" are accepted. + Default is "snpcc". + + """ + database_class.evaluate_classification(metric_label=metric_label) + + +def save_photo_ids( + database_class: DataBase, + config: LoopConfiguration, + iteration_step: int, + file_name_suffix: str = None +): + """ + Function to save photo IDs to a file + + Parameters + ---------- + database_class: `resspect.DataBase` + An instance of DataBase class + config: `resspect.loop_configuration.LoopConfiguration` + iteration_step: int + active learning iteration number + file_name_suffix: str + suffix string for save file name with file extension + """ + if config.photo_ids_to_file or config.SNANA_types: + file_name = config.photo_ids_froot + '_' + str(iteration_step) + file_name_suffix + database_class.output_photo_Ia( + config.photo_class_thr, + to_file=config.photo_ids_to_file, + filename=file_name, + SNANA_types=config.SNANA_types, + metadata_fname=config.metadata_fname + ) + + +def run_make_query( + database_class: DataBase, + strategy: str, + batch_size: int, + is_queryable: bool +): + """ + Run active learning query process + + Parameters + ---------- + database_class: `resspect.DataBase` + An instance of DataBase class + strategy: str + Strategy used to choose the most informative object. + Current implementation accepts 'UncSampling' and + 'RandomSampling', 'UncSamplingEntropy', + 'UncSamplingLeastConfident', 'UncSamplingMargin', + 'QBDMI', 'QBDEntropy', . Default is `UncSampling`. + batch_size: int + Number of objects to be chosen in each batch query. + Default is 1 + is_queryable: bool + If True, consider only queryable objects. + Default is False. + """ + return database_class.make_query( + strategy=strategy, + batch=batch_size, + queryable=is_queryable + ) + + +def _save_metrics_and_queried_samples( + database_class: DataBase, + metrics_file_name: str, + queried_file_name: str, + iteration_step: int, + batch: int, + full_sample: bool, + file_name_suffix: str = None +): + """ + Save metrics and queried samples details + + Parameters + ---------- + database_class: `resspect.DataBase` + An instance of DataBase class + metrics_file_name: str + Full path to file to store metrics results. + queried_file_name: str + Complete path to output file. + iteration_step: int + active learning iteration number + batch: int + Number of queries in each loop. + full_sample: bool + If true, write down a complete queried sample stored in + property 'queried_sample'. Otherwise append 1 line per loop to + 'queried_sample_file'. Default is False. + file_name_suffix: str + suffix string for save file name with file extension + """ + if file_name_suffix is not None: + metrics_file_name = metrics_file_name.replace('.dat', file_name_suffix) + queried_file_name = queried_file_name.replace( + '.dat', + file_name_suffix + ) + database_class.save_metrics( + loop=iteration_step, + output_metrics_file=metrics_file_name, + batch=batch, epoch=iteration_step + ) + database_class.save_queried_sample( + queried_file_name, + loop=iteration_step, + full_sample=full_sample, + epoch=iteration_step, + batch=batch + ) + + +def update_alternative_label( + database_class_alternative: DataBase, + indices_to_query: list, + iteration_step: int, + config: LoopConfiguration, + **kwargs: dict +): + """ + Function to update active learning training with alternative label + + Parameters + ---------- + database_class_alternative: `resspect.DataBase` + An instance of DataBase class for alternative label + indices_to_query: list + List of indexes identifying objects to be moved. + iteration_step: int + active learning iteration number + config: `resspect.loop_configuration.LoopConfiguration` + kwargs + additional arguments + """ + database_class_alternative.update_samples( + indices_to_query, + epoch=iteration_step, + alternative_label=True) + + database_class_alternative = run_classification( + database_class_alternative, + config, + iteration_step, + **kwargs + ) + + run_evaluation(database_class_alternative, config.metric_label) + + save_photo_ids( + database_class_alternative, + config, + iteration_step, + '_alt_label.dat' + ) + + return database_class_alternative + + +# TODO: too many arguments! refactor further and update docs +def learn_loop(config, **kwargs): + """ + Perform the active learning loop. All results are saved to file. + + Parameters + ---------- + config: `resspect.LoopConfiguration`. + The config values for the learn loop. See the `LoopConfiguration` + documentation for more info. + kwargs: extra parameters + All keywords required by the classifier function. + """ + # initiate object + database_class = DataBase() + logging.info('Loading features') + database_class = load_features( + database_class, + config + ) + + logging.info('Running active learning loop') + + if config.bar: + ensemble = progressbar.progressbar(range(config.nloops)) + else: + ensemble = range(config.nloops) + + for iteration_step in ensemble: + if not config.bar: + print(iteration_step) + + database_class = run_classification(database_class, config, iteration_step, **kwargs) + run_evaluation(database_class, config.metric_label) + + save_photo_ids(database_class, config, iteration_step,'.dat') + indices_to_query = run_make_query( + database_class, + config.strategy, + config.batch, + config.queryable, + ) + if config.save_alt_class and config.batch == 1: + database_class_alternative = copy.deepcopy(database_class) + database_class_alternative = update_alternative_label( + database_class_alternative, + indices_to_query, + iteration_step, + config, + **kwargs + ) + _save_metrics_and_queried_samples( + database_class_alternative, + config.output_metrics_file, + config.output_queried_file, + iteration_step, + config.batch, + False, + '_alt_label.dat', + ) + + elif config.save_alt_class and config.batch > 1: + raise ValueError('Alternative label only works with batch=1!') + + database_class.update_samples( + indices_to_query, + epoch=iteration_step, + queryable=config.queryable, + alternative_label=False + ) + _save_metrics_and_queried_samples( + database_class, + config.output_metrics_file, + config.output_queried_file, + iteration_step, + config.batch, + False + ) + return database_class + + +def main(): + return None + + +if __name__ == '__main__': + main() + diff --git a/resspect/lightcurves_utils.py b/src/resspect/lightcurves_utils.py similarity index 99% rename from resspect/lightcurves_utils.py rename to src/resspect/lightcurves_utils.py index b529dd020..0b2e325d2 100644 --- a/resspect/lightcurves_utils.py +++ b/src/resspect/lightcurves_utils.py @@ -582,10 +582,10 @@ def get_query_flags(light_curve_data, telescope_names: list, return query_flags -def get_files_list(path_to_data_dir: str, - file_prefix: str) -> list: +def get_files_list(path_to_data_dir: str, file_prefix: str) -> list: """ - loads file names available in the folder + Load the file names available in a directory. + Parameters ---------- path_to_data_dir diff --git a/src/resspect/loop_configuration.py b/src/resspect/loop_configuration.py new file mode 100644 index 000000000..0b194a2b0 --- /dev/null +++ b/src/resspect/loop_configuration.py @@ -0,0 +1,176 @@ +from dataclasses import dataclass, make_dataclass, asdict +import json +from os import path + +@dataclass +class LoopConfiguration: + """Configuration for the `resspect.learn_loop` function. + + Attributes + ---------- + nloops: int + Number of active learning loops to run. + strategy: str + Query strategy. Options are 'UncSampling', 'RandomSampling', + 'UncSamplingEntropy', 'UncSamplingLeastConfident', 'UncSamplingMargin', + 'QBDMI' and 'QBDEntropy'. + path_to_features: str or dict + Complete path to input features file. + if dict, keywords should be 'train' and 'test', + and values must contain the path for separate train + and test sample files. + output_metrics_file: str + Full path to output file to store metric values of each loop. + output_queried_file: str + Full path to output file to store the queried sample. + features_method: str (optional) + Feature extraction method. Currently only 'bazin' and 'Bump' are implemented. + classifier: str (optional) + Machine Learning algorithm. + Currently implemented options are 'RandomForest', 'GradientBoostedTrees', + 'K-NNclassifier','MLPclassifier','SVMclassifier' and 'NBclassifier'. + Default is 'RandomForest'. + training: str or int (optional) + Choice of initial training sample. + If 'original': begin from the train sample flagged in the file + If int: choose the required number of samples at random, + ensuring that at least half are SN Ia + Default is 'original'. + batch: int (optional) + Size of batch to be queried in each loop. Default is 1. + survey: str (optional) + 'DES' or 'LSST'. Default is 'DES'. + Name of the survey which characterizes filter set. + nclass: int (optional) + Number of classes to consider in the classification + Currently only nclass == 2 is implemented. + photo_class_thr: float (optional) + Threshold for photometric classification. Default is 0.5. + Only used if photo_ids is True. + photo_ids_to_file: bool (optional) + If True, save photometric ids to file. Default is False. + photo_ids_froot: str (optional) + Output root of file name to store photo ids. + Only used if photo_ids is True. + classifier_bootstrap: bool (optional) + Flag for bootstrapping on the classifier + Must be true if using disagreement based strategy. + save_predictions: bool (optional) + If True, save classification predictions to file in each loop. + Default is False. + sep_files: bool (optional) + If True, consider train and test samples separately read + from independent files. Default is False. + pred_dir: str (optional) + Output diretory to store prediction file for each loop. + Only used if `save_predictions==True`. + queryable: bool (optional) + If True, check if randomly chosen object is queryable. + Default is False. + metric_label: str (optional) + Choice of metric. + Currently only "snpcc", "cosmo" or "snpcc_cosmo" are accepted. + Default is "snpcc". + save_alt_class: bool (optional) + If True, train the model and save classifications for alternative + query label (this is necessary to calculate impact on cosmology). + Default is False. + If True, translate zenodo types to SNANA codes. + SNANA_types: bool (optional) + Default is False. + metadata_fname: str (optional) + Complete path to PLAsTiCC zenodo test metadata. Only used it + SNANA_types == True. Default is None. + Default is False. + bar: bool (optional) + If True, display progress bar. + initial_training_samples_file + File name to save initial training samples. + File will be saved if "training"!="original". + """ + nloops: int + strategy: str + path_to_features: str + output_metrics_file: str + output_queried_file: str + features_method: str = 'bazin' + classifier: str = 'RandomForest' + training: str = 'original' + batch: int =1 + survey: str = 'DES' + nclass: int = 2 + photo_class_thr: float = 0.5 + photo_ids_to_file: bool = False + photo_ids_froot: str =' ' + classifier_bootstrap: bool = False + save_predictions: bool = False + sep_files=False + pred_dir: str = None + queryable: bool = False + metric_label: str = 'snpcc' + save_alt_class: bool = False + SNANA_types: bool = False + metadata_fname: str = None + bar: bool = True + initial_training_samples_file: str = None + + def __post_init__(self): + # file checking + if isinstance(self.path_to_features, str): + if not path.isfile(self.path_to_features): + raise ValueError("`path_to_features` must be an existing file.") + elif isinstance(self.path_to_features, dict): + for key in self.path_to_features.keys(): + if not path.isfile(self.path_to_features[key]): + raise ValueError(f"path for '{key}' does not exist.") + else: + raise ValueError("`path_to_features` must be a str or dict.") + + if self.SNANA_types: + if self.metadata_fname is None: + raise ValueError("`SNANA_types` is enabled and metadata file was not provided.") + if not path.isfile(self.metadata_fname): + raise ValueError("provided `metadata_fname` does not exist.") + + if self.save_predictions: + if self.pred_dir is None: + raise ValueError("cannot save predictions, no `pred_dir` was provided.") + if not path.isdir(self.pred_dir): + raise ValueError("provided `pred_dir` does not exist/is not a directory.") + + # check strategy + self.valid_strategies = [ + "UncSampling", + "RandomSampling", + "UncSamplingEntropy", + "UncSamplingLeastConfident", + "UncSamplingMargin", + "QBDMI", + "QBDEntropy", + ] + + if self.strategy not in self.valid_strategies: + raise ValueError(f"{self.strategy} is not a valid strategy.") + if "QBD" in self.strategy and not self.classifier_bootstrap: + raise ValueError("Bootstrap must be true when using disagreement strategy") + + def to_dict(self): + """converts configurations elements into a dict.""" + return asdict(self) + + @classmethod + def from_dict(cls, lc_dict): + """creates a `LoopConfiguration` instance from a dict.""" + return cls(**lc_dict) + + def to_json(self, file_path): + """write out the `LoopConfiguration` as a json file.""" + with open(file_path, 'w') as fp: + json.dump(self.to_dict(), fp) + + @classmethod + def from_json(cls, file_path): + """read a `LoopConfiguration` generated json file and instantiate.""" + with open(file_path) as fp: + lc_dict = json.load(fp) + return cls(**lc_dict) \ No newline at end of file diff --git a/resspect/metrics.py b/src/resspect/metrics.py similarity index 100% rename from resspect/metrics.py rename to src/resspect/metrics.py diff --git a/resspect/plot_results.py b/src/resspect/plot_results.py similarity index 100% rename from resspect/plot_results.py rename to src/resspect/plot_results.py diff --git a/resspect/query_budget_strategies.py b/src/resspect/query_budget_strategies.py similarity index 100% rename from resspect/query_budget_strategies.py rename to src/resspect/query_budget_strategies.py diff --git a/resspect/query_strategies.py b/src/resspect/query_strategies.py similarity index 100% rename from resspect/query_strategies.py rename to src/resspect/query_strategies.py diff --git a/resspect/read_dash.py b/src/resspect/read_dash.py similarity index 98% rename from resspect/read_dash.py rename to src/resspect/read_dash.py index a38095146..fcf176cc9 100644 --- a/resspect/read_dash.py +++ b/src/resspect/read_dash.py @@ -15,8 +15,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import csv - __all__ = ["get_id_type"] def get_id_type(file: str): diff --git a/resspect/readme.rst b/src/resspect/readme.rst similarity index 100% rename from resspect/readme.rst rename to src/resspect/readme.rst diff --git a/resspect/salt3_utils.py b/src/resspect/salt3_utils.py similarity index 100% rename from resspect/salt3_utils.py rename to src/resspect/salt3_utils.py diff --git a/resspect/samples_utils.py b/src/resspect/samples_utils.py similarity index 94% rename from resspect/samples_utils.py rename to src/resspect/samples_utils.py index 3452db294..95fdc04e8 100644 --- a/resspect/samples_utils.py +++ b/src/resspect/samples_utils.py @@ -46,6 +46,12 @@ def sep_samples(all_ids: np.array, n_test_val: int, keys are the sample names, values are the ids of objects in each sample. """ + if n_train + 2 * n_test_val > len(all_ids): + raise ValueError( + f"Unable to draw samples of sizes {n_train}, {n_test_val}, and {n_test_val} " + f"from only {len(all_ids)} indices." + ) + samples = {} # separate ids for training diff --git a/resspect/scripts/__init__.py b/src/resspect/scripts/__init__.py similarity index 100% rename from resspect/scripts/__init__.py rename to src/resspect/scripts/__init__.py diff --git a/resspect/scripts/build_canonical.py b/src/resspect/scripts/build_canonical.py similarity index 100% rename from resspect/scripts/build_canonical.py rename to src/resspect/scripts/build_canonical.py diff --git a/resspect/scripts/build_time_domain_plasticc.py b/src/resspect/scripts/build_time_domain_plasticc.py similarity index 100% rename from resspect/scripts/build_time_domain_plasticc.py rename to src/resspect/scripts/build_time_domain_plasticc.py diff --git a/resspect/scripts/build_time_domain_snpcc.py b/src/resspect/scripts/build_time_domain_snpcc.py similarity index 100% rename from resspect/scripts/build_time_domain_snpcc.py rename to src/resspect/scripts/build_time_domain_snpcc.py diff --git a/resspect/scripts/calculate_cosmology_metric.py b/src/resspect/scripts/calculate_cosmology_metric.py similarity index 100% rename from resspect/scripts/calculate_cosmology_metric.py rename to src/resspect/scripts/calculate_cosmology_metric.py diff --git a/src/resspect/scripts/fetch_example_data.py b/src/resspect/scripts/fetch_example_data.py new file mode 100644 index 000000000..bd43be5a6 --- /dev/null +++ b/src/resspect/scripts/fetch_example_data.py @@ -0,0 +1,43 @@ +import pooch +import os +from pathlib import Path + +# Create a Pooch object to handle the data fetching +POOCH = pooch.create( + path=pooch.os_cache("resspect"), + base_url="doi:10.5281/zenodo.13883296", + registry={ + "SIMGEN_PUBLIC_DES.tar.gz": "md5:3ed2c475512d8c8cf8a2b8907ed21ed0", + }, +) + + +def fetch_example_data(): + """Use Pooch to fetch the example data, unpack it, and create a symlink to + the data directory in the project's data folder. + """ + + unpacked_files = POOCH.fetch( + "SIMGEN_PUBLIC_DES.tar.gz", + processor=pooch.Untar(extract_dir="."), + ) + + # Get the parent directory of the unpacked files. + # Note that index 0 is the tar file itself. + original_directory = Path(unpacked_files[1]).resolve().parent + print(f"Data unpacked into directory: {original_directory}") + + # Create the target directory path for symlinking + this_dir = Path(os.path.dirname(os.path.abspath(__file__))) + target_dir = (this_dir.parent.parent.parent / "data/SIMGEN_PUBLIC_DES") + + # Create the symlink if it doesn't already exist + try: + os.symlink(original_directory, target_dir, target_is_directory=True) + print(f"Created symlink to unpacked data here: {target_dir}") + except FileExistsError: + print(f"Symlink already exists at {target_dir}") + + +if __name__ == "__main__": + fetch_example_data() diff --git a/resspect/scripts/fit_dataset.py b/src/resspect/scripts/fit_dataset.py similarity index 95% rename from resspect/scripts/fit_dataset.py rename to src/resspect/scripts/fit_dataset.py index bf1c5e3fa..a23fc8bad 100644 --- a/resspect/scripts/fit_dataset.py +++ b/src/resspect/scripts/fit_dataset.py @@ -69,20 +69,20 @@ def fit_dataset(user_choices): features_file = user_choices.output ncores = user_choices.ncores - if user_choices.sim_name in ['SNPCC', 'snpcc']: + if user_choices.sim_name.lower() == 'snpcc': # fit the entire sample fit_snpcc(path_to_data_dir=data_dir, features_file=features_file, number_of_processors=ncores, feature_extractor=user_choices.function) - elif user_choices.sim_name in ['PLAsTiCC', 'PLASTICC', 'plasticc']: + elif user_choices.sim_name.lower() == 'plasticc': fit_plasticc(path_photo_file=user_choices.photo_file, path_header_file=user_choices.header_file, output_file=features_file, sample=user_choices.sample, number_of_processors=ncores) - return None - + else: + raise ValueError("-s or --simulation not recognized. Options are 'SNPCC' or 'PLAsTiCC'.") def main(): diff --git a/resspect/scripts/make_metrics_plots.py b/src/resspect/scripts/make_metrics_plots.py similarity index 100% rename from resspect/scripts/make_metrics_plots.py rename to src/resspect/scripts/make_metrics_plots.py diff --git a/resspect/scripts/run_loop.py b/src/resspect/scripts/run_loop.py similarity index 89% rename from resspect/scripts/run_loop.py rename to src/resspect/scripts/run_loop.py index c567a1919..a70c16051 100644 --- a/resspect/scripts/run_loop.py +++ b/src/resspect/scripts/run_loop.py @@ -15,7 +15,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -__all__ = ['learn_loop', 'run_loop'] +__all__ = ['run_loop'] from resspect.learn_loop import learn_loop @@ -91,11 +91,27 @@ def run_loop(args): # TODO: after implementing nclass > 2, add the nclass parameter here learn_loop(nloops=args.nquery, features_method=args.method, classifier=args.classifier, - strategy=args.strategy, path_to_features=args.input, + strategy=args.strategy, + path_to_features=args.input, output_metrics_file=args.metrics, output_queried_file=args.queried, - training=train, batch=args.batch) - + training=_parse_training(args.training), + batch=args.batch) + +def _parse_training(training:str): + """We don't check that `isinstance(training, str)` because `training` is defined + as a string in the argparse.ArgumentParser. + """ + # set training sample variable + if training.lower() == 'original': + train = 'original' + else: + try: + train = int(training) + except ValueError: + raise ValueError('-t or --training option must be "original" or integer!') + + return train def main(): diff --git a/resspect/scripts/run_time_domain.py b/src/resspect/scripts/run_time_domain.py similarity index 100% rename from resspect/scripts/run_time_domain.py rename to src/resspect/scripts/run_time_domain.py diff --git a/resspect/snana_fits_to_pd.py b/src/resspect/snana_fits_to_pd.py similarity index 99% rename from resspect/snana_fits_to_pd.py rename to src/resspect/snana_fits_to_pd.py index 812e496b4..6cf827dbe 100644 --- a/resspect/snana_fits_to_pd.py +++ b/src/resspect/snana_fits_to_pd.py @@ -17,7 +17,6 @@ import numpy as np import pandas as pd -from pathlib import Path from astropy.table import Table __all__ = ['read_fits'] diff --git a/src/resspect/snanapipe/__init__.py b/src/resspect/snanapipe/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/resspect/snanapipe/samplerun.py b/src/resspect/snanapipe/samplerun.py similarity index 100% rename from resspect/snanapipe/samplerun.py rename to src/resspect/snanapipe/samplerun.py diff --git a/resspect/snanapipe/snana_hook.py b/src/resspect/snanapipe/snana_hook.py similarity index 100% rename from resspect/snanapipe/snana_hook.py rename to src/resspect/snanapipe/snana_hook.py diff --git a/resspect/time_domain_loop.py b/src/resspect/time_domain_loop.py similarity index 99% rename from resspect/time_domain_loop.py rename to src/resspect/time_domain_loop.py index 40d852714..4b779ff6a 100644 --- a/resspect/time_domain_loop.py +++ b/src/resspect/time_domain_loop.py @@ -807,7 +807,7 @@ def submit_queries_to_TOM(username, passwordfile, objectids: list, priorities: l 'priorities': priorities} res = tom.request( 'POST', 'elasticc2/askforspectrum', json=req ) dic = res.json() - if res.satus_code != 200: + if res.status_code != 200: raise ValueError('Request failed, ' + res.text + ". Status code: " + str(res.status_code)) if dic['status'] == 'error': diff --git a/resspect/time_domain_plasticc.py b/src/resspect/time_domain_plasticc.py similarity index 100% rename from resspect/time_domain_plasticc.py rename to src/resspect/time_domain_plasticc.py diff --git a/resspect/time_domain_snpcc.py b/src/resspect/time_domain_snpcc.py similarity index 100% rename from resspect/time_domain_snpcc.py rename to src/resspect/time_domain_snpcc.py diff --git a/resspect/tom_client.py b/src/resspect/tom_client.py similarity index 100% rename from resspect/tom_client.py rename to src/resspect/tom_client.py diff --git a/resspect/update_stashes.py b/src/resspect/update_stashes.py similarity index 100% rename from resspect/update_stashes.py rename to src/resspect/update_stashes.py diff --git a/tests/resspect/__init__.py b/tests/resspect/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/conftest.py b/tests/resspect/conftest.py similarity index 85% rename from tests/conftest.py rename to tests/resspect/conftest.py index b3f5319e1..b16712ee3 100644 --- a/tests/conftest.py +++ b/tests/resspect/conftest.py @@ -4,13 +4,22 @@ """ import os import pytest -from contextlib import contextmanager from pathlib import Path @pytest.fixture def test_data_path(): - return Path(__file__).parent.parent / "data" / "tests" + return Path(__file__).parent.parent.parent / "data" / "tests" + + +@pytest.fixture +def test_des_data_path(test_data_path): + return test_data_path / "DES_data" + + +@pytest.fixture +def test_des_lc_file(test_des_data_path): + return test_des_data_path / "DES_SN848233.DAT" @pytest.fixture(scope="session") @@ -61,4 +70,4 @@ def path_to_output_data(request, base_temp): # noinspection PyUnusedLocal def pytest_report_header(config): """ Adds the test folder to the Pytest Header """ - return f"RESSPECT_TEST directory: {os.getenv('RESSPECT_TEST_TEST')}" + return f"RESSPECT_TEST directory: {os.getenv('RESSPECT_TEST_TEST')}" \ No newline at end of file diff --git a/tests/test_batch_functions.py b/tests/resspect/test_batch_functions.py similarity index 63% rename from tests/test_batch_functions.py rename to tests/resspect/test_batch_functions.py index 02183401c..8b2c43275 100644 --- a/tests/test_batch_functions.py +++ b/tests/resspect/test_batch_functions.py @@ -3,13 +3,15 @@ import numpy as np -@pytest.mark.skip(reason='Test failing with numpy.AxisError - Check inputs') def test_entropy_from_probs_b_M_C(): from resspect import batch_functions np.random.seed(42) - x = np.random.rand(100) + num_data_points = 3 + committee_size = 10 + num_classes = 5 + x = np.random.rand(num_data_points, committee_size, num_classes) foo = batch_functions.entropy_from_probs_b_M_C(x) diff --git a/tests/test_bazin.py b/tests/resspect/test_bazin.py similarity index 99% rename from tests/test_bazin.py rename to tests/resspect/test_bazin.py index 0d7d70f95..e5ab54b15 100644 --- a/tests/test_bazin.py +++ b/tests/resspect/test_bazin.py @@ -3,7 +3,6 @@ """ import numpy as np -import os import pytest from pandas import read_csv diff --git a/tests/resspect/test_bump.py b/tests/resspect/test_bump.py new file mode 100644 index 000000000..408c68bbc --- /dev/null +++ b/tests/resspect/test_bump.py @@ -0,0 +1,69 @@ +""" +Tests related to bump.py module. +""" + +import numpy as np +import pandas as pd + +from resspect.bump import bump, fit_bump, protected_exponent, protected_sig + + +def test_protected_exponent(): + """Test the protected_exponent() function.""" + values = np.arange(0, 20) + results = protected_exponent(values) + + # Input values 0-10 should all return exp(x). Anything above that should + # return exp(10.0). + np.testing.assert_allclose(results[:11], np.exp(np.arange(0, 11))) + np.testing.assert_allclose(results[10:], [np.exp(10.0)] * 10) + + +def test_protected_sig(): + """Test the protected_sig() function.""" + values = np.arange(-20, 10) + results = protected_sig(values) + + expected_upper = 1.0 / (1.0 + np.exp(np.arange(10, -10, -1))) + expected_lower = 1.0 / (1.0 + np.exp(np.full(10, 10.0))) + + # Input values [-20, -10] should return 1.0 / (1.0 + exp(10.0)) + # and input values [-10, 10] should return 1.0 / (1.0 + exp(-x)) + np.testing.assert_allclose(results[:10], expected_lower) + np.testing.assert_allclose(results[10:], expected_upper) + + +def test_bump(): + """Test the Bump function evaluation.""" + time = np.arange(-1, 5, 1) + p1 = 0.225 + p2 = -2.5 + p3 = 0.038 + + res = bump(time, p1, p2, p3) + assert not np.isnan(res).any() + + # These were manually computed using the function and so this currently + # only will detect future changes in behavior (breakages). + expected = [0.86683499, 0.87300292, 0.87822063, 0.88254351, 0.88601519, 0.88866704] + np.testing.assert_allclose(res, expected) + + +def test_fit_bump(test_data_path): + """ + Test fit to Bump parametrization. + """ + fname = test_data_path / 'lc_mjd_flux.csv' + data = pd.read_csv(fname) + + time = data['mjd'].values + flux = data['flux'].values + fluxerr = np.array([1]) + + res = fit_bump(time, flux, fluxerr) + + assert not np.isnan(res).any() + + +if __name__ == '__main__': + pytest.main() diff --git a/tests/test_cosmo_metric_utils.py b/tests/resspect/test_cosmo_metric_utils.py similarity index 78% rename from tests/test_cosmo_metric_utils.py rename to tests/resspect/test_cosmo_metric_utils.py index f76a9f9e0..1565a12bb 100644 --- a/tests/test_cosmo_metric_utils.py +++ b/tests/resspect/test_cosmo_metric_utils.py @@ -5,21 +5,14 @@ PyTest for cosmo_metric_utils. """ -import pytest ## TBD: simulate data to use to test the metric. -from resspect import cosmo_metric_utils +from resspect import cosmo_metric_utils as cmu -import astropy as ap import numpy as np -import pandas as pd from astropy.cosmology import w0waCDM -from astropy import constants as const - -def make_fake_data(): - return # multiple unit tests? @@ -27,8 +20,6 @@ def test_assign_cosmo(): """ Test to make sure it reassigns the cosmology """ - from resspect import cosmo_metric_utils as cmu - cosmo = w0waCDM(70, 0.3, 0.7, -0.9, 0.0, name='w0waCDM') updated_cosmo = cmu.assign_cosmo(cosmo, model=[72, 0.29, 0.71, -1, 0.0]) @@ -36,9 +27,8 @@ def test_assign_cosmo(): assert hasattr(updated_cosmo, 'distmod') assert isinstance(updated_cosmo, w0waCDM) -def test_fish_deriv_m(): - from resspect import cosmo_metric_utils as cmu +def test_fish_deriv_m(): redshift = np.arange(0.2, 1.5, 0.1) step = np.array([0, 0.001, 0.00, 0.1, 0., 0.0, 0.0, 0.0]) m, m_deriv = cmu.fish_deriv_m(redshift, [72, 0.29, 0.71, -1, 0.0], step) diff --git a/tests/test_database.py b/tests/resspect/test_database.py similarity index 98% rename from tests/test_database.py rename to tests/resspect/test_database.py index 3d32ea392..ebfda03ad 100644 --- a/tests/test_database.py +++ b/tests/resspect/test_database.py @@ -15,8 +15,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import numpy as np -import os import pandas as pd import pytest diff --git a/tests/test_fit_lightcurves.py b/tests/resspect/test_fit_lightcurves.py similarity index 100% rename from tests/test_fit_lightcurves.py rename to tests/resspect/test_fit_lightcurves.py diff --git a/tests/resspect/test_learn_loop.py b/tests/resspect/test_learn_loop.py new file mode 100644 index 000000000..910471d58 --- /dev/null +++ b/tests/resspect/test_learn_loop.py @@ -0,0 +1,111 @@ +import os +import pytest +import tempfile + +from resspect import fit_snpcc +from resspect.learn_loop import learn_loop +from resspect.loop_configuration import LoopConfiguration + +def test_can_run_learn_loop(test_des_data_path): + """Test that learn_loop can load data and run.""" + with tempfile.TemporaryDirectory() as dir_name: + # Create the feature files to use for the learning loop. + output_file = os.path.join(dir_name, "output_file.dat") + fit_snpcc( + path_to_data_dir=test_des_data_path, + features_file=output_file, + ) + + learn_loop( + LoopConfiguration( + nloops=1, + features_method="bazin", + strategy="RandomSampling", + path_to_features=output_file, + output_metrics_file=os.path.join(dir_name,"just_a_name.csv"), + output_queried_file=os.path.join(dir_name,"just_other_name.csv"), + ) + ) + + +def test_can_run_learn_loop_uncsample(test_des_data_path): + """Test that learn_loop can load data and run. + This instance is distinct from the previous because it uses `UncSample` strategy + and runs for 2 loops instead of 1. + """ + with tempfile.TemporaryDirectory() as dir_name: + # Create the feature files to use for the learning loop. + output_file = os.path.join(dir_name, "output_file.dat") + fit_snpcc( + path_to_data_dir=test_des_data_path, + features_file=output_file + ) + + learn_loop( + LoopConfiguration( + nloops=2, + features_method="bazin", + strategy="UncSampling", + path_to_features=output_file, + output_metrics_file=os.path.join(dir_name,"just_a_name.csv"), + output_queried_file=os.path.join(dir_name,"just_other_name.csv"), + training=10, + ) + ) + +def test_can_run_learn_loop_and_save_photo_ids(test_des_data_path): + """Test that learn_loop can load data, run, and save photo IDs.""" + with tempfile.TemporaryDirectory() as dir_name: + # Create the feature files to use for the learning loop. + output_file = os.path.join(dir_name, "output_file.dat") + fit_snpcc( + path_to_data_dir=test_des_data_path, + features_file=output_file, + ) + + learn_loop( + LoopConfiguration( + nloops=2, + features_method="bazin", + strategy="RandomSampling", + path_to_features=output_file, + output_metrics_file=os.path.join(dir_name,"just_a_name.csv"), + output_queried_file=os.path.join(dir_name,"just_other_name.csv"), + photo_ids_to_file=True, + photo_ids_froot=os.path.join(dir_name, "test_photo") + ) + ) + + assert os.path.isfile(os.path.join(dir_name, "test_photo_0.dat")) + assert os.path.isfile(os.path.join(dir_name, "test_photo_1.dat")) + +def test_can_run_learn_loop_and_update_alternative_label(test_des_data_path): + """Test that learn_loop can load data, run, and save photo IDs.""" + with tempfile.TemporaryDirectory() as dir_name: + # Create the feature files to use for the learning loop. + output_file = os.path.join(dir_name, "output_file.dat") + fit_snpcc( + path_to_data_dir=test_des_data_path, + features_file=output_file, + ) + + learn_loop( + LoopConfiguration( + nloops=1, + features_method="bazin", + strategy="RandomSampling", + path_to_features=output_file, + output_metrics_file=os.path.join(dir_name,"just_a_name.csv"), + output_queried_file=os.path.join(dir_name,"just_other_name.csv"), + photo_ids_to_file=True, + photo_ids_froot=os.path.join(dir_name, "test_photo"), + save_alt_class=True, + ) + ) + + assert os.path.isfile(os.path.join(dir_name, "test_photo_0_alt_label.dat")) + + + +if __name__ == '__main__': + pytest.main() diff --git a/tests/resspect/test_lightcurve_utils.py b/tests/resspect/test_lightcurve_utils.py new file mode 100644 index 000000000..49076f468 --- /dev/null +++ b/tests/resspect/test_lightcurve_utils.py @@ -0,0 +1,44 @@ +import pytest + +from resspect.lightcurves_utils import ( + get_files_list, + get_snpcc_sntype, + read_file, + SNPCC_LC_MAPPINGS, +) + + +def test_get_snpcc_sntype(): + """Test that the get_snpcc_sntype() returns the mappings defined in SNPCC_LC_MAPPINGS.""" + assert get_snpcc_sntype(0) == "Ia" + for value in SNPCC_LC_MAPPINGS["snibc"]: + assert get_snpcc_sntype(value) == "Ibc" + for value in SNPCC_LC_MAPPINGS["snii"]: + assert get_snpcc_sntype(value) == "II" + + with pytest.raises(ValueError): + _ = get_snpcc_sntype(1000) + + +def test_read_file(test_des_data_path, test_des_lc_file): + """Test that we can read in a DES lightcurve file.""" + lines = read_file(test_des_lc_file) + assert len(lines) > 0 + + # Check that the first line is 'SURVEY: DES'. + assert lines[0][0] == "SURVEY:" + assert lines[0][1] == "DES" + + with pytest.raises(FileNotFoundError): + _ = read_file(test_des_data_path / "no_such_file.txt") + + +def test_get_files_list(test_data_path): + """Test that we can list files in a directory.""" + assert len(get_files_list(test_data_path, "")) > 0 + assert len(get_files_list(test_data_path, "plasticc_lightcurves.csv")) == 1 + assert len(get_files_list(test_data_path, "no_such_file")) == 0 + + +if __name__ == '__main__': + pytest.main() diff --git a/tests/resspect/test_loop_configuration.py b/tests/resspect/test_loop_configuration.py new file mode 100644 index 000000000..981e0efeb --- /dev/null +++ b/tests/resspect/test_loop_configuration.py @@ -0,0 +1,193 @@ +import os +import pytest +import tempfile + +from resspect import LoopConfiguration + +def test_create_loop_configuration(): + """test file path checks and other validation steps.""" + with tempfile.TemporaryDirectory() as dir_name: + real_file_path = os.path.join(dir_name, "test.txt") + f = open(real_file_path, "w") + f.write("out of all the files that exist, this is one of them.") + f.close() + + LoopConfiguration( + nloops=1, + strategy="RandomSampling", + path_to_features=real_file_path, + output_metrics_file=os.path.join(dir_name, "blah.txt"), + output_queried_file=os.path.join(dir_name, "blah2.txt"), + ) + + ptf_dict = { + "train": real_file_path, + "test": real_file_path, + } + LoopConfiguration( + nloops=1, + strategy="RandomSampling", + path_to_features=ptf_dict, + output_metrics_file=os.path.join(dir_name, "blah.txt"), + output_queried_file=os.path.join(dir_name, "blah2.txt"), + ) + + # bad path_to_features + with pytest.raises(ValueError): + LoopConfiguration( + nloops=1, + strategy="RandomSampling", + path_to_features="fake.txt", + output_metrics_file=os.path.join(dir_name, "blah.txt"), + output_queried_file=os.path.join(dir_name, "blah2.txt"), + ) + bad_ptf_dict = { + "train": "fake.txt", + "test": "fake2.txt", + } + with pytest.raises(ValueError): + LoopConfiguration( + nloops=1, + strategy="RandomSampling", + path_to_features=bad_ptf_dict, + output_metrics_file=os.path.join(dir_name, "blah.txt"), + output_queried_file=os.path.join(dir_name, "blah2.txt"), + ) + with pytest.raises(ValueError): + LoopConfiguration( + nloops=1, + strategy="RandomSampling", + path_to_features=0, + output_metrics_file=os.path.join(dir_name, "blah.txt"), + output_queried_file=os.path.join(dir_name, "blah2.txt"), + ) + + # SNANA_types + LoopConfiguration( + nloops=1, + strategy="RandomSampling", + path_to_features=real_file_path, + output_metrics_file=os.path.join(dir_name, "blah.txt"), + output_queried_file=os.path.join(dir_name, "blah2.txt"), + SNANA_types=True, + metadata_fname=real_file_path, + ) + with pytest.raises(ValueError): + LoopConfiguration( + nloops=1, + strategy="RandomSampling", + path_to_features=real_file_path, + output_metrics_file=os.path.join(dir_name, "blah.txt"), + output_queried_file=os.path.join(dir_name, "blah2.txt"), + SNANA_types=True, + ) + with pytest.raises(ValueError): + LoopConfiguration( + nloops=1, + strategy="RandomSampling", + path_to_features=real_file_path, + output_metrics_file=os.path.join(dir_name, "blah.txt"), + output_queried_file=os.path.join(dir_name, "blah2.txt"), + SNANA_types=True, + metadata_fname="fake.txt" + ) + + # save_predictions + LoopConfiguration( + nloops=1, + strategy="RandomSampling", + path_to_features=real_file_path, + output_metrics_file=os.path.join(dir_name, "blah.txt"), + output_queried_file=os.path.join(dir_name, "blah2.txt"), + save_predictions=True, + pred_dir=dir_name, + ) + with pytest.raises(ValueError): + LoopConfiguration( + nloops=1, + strategy="RandomSampling", + path_to_features=real_file_path, + output_metrics_file=os.path.join(dir_name, "blah.txt"), + output_queried_file=os.path.join(dir_name, "blah2.txt"), + save_predictions=True, + ) + with pytest.raises(ValueError): + LoopConfiguration( + nloops=1, + strategy="RandomSampling", + path_to_features=real_file_path, + output_metrics_file=os.path.join(dir_name, "blah.txt"), + output_queried_file=os.path.join(dir_name, "blah2.txt"), + save_predictions=True, + pred_dir="~/thisIsNotARealDir/", + ) + + # bad strategies + with pytest.raises(ValueError): + LoopConfiguration( + nloops=1, + strategy="idk whatever", + path_to_features=real_file_path, + output_metrics_file=os.path.join(dir_name, "blah.txt"), + output_queried_file=os.path.join(dir_name, "blah2.txt"), + ) + LoopConfiguration( + nloops=1, + strategy="QBDMI", + path_to_features=real_file_path, + output_metrics_file=os.path.join(dir_name, "blah.txt"), + output_queried_file=os.path.join(dir_name, "blah2.txt"), + classifier_bootstrap=True + ) + with pytest.raises(ValueError): + LoopConfiguration( + nloops=1, + strategy="QBDMI", + path_to_features=real_file_path, + output_metrics_file=os.path.join(dir_name, "blah.txt"), + output_queried_file=os.path.join(dir_name, "blah2.txt"), + ) + +def test_to_and_from_dict(): + """dump `LoopConfiguration` to a dict and recreate.""" + with tempfile.TemporaryDirectory() as dir_name: + real_file_path = os.path.join(dir_name, "test.txt") + f = open(real_file_path, "w") + f.write("out of all the files that exist, this is one of them.") + f.close() + + lc1 = LoopConfiguration( + nloops=1, + strategy="RandomSampling", + path_to_features=real_file_path, + output_metrics_file=os.path.join(dir_name, "blah.txt"), + output_queried_file=os.path.join(dir_name, "blah2.txt"), + ) + d = lc1.to_dict() + + lc2 = LoopConfiguration.from_dict(d) + + assert lc1 == lc2 + +def test_to_and_from_json(): + """dump `LoopConfiguration` to a json file and recreate.""" + with tempfile.TemporaryDirectory() as dir_name: + real_file_path = os.path.join(dir_name, "test.txt") + f = open(real_file_path, "w") + f.write("out of all the files that exist, this is one of them.") + f.close() + + lc1 = LoopConfiguration( + nloops=1, + strategy="RandomSampling", + path_to_features=real_file_path, + output_metrics_file=os.path.join(dir_name, "blah.txt"), + output_queried_file=os.path.join(dir_name, "blah2.txt"), + ) + + json_path = os.path.join(dir_name, "test.json") + lc1.to_json(json_path) + + lc2 = LoopConfiguration.from_json(json_path) + + assert lc1 == lc2 \ No newline at end of file diff --git a/tests/test_metrics.py b/tests/resspect/test_metrics.py similarity index 100% rename from tests/test_metrics.py rename to tests/resspect/test_metrics.py diff --git a/tests/resspect/test_sample_utils.py b/tests/resspect/test_sample_utils.py new file mode 100644 index 000000000..1bc4aebbb --- /dev/null +++ b/tests/resspect/test_sample_utils.py @@ -0,0 +1,52 @@ +"""Tests for sample_utils.py.""" + +import numpy as np +import pytest + +from resspect.samples_utils import sep_samples + + +def test_sep_samples(): + """Test that we can generate separate samples.""" + all_ids = np.arange(0, 100) + samples = sep_samples(all_ids, n_test_val=10, n_train=50) + assert len(samples) == 4 + + # Check that each partition is the correct size and disjoint. + assert len(samples["train"]) == 50 + assert len(np.unique(samples["train"])) == 50 + all_seen = np.copy(samples["train"]) + + assert len(samples["val"]) == 10 + assert len(np.unique(samples["val"])) == 10 + all_seen = np.union1d(all_seen, samples["val"]) + assert len(all_seen) == 60 + + assert len(samples["test"]) == 10 + assert len(np.unique(samples["test"])) == 10 + all_seen = np.union1d(all_seen, samples["test"]) + assert len(all_seen) == 70 + + assert len(samples["query"]) == 30 + assert len(np.unique(samples["query"])) == 30 + all_seen = np.union1d(all_seen, samples["query"]) + assert len(all_seen) == 100 + + +def test_sep_samples_too_many(): + """Test that we fail if we try to generate more samples than IDs.""" + all_ids = np.arange(0, 100) + with pytest.raises(ValueError): + samples = sep_samples(all_ids, n_test_val=50, n_train=80) + with pytest.raises(ValueError): + samples = sep_samples(all_ids, n_test_val=15, n_train=80) + + # We are okay with exactly the same number of samples and IDs. + # But the 'query' bucket is empty + samples = sep_samples(all_ids, n_test_val=10, n_train=80) + assert len(samples) == 4 + assert len(samples["query"]) == 0 + + +if __name__ == '__main__': + pytest.main() diff --git a/tests/run-snpcc-e2e.sh b/tests/run-snpcc-e2e.sh deleted file mode 100755 index 6e82087de..000000000 --- a/tests/run-snpcc-e2e.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -set -e - -# Create a temporary directory for the test -TEST_DIR=$(mktemp -d) -echo "Created test directory: $TEST_DIR" - -# Unpack the SNPCC dataset -FULL_DATASET=${TEST_DIR}/snpcc_full -mkdir -p ${FULL_DATASET} -tar -xzf data/SIMGEN_PUBLIC_DES.tar.gz -C ${FULL_DATASET} - -# Copy few objects -INPUT_DATASET=${TEST_DIR}/snpcc -mkdir -p ${INPUT_DATASET} -cp ${FULL_DATASET}/SIMGEN_PUBLIC_DES/DES_SN00*.DAT ${INPUT_DATASET}/ - -# Extract features from the SNPCC dataset -FEATURES=${TEST_DIR}/features.dat -fit_dataset -s SNPCC -dd ${INPUT_DATASET} -o ${FEATURES} - -# Run training loop -METRICS=${TEST_DIR}/metrics.csv -QUERIES=${TEST_DIR}/queries.csv -run_loop -i ${FEATURES} -b 1 -n 5 -m ${METRICS} -q ${QUERIES} -s UncSampling -t 10 -mt bazin - -echo "### ${METRICS}:" -cat ${METRICS} diff --git a/tests/test_bump.py b/tests/test_bump.py deleted file mode 100644 index c6dda80f7..000000000 --- a/tests/test_bump.py +++ /dev/null @@ -1,47 +0,0 @@ -""" -Tests related to bump.py module. -""" - -import numpy as np -import os -import pytest - -from pandas import read_csv - -from resspect import bump, fit_bump - - -def test_bump(): - """ - Test the Bump function evaluation. - """ - - - time = np.array([0]) - p1 = 0.225 - p2 = -2.5 - p3 = 0.038 - - res = bump(time, p1, p2, p3) - - assert not np.isnan(res).any() - - -def test_fit_bump(test_data_path): - """ - Test fit to Bump parametrization. - """ - fname = test_data_path / 'lc_mjd_flux.csv' - data = read_csv(fname) - - time = data['mjd'].values - flux = data['flux'].values - fluxerr = np.array([1]) - - res = fit_bump(time, flux, fluxerr) - - assert not np.isnan(res).any() - - -if __name__ == '__main__': - pytest.main() diff --git a/tests/test_cli_scripts.py b/tests/test_cli_scripts.py new file mode 100644 index 000000000..fe7d2265a --- /dev/null +++ b/tests/test_cli_scripts.py @@ -0,0 +1,20 @@ +import pytest + + +def test_run_loop_arg_check(): + """Test that the logic that parses CLI inputs works as expected. Specifically + that the training sample is correctly parsed as either an integer or the string 'original'. + """ + + from resspect.scripts.run_loop import _parse_training + + assert _parse_training('original') == 'original' + assert _parse_training('OrigINAL') == 'original' + assert _parse_training('10') == 10 + with pytest.raises(ValueError): + _parse_training('not_a_number') + with pytest.raises(ValueError): + _parse_training('1.0') + with pytest.raises(ValueError): + _parse_training('') + assert _parse_training('010') == 10 diff --git a/tests/test_example.py b/tests/test_example.py deleted file mode 100644 index 370f53386..000000000 --- a/tests/test_example.py +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env python -""" -Test Example - -Contains some PyTest examples that can be applied to RESSPECT. - -""" - -import pytest -import numpy as np - - -def test_one_is_an_integer(): - """ - Checks that '1' is an integer. - """ - assert isinstance(1, int) - - -def test_random_smaller_than_one(): - """ - Check that np.random.rand returns a value smaller than 1. - """ - my_array = np.random.rand(10) - - assert len(my_array) == 10 - np.testing.assert_array_less(my_array, 1) - - -if __name__ == '__main__': - pytest.main() diff --git a/tests/test_learn_loop.py b/tests/test_learn_loop.py deleted file mode 100644 index 049dc0f91..000000000 --- a/tests/test_learn_loop.py +++ /dev/null @@ -1,33 +0,0 @@ - -import pytest - - -# ToDo @emilleishida - Check this test later -@pytest.mark.skip("Test failing for now") -def test_can_run_learn_loop(extract_feature): - """Just a sanity test""" - - from resspect.learn_loop import learn_loop - - learn_loop(nloops=1, - features_method="bazin", - strategy="RandomSampling", - path_to_features=extract_feature, - output_metrics_file="just_a_name.csv", - output_queried_file="just_other_name.csv") - - -@pytest.fixture(scope="function") -def extract_feature(path_to_test_data): - from resspect import fit_snpcc - - path_to_data_dir = path_to_test_data - output_file = 'output_file.dat' - - fit_snpcc(path_to_data_dir=path_to_data_dir, features_file=output_file) - - return output_file - - -if __name__ == '__main__': - pytest.main()