aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xastro/oskar/fits2skymodel.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/astro/oskar/fits2skymodel.py b/astro/oskar/fits2skymodel.py
index 3044487..e280705 100755
--- a/astro/oskar/fits2skymodel.py
+++ b/astro/oskar/fits2skymodel.py
@@ -127,7 +127,8 @@ class SkyModel:
header["PixSize"] = (self.pixelsize, "Pixel size [arcsec]")
header["K2JyPix"] = (self.factor_K2JyPixel, "[K] -> [Jy/pixel]")
header["MINVALUE"] = (self.minvalue, "[K] minimum threshold")
- header["MAXVALUE"] = (self.maxvalue, "[K] maximum threshold")
+ if np.isfinite(self.maxvalue):
+ header["MAXVALUE"] = (self.maxvalue, "[K] maximum threshold")
return header
@property