magrittetorch.model.image

Contains the data structure of the images of a model.

enum magrittetorch.model.image.ImageType(value)

Available image types

Valid values are as follows:

Intensity = <ImageType.Intensity: 0>
OpticalDepth = <ImageType.OpticalDepth: 1>
class magrittetorch.model.image.Image(params: Parameters, dataCollection: DataCollection, imageType: ImageType, ray_direction: Tensor, freqs: Tensor, image_index: int)
I: StorageTensor

the unit assumes the intensity is imaged, when the optical depth is imaged, the unit is instead units.Hz**-1*units.sr**-1; dtype= Types.FrequencyInfo, dims=[npix, nfreqs], unit = units.W*units.m**-2*units.Hz**-1*units.sr**-1

Type:

Image data at each pixel, at each frequency; Note

freqs: StorageTensor

Frequencies in the image; dtype= Types.FrequencyInfo, dims=[nfreqs], unit = units.Hz

imX: StorageTensor

Image pixel x coordinates; dtype= Types.GeometryInfo, dims=[npix], unit = units.m

imY: StorageTensor

Image pixel y coordinates; dtype= Types.GeometryInfo, dims=[npix], unit = units.m

imageType: Parameter[ImageType]

Image type

image_direction_x: StorageTensor

Image direction x; dtype= Types.GeometryInfo, dims=[3], unit = units.dimensionless_unscaled

image_direction_y: StorageTensor

Image direction y; dtype= Types.GeometryInfo, dims=[3], unit = units.dimensionless_unscaled

image_direction_z: StorageTensor

Direction in which the image is taken; dtype= Types.GeometryInfo, dims=[3], unit = units.dimensionless_unscaled

nfreqs: Parameter[int]

number of frequencies in the image

npix: Parameter[int]

number of pixels in the image