STILTS?=stilts # VOTables are the results of remote queries, so don't wantonly throw # them away .PRECIOUS: %.vot # in this particular application, it helps to have this global HEALPIX_ORDER=6 # A macro that contains common stuff for stilts TAP query -- essentially, # just add adql= TAPQUERY=$(STILTS) tapquery \ tapurl='http://dc.g-vo.org/tap' \ maxrec=200000000 \ omode=out \ out=$@ \ ofmt=vot \ executionduration=14400 # A sample plot macro. Here, we do a healpix plot of some order. Also # add value_1= HEALPIXPLOT=$(STILTS) plot2sky \ auxmap=inferno \ auxlabel='$*'\ auxvisible=true \ legend=false \ omode=out \ out=$@ \ projection=aitoff \ sex=false \ layer_1=healpix \ datalevel_1=$(HEALPIX_ORDER) \ datasys_1=equatorial \ viewsys_1=equatorial \ degrade_1=0 \ transparency_1=0 \ healpix_1=hpx \ in_1=$< \ ifmt_1=votable \ istream_1=true \ # healpix plots from VOTables; these will plot obs %.png: %.vot $(HEALPIXPLOT) \ value_1=obs \ ofmt=png \ xpix=600 ypix=380 %.pdf: %.vot $(HEALPIXPLOT) \ value_1=obs \ ofmt=pdf # turn SQL statements into VOTables using TAP %.vot: %.sql $(TAPQUERY) \ adql="`cat $<`"