diff --git a/lib/fits.js b/lib/fits.js index 495de97..a2171fe 100644 --- a/lib/fits.js +++ b/lib/fits.js @@ -393,7 +393,7 @@ var args, value; args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; value = arguments[0]; - if (!(this.get("BIXPIX") > 0)) { + if (!(this.get("BITPIX") > 0)) { console.warn("BLANK is not to be used for BITPIX = " + (this.get('BITPIX'))); } return parseInt(value); diff --git a/package.json b/package.json index f9428c3..59a78ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fits", - "version": "0.6.5", + "version": "0.6.6", "author": "Amit Kapadia ", "description": "Library for reading the FITS astronomical file format", "repository": { diff --git a/src/header.verify.coffee b/src/header.verify.coffee index 84d2160..c0259ad 100644 --- a/src/header.verify.coffee +++ b/src/header.verify.coffee @@ -86,7 +86,7 @@ HeaderVerify = BLANK: (args...) -> value = arguments[0] - console.warn "BLANK is not to be used for BITPIX = #{@get('BITPIX')}" unless @get("BIXPIX") > 0 + console.warn "BLANK is not to be used for BITPIX = #{@get('BITPIX')}" unless @get("BITPIX") > 0 return parseInt(value) DATAMIN: (args...) ->