Class XMLSurvey

    • Constructor Detail

      • XMLSurvey

        public XMLSurvey​(String file)
        Create a survey whose characteristics are given in an XML file.
    • Method Detail

      • getName

        public String getName()
        Get the name of the compontent
        Specified by:
        getName in interface Component
      • getImages

        public Image[] getImages​(Position pos,
                                 double size,
                                 double scale)
                          throws Exception
        Find candidate images from this survey.
        Specified by:
        getImages in interface Survey
        Parameters:
        pos - A position object.
        size - The size (in radians) over which we should look for candidates.
        Throws:
        Exception
      • updateHeader

        public void updateHeader​(nom.tam.fits.Header h)
        Update a FITS header with information from the XML file
        Specified by:
        updateHeader in interface Survey
      • getMetadata

        public Map<String,​String> getMetadata()
        Get the metadata for the survey
      • updateSettings

        public void updateSettings()
        Update the system settings
        Specified by:
        updateSettings in interface Survey
      • getSurveyReader

        public static Reader getSurveyReader​(String file)
                                      throws IOException
        Get a buffered reader associated with the survey given a string name. If the name includes a ? it is assumed that the stream should be filtered.
        Throws:
        IOException