2016-04-25T13:22:00
100
The Panchromatic High-Resolution Spectroscopic Survey of
Local Group Star Clusters PCSLG
Schönebeck, F.; Puzia, T. H.; Pasquali, A.;
Grebel, E.K.; Kissler-Patig, M.; Kuntschner, H.;
Lyubenova, M.; Perina, S.
This dataset contains spectroscopic observations of 29 globular clusters in
the Magellanic Clouds and the Milky Way performed with VLT/X-shooter over
eight full nights.
spectroscopy
globular-star-clusters
magellanic-clouds
milky-way-galaxy
2014A&A...572A..13S
Survey
VLT, European Southern Observatory, Chile
Optical
sdl
ssa_pubDID
//ssap#hcd
application/x-votable+xml;content=datalink
Datalink
1.96678e-19 6.40789e-19
57492 57492
6/12405,16647,19091,21017,28973,33321,33330,34242,37294,39642,48434
previews
"\schema.data"
\dlMetaURI{sdl}
'application/x-votable+xml;content=datalink'
\standardPreviewPath
"image/png"
float(@CRVAL1)
float(@CRPIX1)
float(@CDELT1)
int(@NAXIS1)
(@specVal+(1-@specPix)*@specDel)*1e-10
(@specVal+(@specLen-@specPix)*@specDel)*1e-10
decs, ras = [], []
for key in vars:
if re.match("DEC[0-9]", key):
decs.append(vars[key])
if re.match("RA[0-9]", key):
ras.append(vars[key])
decSize = max(decs)-min(decs)
raSize = (max(ras)-min(ras))*math.cos(@DEC*DEG)
@aperture = max(raSize, decSize)/2.
"PCSLG "+@OBJECT
\standardPubDID
@OBJECT
@RA
@DEC
@DATE
"IR, Optical, UV"
"GlCl"
"IR, Optical, UV"
@DATE
@specLen
@specMax-@specMin
@specMax
@specMin
(@specMax+@specMin)/2.
@aperture
from gavo.protocols import products
from gavo.utils import pyfits
from gavo.utils import fitstools
fitsPath = os.path.join(base.getConfig("inputsdir"),
self.sourceToken["accref"])
hdus = pyfits.open(fitsPath)
hdr = hdus[0].header
ax = fitstools.WCSAxis.fromHeader(hdr, 1)
for spec, (flux, error) in enumerate(zip(hdus[0].data, hdus[1].data)):
yield {"spectral": ax.pix0ToPhys(spec), "flux": flux,
"error": error}
hdus.close()
PCSLG Datalink Service
data
class PCSLGDescriptor(ssap.SSADescriptor):
suppressAutoLinks = True
def __init__(self, *args, **kwargs):
kwargs["accessPath"] = os.path.join(
base.getConfig("inputsDir"), kwargs["accref"])
ssap.SSADescriptor.__init__(self, *args, **kwargs)
"\rdId#data"
PCSLGDescriptor
yield descriptor.makeLinkFromFile(
os.path.join(base.getConfig("inputsDir"), descriptor.accref),
description="Original data (as FITS arrays)",
contentType="image/fits")
if descriptor.pubDID:
yield descriptor.makeLink(
self.parent.getURL("dlget"
)+"?ID=%s"%urllib.parse.quote(descriptor.pubDID),
description="The full dataset as an SDM VOTable",
contentLength=2000000,
contentType="application/x-votable+xml",
contentQualifier="#spectrum")
from gavo.protocols import products
yield descriptor.makeLink(
products.makeProductLink(
products.RAccref(descriptor.accref, inputDict={"preview": True})),
description="A preview for the spectrum",
contentType="image/png",
contentLength=1000)
"\rdId#build_sdm_data"
PCSLG Web
PCSLG Web Interface
\internallink{pcslg/q/ssa/info}
accref, mime, ssa_targname,
ssa_aperture, ssa_dateObs
PCSLG SSAP
pointed
MAXREC=1
archival
query
auto
ssa/ssap.xml
rows = self.getVOTableRows()
self.assertEqual(len(rows), 1)
self.assertEqual(rows[0]['accsize'], 1128960)
self.assertEqual(rows[0]['ssa_dstitle'], 'PCSLG NGC1904')
/getproduct/pcslg/data/NGC1904.fits
self.assertHasStrings("PNG", "0PLTE", "66666666666666666")