cngi.image.reframe
¶
-
reframe
(ixds, outframe=None, reference_time=None, observer_location=None, target_location=None, reference_frequency=None)[source]¶ Change the velocity system of an image
- Parameters
xds (xarray.core.dataset.Dataset) – input Image
outframe (str) – reference frame to which the input will be converted
reference_time (numpy.datetime64 or datetime, optional) – any valid initializer of astropy.time.TimeBase should work
observer_location (astropy.cordinates.SkyCoord, optional) – position and velocity of observer for frame transformation
target_location (astropy.cordinates.SkyCoord, optional) – position and velocity of source for frame transformation
reference_frequency (astropy.units.Quantity, optional) – value and unit to use when expressing the spectral value as a velocity, input to SpectralCoord doppler_rest parameter
- Returns
output Image
- Return type
xarray.core.dataset.Dataset