|
Astro::DSS - Object definining a query request in the Digital Sky Survey |
Astro::DSS - Object definining a query request in the Digital Sky Survey
$dss = new Astro::DSS( RA => $ra,
Dec => $dec,
Target => $object_name,
Equinox => $equinox,
Xsize => $x_arcmin,
Ysize => $y_arcmin,
Survey => $dss_survey,
Format => $type );
my $file_name = $dss->querydb();
Stores information about an prospective DSS query and allows the query to be made, returning a filename pointing to the file returned.
The object will by default pick up the proxy information from the HTTP_PROXY and NO_PROXY environment variables, see the LWP::UserAgent documentation for details.
It will save returned files into the ESTAR_DATA directory or to TMP if the ESTAR_DATA environment variable is not defined.
$Id: DSS.pm,v 1.6 2002/01/24 22:16:00 aa Exp $
$dss = new Astro::DSS( RA => $ra,
Dec => $dec,
Target => $object_name,
Equinox => $equinox,
Xsize => $x_arcmin,
Ysize => $y_arcmin,
Survey => $dss_survey,
Format => $image_type );
returns a reference to an DSS query object.
$filename = $dss->querydb();
$query->proxy( 'http://wwwcache.ex.ac.uk:8080/' ); $proxy_url = $query->proxy();
$dss->timeout( 30 ); $proxy_timeout = $dss->timeout();
$url = $dss->url(); $query->url( "archive.eso.org" );
if not defined the default URL is archive.eso.org
$agent_tag = $dss->agent();
$ra = $dss->ra(); $dss->ra( $ra );
where $ra should be a string of the form ``HH MM SS.SS'', e.g. 21 42 42.66
$dec = $dss->dec(); $dss->dec( $dec );
where $dec should be a string of the form ``+-HH MM SS.SS'', e.g. +43 35 09.5 or -40 25 67.89
$equinox = $dss->equinox(); $dss->equinox( "2000" );
defaults to 2000.
$ident = $dss->target(); $dss->target( "HT Cas" );
using an object name will override the current R.A. and Dec settings for the
Query object (if currently set) and the next querydb() method call will query
DSS using this identifier rather than any currently set co-ordinates.
$xsize = $dss->xsize(); $dss->xsize( 20 );
Image sizes for FITS, gzipped FITS and GIF are 260kB, 110kB and 70 kB respectively for a field of 10*10 arc minutes. There's a limit of around 4 MB for the largest image to be delivered. Images from the DSS2 are bigger, because the pixel size is smaller.
$xsize = $dss->ysize(); $dss->ysize( 20 );
Image sizes for FITS, gzipped FITS and GIF are 260kB, 110kB and 70 kB respectively for a field of 10*10 arc minutes. There's a limit of around 4 MB for the largest image to be delivered. Images from the DSS2 are bigger, because the pixel size is smaller.
$survey = $dss->survey(); $dss->survey( "DSS1" );
valid choices are DSS1, DSS2-red, DSS2-blue, DSS2-infrared. The entire DSS1 data is stored on magnetic disks at the ESO-ECF Archive. DSS2 is stored on DVD-ROM in a juke box. Retrieval time takes about less than 5 seconds for a DSS1 field and less than 20 seconds for a random DSS2 field in the juke box.
The DSS1 survey is 100% complete, while the DSS2-red now covers 98% of the sky; DSS2-blue 45% of the sky and DSS2-infrared 27% of the sky.
$format = $dss->format(); $dss->format( "FITS" );
valid format types are FITS and GIF and FITS.gz. The default is to return a GIF Image.
$dss->configure( %options );
Does nothing if the array is not supplied.
Copyright (C) 2001 University of Exeter. All Rights Reserved.
This program was written as part of the eSTAR project and is free software; you can redistribute it and/or modify it under the terms of the GNU Public License.
Alasdair Allan <aa@astro.ex.ac.uk>,
|
Astro::DSS - Object definining a query request in the Digital Sky Survey |