@@ -0,0 +1,2301 @@
+package org.helioviewer.gl3d.plugin.pfss.data;%0A%0Aimport java.io.File;%0Aimport java.io.FileInputStream;%0Aimport java.io.FileNotFoundException;%0Aimport java.text.ParseException;%0Aimport java.text.SimpleDateFormat;%0Aimport java.util.Date;%0Aimport java.util.TimeZone;%0A%0Aimport nom.tam.fits.BasicHDU;%0Aimport nom.tam.fits.BinaryTableHDU;%0Aimport nom.tam.fits.Fits;%0Aimport nom.tam.fits.FitsException;%0Aimport nom.tam.fits.Header;%0A%0Apublic class TestOpenFits %7B%0A    public static void main(String%5B%5D args) %7B%0A        FileInputStream is;%0A        try %7B%0A            is = new FileInputStream(new File(%22/Users/freekv/swhv/build/data/pfss/testfile.fits%22));%0A%0A            Fits fits = new Fits(is, true);%0A            BasicHDU hdus%5B%5D = fits.read();%0A            BinaryTableHDU bhdu = (BinaryTableHDU) hdus%5B1%5D;%0A%0A            short%5B%5D fieldlinex = ((short%5B%5D) bhdu.getColumn(%22FIELDLINEx%22));%0A            for (int i = 0; i %3C fieldlinex.length; i++) %7B%0A                System.out.println(fieldlinex%5Bi%5D);%0A            %7D%0A%0A            Header header = bhdu.getHeader();%0A            String date = header.findKey(%22DATE-OBS%22);%0A            SimpleDateFormat dateFormat = new SimpleDateFormat(%22yyyy-MM-dd'T'HH:mm:ss%22);%0A            dateFormat.setTimeZone(TimeZone.getTimeZone(%22GMT%22));%0A            Date ddate = null;%0A            //ddate.UTC(year, month, date, hrs, min, sec)%0A            try %7B%0A                ddate = dateFormat.parse(date.substring(11, 30));%0A            %7D catch (ParseException e) %7B%0A                e.printStackTrace();%0A            %7D%0A            int year = Integer.parseInt(date.substring(11, 15));%0A            int month = Integer.parseInt(date.substring(16, 18));%0A            int day = Integer.parseInt(date.substring(19, 21));%0A            int hours = Integer.parseInt(date.substring(22, 24));%0A            int minutes = Integer.parseInt(date.substring(25, 27));%0A            int seconds = Integer.parseInt(date.substring(28, 30));%0A            System.out.println(ddate);%0A            System.out.println(year + %22 %22 + month + %22 %22 + day + %22T%22 + hours + %22 %22 + minutes + %22 %22 + seconds);%0A%0A        %7D catch (FileNotFoundException e) %7B%0A            // TODO Auto-generated catch block%0A            e.printStackTrace();%0A        %7D catch (FitsException e) %7B%0A            // TODO Auto-generated catch block%0A            e.printStackTrace();%0A        %7D%0A    %7D%0A%7D%0A

Test class for opening new fits file type