Previous topic

pycrtools.geomag

Next topic

pycrtools.io

This Page

pycrtools.grid

CoordinateGrid([obstime, ut1_utc, L, phi]) Coordinate grid for images.
casaRefcodes(**kwargs) Get CASA reference code and projection from standard WCS parameter parsing rules.
datetime datetime(year, month, day[, hour[, minute[, second[, microsecond[,tzinfo]]]]])
deg2rad((double a) -> double) real_t tmf_deg2rad(const real_t
gregorian2jd((int y, int m, double d) -> double) real_t
rad2deg((double a) -> double) real_t tmf_rad2deg(const real_t

Module for creating and working with coordinate grids.

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

class pycrtools.grid.CoordinateGrid(obstime=None, ut1_utc=0.0, L=None, phi=None, **kwargs)

Coordinate grid for images.

Has the following attributes (where N is the number of pixels):

pixel array of length N with pixel coordinates
(e.g. 1, 1, 2, 2, ..., naxis1, naxis2)
world array of length N with corresponding world coordinates
(e.g. J2000, AzEl) in radians
j2000 array of length N with corresponding J2000 coordinates in radians
(equal to world if grid type is J2000)
azel array of length N * 3 with corresponding azimuth, elevation,
distance coordinates in radians
cartesian array of length N * 3 with corresponding local Cartesian
coordinates in meters
pycrtools.grid.casaRefcodes(**kwargs)

Get CASA reference code and projection from standard WCS parameter parsing rules.