Open BANELE-MTHEMBU opened 3 months ago
Hi, could you also include the command that you are running the script with?
Greetings,
The command I was using to run the script is:
python catalog_matching.py
img_cfp2020_1_full_1024ch_J0438-5419.ms_DDFkMS.app.restored_srl_bdsfcat.fits
RACS --astro --flux
Here, "RACS" is the name of the catalog I want to match with my original data.
Regards, Banele
On Wed, Jun 5, 2024 at 10:50 AM Jonah Wagenveld @.***> wrote:
Hi, could you also include the command that you are running the script with?
— Reply to this email directly, view it on GitHub https://github.com/JonahDW/Image-processing/issues/19#issuecomment-2149241634, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY5WJAE6A7LYFL3UMMOTNEDZF3GMJAVCNFSM6AAAAABIY6JDTKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBZGI2DCNRTGQ . You are receiving this because you authored the thread.Message ID: @.***>
Thanks! To generate the img_cfp2020_1_full_1024ch_J0438-5419.ms_DDFkMS.app.restored_srl_bdsfcat.fits
catalog, did you use the sourcefinding.py
script or your own PyBDSF recipe?
The sourcefinding.py
script should take care of everything and add the required info to the catalog. Furthermore, it extracts necessary information from the table meta and puts it in the catalog header in order to run catalog_matching.py
effectively. You can do this while keeping your catalog intact by running python sourcefinding.py catalog <your_image> --redo_catalog img_cfp2020_1_full_1024ch_J0438-5419.ms_DDFkMS.app.restored_srl_bdsfcat.fits
Hope that helps, but let me know if something is unclear.
I was running a
catalog_matching
file, I got the following error:Traceback (most recent call last): File "catalog_matching.py", line 909, in
main()
File "catalog_matching.py", line 782, in main
pointing = Pointing(pointing_cat, pointing, survey_name, ra_center, dec_center, fov)
File "catalog_matching.py", line 223, in init
self.cat = catalog[catalog['Quality_flag'] == 1]
File "/home/banele/anaconda3/lib/python3.8/site-packages/astropy/table/table.py", line 1872, in getitem
return self.columns[item]
File "/home/banele/anaconda3/lib/python3.8/site-packages/astropy/table/table.py", line 246, in getitem
return OrderedDict.getitem(self, item)
KeyError: 'Quality_flag'