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

Adding a time series/1d data use case #2

Merged
merged 1 commit into from
Feb 24, 2021
Merged

Adding a time series/1d data use case #2

merged 1 commit into from
Feb 24, 2021

Conversation

msdemlei
Copy link
Contributor

This has to things I'd like to mention. For one, there are a few actual use cases (in the sense of: what should be done with this particular annotation). And the annotation scheme assumes largely independent DMs and, I think, gets away with that quite nicely.

@lmichel lmichel merged commit ab0872b into main Feb 24, 2021
@mcdittmar
Copy link
Collaborator

Markus.. I'm looking over the annotated serialization.
Some questions..

  1. it doesn't use any of the current models-in-progress (well.. Dataset looks ok)
    One of the primary goals of this workshop is to exercise the models in various scenarios to see how they serve.
    So, while this gives a good look at the annotation scheme you have in mind, it isn't applied to the same models as the other implementations will be.. so a bit apples vs oranges.

  2. Magnitude
    the table has magnitudes, the annotation does not.
    It is not in Coords, presumably because it is not space or time domain
    It is not a Measurement, presumably because it has no errors?

  3. Position of the source
    The table has 2 Params giving the RA,DEC with description saying it is the "Position of source object"
    There is a SphericalCoordinate mapping to those values
    This is in the Coords annotation at Coords.space, so it can be found as a Coordinate
    But no other annotation which gives it context as a source position ( Target.position ? ) or anywhere in relation to the TimeSeries. I don't see when/how a client would know when to use the SphericalCoordinate.
    This caught my eye because we've had extensive conversation about source/target.position.

  4. PhotCal reference to phot/flux?
    If I recall.. the usage of photDM:PhotCal is to be referenced by the Flux/Magnitudes as part of their "Frame" (SpectralDM).
    The PhotDM model PhotCal object does not have any association to the Flux/Magnitude values
    The table flux and phot FIELD elements have this reference to PhotCal, but also has backward pointing references within the PhotCal objects to the FIELDs.
    Is that part of your annotation scheme? What if multiple columns share the same PhotCal?

@msdemlei
Copy link
Contributor Author

msdemlei commented Feb 25, 2021 via email

@mcdittmar
Copy link
Collaborator

Help me see how this approach works well/better for clients..
Your implicit model for Cube is:

  • ndcube:Cube     
    o independent_axes: RealQuantity[*][*]  <-- [naxes][nrows]     
    o dependent_axes: RealQuantity[*][*] <-- [naxes][nrows]

Which is essentially "Table + knowledge of dependent/independent axes"

There are 2 Cubes defined

  1. has independent_axes = Field('obs_time'); dependent_axes = Field('phot')   
  2. has independent_axes = Field('obs_time'); dependent_axes = Field('flux'), Field('phot')

I, as a client, find Cube instance no. 1 and want to know 'what is this a cube of?'
To find this, I need to extract other annotations which contain the same Field reference

  • 'obs_time' is in "stc2:Coords" (indirectly) and "stc2:TimeCoordinate.location" (directly)
  • 'phot' is in "phot:PhotCal.value" (directly) and cube no. 2 "ndcube:dependent_axes" (directly)

Which leads me to conclude that this is either:

  1. Cube( Time, PhotCal )   
  2. Cube ( Time, Cube )

What I'd would expect to find is an unambiguous

  1. Cube( Time, Magnitude )

The only way I see to identify column 'phot' as a Magnitude from the annotation, is from the PhotCal.magnitudeSystem attribute having a value. That makes it a VERY important attribute!
There is the UCD on the Field, but unless it is part of your annotation scheme that it must exist.. one can't rely on that being there to help out.

@msdemlei
Copy link
Contributor Author

msdemlei commented Feb 26, 2021 via email

@mcdittmar
Copy link
Collaborator

mcdittmar commented Feb 26, 2021 via email

@msdemlei
Copy link
Contributor Author

msdemlei commented Mar 1, 2021 via email

lmichel pushed a commit that referenced this pull request Mar 1, 2021
@mcdittmar
Copy link
Collaborator

mcdittmar commented Mar 1, 2021 via email

@msdemlei
Copy link
Contributor Author

msdemlei commented Mar 4, 2021 via email

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