Open kendak333 opened 1 year ago
Hi. Also experiencing this issue.
can you do an np.load("J0438-5419_ddfsrcs.reg.ClusterCat.npy")
and see if anything intersting is in there?
It's indeed empty:
Out[2]:
array([],
dtype=[('Name', 'S200'), ('ra', '<f8'), ('dec', '<f8'), ('SumI', '<f8'), ('Cluster', '<i8')])
I wondered if it was something the the ds9 file - after changing the header from # Region file format: DS9 CARTA 3.0.0
to # Region file format: DS9 version 4.1
(from my current install of ds9) and removing the # color=#2EE6D6 width=2
from the end of each region line I get a non-empty *ClusterCat.npy
(see below). I still got an empty array if I leave in the # color=#2EE6D6 width=2
and only change the header.
Out[2]:
array([(b'0', 1.20685554, -0.95309401, 1., 0),
(b'1', 1.19188941, -0.93772537, 1., 1),
(b'2', 1.21155107, -0.94090366, 1., 2),
(b'3', 1.23086166, -0.94681305, 1., 3),
(b'4', 1.22084355, -0.95428109, 1., 4)],
dtype=[('Name', 'S200'), ('ra', '<f8'), ('dec', '<f8'), ('SumI', '<f8'), ('Cluster', '<i8')])
So looks like the issue is in the MakeModel.py
if the region file is created in CARTA rather than in ds9.
ok cool! :)
I'm trying to do some 3GC processing for a MeerKAT field and am coming across an issue when running DDF.py, which appears to be a problem with the output generated from MakeModel.py.
The command being run:
DDF.py ddf_imgDI_clustered.parset --Output-Clobber true
The parset file (in .txt form): ddf_imgDI_clustered.txt
The error:
The
J0438-5419_ddfsrcs.reg.ClusterCat.npy
file is generated via:MakeModel.py --ds9PreClusterFile <ds9 region file> --NCluster=0 --BaseImageName <relevant 2GC image>
No errors are generated, other than the warning about Astropy read_ds9 depreciation. The region file looks like the following (I manually replaced the ellipse entries from CARTA with circle ones, but got the same issue):
I tried running
MakeModel.py
with--Ncluster=5
(same number as regions in the file) and got a different error (lack of DicoModel). I'm not sure where I'm going wrong or whether this is a bug - having checked with colleagues, others are experiencing this issue for certain fields but not for others.