importfitshdu

Imports one or more HDUs from a FITS image into separate casa images.

USage:

tt.importfitshdu(fitsfile, whichhdu=[1])

Example:

CASA <2>: tt.importfitshdu('HAWKI.2012-06-09T07_05_41.013.fits',whichhdu=range(1,5))
Running importfits('HAWKI.2012-06-09T07_05_41.013.fits', 'HAWKI.2012-06-09T07_05_41.013.image1', whichhdu=1)
2015-03-30 18:03:47	WARN	importfits::::casa	This image has no beam or angular resolution provided, so you will not receive warnings from
2015-03-30 18:03:47	WARN	importfits::::casa+	tasks such as imregrid if your image pixels do not sample the the angular resolution well.
2015-03-30 18:03:47	WARN	importfits::::casa+	(This only affects warnings, not any functionality).
2015-03-30 18:03:47	WARN	importfits::::casa+	Providing a beam and brightness units in an image can also be useful for flux calculations.
2015-03-30 18:03:47	WARN	importfits::::casa+	If you wish to add a beam or brightness units to your image, please use
2015-03-30 18:03:47	WARN	importfits::::casa+	the "beam" parameter or ia.setrestoringbeam() and ia.setbrightnessunit()
Running importfits('HAWKI.2012-06-09T07_05_41.013.fits', 'HAWKI.2012-06-09T07_05_41.013.image2', whichhdu=2)
2015-03-30 18:03:47	WARN	importfits::::casa	This image has no beam or angular resolution provided, so you will not receive warnings from
2015-03-30 18:03:47	WARN	importfits::::casa+	tasks such as imregrid if your image pixels do not sample the the angular resolution well.
2015-03-30 18:03:47	WARN	importfits::::casa+	(This only affects warnings, not any functionality).
2015-03-30 18:03:47	WARN	importfits::::casa+	Providing a beam and brightness units in an image can also be useful for flux calculations.
2015-03-30 18:03:47	WARN	importfits::::casa+	If you wish to add a beam or brightness units to your image, please use
2015-03-30 18:03:47	WARN	importfits::::casa+	the "beam" parameter or ia.setrestoringbeam() and ia.setbrightnessunit()
Running importfits('HAWKI.2012-06-09T07_05_41.013.fits', 'HAWKI.2012-06-09T07_05_41.013.image3', whichhdu=3)
2015-03-30 18:03:47	WARN	importfits::::casa	This image has no beam or angular resolution provided, so you will not receive warnings from
2015-03-30 18:03:47	WARN	importfits::::casa+	tasks such as imregrid if your image pixels do not sample the the angular resolution well.
2015-03-30 18:03:47	WARN	importfits::::casa+	(This only affects warnings, not any functionality).
2015-03-30 18:03:47	WARN	importfits::::casa+	Providing a beam and brightness units in an image can also be useful for flux calculations.
2015-03-30 18:03:47	WARN	importfits::::casa+	If you wish to add a beam or brightness units to your image, please use
2015-03-30 18:03:47	WARN	importfits::::casa+	the "beam" parameter or ia.setrestoringbeam() and ia.setbrightnessunit()
Running importfits('HAWKI.2012-06-09T07_05_41.013.fits', 'HAWKI.2012-06-09T07_05_41.013.image4', whichhdu=4)
2015-03-30 18:03:48	WARN	importfits::::casa	This image has no beam or angular resolution provided, so you will not receive warnings from
2015-03-30 18:03:48	WARN	importfits::::casa+	tasks such as imregrid if your image pixels do not sample the the angular resolution well.
2015-03-30 18:03:48	WARN	importfits::::casa+	(This only affects warnings, not any functionality).
2015-03-30 18:03:48	WARN	importfits::::casa+	Providing a beam and brightness units in an image can also be useful for flux calculations.
2015-03-30 18:03:48	WARN	importfits::::casa+	If you wish to add a beam or brightness units to your image, please use
2015-03-30 18:03:48	WARN	importfits::::casa+	the "beam" parameter or ia.setrestoringbeam() and ia.setbrightnessunit()

-- ToddHunter - 2015-03-30
Topic revision: r1 - 2015-03-30, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback