Package nom.tam.fits

Examples of nom.tam.fits.HeaderCard


        int numKeywords = header.getNumberOfCards();
        String[][] values = new String[numKeywords][3];
        Iterator it = header.iterator();
        int n = 0;
        while (it.hasNext()) {
            HeaderCard card = (HeaderCard) (it.next());
            String name = card.getKey();
            String value = card.getValue();
            String comment = card.getComment();
            values[n][0] = name;
            values[n][1] = value;
            values[n++][2] = comment;
        }
View Full Code Here


     * @param name a FITS keyword
     * @return the value for the given keyword, or null if not found.
     */
    public Object getKeywordValue(String name) {
        if (_header != null) {
            HeaderCard card = _header.findCard(name);
            if (card != null) {
                String s = card.getValue();
                if (s != null) {
                    return s;
                }
                return "";
            }
View Full Code Here

     *
     * @param name a FITS keyword
     * @return the comment string, or an empty string if not found.
     */
    public String getKeywordComment(String name) {
        HeaderCard card = _header.findCard(name);
        if (card != null) {
            String s = card.getComment();
            if (s != null) {
                return s;
            }
        }
        return "";
View Full Code Here

        int index = 0;
        int numKeywords = _header.getNumberOfCards();
        String[] names = new String[numKeywords];
        Iterator iter = _header.iterator();
        while (iter.hasNext()) {
            HeaderCard hc = (HeaderCard) iter.next();
            String key = hc.getKey();
            if (key == null) {
                key = "";
            }
            names[index++] = key;
        }
View Full Code Here

TOP

Related Classes of nom.tam.fits.HeaderCard

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.