Getting started
User guide
Tutorials
API reference
Developer guide
Release notes
1.2
Github
Twitter
Slack
data - DL3 data and observations
get_irfs_features
DataStore
EventList
EventListMetaData
FixedPointingInfo
GTI
HDUIndexTable
Observation
ObservationFilter
Observations
ObservationsEventsSampler
ObservationTable
PointingInfo
PointingMode
observatory_locations
irf - Instrument response functions
load_irf_dict_from_file
Background2D
Background3D
BackgroundIRF
EDispKernel
EDispKernelMap
EDispMap
EffectiveAreaTable2D
EnergyDependentMultiGaussPSF
EnergyDispersion2D
FoVAlignment
IRFMap
IRF
ParametricPSF
PSF3D
PSFKernel
PSFKing
PSFMap
RecoPSFMap
RadMax2D
IRF_REGISTRY
makers - Data reduction
AdaptiveRingBackgroundMaker
DatasetsMaker
FoVBackgroundMaker
Maker
MapDatasetMaker
PhaseBackgroundMaker
ReflectedRegionsBackgroundMaker
ReflectedRegionsFinder
RegionsFinder
RingBackgroundMaker
SafeMaskMaker
SpectrumDatasetMaker
WobbleRegionsFinder
MAKER_REGISTRY
make_counts_rad_max
make_edisp_kernel_map
make_edisp_map
make_map_background_irf
make_map_exposure_true_energy
make_psf_map
make_theta_squared_table
make_effective_livetime_map
make_observation_time_map
datasets - Reduced datasets
create_map_dataset_from_observation
create_map_dataset_geoms
Dataset
Datasets
FluxPointsDataset
MapDataset
MapDatasetEventSampler
MapDatasetOnOff
ObservationEventSampler
OGIPDatasetWriter
OGIPDatasetReader
SpectrumDataset
SpectrumDatasetOnOff
MapDatasetMetaData
DATASET_REGISTRY
maps - Sky maps
containment_radius
containment_region
Geom
HpxGeom
HpxMap
HpxNDMap
LabelMapAxis
Map
MapAxes
MapAxis
MapCoord
Maps
RegionGeom
RegionNDMap
TimeMapAxis
WcsGeom
WcsMap
WcsNDMap
modeling - Models and fitting
select_nested_models
stat_profile_ul_scipy
Covariance
Fit
Parameter
Parameters
PriorParameter
PriorParameters
create_cosmic_ray_spectral_model
create_crab_spectral_model
create_fermi_isotropic_diffuse_model
integrate_spectrum
scale_plot_flux
read_hermes_cube
BrokenPowerLawSpectralModel
CompoundSpectralModel
ConstantFluxSpatialModel
ConstantSpatialModel
ConstantSpectralModel
ConstantTemporalModel
DatasetModels
DiskSpatialModel
EBLAbsorptionNormSpectralModel
ExpCutoffPowerLaw3FGLSpectralModel
ExpCutoffPowerLawNormSpectralModel
ExpCutoffPowerLawSpectralModel
ExpDecayTemporalModel
FoVBackgroundModel
GaussianSpatialModel
GaussianSpectralModel
GaussianTemporalModel
GeneralizedGaussianSpatialModel
GeneralizedGaussianTemporalModel
LightCurveTemplateTemporalModel
LinearTemporalModel
LogParabolaNormSpectralModel
LogParabolaSpectralModel
MeyerCrabSpectralModel
Model
Models
ModelBase
NaimaSpectralModel
PiecewiseNormSpectralModel
PiecewiseNormSpatialModel
PointSpatialModel
PowerLaw2SpectralModel
PowerLawNormSpectralModel
PowerLawSpectralModel
PowerLawTemporalModel
ScaleSpectralModel
Shell2SpatialModel
ShellSpatialModel
SineTemporalModel
SkyModel
SmoothBrokenPowerLawSpectralModel
SpatialModel
SpectralModel
SuperExpCutoffPowerLaw3FGLSpectralModel
SuperExpCutoffPowerLaw4FGLDR3SpectralModel
SuperExpCutoffPowerLaw4FGLSpectralModel
TemplatePhaseCurveTemporalModel
TemplateSpatialModel
TemplateSpectralModel
TemplateNDSpatialModel
TemplateNDSpectralModel
TemplateNPredModel
TemporalModel
MODEL_REGISTRY
SPATIAL_MODEL_REGISTRY
SPECTRAL_MODEL_REGISTRY
TEMPORAL_MODEL_REGISTRY
EBL_DATA_BUILTIN
read_hermes_cube
estimators - High level estimators
ASmoothMapEstimator
Estimator
ExcessMapEstimator
FluxMaps
FluxPoints
FluxPointsEstimator
FluxProfileEstimator
ImageProfile
ImageProfileEstimator
LightCurveEstimator
ParameterEstimator
SensitivityEstimator
TSMapEstimator
EnergyDependentMorphologyEstimator
FluxMetaData
ESTIMATOR_REGISTRY
estimate_exposure_reco_energy
find_peaks
resample_energy_edges
compute_lightcurve_fvar
compute_lightcurve_fpp
compute_lightcurve_doublingtime
find_peaks_in_flux_map
get_rebinned_axis
analysis - High level interface
Analysis
AnalysisConfig
catalog - Source catalogs
SourceCatalog
SourceCatalog1LHAASO
SourceCatalog2FHL
SourceCatalog2HWC
SourceCatalog3FGL
SourceCatalog3FHL
SourceCatalog3HWC
SourceCatalog4FGL
SourceCatalogGammaCat
SourceCatalogHGPS
SourceCatalogLargeScaleHGPS
SourceCatalogObject
SourceCatalogObject1LHAASO
SourceCatalogObject2FHL
SourceCatalogObject2HWC
SourceCatalogObject3FGL
SourceCatalogObject3FHL
SourceCatalogObject3HWC
SourceCatalogObject4FGL
SourceCatalogObjectGammaCat
SourceCatalogObjectHGPS
SourceCatalogObjectHGPSComponent
CATALOG_REGISTRY
astro - Astrophysics
DarkMatterAnnihilationSpectralModel
DarkMatterDecaySpectralModel
JFactory
PrimaryFlux
BurkertProfile
DMProfile
EinastoProfile
IsothermalProfile
MooreProfile
NFWProfile
ZhaoProfile
add_observed_parameters
add_pulsar_parameters
add_pwn_parameters
add_snr_parameters
make_base_catalog_galactic
make_catalog_random_positions_cube
make_catalog_random_positions_sphere
CaseBattacharya1998
Exponential
FaucherKaspi2006
FaucherKaspi2006VelocityBimodal
FaucherKaspi2006VelocityMaxwellian
FaucherSpiral
LogSpiral
Lorimer2006
Paczynski1990
Paczynski1990Velocity
ValleeSpiral
YusifovKucuk2004
YusifovKucuk2004B
radial_distributions
velocity_distributions
Pulsar
PWN
SimplePulsar
SNR
SNRTrueloveMcKee
stats - Statistics
cash
cash_sum_cython
cstat
f_cash_root_cython
get_wstat_gof_terms
get_wstat_mu_bkg
norm_bounds_cython
wstat
compute_fvar
compute_fpp
compute_flux_doubling
compute_chisq
CashCountsStatistic
WStatCountsStatistic
scripts - Command line tools
visualization - Plotting features
annotate_heatmap
colormap_hess
colormap_milagro
add_colorbar
plot_contour_line
plot_heatmap
plot_map_rgb
plot_spectrum_datasets_off_regions
plot_theta_squared_table
plot_npred_signal
plot_distribution
MapPanelPlotter
utils - Utilities
standard_scaler
hierarchical_clustering
cartesian
fov_to_sky
galactic
motion_since_birth
polar
sky_to_fov
velocity_glon_glat
D_SUN_TO_GALACTIC_CENTER
trapz_loglog
interpolate_profile
interpolation_scale
ScaledRegularGridInterpolator
earth_location_from_dict
LazyFitsData
HDULocation
draw
get_random_state
normalize
pdf
sample_powerlaw
sample_sphere
sample_sphere_distance
sample_times
InverseCDFSampler
compound_region_to_regions
make_concentric_annulus_sky_regions
make_orthogonal_rectangle_sky_regions
regions_to_compound_region
region_to_frame
run_multiprocessing
multiprocessing_manager
BACKEND_DEFAULT
N_JOBS_DEFAULT
POOL_KWARGS_DEFAULT
METHOD_DEFAULT
METHOD_KWARGS_DEFAULT
get_images_paths
make_path
read_yaml
recursive_merge_dicts
write_yaml
hstack_columns
table_row_to_dict
table_standardise_units_copy
table_standardise_units_inplace
assert_quantity_allclose
assert_skycoord_allclose
assert_time_allclose
mpl_plot_check
requires_data
requires_dependency
Checker
absolute_time
time_ref_from_dict
time_ref_to_dict
time_relative_to_ref
standardise_unit
unit_from_fits_image_hdu
polar
#
gammapy.utils.coordinates.
polar
(
x
,
y
)
[source]
#
Convert cartesian coordinates to polar coordinates.