MocServer / Examples v5.09 - Oct 2023
Form & Doc   Examples   Browser   Lint   Admin

MOC Server tool for retrieving as fast as possible the list of astronomical data sets (35563 catalogs, surveys, ... harvested from CDS and VO servers) having at least one observation in a specifical sky region/and or time range. The default result is an ID list. MOC Server is based on Multi-Order Coverage maps (MOC) described in the IVOA REC. standard.

Full manual is available in English and French.

This page provides a list of MocServer query examples


The examples below demonstrate some capabilities of the MocServer which is containing currently 35563 data sets descriptions (MOC and properties). The response times are generally a few dozens of milliseconds (without taking into account the network transfert and the browser parsing).
  1. Around M31 - IDs of all data sets in 5 deg around M31
    Returns the ID list of all data sets overlapping a circle of 10 degree diameter centered on M31
    http://.../MocServer/query?RA=10.67305&DEC=41.26875&SR=5

  2. In 2000 - IDs of all data sets in 2000
    Returns the ID list of all data sets having on observation during the year 2000
    http://.../MocServer/query?TIME=51544+51910

  3. Overlapping a STC polygon - IDs of all data sets overlapping a polygon
    http://.../MocServer/query?stc=Polygon+57.376+24.053+56.391+24.622+56.025+24.049+56.616+24.290

  4. Containing a STC polygon - IDs of all data sets fully containing a polygon
    Returns the ID list of all data sets which contains the area described by the STC polygon
    http://.../MocServer/query?stc=Polygon+312.39906+31.76699++312.66095+31.53000+312.64826+31.01805+312.45437+30.43480+312.32075+30.75116+312.28911+31.11123+312.21508+31.50335&intersect=enclosed

  5. HST data sets over SDSS - IDs of HST collections overlapping SDSS observations
    Returns the ID list of all data sets overlapping SDSS MOC (downloading by URL) and provides thosefor which their ID contains the substring "P/HST/"
    http://.../MocServer/query?ID=*P/HST/*&url=http%3A%2F%2Falasky.unistra.fr%2FSDSS%2FDR9%2Fcolor%2FMoc.fits

  6. Overlapping an STMOC - IDs of all data sets overlapping an inline STMOC
    Returns the ID list of all data sets overlapping the inline MOC t16/6020-6022 s3/128 4/345-510
    http://.../MocServer/query?moc=t16%2F6020-6022+s3%2F128+4%2F345-510

  7. SCUBA2 spatial coverage - Spatial MOC of SCUBA2 observations
    Provides the spatial MOC of the SCUBA2 850em observations. The MOC is provided in FITS format. For displaying the result, clic and drag this URL in Aladin Desktop.
    http://.../MocServer/query?ID=CDS/P/SCUBA2/850em&get=smoc

  8. GALEX & HERSCHEL spatial union - Spatial MOC of the GALEX and HERSCHEL coverage
    Provides the union of spatial MOCs of GALEX-NUV and HERSCHEL-PACS observations
    http://.../MocServer/query?ID=CDS/P/GALEXGR6/AIS/NUV,ESAVO/P/HERSCHEL/PACS-color&get=smoc

  9. A&AS spatial coverage - Spatial MOC of all A&AS tables
    Provides the union of spatial MOCs of all tables published in A&AS. The resulting MOC is provided in JSON format (not IVOA standard)
    http://.../MocServer/query?ID=CDS/J/A%2BAS/*&get=smoc&fmt=json

  10. AJ temporal coverage - Temporal MOC of all Aj tables
    Provides the union of temporal MOCs all all tables published in AJ.
    http://.../MocServer/query?ID=CDS/J/AJ*&get=tmoc

  11. SDSS & GALEX spatial intersection - Spatial MOC of the intersection of SDSS coverage and GALEX coverage
    Provides the spatio-temporal MOC of the LAMOST DR4 observations. This STMOC is provided in FITS format
    http://.../MocServer/query?ID=*SDSS9/g,*GR6/AIS/FUV&get=smoc&op=intersection

  12. Spatio-temporal coverage of LAMOST - Spatio-temporal MOC of the LAMOST DR4 observations
    Provides the spatio-temporal MOC of all coincidental observations in time and space of LAMOST & ALMA calibrator cat observations
    http://.../MocServer/query?ID=CDS/V/153/dr4&get=stmoc

  13. LAMOST & ALMA calibrator cat co-coincidental coverage - Spatio-temporal MOC of the LAMOST & ALMA calibrator cat coincidental observations
    Return the ID list of all resources having coincidental observations with SDSS DR9 quasar catalog
    http://.../MocServer/query?ID=CDS/V/153/dr4,CDS/J/MNRAS/485/1188/acccat&get=stmocc&op=intersection

  14. IDs of STMOC intersection - IDs of STMOC intersection with SDSS DR9 quasar catalog
    http://.../MocServer/query?ID=moc_type=stmoc&moc_time_range=>1&url=http%3A%2F%2Falasky.u-strasbg.fr%2FMocServer%2Fquery%3FID%3DCDS%2FVII%2F269%2Fdr9q%26get%3Dstmoc

  15. xcatdb properties - Properties of all data sets provides by xcatdb
    http://.../MocServer/query?ID=xcatdb*&get=record

  16. CDS HiPS pixel data sets - IDs of all CDS HiPS pixel data sets
    Returns the ID list of all HiPS pixel data sets generated by CDS
    http://.../MocServer/query?CDS/P/*

  17. Radio data sets - IDs of all Radio data sets
    Returns the ID list of all data sets having an "obs_regime" or a "client_category" property containing the "Radio" word
    http://.../MocServer/query?obs_regime,client_category=*Radio*

  18. NASA related records - Properties of all NASA related data sets
    Returns the properties of all data sets having at least one field containing the "NASA" word
    http://.../MocServer/query?*=*NASA*&casesensitive=false&get=record

  19. NASA counter - Number of records NASA related
    Returns the number of records having at least one field containing the "NASA" word
    http://.../MocServer/query?*=*NASA*&casesensitive=false&get=number

  20. Seyfert location - MOC of all Seyfert data set
    Provides the union of MOCs of all data sets having an "obs_astronomy_kw" property starting with "Seyfert"
    http://.../MocServer/query?obs_astronomy_kw=Seyfert*&get=moc

  21. OIII & velocity in HST coverage - IDs of all data sets with OIII & velocity measurements overlapping HST observations
    Provides the ID list of all data sets with OIII & velocity measurements, and overlapping the MOC union of all HST observations. In this example, the MocServer is used twice: one time for providing the HST MOC, and a second time for comparing it with the other data sets.
    http://.../MocServer/query?data_ucd=*em.line.OIII*&data_ucd=*spect.dopplerVeloc*&url=http%3A%2F%2Falasky.unistra.fr%2FMocServer%2Fquery%3Fget%3Dmoc%26ID%3D*%2FP%2FHST%2F*

  22. Coverage of OIII & velocity in HST - MOC of all data sets with OIII & velocity measurements overlapping HST observations
    Same request but for retrieving resulting MOC rather than IDs.
    http://.../MocServer/query?get=moc&data_ucd=*em.line.OIII*&data_ucd=*spect.dopplerVeloc*&url=http%3A%2F%2Falasky.unistra.fr%2FMocServer%2Fquery%3Fget%3Dmoc%26ID%3D*%2FP%2FHST%2F*

  23. Extended catalogs - Description of all tables covering more than an half of the sky
    Provides some properties (ID, description, sky fraction) of all tables covering an half sky or more.The output format is JSON.
    http://.../MocServer/query?moc_sky_fraction=>0.5&ID=!*/P/*&fields=obs_id,obs_title,moc_sky_fraction&fmt=json

  24. Copyright filtering - Advanced record filtering based on field names with wildcards
    Provides the records for which one copyright fields contains the word NASA or ESA, and a field contains the word DSS
    http://.../MocServer/query?*copyright*=*NASA*,*ESA*&*=*DSS*&get=record

  25. URL filtering - HiPS URLs search
    Provides the records of HiPS distributed simultaneously by saada and alasky http server
    http://.../MocServer/query?hips_service_url*=http://saada*&hips_service_url*=http://alasky.*&get=record

  26. HiPS colored surveys - HiPS colored surveys access
    Provides the list of available HiPS colored surveys (ID & base URL) in JSON format
    http://.../MocServer/query?hips_service_url=*&dataproduct_subtype=color&fields=*id,hips_service_url&fmt=json

  27. HiPS DSS colored - DSS colored HiPS mirror sites
    Provides the list of sites publishing the HiPS DSS colored
    http://.../MocServer/query?ID=CDS/P/DSS2/color&fields=hips_service_url*

  28. HiPS Gaia resources - Full set algebrica language filtering
    Provides the ID list of HiPS Gaia data sets except simulations thanks to this expression: ((obs_*=*gaia* || ID=*gaia*) && hips_service_url=*) &! obs_*=*simu*
    http://.../MocServer/query?expr=%28%28obs_*%3D*gaia*+%7C%7C+ID%3D*gaia*%29+%26%26+hips_service_url%3D*%29+%26%21+obs_*%3D*simu*%26casesensitive%3Dfalse