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

SODA spec doesn't tell us how to provide dataproduct_type transformation #7

Open
Bonnarel opened this issue May 13, 2020 · 1 comment

Comments

@Bonnarel
Copy link
Collaborator

Bonnarel commented May 13, 2020

First implementations already provide various flavours of cutouts from cubes. Some cutout interface can extract subcubes from a large cube. Some others could create spectra or images (dimension reduction). An idea could be to use the DPTYPE parameter designed for SIAP2 to force this product_type conversion.
This has been discussed for TimeSeries there: http://www.ivoa.net/documents/Notes/TimeSeriesDiscoveryAndAccess/index.html

@Bonnarel Bonnarel changed the title SODA doesn't say how to provide dataproduct_type transformation SODA spec doesn't tell us how to provide dataproduct_type transformation May 13, 2020
@Bonnarel
Copy link
Collaborator Author

This point was discussed a little but during DAL running meeting on Feb 24th 2021. Pat said we had to decide if when we want to extract a spectrum from a cube we are rebinning or not (that is only extracting a spectrum at a given position .
I thougt a little bit about this. I think we can combine DPTYPE, SPATRES and POS (or POLYGON or CIRCLE) to fix that
if DPTYPE is "spectrum" and SPATRES encompass the POS region we will rebin and have only one spectrum. If it is smaller (down to the pixel size) then the result is several spectra. The way we package several spectra would be provided by FORMAT

Examples : if we have a spectral cube
POS= CIRCLE lon lat rad(deg)
BAND = min max
DPTYPE= cube
is a subcube

POS=CIRCLE lon lat rad(deg)
SPATRES = rad(arcsec)
BAND = min max
DPTYPE = spectrum
FORMAT = FITS
is a FITS spectrum summing up for each selected spectral channel the fluxes inside the CIRCLE

POS=CIRCLE lon lat rad(deg)
SPATRES = rad1(pixels sizearcsec)
BAND = min max
DPTYPE = spectrum
FORMAT = tar, VOTABLE
is a set of spectra for each pixel in the selected area formatted in VOTABLE poackeged with tar.

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

No branches or pull requests

1 participant