Reference document for LSST data products:
General comments about URI structure
General information about output:
Unclassified:
Open questions, comments, concerns:
Related pages/ticket(s):
# | API | Full Description | Optional Parameters | Returned JSON structure | Examples of Returned Result | |
---|---|---|---|---|---|---|
GET / | List services. | Array of strings | ["db", "image", "meta"] | |||
Metadata Service (metaserv ) API | ||||||
M1 | GET /meta | List API versions for "meta". | Array of strings | ["v0", "v1"] | ||
M2 | GET /meta/v0 | List types served for v0 of "meta" API. | Array of strings |
| ||
M3 | GET /meta/v0/db | List levels of databases. | Array of strings | ["dc", "L1", "L2", "L3", "dev"] | ||
M4 | GET /meta/v0/db/L1?containing=%Stripe82% | List databases available for a given level, containing substring "Stripe82" |
| Array of strings | for L1: ["live", "userDB"] for L2: ["DR1", "DR2"] for L3: ["joe_myDb", "bill_test1", "mike_scratch56"] | |
M5 | GET /meta/v0/db/L3/joe_myDb | Retrieve information about L3 database "joe_myDb" | Array containing 2 dictionaries. Keys for 1st:
Keys for 2nd:
| [{"name":"joe_myDb", "owner": "joe", host: "lsst10", "port": "3360"}, {}] | ||
M6 | GET /meta/v0/db/L2/DC_W13_Stripe82/tables | List tables for L2 database "DC_W13_Stripe82" |
| Array of strings | Example of results (truncated for formatting)
| |
M7 | GET /meta/v0/db/L3/joe_myDb/tables/Object | Retrieve information about table "Object" in L3 database "joe_myDb" | Array of two dictionariers. Keys for 1st:
Keys for 2nd:
| [{"name": "Object", "descr": "this is my object table"}, {}] | ||
M8 | GET /meta/v0/db/L2/DC_W13_Stripe82/tables/Science_Ccd_Exposure/schema | Retrieve schema for table "Object" in database "Science_Ccd_Exposure". | String containing output from "SHOW CREATE TABLE" | Truncated for formatting:
| ||
M9 | GET /meta/v0/image | List levels of images. | Array of strings | ["DC", "L1", "L2", "L3", "dev"] | ||
M10 | GET /meta/v0/image/L1 | List image collections available in a given <level> | Array of strings | ["DR1", "DR2", "ktl/test20150202"] | ||
M11 | GET/meta/v0/image/L2/DR1 | List image kinds available in a given collection | Array of strings | ["raw", "fpCoadd", "deepCoadd", "diffIm", "template", "calExp"] | ||
M12 | GET /meta/v0/image/L2/DR1/coadd?start=200&count=100 | List coadd images (200-300) for L2 DR1 |
| Array of strings | ["url/of/im1", "url/of/im2"] | |
M13 | GET /meta/v0/image/L2/DR1/coadd/12345 | Retrieve information about a coadd image identified by imageId = 12345 | Dictionary. Keys:
| {"url": "url/of/img", "owner": "tom"} | ||
Database Query (dbserv ) API | ||||||
DB1 | GET /db/v0/tap | <Nothing> | ||||
DB2 | POST** /db/v0/tap/sync?query=SELECT+id,ra,decl+ FROM+myDb.Object+WHERE+flux=3.2 | Run a given query on L2 DR1 database |
| 2 rows from "select deepForcedSourceId,scienceCcdExposureId" would look like:
| ||
DB3 | tbd, see | Retrieve query type for a given query | ||||
Image Query (imgserv ) API (see also Image Service and Image Cutout Details) | ||||||
I1 | GET /image/v0/ | <nothing> | ||||
I2 | GET /image/v0/654/explain | Return cost estimate of asynchronous query identified by a resourceId (returned through "POST /image/...") | String (for now) | TBD | ||
I3 | GET /image/v0/654/status | Retrieve status of asynchronous request identified by a given resourceId (returned through "POST /image/...") | Dictionary. Keys:
| [{"status": "running", "startTime: "2015/05/14 016:43:21", "progress": "34%"}] | ||
I4 | GET /image/v0/654/results | Retrieve results of asynchronous request identified by a given resourceId (returned through "POST /image/...") | Array of strings | ["/nfs/lsst/L3/jack/scratch/img1", "/nfs/lsst/L3/jack/scratch/img2", "/nfs/lsst/L3/jack/scratch/img3"] | ||
I5 | GET** /image/v0/L2/DR7/coadd | Retrieve all coadd images for L2 DR7 |
| Array of strings | ["/nfs/lsst/L2/coadds/coad001", "/nfs/lsst/L2/coadds/coad002", "/nfs/lsst/L2/coadds/coad003", "/nfs/lsst/L2/coadds/coad004"] | |
I6 | GET** /image/v0/L2/DR1/coadd/12345?plane=mask | Retrieve "mask" plane of a full "coadd" image from L2 DR1, identified by imageId = 12345 |
| Image | ||
I7 | GET /image/v0/L2/DR1/coadd/12345?plane=data GET /image/v0/L2/DR1/coadd/12345?plane=mask | Retrieve a multi-extension FITS file containing coadd identified by imageId = 12345, and the corresponding mask. |
| Image | ||
I8 | GET** /image/v0/L2/DR1/coadd/12345/cutout?x=1&y=2&width=30&height=30 | Retrieve a cutout of a "coadd" image identified by imageId = 12345. The cutout area: 30x30 pixels centered around (1,2) |
| Image | ||
I9 | GET** /image/v0/L2/DR1/calexp/12345/cutout?x1=1&y1=1&x2=2&y2=2 | Retrieve a cutout of an image identified by imageId. Corners of the cutout: (1,1), (2,2) |
| Image | ||
I10 | GET** /image/v0/L2/DR1/calexp/12345/cutout?plane=data&ra=1&dec=1&deltaRa=2&deltaDec=2 | Retrieve "data" plane of a cutout of an image identified by imageId centered around (ra,dec) = (1,1) with a box size 2x2 arcmin. |
| Image | ||
I11 | GET /image/v0/L2/DR1/calexp/12345/cutout?ra=1&dec=1&widthAng=10&heightAng=10 | Retrieve a cutout of a "calexp" image identified by imageid=12345. The heightAng and widthAng are in arc seconds. |
| Image | ||
I12 | GET /image/v0/L2/DR1/calexp/12345/cutout?ra=1&dec=1&widthPix=30&heightPix=30 | Retrieve a cutout of a "calexp" image identified by imageid=12345. The heightPix and widthPix are in pixels. |
| Image |