sphemakh / cleanmask Goto Github PK
View Code? Open in Web Editor NEWCreates a binary mask given a FITS image
Creates a binary mask given a FITS image
I get an error at the start as follows, after which it seems to do all the boxing and thresholding operations, but doesn't produce a mask image.
(cleanmask) ianh@ubuntu:/mnt/hgfs/heywood/Desktop/masktests$ cleanmask -i img_1565939836_sdp_l0.full_1284.full_pol_wtspec_COSMOS_4.ms_datablind-MFS-image.fits -o test.fits -s 5.5 -it 10 -nb 50 -ol 0.4
INFO:root:Creating mask...
INFO:root:Sigma cliping RMS box (0,0)
Traceback (most recent call last):
File "/home/ianh/venv/cleanmask/bin/cleanmask", line 4, in <module>
__import__('pkg_resources').run_script('cleanmask==1.3.0', 'cleanmask')
File "/home/ianh/venv/cleanmask/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 658, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/home/ianh/venv/cleanmask/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1438, in run_script
exec(code, namespace, namespace)
File "/home/ianh/venv/cleanmask/lib/python2.7/site-packages/cleanmask-1.3.0-py2.7.egg/EGG-INFO/scripts/cleanmask", line 5, in <module>
pkg.main([a for a in sys.argv[1:]])
File "/home/ianh/venv/cleanmask/local/lib/python2.7/site-packages/cleanmask-1.3.0-py2.7.egg/cleanmask/CleanMask.py", line 195, in main
for j, imslice, submask in f.result():
File "/home/ianh/venv/cleanmask/local/lib/python2.7/site-packages/concurrent/futures/_base.py", line 455, in result
return self.__get_result()
File "/home/ianh/venv/cleanmask/local/lib/python2.7/site-packages/concurrent/futures/_base.py", line 414, in __get_result
raise exception_type, self._exception, self._traceback
TypeError: sigma_clip() got an unexpected keyword argument 'maxiters'
INFO:root:Sigma cliping RMS box (1,0)
INFO:root:Sigma cliping RMS box (2,0)
INFO:root:Sigma cliping RMS box (3,0)
INFO:root:Sigma cliping RMS box (4,0)
INFO:root:Sigma cliping RMS box (5,0)
INFO:root:Sigma cliping RMS box (6,0)
INFO:root:Sigma cliping RMS box (7,0)
INFO:root:Sigma cliping RMS box (8,0)
INFO:root:Sigma cliping RMS box (9,0)
INFO:root:Sigma cliping RMS box (10,0)
INFO:root:Sigma cliping RMS box (11,0)
INFO:root:Sigma cliping RMS box (12,0)
INFO:root:Sigma cliping RMS box (13,0)
INFO:root:Sigma cliping RMS box (14,0)
INFO:root:Sigma cliping RMS box (15,0)
INFO:root:Sigma cliping RMS box (16,0)
INFO:root:Sigma cliping RMS box (17,0)
INFO:root:Sigma cliping RMS box (18,0)
INFO:root:Sigma cliping RMS box (19,0)
INFO:root:Sigma cliping RMS box (20,0)
INFO:root:Sigma cliping RMS box (21,0)
INFO:root:Sigma cliping RMS box (22,0)
INFO:root:Sigma cliping RMS box (23,0)
INFO:root:Sigma cliping RMS box (24,0)
INFO:root:Sigma cliping RMS box (25,0)
INFO:root:Sigma cliping RMS box (26,0)
INFO:root:Sigma cliping RMS box (27,0)
INFO:root:Sigma cliping RMS box (28,0)
INFO:root:Sigma cliping RMS box (29,0)
INFO:root:Sigma cliping RMS box (30,0)
INFO:root:Sigma cliping RMS box (31,0)
INFO:root:Sigma cliping RMS box (32,0)
INFO:root:Sigma cliping RMS box (33,0)
INFO:root:Sigma cliping RMS box (34,0)
INFO:root:Sigma cliping RMS box (35,0)
INFO:root:Sigma cliping RMS box (36,0)
INFO:root:Sigma cliping RMS box (37,0)
INFO:root:Sigma cliping RMS box (38,0)
INFO:root:Sigma cliping RMS box (39,0)
INFO:root:Sigma cliping RMS box (40,0)
INFO:root:Sigma cliping RMS box (41,0)
INFO:root:Sigma cliping RMS box (42,0)
INFO:root:Sigma cliping RMS box (43,0)
INFO:root:Sigma cliping RMS box (44,0)
INFO:root:Sigma cliping RMS box (45,0)
INFO:root:Sigma cliping RMS box (46,0)
INFO:root:Sigma cliping RMS box (47,0)
INFO:root:Sigma cliping RMS box (48,0)
INFO:root:Sigma cliping RMS box (49,0)
Cleanmask from PyPI gives me the above error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.