suncasa.utils.stputils
Attributes
Functions
|
|
|
get the grad of at data point |
|
|
|
|
|
|
|
Pixel-value cross-section along line segment in an image |
|
|
|
read sdo file from local database |
|
Module Contents
- suncasa.utils.stputils.get_curve_grad(x, y)[source]
get the grad of at data point :param x: :param y: :return: grad,posang
- suncasa.utils.stputils.improfile(z, xi, yi, interp='cubic')[source]
Pixel-value cross-section along line segment in an image :param z: an image array :param xi and yi: equal-length vectors specifying the pixel coordinates of the endpoints of the line segment :param interp: interpolation type to sampling, ‘nearest’ or ‘cubic’ :return: the intensity values of pixels along the line
- suncasa.utils.stputils.map2wcsgrids(snpmap, cell=True, antialiased=True)[source]
- Parameters:
snpmap
cell – if True, return the coordinates of the pixel centers. if False, return the coordinates of the pixel boundaries
- Returns:
- suncasa.utils.stputils.readsdofile(datadir=None, wavelength=None, trange=None, isexists=False, timtol=1, ignoreymdpath=False, suffix='image_lev1')[source]
read sdo file from local database :param datadir: :param wavelength: :param trange: the timestamp or timerange in Julian days. if is timerange, return a list of files in the timerange :param isexists: check if file exist. if files exist, return file name :param timtol: time difference tolerance in days for considering data as the same timestamp :return: