gammapy / gamma-cat

An open data collection and source catalog for gamma-ray astronomy
https://gamma-cat.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
15 stars 17 forks source link

Add instrument to datasets #104

Closed cdeil closed 7 years ago

cdeil commented 7 years ago

One important piece of info that we're still missing for each dataset is which telescope/instrument did the observation. I would like to add this to every dataset in input/data now.

What should we use as key? Maybe "telescope" or "instrument"? For values, we already have a list of strings we use elsewhere:

enum: [hess, veritas, magic, whipple, hegra, cangaroo, hawc, milagro, crimea, argo]

https://github.com/gammapy/gamma-cat/blob/master/input/schemas/basic_source_info.schema.yaml#L35

Where should we put the info? I would say in each input file (i.e. ECSV, YAML). But before we've already discussed a per-dataset (i.e. usually per-paper) info.yaml.

Since I'll go through anyways and add this info everywhere, while I'm at it I could also add other info if needed.

@GernotMaier - Thoughts?

GernotMaier commented 7 years ago

I think either of the names (telescope / instrument) are fine.

We should put it in each file; as there are multi-instrument papers where maybe the SED is only from one instrument, but all other results from both.

cdeil commented 7 years ago

I'll go with the keyname "telescope", because in FITS OGIP they use TELESCOP for this (due to the 8 char limitation for FITS headers that we don't have here.

cdeil commented 7 years ago

This is implemented in master.

So far, there was only one paper with two "telescopes": 2014ApJ...780..168A

@GernotMaier - Could you please review if this is correct: https://github.com/gammapy/gamma-cat/commit/dc8aa92bfacf53072ffc9088c91f252a758b0300

Specifically, is it correct that tev-000030-1-lc.ecsv is "hess", whereas tev-000030-1-sed.ecsv and tev-000030-1.yaml are "veritas"?

cdeil commented 7 years ago

@GernotMaier - I now saw that you had already added "observatory" keys for the datasets you had entered. I've removed those, because it was now duplicated info with the "telescope" key. Also there was a mistake where I had put "hess" instead of "veritas".

Fixed in master in 541e37b .

Should now all be good. Closing this issue now.

Of course, if there's something else to correct or add, please open an issue or pull request.

GernotMaier commented 7 years ago

All looks good.

cdeil commented 7 years ago

I see that this might be confusing - do you know of a way to do it better?

I don't have a better idea. It's OK now, and if you, me or someone has a better idea in the future, we can always file an issue or PR and make it better. Some things become clear with time (e.g. that we're missing "telescope" in each dataset, oops) :-)