suncasa.utils.stputils

Attributes

__author__

__email__

Functions

insertchar(source_str, insert_str, pos)

get_curve_grad(x, y)

get the grad of at data point

findDist(x, y)

paramspline(x, y, length[, s])

polyfit(x, y, length, deg[, keepxorder])

improfile(z, xi, yi[, interp])

Pixel-value cross-section along line segment in an image

map2wcsgrids(snpmap[, cell, antialiased])

readsdofile([datadir, wavelength, trange, isexists, ...])

read sdo file from local database

get_map_corner_coord(sunpymap)

Module Contents

suncasa.utils.stputils.__author__ = ['Sijie Yu'][source]
suncasa.utils.stputils.__email__ = 'sijie.yu@njit.edu'[source]
suncasa.utils.stputils.insertchar(source_str, insert_str, pos)[source]
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.findDist(x, y)[source]
suncasa.utils.stputils.paramspline(x, y, length, s=0)[source]
suncasa.utils.stputils.polyfit(x, y, length, deg, keepxorder=False)[source]
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:

suncasa.utils.stputils.get_map_corner_coord(sunpymap)[source]