Coder Social home page Coder Social logo

Comments (7)

cdeil avatar cdeil commented on May 26, 2024

The HDUCLAS2 for EVENTS was introduced by @jknodlseder here and then that bullet was slightly modified by @TarekHC (I think, not sure if that is your commit) here.

This key is mentioned here in this OGIP recommendation, and they don't make the distinction optional / required like we do:
https://heasarc.gsfc.nasa.gov/docs/heasarc/ofwg/docs/ofwg_recomm/hduclas.html

I don't think science tools currently read and use this keyword, so my suggestion would be to change it to optional and not mention it in the summary table. But I don't care much either way how this detail is changed.

@jknodlseder @TarekHC - Thoughts?

from gamma-astro-data-formats.

TarekHC avatar TarekHC commented on May 26, 2024

I don't think science tools currently read and use this keyword, so my suggestion would be to change it to optional and not mention it in the summary table. But I don't care much either way how this detail is changed.

I'm not sure if I agree here. Data formats should be as stable as possible in time (so we may not used them now, but maybe in the future), and having some extra keywords formally describing each table class makes sense. I would personally make them mandatory, even if for the moment they are not used (but may help astronomers understand HDUs a bit better...).

from gamma-astro-data-formats.

lmohrmann avatar lmohrmann commented on May 26, 2024

Then the table on this page should maybe be updated? Are there other suggested/possible values for HDUCLAS2 other than ACCEPTED?

from gamma-astro-data-formats.

cdeil avatar cdeil commented on May 26, 2024

The OGIP spec (see https://heasarc.gsfc.nasa.gov/docs/heasarc/ofwg/docs/ofwg_recomm/hduclas.html) mentions these values:

n=1 | 2 | 3 | COMMENTS
-- | -- | -- | --
EVENTS |   |   | Conforms to format defined in "The Proposed Timing FITS File Format", Angelini, Pence and Tennant (1993), and "The Recommended Columns and Keywords for a FITS Event List", Pence and George (1995, Legacy 6, 36)
  | ALL |   | Photon Event List, includes all photons detected without screening
  | ACCEPTED |   | Only accepted photons included in table
  | REJECTED |   | Only rejected photons included in table

I see that Fermi-LAT puts this key and "ALL", even after applying background suppression and other selections.

I would say for us at DL3, there have always been some selections and "ACCEPTED" fits best.

@TarekHC - The fact that it doesn't matter what we put here is another indication that the key should be optional. Note that if we make it required, then all event lists produced so far (for the past 5 years) are invalid under our spec. IMO the required keys should be the minimal subset that's useful for analysis.


@lmohrmann or anyone willing to make a pull request -- I'd be happy with any changes to the spec to wrap up this discussion for now.

from gamma-astro-data-formats.

TarekHC avatar TarekHC commented on May 26, 2024

@TarekHC - The fact that it doesn't matter what we put here is another indication that the key should be optional.

Fine by me, I have no strong opinion. I like declarative schemes, they may be very useful for people starting to play with DL3 data. But suggesting their use may be good enough for now.

from gamma-astro-data-formats.

lmohrmann avatar lmohrmann commented on May 26, 2024

I just modified pull request #92 to include this change (i.e. to make HDUCLAS2 an optional header keyword).

from gamma-astro-data-formats.

cdeil avatar cdeil commented on May 26, 2024

I think this is fully addressed in #92 ? Closing now.

@lmohrmann - Thanks!

from gamma-astro-data-formats.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.