Example #1
0
        /// <summary>Build a binary table HDU from the supplied data.</summary>
        /// <param name="table">the array used to build the binary table.</param>
        /// <exception cref=""> FitsException if there was a problem with the data.</exception>
        public static Header ManufactureHeader(Data data)
        {
            Header hdr = new Header();

            data.FillHeader(hdr);
            return(hdr);
        }
Example #2
0
        /// <summary>Create an HDU from the given Data.</summary>
        /// <param name="datum">The data to be described in this HDU.</param>
        public static BasicHDU MakeHDU(Data datum)
        {
            Header hdr = new Header();

            datum.FillHeader(hdr);
            return(FitsFactory.HDUFactory(hdr, datum));
        }
Example #3
0
        /// <summary>Create a  header that describes the given
        /// image data.
        /// </summary>
        /// <param name="o">The image to be described.
        /// </param>
        /// <exception cref=""> FitsException if the object does not contain
        /// valid image data.
        ///
        /// </exception>
        public static Header ManufactureHeader(Data d)
        {
            Header h = new Header();

            d.FillHeader(h);

            return(h);
        }
Example #4
0
        public static Header ManufactureHeader(Data d)
        {
            Header hdr = new Header();

            d.FillHeader(hdr);
            Cursor c = hdr.GetCursor();

            return(hdr);
        }
Example #5
0
        /// <summary>Make a header point to the given object.</summary>
        /// <param name="odata">The random groups data the header should describe.</param>
        internal static Header ManufactureHeader(Data d)
        {
            if (d == null)
            {
                throw new FitsException("Attempt to create null Random Groups data");
            }
            Header h = new Header();

            d.FillHeader(h);
            return(h);
        }
Example #6
0
        /// <summary>Create a  header that describes the given image data.</summary>
        /// <param name="o">The image to be described.</param>
        /// <exception cref=""> FitsException if the object does not contain valid image data.</exception>
        public static Header ManufactureHeader(Data d)
        {
            if (d == null)
            {
                return(null);
            }

            Header h = new Header();

            d.FillHeader(h);

            return(h);
        }
Example #7
0
 /// <summary>Create a header which points to the given data object.</summary>
 /// <param name="o">The data object to be described.</param>
 /// <exception cref="FitsException"> FitsException if the data was not valid for this header.</exception>
 public Header(Data o)
 {
     InitBlock();
     o.FillHeader(this);
 }
Example #8
0
 /// <summary>Make a header point to the given object.</summary>
 /// <param name="odata">The random groups data the header should describe.</param>
 internal static Header ManufactureHeader(Data d)
 {
     if (d == null)
     {
         throw new FitsException("Attempt to create null Random Groups data");
     }
     Header h = new Header();
     d.FillHeader(h);
     return h;
 }
Example #9
0
        /// <summary>Create a  header that describes the given
        /// image data.
        /// </summary>
        /// <param name="o">The image to be described.
        /// </param>
        /// <exception cref=""> FitsException if the object does not contain
        /// valid image data.
        /// 
        /// </exception>
        public static Header ManufactureHeader(Data d)
        {
            Header h = new Header();
            d.FillHeader(h);

            return h;
        }
Example #10
0
 /// <summary>Create a header to match the input data.</summary>
 public static Header ManufactureHeader(Data d)
 {
     Header hdr = new Header();
     d.FillHeader(hdr);
     Cursor c = hdr.GetCursor();
     return hdr;
 }
Example #11
0
 /// <summary>Create an HDU from the given Data.</summary>
 /// <param name="datum">The data to be described in this HDU.</param>
 public static BasicHDU MakeHDU(Data datum)
 {
     Header hdr = new Header();
     datum.FillHeader(hdr);
     return FitsFactory.HDUFactory(hdr, datum);
 }
 /// <summary>Build a binary table HDU from the supplied data.</summary>
 /// <param name="data">the array used to build the binary table.</param>
 /// <exception cref="FitsException"> If there was a problem with the data.</exception>
 public static Header ManufactureHeader(Data data)
 {
     Header hdr = new Header();
     data.FillHeader(hdr);
     return hdr;
 }
Example #13
0
        /// <summary>Create a  header that describes the given image data.</summary>
        /// <param name="o">The image to be described.</param>
        /// <exception cref=""> FitsException if the object does not contain valid image data.</exception>
        public static Header ManufactureHeader(Data d)
        {
            if (d == null)
            {
                return null;
            }

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

            return h;
        }