nenupy.astro.sky.HpxSkySlice
- class nenupy.astro.sky.HpxSkySlice(coordinates, frequency, time, polarization, value, observer=<EarthLocation (4323936.68522791, 165534.49991696, 4670345.36540385) m>)[source]
Bases:
SkySliceBase- __init__(coordinates, frequency, time, polarization, value, observer=<EarthLocation (4323936.68522791, 165534.49991696, 4670345.36540385) m>)[source]
Methods
__init__(coordinates, frequency, time, ...)hour_angle([fast_compute])local_sidereal_time([fast_compute])plot(**kwargs)Display the selected content of the
valueattribute belonging to aSkyinstance as a celestial map in equatorial coordinates.Attributes
Allows to modify horizontal coordinates without messing up with the actual coordinates object.
test de doc
ground_projectionhorizontal_coordinatesvisible_skycoordinatestimepolarizationvalueobserver- property custom_ho_coordinates
Allows to modify horizontal coordinates without messing up with the actual coordinates object.
- property frequency
test de doc
- plot(**kwargs)
Display the selected content of the
valueattribute belonging to aSkyinstance as a celestial map in equatorial coordinates.This method is available on a
SkySliceinstance, resulting from a selection upon aSkyinstance (using the indexing operator).Several parameters, listed below, can be tuned to adapt the plot to the user requirements:
Data display keywords
- Parameters:
center (
SkyCoord) – Coordinates of the celestial map to be displayed at the center of the image. Default is(RA=0deg, Dec=0deg).radius (
Quantity) – Angular radius from the center of the image above which the plot should be cropped. Default isNone(i.e., full sky image).resolution (
Quantity) – Set the pixel resolution. The upper threshold is 0.775 deg, any value above that does not affect the figure appearence. Default isastropy.units.Quantity(1, unit="deg").only_visible (
bool) – If set toTrueonly the sky above the horizon is displayed. Setting this parameter toFalsedoes not really make sense forSkyinstances representing antenna response for instance. Default isTrue.decibel (
bool) – If set toTrue, the data values are displayed at the decibel scale, i.e., \(10 \log( \rm{data} )\). Default isFalse.interpolation (
str) – Matplotlib imshow interpolation method. Default is'quadric'.
Overplot keywords
- Parameters:
scatter (
tuple) – Add a scatter plot (as defined inmatplotlib.pyplot.scatter). Expected syntax is(<SkyCoord>, <marker_size>, <color>). Default isNone(i.e., no scatter overplot).text (
tuple) – Add a text overlay (as defined inmatplotlib.pyplot.text). Expected syntax is(<SkyCoord>, <[text]>, <color>). Default isNone(i.e., no text overplot).contour (
tuple) – Add a contour plot (as defined inmatplotlib.pyplot.contour). Expected syntax is(<numpy.ndarray>, <[levels]>, <colormap>). Default isNone(i.e., no contour overplot).
Plotting layout keywords
- Parameters:
altaz_overlay (
bool) – If set toTrue, the horizontal coordinates grid is overplotted in addition to the equatorial one. Default isFalse.cmap (
str) – Color map applied while representing the data (see Matplotlib colormaps). Default is"YlGnBu_r".show_colorbar (
bool) – Show or not the color bar. Default isTrue.colorbar_label (
str) – Set the label of the color bar. Default is"".figname (
str) – Name of the file (absolute or relative path) to save the figure. If set to"return", the method returns thetuple(fig, ax)(as defined by matplotlib). Default isNone(i.e., only show the figure).figsize (
tuple) – Set the figure size. Default is(15, 10).ticks_color (
str) – Set the color of the equatorial grid and the Right Ascension ticks. Default is"0.9"(grey).title (
str) – Set the figure title. Default is"<time>, <frequency>".