Table Of Contents

Previous topic

pycrtools.tasks.commands

Next topic

pycrtools.tasks.crosscorrelateantennas

This Page

pycrtools.tasks.crimager

CRImager([ws, parfile]) Creates an all-sky image using beamforming for each pixel.
CoordinateGrid([obstime, ut1_utc, L, phi]) Coordinate grid for images.
Task([ws, parfile]) Base class from which all tasks should be derived.
savefits(filename, array[, overwrite]) Save image as standard FITS file.

CRImager

Module author: Pim Schellart <P.Schellart@astro.ru.nl>

class pycrtools.tasks.crimager.CRImager(ws=None, parfile=None, **kwargs)

Creates an all-sky image using beamforming for each pixel.

This imager is optimized for imaging cosmic ray air showers. It defaults to all-sky images and operates on only one data block. For general purpose images see imager.

A grid of pixels is formed based on standards FITS coordinate descriptions. Then calculates the total power for a given pixel (pointing) by beamforming and adds the selected antennas/time steps/frequency range.

Input parameters

CDELT1 [default value: -1.0 ]

CDELT2 [default value: 1.0 ]

CDELT3

CRPIX1

CRPIX2

CRPIX3 [default value: 0.0 ]

CRVAL1 [default value: 180.0 ]

CRVAL2 [default value: 90.0 ]

CRVAL3 [default value: 0.0 ]

CTYPE1 [default value: “ALON-STG” ]

CTYPE2 [default value: “ALAT-STG” ]

CTYPE3 [default value: “TIME” ]

CUNIT1 [default value: “deg” ]

CUNIT2 [default value: “deg” ]

CUNIT3 [default value: “s” ]

LATPOLE [default value: 90.0 ]

LONPOLE [default value: 0.0 ]

NAXIS [default value: 3 ]

NAXIS1 [default value: 180 ]

NAXIS2 [default value: 180 ]

NAXIS3 [default value: 1 ]

OBSLAT [default value: 0.923543111634 ]
Observer latitude in radians
OBSLON [default value: 0.11990128415 ]
Observer longitude in radians

OBSTIME [default value: None ]

PC001001 [default value: 1.0 ]

PC001002 [default value: 0.0 ]

PC002001 [default value: 0.0 ]

PC002002 [default value: 1.0 ]

antpos [default value: None ]

blocksize [default value: None ]

data [default value: None ]

fftdata [default value: None ]

frequencies [default value: None ]

frequency_domain_image

image
Array to hold output image, needs to be a numpy array because otherwise conversion to FITS will require twice the memory.

nantennas

nf

nyquist_zone [default value: 1 ]

output [default value: None ]

sample_frequency [default value: 200000000.0 ]

time_domain_image

init()

Initialize imager.

run()

Run the imager.

pycrtools.tasks.crimager.savefits(filename, array, overwrite=True, **kwargs)

Save image as standard FITS file.