-
Notifications
You must be signed in to change notification settings - Fork 3
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
expand FITS sniffer to recognize spectra from lightcurves and images? #115
Comments
I started to work on this, but it's not clear how to define a general enough definition of lightcurve/spectrum. What we currently call "spectrum" in our tools is some representation of SED as a table and is loosely defined... As for lightcurves, there is no standard at all, it's very instrument-dependent, as far as I understand. Classifying as Image is more-or-less straightforward, if some extensions (not necessarily Primary one) is Image extension, we can say that it's a fits image. Basic implementation works for this case (currently locally, I will push soon). Also to note: tools can set metadata including type, so in some cases it may be enough to just add datatype with |
Additionally, it will be useful to extend metadata in some cases. One useful example is to extract column names from table(s) to automatically create options for "column name" tool inputs. |
There is an OGIP standard for LC, we use it during INTEGRAL LC export at least. When file has image and LC, it would seem like some form of union type is applicable. Does it exist in Galaxy? |
Thank you, I didn't know this document. Our tools don't follow it, though. E.g. HESS lightcureve is produced as a free-formatted table. Is gammapy able to produce lightcurves in stadard format? |
The other way around, one dataset that consists of several files exists, composite datatype. The one you propose is most likely for us to implement on top of FITS, I haven't seen anything like this. Not even sure how it can fit into galaxy datasets logic |
Don't know. Hopefully. Anyway they work on some data models, for DL5 too probably.
Indeed, let's do that. |
The principle would be that a dataset can be one of the few selected types, but not any types. It would allow linking to next stages accordingly. Maybe @bgruening knows? |
Galaxy datatypes do support subclassing or nesting. A datatype class in python can be inherited and Galaxy knows then the inheritance chain. Does this help? |
Thank you @bgruening for answering. I see that datatypes may be nested. So if our fits file contains only e.g. image, it may be assigned a FITSImage datatype etc. |
No description provided.
The text was updated successfully, but these errors were encountered: