Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New condensed version of Swift BAT Position notice. #1

Closed
wants to merge 3 commits into from

Conversation

TeresaSheets
Copy link
Contributor

No description provided.

@lpsinger
Copy link
Member

Nice! This is a pretty thorough model of the existing GCN schema for Swift as an AVRO packet. Does it parse?

{"name": "NOTICE_TYPE", "type": "string", "doc": "type of notice"},
{"name": "TRIGGER_NUM", "type": ["int", "string"], "doc": "integer or string of digits uniquely identifying event" },
{"name": "SEG_NUM", "type" : "long", "doc": "Swift serial number (for Swift notice types only)" },
{"name": "GRB_RA_J2000", "type": "double", "doc": "ra of GRB/Transient in J2000 epoch [deg]"},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • J2000 has been the preferred equinox for a long time. Do we need to specify that in the field name?
  • How about just "ra", so that the field name is general to all types of transients, not just GRBs?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This notice type is specifically only for GRBs, I think BAT would generate a different notice type if it was a non-GRB source. Though for simplicity and comparison to other notice types, and the general use of RA/Dec, it would be easier to parse these streams if not GRB specific.

@lpsinger
Copy link
Member

Note that Avro allows you to set aliases for fields. This might be an option to provide new fields with consistent lower-case capitalization while retaining the old names too.

@@ -0,0 +1,12 @@
{ "type": "record",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This record is not used.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the referenced schema that would be used in the future enhanced versions.

@@ -0,0 +1,39 @@
{"type": "record",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This record is not used.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the referenced schema that would be used in the future enhanced versions.

"fields": [
{"name": "grb-ra-j2000", "type": "double", "doc": "ra of GRB/Transient in J2000 epoch [deg]"},
{"name": "grb-ra-current", "type": "double", "doc": "ra of GRB/Transient in Current epoch [deg]"},
{"name": "grb-ra-1950", "type": "double", "doc": "ra of GRB/Transient in 1950 epoch [deg]"},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really do not think that we need to provide precomputed coordinates in epochs other than J2000 (including true of date).

@lpsinger lpsinger closed this Sep 20, 2021
dakota002 added a commit that referenced this pull request Mar 8, 2023
Some tweaks to validation script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants