Skip to content

Commit

Permalink
frog: fix for multiple versions of nom.tam.fits
Browse files Browse the repository at this point in the history
Make necessary changes to FROG classes to build with recent
versions of nom.tam.fits as well as starjava version.

This includes removing some functionality (logging HDU content
on save).  It wouldn't be too hard to bring it back, but since
frog is as far as I know moribund, it doesn't seem worth the effort.
  • Loading branch information
mbtaylor committed Nov 10, 2017
1 parent c5066e7 commit c072d3b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions frog/src/main/uk/ac/starlink/frog/data/FITSTimeSeriesImpl.java
Expand Up @@ -227,7 +227,7 @@ public String getProperty( String key )
if ( getFitsHeaders() != null ) {
String scard = getFitsHeaders().findKey( key );
if ( scard != null ) {
HeaderCard card = new HeaderCard( scard );
HeaderCard card = HeaderCard.create( scard );
if ( card != null ) {
return card.getValue();
}
Expand Down Expand Up @@ -355,7 +355,8 @@ protected void saveToFile()
fitsref.addHDU(primary);

debugManager.print( "\nPrimary HDU\n-----------");
primary.info();
// primary.info(); // method unavailable in later nom.tam.fits
System.out.println( "[info not available]" );


// BINARY TABLE
Expand Down Expand Up @@ -387,7 +388,8 @@ protected void saveToFile()

debugManager.print( "\nHDU\n---");
debugManager.print( "hdu.isHeader() = " + hdu.isHeader() + "\n");
hdu.info();
// hdu.info(); // method unavailable in later nom.tam.fits
System.out.println( "[info not available]" );

// Add existing header cards
Cursor hiter = getStandardIterator( primaryHeader );
Expand Down Expand Up @@ -474,7 +476,7 @@ protected void getDataCopy() throws FitsException
double bzero = hdurefs[hdunum].getBZero();

// Get the BLANK value, note if none present.
int blank = 0;
long blank = 0;
boolean haveblank = true;

try {
Expand Down

0 comments on commit c072d3b

Please sign in to comment.