Commits
1537 1537 | # ia.open(scaledimg) |
1538 1538 | # ia.setrestoringbeam(beam=beam_tp) |
1539 1539 | # ia.setbrightnessunit(bunit_tp) |
1540 1540 | # ia.close() |
1541 1541 | |
1542 1542 | msg("impbcor('"+regridimg+"', '"+pbcov+"', outfile='"+scaledimg+"',mode='multiply')",priority="info") |
1543 1543 | if not dryrun: |
1544 1544 | impbcor(regridimg, pbcov, outfile=scaledimg,mode='multiply') |
1545 1545 | |
1546 1546 | # de-pbcor the INT image |
1547 - | highimage = fileroot+"/"+imagename_int+".pbscaled" |
1547 + | # not needed now that imtclean is used and .image from tclean is flat sky by default, see CAS-13370 |
1548 + | #highimage = fileroot+"/"+imagename_int+".pbscaled" |
1548 1549 | #immath(imagename=[highimage0, pbcov], |
1549 1550 | # expr='IM1/IM0',outfile=highimage) |
1550 - | msg(" ",priority="info") |
1551 - | msg("Multiply interferometric image by sensitivity map (un-pbcor):",priority="info") |
1551 + | # msg(" ",priority="info") |
1552 + | # msg("Multiply interferometric image by sensitivity map (un-pbcor):",priority="info") |
1552 1553 | # msg("immath(imagename=['"+highimage0+"','"+pbcov+"'],expr='IM1*IM0',outfile='"+highimage+"')",priority="info") |
1553 1554 | # msg("Restore interferometric beam and brightness unit:",priority="info") |
1554 1555 | # msg("ia.open('"+highimage0+"')",priority="info") |
1555 1556 | # msg("beam_int = ia.restoringbeam()",priority="info") |
1556 1557 | # msg("bunit_int = ia.brightnessunit()",priority="info") |
1557 1558 | # msg("ia.close()",priority="info") |
1558 1559 | # msg("ia.open('"+highimage+"')",priority="info") |
1559 1560 | # msg("ia.setrestoringbeam(beam=beam_int)",priority="info") |
1560 1561 | # msg("ia.setbrightnessunit(bunit_int)",priority="info") |
1561 1562 | # msg("ia.close()",priority="info") |
1565 1566 | # expr='IM1*IM0',outfile=highimage) |
1566 1567 | # # restore INT beam and brightness unit |
1567 1568 | # ia.open(highimage0) |
1568 1569 | # beam_int = ia.restoringbeam() |
1569 1570 | # bunit_int = ia.brightnessunit() |
1570 1571 | # ia.close() |
1571 1572 | # ia.open(highimage) |
1572 1573 | # ia.setrestoringbeam(beam=beam_int) |
1573 1574 | # ia.setbrightnessunit(bunit_int) |
1574 1575 | # ia.close() |
1575 - | |
1576 - | msg("impbcor('"+highimage0+"', '"+pbcov+"', outfile='"+highimage+"',mode='multiply')",priority="info") |
1577 - | if not dryrun: |
1578 - | impbcor(highimage0, pbcov, outfile=highimage,mode='multiply') |
1576 + | # |
1577 + | # msg("impbcor('"+highimage0+"', '"+pbcov+"', outfile='"+highimage+"',mode='multiply')",priority="info") |
1578 + | # if not dryrun: |
1579 + | # impbcor(highimage0, pbcov, outfile=highimage,mode='multiply') |
1579 1580 | |
1580 1581 | |
1581 1582 | |
1582 1583 | |
1583 1584 | |
1584 1585 | # Feathering |
1585 1586 | task_param = {} |
1586 1587 | task_param['imagename'] = outimage0 |
1587 - | task_param['highres'] = highimage |
1588 + | task_param['highres'] = highimage0 |
1588 1589 | task_param['lowres'] = lowimage |
1589 1590 | |
1590 1591 | msg(" ",priority="info") |
1591 1592 | msg(get_taskstr('feather', task_param), priority="info") |
1592 1593 | try: |
1593 1594 | if not is_CASA6: |
1594 1595 | saveinputs('feather', |
1595 1596 | fileroot+"/"+project+".feather.last", |
1596 1597 | myparams=task_param) |
1597 1598 | else: |