sciserver / SkyServerWS

SkyServer Web Services
1 stars 3 forks source link

Problem with choosing either (ra,dec) or (l,b) in IR spec query #11

Closed mtaghiza closed 8 years ago

mtaghiza commented 9 years ago

Test s_irspectraquery_4: It tells to test proper Lcenter,Bcenter and LBradius values and check the returned json table. The URL is this one:

http://scitest02.pha.jhu.edu/SkyserverWS/dr12/IRSpectraQuery/ConeIR?limit=50&format=json&irspecparams=typical&ra=271.75&dec=-20.19&radius=5.0&Lcenter=10&Bcenter=0.2&lbRadius=5.0&jMin=&hMin=&kMin=&jMax=&hMax=&kMax=&jhMin=&hkMin=&jhMax=&hkMax=&snrMin=&vhelioMin=&scatterMin=&snrMax=&vhelioMax=&scatterMax=&tempMin=&loggMin=&fehMin=&afeMin=&tempMax=&loggMax=&fehMax=&afeMax=&irTargetFlagsOnList=ignore&irTargetFlagsOffList=ignore&irTargetFlags2OnList=ignore&irTargetFlags2OffList=ignore

The problem is that if you change Lcenter or Bcenter, the table doesn't change. Seems that the service is is only taking into account the ra,dec values.

mtaghiza commented 9 years ago

No worries. What's missing is the positionType keyword. A missing keyword means that only the positionType = 'cone' is considered (since 'cone' is the default) and only RA,DEC coordinates are used. If we want to use the galactic L,B corrdinates instead, we have to specify positionType = 'conelb'. Ready to close.

mtaghiza commented 8 years ago

Working. tested in version 1.8.1. Closing...