GriddingMixin

class Data_Reduction.GriddingMixin

Bases: object

Class for all the data and methods associated with a raster scan map

It is expected that the parent class is a subclass of Observation already by virtue of it being a superclass of subclass which inherits these methods.

Attrs:

cfg (dict): data (numpy array): from Observation logger (logging.Logger): replaces Observation logger name (str): replaces Observation name session (Session): source (str): step (float): map step size

Methods Summary

get_grid_stepsize([xy])

Determine the stepsize of gridded data

regrid([width, height, step, power_key])

converts a map from observed coordinates to map coordinates

Methods Documentation

get_grid_stepsize(xy=None)

Determine the stepsize of gridded data

This assumes xdec and dec data increase incrementally by ‘stepsize’. The sequences may repeat in a sawtooth-like series. The number of ‘xdec’ and ‘dec’ points is multiple times the gridsize.

Parameters

xy (tuple or list) - X-array and Y-array (default Map.data) –

regrid(width=1.0, height=1.0, step=None, power_key=None)

converts a map from observed coordinates to map coordinates

If step is not given then the step size will be the average step size in X and the average step in Y. In this case, the effect is to make a regular grid if the original positions were not exact, i.e., pointing error.

:param width : map width in deg :type width : float

:param height : map height in deg :type height : float

:param step : map step size in X and Y in deg :type step : (float, float)

:param power_key : dict key of Z-value :type power_key : str