Skip to content

Commit

Permalink
0.30-2 (devel.3): WCSAXES=3 for AbstractMap2D1.
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Sep 6, 2019
1 parent 9ce7ccf commit 90b2f6e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/jnum/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public final class Util {

public final static String version = "0.30-2";

public final static String revision = "devel.2";
public final static String revision = "devel.3";

public final static String copyright = "(c)2019 Attila Kovacs";

Expand Down
2 changes: 1 addition & 1 deletion src/jnum/astro/PrecessingCoordinates.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public void parseDirect(StringParser parser) throws IllegalArgumentException {
// If the parsing does not provide a specific epoch, then assume that the user knows what they're
// doing and set the epoch of this object to the desired value prior to parsing...
// Thus, preserve the original epoch...
if(epoch == null) epoch = origEpoch;
if(epoch == null) epoch = origEpoch == null ? CoordinateEpoch.J2000 : origEpoch;
}


Expand Down
2 changes: 2 additions & 0 deletions src/jnum/data/cube2/AbstractMap2D1.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import jnum.math.Vector2D;
import jnum.math.Vector3D;
import nom.tam.fits.Header;
import nom.tam.fits.HeaderCard;
import nom.tam.fits.HeaderCardException;


Expand Down Expand Up @@ -285,6 +286,7 @@ protected void editHeader(Header header) throws HeaderCardException {
MapType representative = sizeZ() > 0 ? getPlane(0) : getPlaneTemplate();
representative.editHeader(header);
super.editHeader(header);
header.addLine(new HeaderCard("WCSAXES", 3, "Number of WCS coordinate axes."));
}

}
2 changes: 1 addition & 1 deletion src/jnum/text/AngleFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public Number parse(String source, ParsePosition pos, int formatStyle) throws Nu
if(angle < 0.0) throw new NumberFormatException("Unexpected extra negative sign.");
pos.setIndex(to + 1);
}
// Sub-level parse error assume complete...
// Sub-level parse error: assume complete...
else {
try {
double x = Double.parseDouble(source.substring(pos.getIndex(), to)) * getUnit(level);
Expand Down

0 comments on commit 90b2f6e

Please sign in to comment.