Skip to content

Commit

Permalink
Add file_id for papers with multiple files
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeil committed May 16, 2017
1 parent d596dfa commit 786e5d1
Show file tree
Hide file tree
Showing 36 changed files with 42 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# - {data_type: sed}
# - {source_id: 74}
# - {reference_id: 2010A&A...516A..62A}
# - {file_id: 2}
# - {telescope: hess}
# - {url: 'https://www.mpi-hd.mpg.de/hfm/HESS/pages/publications/auxiliary/AA516_A62.html'}
# - {UL_CONF: 0.6827}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# - {data_type: sed}
# - {source_id: 30}
# - {reference_id: 2014ApJ...780..168A}
# - {file_id: 6}
# - {telescope: hess}
# - {UL_CONF: 0.95}
# - {comments: 'Spectral points measured by HESS for orbital phases 0.6-0.9
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# - {data_type: sed}
# - {source_id: 30}
# - {reference_id: 2016arXiv161003751S}
# - {file_id: 3}
# - {telescope: veritas}
# - {comments: Spectral points measured by VERITAS for orbital phases 0.8-0.2}
e_ref e_min e_max dnde dnde_errn dnde_errp
Expand Down
6 changes: 3 additions & 3 deletions docs/data/gammacat-datasets.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"info": {
"name": "gammacat",
"version": "e04afb9",
"git_version": "e04afb9",
"version": "d596dfa",
"git_version": "d596dfa",
"description": "An open data collection and source catalog for gamma-ray astronomy",
"datetime": "2017-05-15 19:22:01.350149"
"datetime": "2017-05-16 08:47:43.092052"
},
"data": [
{
Expand Down
6 changes: 3 additions & 3 deletions docs/data/gammacat-sources.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"info": {
"name": "gammacat",
"version": "e04afb9",
"git_version": "e04afb9",
"version": "d596dfa",
"git_version": "d596dfa",
"description": "An open data collection and source catalog for gamma-ray astronomy",
"datetime": "2017-05-15 19:22:01.350149"
"datetime": "2017-05-16 08:47:43.092052"
},
"data": [
{
Expand Down
Binary file modified docs/data/gammacat.fits.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion gammacat/sed.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class SED:
]

allowed_meta_keys = required_meta_keys + [
'source_name', 'comments', 'url', 'UL_CONF',
'file_id', 'source_name', 'comments', 'url', 'UL_CONF',
]

def __init__(self, table, path):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# - data_type: sed
# - source_id: 74
# - reference_id: 2010A&A...516A..62A
# - file_id: 1
# - telescope: hess
# - url: https://www.mpi-hd.mpg.de/hfm/HESS/pages/publications/auxiliary/AA516_A62.html
# - UL_CONF: 0.6827
Expand Down
1 change: 1 addition & 0 deletions input/data/2010/2010A%26A...516A..62A/tev-000074-1.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This file contains the data for the north-east (NE) region
source_id: 74
reference_id: 2010A&A...516A..62A
file_id: 1
telescope: hess

data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# - data_type: sed
# - source_id: 74
# - reference_id: 2010A&A...516A..62A
# - file_id: 2
# - telescope: hess
# - url: https://www.mpi-hd.mpg.de/hfm/HESS/pages/publications/auxiliary/AA516_A62.html
# - UL_CONF: 0.6827
Expand Down
1 change: 1 addition & 0 deletions input/data/2010/2010A%26A...516A..62A/tev-000074-2.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This file contains the data for the south-west (SW) region
source_id: 74
reference_id: 2010A&A...516A..62A
file_id: 2
telescope: hess

data:
Expand Down
1 change: 1 addition & 0 deletions input/data/2014/2014ApJ...780..168A/tev-000030-1-lc.ecsv
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# - data_type: lc
# - source_id: 30
# - reference_id: 2014ApJ...780..168A
# - file_id: 1
# - telescope: hess
# - {SED_TYPE: flux}
# - UL_CONF: 0.99
Expand Down
1 change: 1 addition & 0 deletions input/data/2014/2014ApJ...780..168A/tev-000030-1-sed.ecsv
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# - data_type: sed
# - source_id: 30
# - reference_id: 2014ApJ...780..168A
# - file_id: 1
# - telescope: veritas
# - comments: |
# Spectral points measured by VERITAS for orbital phases 0.2-0.4
Expand Down
2 changes: 1 addition & 1 deletion input/data/2014/2014ApJ...780..168A/tev-000030-1.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
source_id: 30
reference_id: 2014ApJ...780..168A
file_id: 1
telescope: veritas
# Note that this is a joint HESS/VERITAS paper

Expand Down Expand Up @@ -31,4 +32,3 @@ spec:
mjd: {min: 55235.0, max: 55280.}
phase: {min: 0.2, max: 0.4 }
erange: {min: 0.53, max: 2.07}
filecounter: 1
1 change: 1 addition & 0 deletions input/data/2014/2014ApJ...780..168A/tev-000030-2-lc.ecsv
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# - data_type: lc
# - source_id: 30
# - reference_id: 2014ApJ...780..168A
# - file_id: 2
# - telescope: veritas
# - {SED_TYPE: flux}
# - UL_CONF: 0.99
Expand Down
1 change: 1 addition & 0 deletions input/data/2014/2014ApJ...780..168A/tev-000030-2-sed.ecsv
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# - data_type: sed
# - source_id: 30
# - reference_id: 2014ApJ...780..168A
# - file_id: 2
# - telescope: veritas
# - comments: |
# Spectral points measured by VERITAS for orbital phases 0.2-0.4
Expand Down
2 changes: 1 addition & 1 deletion input/data/2014/2014ApJ...780..168A/tev-000030-2.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
source_id: 30
reference_id: 2014ApJ...780..168A
file_id: 2
telescope: veritas
# Note that this is a joint HESS/VERITAS paper

Expand All @@ -23,4 +24,3 @@ spec:
mjd: {min: 55544.0, max: 55656.}
phase: {min: 0.2, max: 0.4}
erange: {min: 0.53, max: 3.55}
filecounter: 2
1 change: 1 addition & 0 deletions input/data/2014/2014ApJ...780..168A/tev-000030-3-sed.ecsv
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# - data_type: sed
# - source_id: 30
# - reference_id: 2014ApJ...780..168A
# - file_id: 3
# - telescope: veritas
# - comments: |
# Spectral points measured by VERITAS for orbital phases 0.2-0.4
Expand Down
2 changes: 1 addition & 1 deletion input/data/2014/2014ApJ...780..168A/tev-000030-3.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
source_id: 30
reference_id: 2014ApJ...780..168A
file_id: 3
telescope: veritas
# Note that this is a joint HESS/VERITAS paper

Expand All @@ -23,4 +24,3 @@ spec:
mjd: {min: 55890.0, max: 55928.}
phase: {min: 0.2, max: 0.4 }
erange: {min: 0.53, max: 7.08}
filecounter: 3
1 change: 1 addition & 0 deletions input/data/2014/2014ApJ...780..168A/tev-000030-4-sed.ecsv
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# - data_type: sed
# - source_id: 30
# - reference_id: 2014ApJ...780..168A
# - file_id: 4
# - telescope: veritas
# - comments: |
# Spectral points measured by VERITAS for orbital phases 0.2-0.4
Expand Down
2 changes: 1 addition & 1 deletion input/data/2014/2014ApJ...780..168A/tev-000030-4.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
source_id: 30
reference_id: 2014ApJ...780..168A
file_id: 4
telescope: veritas
# Note that this is a joint HESS/VERITAS paper

Expand All @@ -23,4 +24,3 @@ spec:
mjd: {min: 55235.0, max: 55928.}
phase: {min: 0.2, max: 0.4 }
erange: {min: 0.53, max: 7.08}
filecounter: 4
1 change: 1 addition & 0 deletions input/data/2014/2014ApJ...780..168A/tev-000030-5-sed.ecsv
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# - data_type: sed
# - source_id: 30
# - reference_id: 2014ApJ...780..168A
# - file_id: 5
# - telescope: hess
# - comments: |
# Spectral points measured by HESS for orbital phases 0.2-0.4
Expand Down
2 changes: 1 addition & 1 deletion input/data/2014/2014ApJ...780..168A/tev-000030-5.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
source_id: 30
reference_id: 2014ApJ...780..168A
file_id: 5
telescope: hess
# Note that this is a joint HESS/VERITAS paper

Expand All @@ -23,4 +24,3 @@ spec:
mjd: {min: 53087.0, max: 55951.}
phase: {min: 0.2, max: 0.4}
erange: {min: 0.2, max: 12}
filecounter: 5
1 change: 1 addition & 0 deletions input/data/2014/2014ApJ...780..168A/tev-000030-6-sed.ecsv
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# - data_type: sed
# - source_id: 30
# - reference_id: 2014ApJ...780..168A
# - file_id: 6
# - telescope: hess
# - UL_CONF: 0.95
# - comments: |
Expand Down
2 changes: 1 addition & 1 deletion input/data/2014/2014ApJ...780..168A/tev-000030-6.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
source_id: 30
reference_id: 2014ApJ...780..168A
file_id: 6
telescope: hess
# Note that this is a joint HESS/VERITAS paper

Expand All @@ -23,4 +24,3 @@ spec:
mjd: {min: 53087.0, max: 55951.}
phase: {min: 0.6, max: 0.9 }
erange: {min: 0.2, max: 12.}
filecounter: 6
1 change: 1 addition & 0 deletions input/data/2016/2016arXiv161003751S/tev-000030-1-sed.ecsv
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# - data_type: sed
# - source_id: 30
# - reference_id: 2016arXiv161003751S
# - file_id: 1
# - telescope: veritas
# - comments: |
# Spectral points measured by VERITAS for orbital phases 0.2-0.4
Expand Down
2 changes: 1 addition & 1 deletion input/data/2016/2016arXiv161003751S/tev-000030-1.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
source_id: 30
reference_id: 2016arXiv161003751S
file_id: 1
telescope: veritas
# Contribution to the 6th International Symposium on High-Energy Gamma-Ray
# Astronomy (Gamma2016), Heidelberg, Germany
Expand Down Expand Up @@ -27,4 +28,3 @@ spec:
mjd: {min: 55236.0, max: 57456.}
phase: {min: 0.2, max: 0.4 }
erange: {min: 0.33, max: 6.31}
filecounter: 1
1 change: 1 addition & 0 deletions input/data/2016/2016arXiv161003751S/tev-000030-2-sed.ecsv
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# - data_type: sed
# - source_id: 30
# - reference_id: 2016arXiv161003751S
# - file_id: 2
# - telescope: veritas
# - comments: |
# Spectral points measured by VERITAS for orbital phases 0.6-0.8
Expand Down
2 changes: 1 addition & 1 deletion input/data/2016/2016arXiv161003751S/tev-000030-2.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
source_id: 30
reference_id: 2016arXiv161003751S
file_id: 2
telescope: veritas
# Contribution to the 6th International Symposium on High-Energy Gamma-Ray
# Astronomy (Gamma2016), Heidelberg, Germany
Expand Down Expand Up @@ -27,4 +28,3 @@ spec:
mjd: {min: 56330.0, max: 56988.416}
phase: {min: 0.6, max: 0.8 }
erange: {min: 0.24, max: 4.47}
filecounter: 2
1 change: 1 addition & 0 deletions input/data/2016/2016arXiv161003751S/tev-000030-3-sed.ecsv
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# - data_type: sed
# - source_id: 30
# - reference_id: 2016arXiv161003751S
# - file_id: 3
# - telescope: veritas
# - comments: |
# Spectral points measured by VERITAS for orbital phases 0.8-0.2
Expand Down
2 changes: 1 addition & 1 deletion input/data/2016/2016arXiv161003751S/tev-000030-3.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
source_id: 30
reference_id: 2016arXiv161003751S
file_id: 3
telescope: veritas
# Contribution to the 6th International Symposium on High-Energy Gamma-Ray
# Astronomy (Gamma2016), Heidelberg, Germany
Expand Down Expand Up @@ -27,4 +28,3 @@ spec:
mjd: {min: 54830.0, max: 57430.220}
phase: {min: 0.8, max: 0.2 }
erange: {min: 0.28, max: 6.31}
filecounter: 3
1 change: 1 addition & 0 deletions input/data/2017/2017ApJ...834....2A/tev-000049-lc-1.ecsv
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# - data_type: lc
# - source_id: 49
# - reference_id: 2017ApJ...834....2A
# - file_id: 1
# - telescope: veritas
# - {SED_TYPE: flux}
# - comments: 10 min
Expand Down
1 change: 1 addition & 0 deletions input/data/2017/2017ApJ...834....2A/tev-000049-lc-2.ecsv
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# - data_type: lc
# - source_id: 49
# - reference_id: 2017ApJ...834....2A
# - file_id: 2
# - telescope: veritas
# - {SED_TYPE: flux}
# - comments: 10 min
Expand Down
1 change: 1 addition & 0 deletions input/data/2017/2017ApJ...834....2A/tev-000049-sed-1.ecsv
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# - data_type: sed
# - source_id: 49
# - reference_id: 2017ApJ...834....2A
# - file_id: 1
# - telescope: veritas
# - comments: |
# Spectrum for 2014-04-29
Expand Down
1 change: 1 addition & 0 deletions input/data/2017/2017ApJ...834....2A/tev-000049-sed-2.ecsv
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# - data_type: sed
# - source_id: 49
# - reference_id: 2017ApJ...834....2A
# - file_id: 2
# - telescope: veritas
# - comments: |
# Spectrum for 2014-05-03.
Expand Down
8 changes: 4 additions & 4 deletions input/schemas/dataset_source_info.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ properties:
type: string
description: Dataset reference identifier

file_id:
type: integer
description: Counter for cases where multiple measurements are given in a paper for a given source (e.g. for sub-regions).

telescope:
"$ref": "#/definitions/telescope"

Expand Down Expand Up @@ -250,10 +254,6 @@ properties:
min: {type: number}
max: {type: number}

filecounter:
type: number
description: Counter to connect spectral fit with SED file

notes:
type: string
description: Hand-written, free-format notes
Expand Down

0 comments on commit 786e5d1

Please sign in to comment.