Package net.ivoa.fits

Examples of net.ivoa.fits.Header


   * @exception FitsException
   *                if the object does not contain valid image data.
   */
  public static Header manufactureHeader(Data d) throws FitsException {

    Header h = new Header();
    d.fillHeader(h);

    return h;
  }
View Full Code Here


  public static Header manufactureHeader(Data d) throws FitsException {

    if (d == null) {
      throw new FitsException("Attempt to create null Random Groups data");
    }
    Header h = new Header();
    d.fillHeader(h);
    return h;

  }
View Full Code Here

    if (d == null) {
      return null;
    }

    Header h = new Header();
    d.fillHeader(h);

    return h;
  }
View Full Code Here

    try {
      ImageTiler tiler = getTiler();
      Object tile = tiler.getTile(offset, size);
      ret = new ImageHDU(this.getHeader(), new ImageData(tile));

      Header retHeader = ret.getHeader();
      for (int i = 0; i < offset.length; i++) {
        retHeader.addValue(Header.NAXIS + (i + 1), size[i], "Axis "
            + (i + 1) + " size");
        double crpix = retHeader.getDoubleValue(CRPIX + (i + 1),
            Double.NaN);
        if (!Double.isNaN(crpix)) {
          retHeader.addValue(CRPIX + (i + 1), crpix - offset[i],
              "WCS reference point coordinate");
        }
      }
    } catch (IOException ioex) {
      throw new FitsException(ioex.toString());
View Full Code Here

   *            the array used to build the binary table.
   * @exception FitsException
   *                if there was a problem with the data.
   */
  public static Header manufactureHeader(Data data) throws FitsException {
    Header hdr = new Header();
    data.fillHeader(hdr);
    return hdr;
  }
View Full Code Here

  public Data manufactureData() throws FitsException {
    return manufactureData(myHeader);
  }

  public static Header manufactureHeader(Data d) throws FitsException {
    Header hdr = new Header();
    d.fillHeader(hdr);
    Iterator iter = hdr.iterator();
    return hdr;
  }
View Full Code Here

TOP

Related Classes of net.ivoa.fits.Header

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.