index
int64
0
731k
package
stringlengths
2
98
name
stringlengths
1
76
docstring
stringlengths
0
281k
code
stringlengths
4
8.19k
signature
stringlengths
2
42.8k
embed_func_code
listlengths
768
768
37,631
healpy.rotator
Rotator
Rotation operator, including astronomical coordinate systems. This class provides tools for spherical rotations. It is meant to be used in the healpy library for plotting, and for this reason reflects the convention used in the Healpix IDL library. Parameters ---------- rot : None or sequence Describe the rotation by its euler angle. See :func:`euler_matrix_new`. coord : None or sequence of str Describe the coordinate system transform. If *rot* is also given, the coordinate transform is applied first, and then the rotation. inv : bool If True, the inverse rotation is defined. (Default: False) deg : bool If True, angles are assumed to be in degree. (Default: True) eulertype : str The Euler angle convention used. See :func:`euler_matrix_new`. Attributes ---------- mat coordin coordout coordinstr coordoutstr rots coords Examples -------- >>> r = Rotator(coord=['G','E']) # Transforms galactic to ecliptic coordinates >>> theta_gal, phi_gal = np.pi/2., 0. >>> theta_ecl, phi_ecl = r(theta_gal, phi_gal) # Apply the conversion >>> print(theta_ecl) 1.66742347999 >>> print(phi_ecl) -1.6259571125 >>> theta_ecl, phi_ecl = Rotator(coord='ge')(theta_gal, phi_gal) # In one line >>> print(theta_ecl) 1.66742347999 >>> print(phi_ecl) -1.6259571125 >>> vec_gal = np.array([1, 0, 0]) #Using vectors >>> vec_ecl = r(vec_gal) >>> print(vec_ecl) [-0.05487563 -0.99382135 -0.09647686]
class Rotator(object): """Rotation operator, including astronomical coordinate systems. This class provides tools for spherical rotations. It is meant to be used in the healpy library for plotting, and for this reason reflects the convention used in the Healpix IDL library. Parameters ---------- rot : None or sequence Describe the rotation by its euler angle. See :func:`euler_matrix_new`. coord : None or sequence of str Describe the coordinate system transform. If *rot* is also given, the coordinate transform is applied first, and then the rotation. inv : bool If True, the inverse rotation is defined. (Default: False) deg : bool If True, angles are assumed to be in degree. (Default: True) eulertype : str The Euler angle convention used. See :func:`euler_matrix_new`. Attributes ---------- mat coordin coordout coordinstr coordoutstr rots coords Examples -------- >>> r = Rotator(coord=['G','E']) # Transforms galactic to ecliptic coordinates >>> theta_gal, phi_gal = np.pi/2., 0. >>> theta_ecl, phi_ecl = r(theta_gal, phi_gal) # Apply the conversion >>> print(theta_ecl) 1.66742347999 >>> print(phi_ecl) -1.6259571125 >>> theta_ecl, phi_ecl = Rotator(coord='ge')(theta_gal, phi_gal) # In one line >>> print(theta_ecl) 1.66742347999 >>> print(phi_ecl) -1.6259571125 >>> vec_gal = np.array([1, 0, 0]) #Using vectors >>> vec_ecl = r(vec_gal) >>> print(vec_ecl) [-0.05487563 -0.99382135 -0.09647686] """ ErrMessWrongPar = ( "rot and coord must be single elements or " "sequence of same size." ) def __init__(self, rot=None, coord=None, inv=None, deg=True, eulertype="ZYX"): """Create a rotator with given parameters. - rot: a float, a tuple of 1,2 or 3 floats or a sequence of tuples. If it is a sequence of tuple, it must have the same length as coord. - coord: a string or a tuple of 1 or 2 strings or a sequence of tuple If it is a sequence of tuple, it must have same length as rot. - inv: whether to use inverse rotation or not - deg: if True, angles in rot are assumed in degree (default: True) - eulertype: the convention for Euler angles in rot. Note: the coord system conversion is applied first, then the rotation. """ rot_is_seq = hasattr(rot, "__len__") and hasattr(rot[0], "__len__") coord_is_seq = ( hasattr(coord, "__len__") and hasattr(coord[0], "__len__") and type(coord[0]) is not str ) if rot_is_seq and coord_is_seq: if len(rot) != len(coord): raise ValueError(Rotator.ErrMessWrongPar) else: rots = rot coords = coord elif (rot_is_seq or coord_is_seq) and (rot is not None and coord is not None): raise ValueError(Rotator.ErrMessWrongPar) else: rots = [rot] coords = [coord] inv_is_seq = hasattr(inv, "__len__") if inv_is_seq: if len(inv) != len(rots): raise ValueError("inv must have same length as rot and/or coord") invs = inv else: invs = [inv] * len(rots) # check the argument and normalize them if eulertype in ["ZYX", "X", "Y"]: self._eultype = eulertype else: self._eultype = "ZYX" self._rots = [] self._coords = [] self._invs = [] for r, c, i in zip(rots, coords, invs): rn = normalise_rot(r, deg=deg) # if self._eultype in ['X','Y']: # rn[1] = -rn[1] cn = normalise_coord(c) self._rots.append(rn) # append(rn) or insert(0, rn) ? self._coords.append(cn) # append(cn) or insert(0, cn) ? self._invs.append(bool(i)) if not self.consistent: log.warning("The chain of coord system rotations is not consistent") self._update_matrix() def _update_matrix(self): self._matrix = np.identity(3) self._do_rotation = False for r, c, i in zip(self._rots, self._coords, self._invs): rotmat, do_rot, rotnorm = get_rotation_matrix(r, eulertype=self._eultype) convmat, do_conv, coordnorm = get_coordconv_matrix(c) r = np.dot(rotmat, convmat) if i: r = r.T self._matrix = np.dot(self._matrix, r) self._do_rotation = self._do_rotation or (do_rot or do_conv) def _is_coords_consistent(self): for c, i in zip(self._coords, self._invs): break for cnext, inext in zip(self._coords[1:], self._invs[1:]): if c[i] != cnext[not inext]: return False c, i = cnext, inext return True consistent = property( _is_coords_consistent, doc="consistency of the coords transform chain" ) def __eq__(self, a): if type(a) is not type(self): return False # compare the _rots v = [np.allclose(x, y, rtol=0, atol=1e-15) for x, y in zip(self._rots, a._rots)] return ( np.array(v).all() and (self._coords == a._coords) and (self._invs == a._invs) ) def __call__(self, *args, **kwds): """Use the rotator to rotate either spherical coordinates (theta, phi) or a vector (x,y,z). You can use lonla keyword to use longitude, latitude (in degree) instead of theta, phi (in radian). In this case, returns longitude, latitude in degree. Accepted forms: r(x,y,z) # x,y,z either scalars or arrays r(theta,phi) # theta, phi scalars or arrays r(lon,lat,lonlat=True) # lon, lat scalars or arrays r(vec) # vec 1-D array with 3 elements, or 2-D array 3xN r(direction) # direction 1-D array with 2 elements, or 2xN array Parameters ---------- vec_or_dir : array or multiple arrays The direction to rotate. See above for accepted formats. lonlat : bool, optional If True, assumes the input direction is longitude/latitude in degrees. Otherwise, assumes co-latitude/longitude in radians. Default: False inv : bool, optional If True, applies the inverse rotation. Default: False. """ if kwds.pop("inv", False): m = self._matrix.T else: m = self._matrix lonlat = kwds.pop("lonlat", False) if len(args) == 1: arg = args[0] if not hasattr(arg, "__len__") or len(arg) < 2 or len(arg) > 3: raise TypeError("Argument must be a sequence of 2 or 3 " "elements") if len(arg) == 2: return rotateDirection( m, arg[0], arg[1], self._do_rotation, lonlat=lonlat ) else: return rotateVector(m, arg[0], arg[1], arg[2], self._do_rotation) elif len(args) == 2: return rotateDirection( m, args[0], args[1], self._do_rotation, lonlat=lonlat ) elif len(args) == 3: return rotateVector(m, args[0], args[1], args[2], self._do_rotation) else: raise TypeError("Either 1, 2 or 3 arguments accepted") def __mul__(self, a): """Composition of rotation.""" if not isinstance(a, Rotator): raise TypeError( "A Rotator can only multiply another Rotator " "(composition of rotations)" ) rots = self._rots + a._rots coords = self._coords + a._coords invs = self._invs + a._invs return Rotator(rot=rots, coord=coords, inv=invs, deg=False) def __rmul__(self, b): if not isinstance(b, Rotator): raise TypeError( "A Rotator can only be multiplied by another Rotator " "(composition of rotations)" ) rots = b._
(rot=None, coord=None, inv=None, deg=True, eulertype='ZYX')
[ 0.014586497098207474, -0.01636952906847, 0.04146088287234306, 0.049237482249736786, -0.0033136482816189528, -0.06092386692762375, -0.08137504011392593, 0.03561769053339958, -0.018045149743556976, 0.01657361164689064, 0.008539223112165928, 0.02179381623864174, 0.02498394064605236, 0.08567149937152863, -0.043909866362810135, 0.02599360980093479, -0.0007760488661006093, 0.013265334069728851, -0.04255647957324982, -0.012395299971103668, -0.004564993549138308, -0.0065789613872766495, 0.038195569068193436, 0.04747593030333519, -0.037615545094013214, 0.06092386692762375, 0.04279278591275215, 0.0038695032708346844, -0.004422673024237156, 0.0024758377112448215, -0.027540337294340134, 0.024403918534517288, 0.011965653859078884, -0.03493025526404381, -0.01486576721072197, -0.03276054188609123, -0.0011889123125001788, 0.033447977155447006, -0.02640177309513092, 0.05245983228087425, 0.0004940934013575315, -0.003899041563272476, 0.05984975025057793, -0.021439356729388237, -0.023329801857471466, 0.01926964335143566, -0.04158977419137955, 0.02878631092607975, -0.030118215829133987, -0.02442540042102337, 0.056799259036779404, -0.07660596072673798, 0.066036656498909, -0.0047529637813568115, 0.010628378950059414, 0.059291210025548935, 0.0407090000808239, 0.06827081739902496, 0.04429654777050018, -0.030956026166677475, 0.002410047920420766, 0.012116029858589172, -0.005021492950618267, 0.02736847847700119, 0.024812081828713417, -0.012567158788442612, 0.008324399590492249, -0.011804535984992981, 0.02779812552034855, 0.06775524467229843, -0.021697144955396652, 0.020698217675089836, 0.02552099898457527, -0.05843191593885422, 0.060236431658267975, 0.02687438577413559, -0.06036532670259476, -0.0013157922076061368, 0.02683142013847828, -0.04506991058588028, 0.005886156111955643, 0.006616555154323578, 0.029924875125288963, 0.01650916412472725, 0.007142872083932161, 0.049667127430438995, -0.0037003299221396446, -0.014317967928946018, -0.03933413326740265, -0.04876486957073212, -0.03162197768688202, -0.053490981459617615, -0.007051572203636169, -0.014393155463039875, -0.04743296653032303, 0.01682065799832344, -0.0026423255912959576, -0.04897969588637352, 0.0029189104679971933, -0.008238470181822777, 0.009156839922070503, 0.0078141950070858, -0.04769075661897659, 0.006036532577127218, 0.021192310377955437, -0.018367385491728783, -0.0605371855199337, -0.0079377181828022, 0.032846469432115555, -0.01589691825211048, -0.016562869772315025, 0.0891086757183075, -0.01578950695693493, 0.015263189561665058, -0.022298650816082954, -0.03561769053339958, -0.04842115566134453, -0.03508063033223152, -0.05873266980051994, 0.01832442171871662, 0.07282507419586182, 0.008415699936449528, 0.019849665462970734, 0.03838890790939331, 0.034264303743839264, -0.05525253340601921, -0.005394747946411371, 0.03031155653297901, 0.016315823420882225, -0.0436735600233078, 0.026595115661621094, -0.023737965151667595, -0.010397443547844887, 0.03991415351629257, 0.010241697542369366, 0.05417841672897339, 0.01790551468729973, -0.013823874294757843, -0.08373808860778809, 0.035252489149570465, 0.020000042393803596, 0.01994633674621582, 0.026552150025963783, 0.01342645101249218, -0.007663818541914225, 0.049624163657426834, 0.025821750983595848, 0.020880816504359245, 0.006219132337719202, -0.02781960740685463, 0.02491949312388897, -0.023652037605643272, 0.051643501967191696, 0.006079497281461954, 0.0077551184222102165, -0.04567141830921173, -0.0036278271581977606, -0.018592949956655502, -0.003281424753367901, 0.059720855206251144, -0.008904422633349895, -0.04408172518014908, -0.02089155837893486, 0.03419985622167587, 0.04232017323374748, 0.004409246612340212, 0.037121452391147614, -0.00600430928170681, -0.036691807210445404, 0.015886176377534866, 0.0086251525208354, -0.02105267532169819, -0.039677850902080536, -0.03134270757436752, -0.001045920536853373, 0.0297744981944561, -0.03512359783053398, 0.026595115661621094, -0.015864694491028786, -0.029022617265582085, -0.011815276928246021, -0.010757273063063622, -0.00444146990776062, -0.012040841393172741, 0.02190122753381729, 0.07652003318071365, 0.05078420788049698, -0.04897969588637352, 0.052073147147893906, -0.03555324301123619, -0.0565844364464283, -0.001207037945277989, -0.028979653492569923, 0.03729331120848656, 0.00041252770461142063, 0.033748727291822433, -0.05078420788049698, 0.03682069852948189, 0.03020414523780346, 0.020290052518248558, -0.031901247799396515, -0.008641264401376247, 0.0650484710931778, -0.026208432391285896, -0.03250275179743767, 0.014672426506876945, 0.026251398026943207, -0.02165418118238449, 0.04558548703789711, 0.012653088197112083, 0.0690012201666832, -0.050698280334472656, -0.008361994288861752, -0.016229894012212753, -0.000996913993731141, 0.028141841292381287, 0.037679992616176605, 0.019441502168774605, 0.03546731546521187, 0.06358767300844193, 0.08464034646749496, 0.02039746567606926, -0.04747593030333519, -0.05082717537879944, -0.0040923822671175, -0.011815276928246021, 0.002250273246318102, -0.014092403464019299, -0.04958119988441467, -0.014511308632791042, 0.055897001177072525, -0.06994643807411194, -0.008968869224190712, 0.005384007003158331, -0.05868970602750778, -0.04554252326488495, 0.0124704884365201, 0.016702504828572273, -0.033447977155447006, 0.02113860473036766, -0.048163365572690964, 0.015230966731905937, 0.005558550823479891, 0.02129972167313099, -0.00233620242215693, 0.035703618079423904, 0.048678942024707794, 0.04079493135213852, -0.04601513594388962, 0.004658978432416916, -0.03132122755050659, 0.01986040733754635, -0.02403871901333332, -0.009817421436309814, -0.004991954658180475, -0.029946357011795044, 0.032373860478401184, 0.009274992160499096, 0.06629444658756256, -0.005394747946411371, 0.03074120357632637, -0.05091310292482376, 0.006621925625950098, 0.002230133628472686, 0.018496278673410416, -0.03780888766050339, 0.004360911436378956, -0.0004078284546267241, -0.02354462444782257, 0.002144204219803214, 0.08137504011392593, 0.03179383650422096, -0.0930614173412323, 0.03884003683924675, 0.03886152058839798, 0.017894774675369263, 0.0322449654340744, -0.014597238041460514, 0.020429687574505806, 0.017841069027781487, 0.003410318633541465, 0.011417854577302933, -0.023630553856492043, 0.013748685829341412, -0.08592928946018219, -0.03849632292985916, -0.02693883143365383, -0.013523121364414692, 0.028249254450201988, 0.019108526408672333, 0.042986128479242325, -0.003029007464647293, -0.006305061746388674, -0.02923743985593319, 0.1056930273771286, 0.009011833928525448, -0.055939968675374985, -0.03935561329126358, 0.030547862872481346, -0.04958119988441467, 0.0117830540984869, -0.024747634306550026, 0.03995712101459503, -0.07261025160551071, -0.010827090591192245, -0.030461933463811874, -0.01844257302582264, -0.05327615886926651, 0.02253495529294014, 0.004293779376894236, 0.026294361799955368, -0.009940944612026215, -0.055854037404060364, -0.021976415067911148, 0.026702526956796646, 0.020451171323657036, 0.011976394802331924, -0.01733623445034027, 0.07123538106679916, 0.05916231498122215, 0.0009190405835397542, 0.03896893188357353, -0.024790599942207336, -0.0008304259972646832, 0.013662757351994514, -0.05022566765546799, 0.010488743893802166, 0.029645605012774467, 0.021557509899139404, 0.037658512592315674, -0.049624163657426834, -0.005520956590771675, 0.0036654211580753326, 0.020794887095689774, 0.0018192841671407223, -0.01830293796956539, -0.005859303288161755, -0.018206268548965454, 0.047733720391988754, -0.006503772921860218, 0.08859309554100037, -0.005373266059905291, -0.026530668139457703, 0.028206288814544678, 0.005013437010347843, -0.011160066351294518, 0.056799259036779404, 0.004113864619284868, 0.03162197768688202, 0.020075229927897453, -0.010257808491587639, 0.054994743317365646, -0.020085971802473068, -0.01772291585803032, -0.05426434427499771, 0.03419985622167587, -0.017325492575764656, -0.06320099532604218, 0.006922678556293249, -0.03402799740433693, 0.02116008661687374, -0.006401732098311186, -0.015596166253089905, 0.012459746561944485, -0.06148240715265274, -0.057830411940813065, -0.039613403379917145, -0.050612352788448334, 0.04743296653032303, 0.0006535325082950294, 0.04307205602526665, -0.013823874294757843, 0.0054994747042655945, -0.0016487682005390525, -0.04906562343239784, 0.03651994839310646, 0.024167612195014954, 0.04549955949187279, -0.025241728872060776, -0.07484441250562668, 0.032438308000564575, 0.003437171457335353, 0.024403918534517288, 0.051084961742162704, -0.0016286285826936364, 0.02775515988469124, 0.03398503363132477, 0.05276058241724968, 0.023136461153626442, 0.01533837802708149, -0.08597225695848465, 0.005332986358553171, 0.07905494421720505, -0.05624071881175041, -0.04751889780163765, 0.02728254906833172, 0.009328698739409447, 0.06655223667621613, -0.05997864529490471, -0.06148240715265274, 0.006278208456933498, -0.015757283195853233, 0.010257808491587639, 0.02696031518280506, -0.0008592928643338382, -0.0202148649841547, 0.09134283661842346, -0.02257792092859745, 0.01055856142193079, 0.010880796238780022, -0.033856138586997986, -0.018818514421582222, 0.04846411943435669, -0.031858284026384354, -0.017679952085018158, 0.0014285744400694966, -0.05795930698513985, -0.016176188364624977, 0.038152605295181274, 0.04403876140713692, -0.018861478194594383, 0.05993567779660225, 0.022298650816082954, 0.07016126066446304, 0.03258868306875229, 0.00829754676669836, -0.014855025336146355, -0.01132118422538042, -0.021772334352135658, -0.005757262464612722, -0.0008807752165012062, -0.01634804718196392, 0.01512355450540781, -0.0347154326736927, 0.014436120167374611, 0.003101510228589177, 0.012889393605291843, 0.04670256748795509, -0.01790551468729973, 0.06045125424861908, 0.03261016681790352, 0.01487650815397501, -0.03926968574523926, -0.02058006450533867, -0.04375949129462242, -0.021493064239621162, -0.01341571006923914, 0.017529575154185295, -0.028464077040553093, 0.030118215829133987, 0.09572523087263107, 0.08678857982158661, -0.01846405677497387, -0.018839996308088303, 0.0057142977602779865, 0.006879713851958513, 0.015155778266489506, 0.020794887095689774, -0.06143943965435028, -0.05675629526376724, 0.01219121739268303, -0.0004937577759847045, -0.0009156839805655181, 0.008979611098766327, -0.018657397478818893, 0.02975301630795002, -0.006686372682452202, -0.0014272318221628666, -0.04358763247728348, -0.010145026259124279, 0.031965695321559906, -0.035231009125709534, 0.006514514330774546, 0.026229916140437126, 0.0002901791885960847, 0.028012948110699654, -0.028936687856912613, -0.03847483918070793, -0.06891529262065887, -0.047304075211286545, -0.07643410563468933, -0.07677781581878662, 0.006664890330284834, 0.016154706478118896, 0.032846469432115555, -0.001072773477062583, 0.009060169570147991, -0.013437192887067795, 0.008093465119600296, 0.012857169844210148, -0.05963492766022682, 0.054908815771341324, -0.004879172425717115, 0.05903341993689537, -0.010998949408531189, 0.053448017686605453, -0.014049438759684563, -0.06547811627388, -0.03948450833559036, 0.014522049576044083, 0.0702042281627655, 0.026616597548127174, 0.0024932920932769775, -0.020655252039432526, 0.03649846464395523, -0.03843187540769577, -0.033834658563137054, -0.03942006081342697, -0.05370580404996872, 0.015230966731905937, -0.046745531260967255, -0.013909803703427315, 0.05430731177330017, -0.014210555702447891, -0.03853928670287132, 0.017443645745515823, -0.03488729149103165, 0.021235276013612747, -0.03510211408138275, -0.052631691098213196, 0.01832442171871662, 0.010225585661828518, -0.015424307435750961, 0.0037164418026804924, -0.0088721988722682, 0.0498819537460804, -0.011127842590212822, -0.043029092252254486, 0.04842115566134453, -0.006213761866092682, -0.06650926917791367, -0.006503772921860218, -0.06375953555107117, 0.020268570631742477, 0.0015561257023364305, 0.04549955949187279, 0.0004397162701934576, -0.026595115661621094, 0.02691734954714775, -0.01776587963104248, 0.00659507280215621, 0.024747634306550026, 0.0033243894577026367, -0.034264303743839264, -0.028507040813565254, -0.022169755771756172, 0.05220204219222069, -0.004022564738988876, -0.009436110034584999, -0.01100969035178423, -0.015982847660779953, -0.05727187171578407, 0.0193663127720356, 0.029624123126268387, -0.023802412673830986, 0.002176427748054266, -0.016423234716057777, -0.02305053174495697, -0.006858231499791145, 0.020429687574505806, 0.00952203944325447, 0.07046201825141907, -0.036713287234306335, -0.05031159892678261, 0.006632667034864426, 0.026101021096110344, 0.06908714771270752, -0.014210555702447891, 0.018313679844141006, -0.009897979907691479, 0.00886145792901516, 0.0027121431194245815, -0.043029092252254486, -0.03306129202246666, -0.04259944334626198, -0.013469415716826916, -0.0039688590914011, 0.02981746383011341, -0.028399629518389702, -0.083824023604393, 0.0500967763364315, -0.017164375633001328, -0.03121381439268589, -0.06590776145458221, 0.047261107712984085, -0.03701404109597206, -0.019828183576464653, 0.07922680675983429, 0.027046242728829384, 0.02545655146241188, -0.025220246985554695, 0.028399629518389702, -0.027089208364486694, -0.04696035757660866, 0.0046831462532281876, -0.004326002672314644, 0.03939857706427574, 0.025026904419064522, 0.02348017878830433, -0.023179424926638603, -0.04945230484008789, -0.027561819180846214, 0.0056874449364840984, -0.03808815777301788, -0.08184764534235, -0.028399629518389702, -0.036734770983457565, -0.010010762140154839, -0.0069334194995462894, -0.010279291309416294, 0.01195491198450327, 0.00807198230177164, 0.009962426498532295, -0.05671333149075508, 0.016337305307388306, -0.040043048560619354, -0.07639113813638687, 0.0436735600233078, 0.05147164314985275, 0.03849632292985916, -0.05039752647280693, -0.02835666574537754, -0.08412477374076843, -0.018678879365324974, -0.06762634962797165, -0.014328708872199059, 0.013114958070218563, -0.00040648580761626363, 0.07377029210329056, -0.07561777532100677, 0.028098877519369125, -0.05520956963300705, 0.06423214077949524, -0.030440449714660645, 0.026981797069311142, -0.04421062022447586, -0.033383529633283615, 0.004707314074039459, 0.01348015759140253, 0.04567141830921173, 0.0036976446863263845, -0.029881909489631653, 0.003031692700460553, -0.0022757835686206818, -0.022169755771756172, -0.05022566765546799, 0.027046242728829384, 0.03465098515152931, 0.05194425582885742, 0.027604784816503525, 0.009548892267048359, 0.11600454151630402, -0.0043985056690871716, -0.03377021104097366, -0.051084961742162704, -0.04549955949187279, -0.0018058577552437782, 0.0036278271581977606, -0.0003027664788533002, 0.02889372408390045, 0.008023647591471672, 0.022835709154605865, -0.00210526748560369, -0.01465094368904829, 0.004009138327091932, -0.0315360501408577, -0.005907638464123011, 0.07798083126544952, 0.023931307718157768, 0.028485558927059174, -0.029881909489631653, -0.0481204017996788, 0.04178311675786972, 0.01873258501291275, 0.0037620917428284883, -0.0335124209523201, 0.05993567779660225, -0.06689595431089401, 0.01722882315516472, 0.030418967828154564, -0.0751451626420021, 0.05701408162713051, -0.005929120816290379, 0.012771240435540676, -0.021761592477560043, 0.05168646574020386, 0.04476916044950485, 0.0038131121546030045, -0.03282498940825462, -0.0751451626420021, 0.0451558418571949, 0.04928044602274895, 0.0419120118021965, -0.042040903121232986, 0.027969984337687492, 0.009022574871778488, -0.07428587228059769, 0.028141841292381287, -0.00998390931636095, -0.018721843138337135, 0.030977508053183556, -0.022943120449781418, -0.012352335266768932, 0.049710094928741455, -0.007502701133489609, -0.0347154326736927, -0.010499484837055206, -0.013802392408251762, 0.00230532162822783, -0.06045125424861908, 0.01698177494108677, 0.05916231498122215, 0.06814192235469818, -0.03155753016471863, 0.03157901391386986, -0.04799150675535202, 0.04472619295120239, 0.04876486957073212, 0.021020451560616493, -0.00828680582344532, -0.03991415351629257, -0.027927018702030182, 0.02537062205374241, -0.014919472858309746, 0.006090238224714994, -0.015424307435750961, -0.02442540042102337, -0.023823894560337067, -0.02348017878830433, -0.029409298673272133, -0.03456505760550499, 0.06865750253200531, 0.03462950512766838, 0.056799259036779404, -0.026788456365466118, -0.05662740021944046, -0.023351283743977547, -0.01873258501291275, -0.0690012201666832, 0.06513439863920212, -0.01805589161813259, 0.003211607225239277, -0.033340565860271454, -0.018829256296157837, -0.02201938070356846, 0.035789549350738525, -0.026143986731767654, 0.030397485941648483, -0.011847500689327717, -0.015316896140575409, 0.034822843968868256, -0.052975405007600784, -0.022169755771756172, -0.010252438485622406, 0.01019873283803463, -0.012556416913866997, -0.009978538379073143, 0.018131079152226448, 0.003176698461174965, -0.04363059625029564, -0.06496254354715347, -0.009215916506946087, -0.00842106994241476, 0.034779880195856094, 0.014844284392893314, 0.016272859647870064, -0.014382414519786835, 0.03997860103845596 ]
37,632
healpy.rotator
I
Rotate the given vector or direction using the inverse matrix. rot.I(vec) <==> rot(vec,inv=True)
def I(self, *args, **kwds): """Rotate the given vector or direction using the inverse matrix. rot.I(vec) <==> rot(vec,inv=True) """ kwds["inv"] = True return self.__call__(*args, **kwds)
(self, *args, **kwds)
[ -0.011625641025602818, -0.03984455764293671, 0.09217718988656998, 0.027891188859939575, -0.01790417730808258, -0.057024288922548294, -0.03439395874738693, 0.009504048153758049, 0.037705715745687485, 0.0152133759111166, -0.002485972596332431, -0.009357433766126633, -0.018594127148389816, 0.03453194722533226, -0.06571764498949051, 0.03504941239953041, -0.0008672875119373202, 0.012470828369259834, -0.037912700325250626, -0.02601107768714428, 0.005791259463876486, 0.0019717449322342873, 0.0362568199634552, 0.015541101805865765, 0.006817558780312538, 0.05360903963446617, 0.0006446711486205459, -0.024682926014065742, 0.0537470281124115, -0.03168591111898422, -0.0144544318318367, 0.05005580186843872, -0.012746808119118214, -0.01769719272851944, 0.027270235121250153, 0.003710632212460041, -0.01018537301570177, 0.017550578340888023, 0.0015319024678319693, 0.022078368812799454, 0.01095294114202261, -0.031875643879175186, 0.08914141356945038, -0.0009508359944447875, -0.037774708122015, -0.002643367275595665, 0.005260861478745937, -0.02816716954112053, 0.05533391237258911, -0.019335821270942688, 0.033514272421598434, -0.029271088540554047, 0.0791371539235115, -0.044708698987960815, -0.016748512163758278, 0.061336468905210495, 0.02470017597079277, 0.011151301674544811, 0.04432922601699829, -0.004984881728887558, -0.014419934712350368, -0.046985529363155365, 0.0009357433882541955, 0.03287607058882713, 0.04253535717725754, 0.03739523887634277, 0.0066623203456401825, 0.03465269133448601, 0.02589033730328083, 0.04074149206280708, -0.03391099348664284, 0.013031411916017532, -0.014911523088812828, -0.0032966628205031157, 0.022181861102581024, 0.004085791762918234, -0.04422573372721672, 0.003081053728237748, 0.002917190780863166, -0.023009799420833588, -0.002263895235955715, -0.04636457562446594, -0.030995959416031837, 0.06361330300569534, -0.058852653950452805, -0.036636292934417725, -0.001946949982084334, -0.09245316684246063, -0.0015383707359433174, -0.016748512163758278, -0.046226583421230316, -0.03691227361559868, -0.019887780770659447, 0.01364374253898859, -0.05278110131621361, -0.009038331918418407, 0.024217210710048676, -0.04118995741009712, 0.017990421503782272, -0.00020563715952448547, -0.009460926055908203, 0.012108605355024338, -0.010538971051573753, -0.044398218393325806, 0.019128836691379547, -0.03472168371081352, -0.04301832243800163, -0.04964183270931244, 0.025648854672908783, -0.027856692671775818, 0.02533837780356407, 0.08548468351364136, -0.04605409875512123, -0.0012710154987871647, -0.04284583404660225, -0.006714066490530968, -0.02361350506544113, -0.025838591158390045, -0.028719129040837288, 0.042362868785858154, 0.014661417342722416, -0.00639065308496356, 0.005700703710317612, -0.03591184690594673, 0.033290039747953415, -0.046433571726083755, -0.03698126971721649, 0.0060629271902143955, 0.02782219462096691, -0.023768743500113487, 0.002468723803758621, -0.05843868479132652, -0.028736377134919167, 0.06202641874551773, 0.006778749171644449, 0.018404390662908554, 0.08037906140089035, -0.02242334373295307, -0.03843016177415848, 0.10576918721199036, -0.02708049863576889, 0.01137553434818983, 0.011556645855307579, 0.08631262183189392, 0.04964183270931244, 0.04122445359826088, 0.0644412413239479, 0.015903325751423836, 0.02882262133061886, -0.03908561170101166, 0.04660605639219284, 0.015058137476444244, 0.020008521154522896, -0.014221574179828167, 0.0010500161442905664, 0.008874469436705112, -0.0028287910390645266, -0.003734349040314555, -0.005489407107234001, 0.01997402496635914, 0.022164613008499146, 0.022164613008499146, -0.03884413093328476, 0.027994681149721146, 0.0436047799885273, 0.02609732188284397, 0.07582540065050125, 0.028650132939219475, -0.03108220361173153, 0.028667382895946503, -0.03334178775548935, -0.06392377614974976, -0.056920796632766724, -0.014109457843005657, -0.000721751363016665, 0.0014521271223202348, -0.043984249234199524, 0.060060061514377594, 0.010133626870810986, 0.030685482546687126, -0.03137543052434921, 0.027787696570158005, -0.044087741523981094, -0.05671381205320358, 0.011384159326553345, 0.01606718823313713, 0.028029179200530052, -0.01662777177989483, 0.04074149206280708, -0.06175043806433678, -0.02416546456515789, 0.01758507639169693, 0.024355201050639153, -0.0024816603399813175, -0.04988331347703934, -0.0188873540610075, -0.08562267571687698, 0.014980518259108067, 0.029736803844571114, -0.004359615501016378, 0.03239310532808304, -0.005821445025503635, 0.0334625281393528, -0.007425576448440552, -0.03408348187804222, 0.03560137003660202, -0.0008640533778816462, -0.06371679157018661, 0.04153493046760559, 0.013316016644239426, 0.06885690987110138, -0.003083209739997983, -0.007184094283729792, -0.037912700325250626, -0.03291057050228119, 0.10832199454307556, -0.01650703139603138, 0.005549777299165726, 0.029650559648871422, 0.09059030562639236, 0.03373850882053375, 0.038464657962322235, -0.07527343928813934, -0.05257411673665047, 0.005506655666977167, -0.028529392555356026, 0.02664928138256073, -0.03894762322306633, -0.06430324912071228, -0.030995959416031837, -0.004385488573461771, -0.014212950132787228, -0.0004568217264022678, 0.018093913793563843, -0.07596338540315628, -0.036532800644636154, -0.030254265293478966, 0.014195701107382774, -0.017352217808365822, 0.043535783886909485, 0.0030551806557923555, 0.04998680576682091, 0.004924511071294546, 0.05122871696949005, 0.010763204656541348, 0.04219038411974907, -0.02242334373295307, 0.06689056009054184, -0.010823575779795647, 0.017326345667243004, -0.055402908474206924, -0.014359564520418644, -0.05937011539936066, 0.005019379314035177, 0.0372917465865612, 0.028115423396229744, 0.008020657114684582, -0.027356479316949844, 0.009676535613834858, -0.0017410432919859886, 0.002447162987664342, -0.03901661932468414, -0.0028762249276041985, -0.03580835461616516, 0.02587308920919895, -0.010711458511650562, -0.012324214912950993, -0.003236292162910104, 0.06589013338088989, 0.01695549674332142, 0.04757198691368103, -0.011280667036771774, -0.027666956186294556, 0.011073681525886059, 0.06254387646913528, 0.021819638088345528, 0.012798554264008999, 0.010021509602665901, -0.032324112951755524, 0.025631606578826904, 0.025648854672908783, 0.022475089877843857, -0.044191233813762665, -0.02525213547050953, -0.0643722414970398, -0.02069847099483013, -0.012056859210133553, 0.008482061326503754, -0.004031889606267214, -0.01628279685974121, 0.10321637243032455, 0.08231092244386673, -0.006951236631721258, 0.0006786295562051237, 0.002501065144315362, -0.019767040386795998, -0.04971082881093025, -0.012608818709850311, 0.03615332767367363, 0.010668337345123291, -0.003408779390156269, -0.05988757684826851, -0.0672355368733406, -0.08700257539749146, 0.004708901979029179, -0.008512246422469616, -0.021181434392929077, 0.023699749261140823, -0.029081352055072784, 0.0027317670173943043, 0.019335821270942688, 0.022388845682144165, -0.09169422835111618, -0.024958906695246696, -0.00015604707004968077, -0.002197056543081999, -0.0013604932464659214, -0.028529392555356026, 0.04270784556865692, 0.021836886182427406, 0.023596256971359253, 0.022268105298280716, -0.04325980320572853, -0.033083055168390274, -0.03784370422363281, -0.022164613008499146, 0.0024191339034587145, 0.020870957523584366, 0.021077942103147507, 0.02145741507411003, 0.031151199713349342, 0.00787835568189621, 0.0027770448941737413, -0.009046956896781921, -0.06575214117765427, -0.006994358263909817, 0.01855962909758091, 0.03994804993271828, 0.04960733652114868, 0.06337182223796844, 0.05091824010014534, -0.019801536574959755, -0.04453621059656143, 0.013152153231203556, -0.025096895173192024, 0.014419934712350368, 0.0360153391957283, 0.01792142540216446, 0.04291483014822006, 0.019042592495679855, 0.0030875219963490963, 0.017317721620202065, 0.01771444082260132, -0.010159499943256378, -0.0537470281124115, 0.05564438924193382, 0.006274223793298006, -0.042880333960056305, -0.016662269830703735, -0.07527343928813934, -0.004006016533821821, 0.0025786845944821835, -0.03584285080432892, 0.00933156069368124, -0.014497553929686546, -0.05385052040219307, -0.01682613231241703, -0.044398218393325806, 0.016662269830703735, 0.04025852680206299, 0.016308670863509178, -0.023354774340987206, 0.013203899376094341, 0.04132794588804245, -0.04532965272665024, 0.008244890719652176, -0.038464657962322235, 0.007718804758042097, 0.0033678137697279453, -0.04971082881093025, 0.017119361087679863, -0.03116844780743122, 0.05002130568027496, 0.008874469436705112, -0.022406095638871193, 0.049365852028131485, 0.04432922601699829, 0.0765843391418457, 0.03246210142970085, -0.010927068069577217, -0.08845146745443344, -0.03482517600059509, 0.026925260201096535, -0.07034030556678772, -0.010547596029937267, -0.029322834685444832, 0.02276831865310669, 0.028425900265574455, -0.007774863392114639, -0.11377259343862534, -0.014971894212067127, 0.07071977853775024, 0.005523904226720333, 0.0072444649413228035, -0.010694210417568684, 0.007723116781562567, 0.014506177976727486, 0.005437660962343216, 0.05278110131621361, -0.05391951650381088, -0.01725734956562519, 0.004510541912168264, 0.006127609871327877, -0.052505120635032654, 0.040293022990226746, -0.009374682791531086, 0.04053450748324394, -0.014704538509249687, -0.017541954293847084, 0.021112440153956413, 0.024441445246338844, 0.061543453484773636, 0.05285009741783142, 0.012867549434304237, -0.010599342174828053, -0.0005433348705992103, 0.0026239624712616205, -0.04960733652114868, 0.010521722957491875, 0.0014532051282003522, -0.06589013338088989, -0.04222488030791283, 0.05143570154905319, 0.0181284099817276, 0.026563037186861038, -0.012591569684445858, -0.005058188922703266, -0.014747660607099533, -0.04118995741009712, 0.10004261136054993, 0.03397998958826065, -0.006110361311584711, -0.04508816823363304, -0.03366951271891594, -0.058059211820364, -0.005709328223019838, -0.011591143906116486, 0.051953162997961044, 0.05295358970761299, 0.00781798455864191, 0.11149576306343079, 0.06961585581302643, -0.004674404859542847, -0.020474238321185112, -0.0022401781752705574, -0.030909717082977295, -0.026563037186861038, 0.021509161219000816, 0.02480366826057434, -0.02837415412068367, 0.0006824026932008564, -0.001364805386401713, -0.040189530700445175, -0.053678035736083984, 0.010763204656541348, 0.027011504396796227, -0.014083584770560265, -0.01191886980086565, -0.010245743207633495, -0.0028805371839553118, 0.02642504870891571, -0.02202662266790867, -0.003432496450841427, -0.0313064381480217, 0.04381176456809044, 0.019767040386795998, -0.02663203328847885, -0.016558777540922165, -0.0423283725976944, -0.046778544783592224, -0.07637735456228256, -0.05450597405433655, -0.02944357506930828, 0.03936159238219261, 0.026045575737953186, -0.029961036518216133, -0.010004260577261448, 0.02361350506544113, 0.029857544228434563, -0.020577730610966682, 0.01219484955072403, 0.06599362194538116, 0.01843888871371746, 0.06978834420442581, 0.05871466174721718, 0.010875321924686432, -0.05167718231678009, -0.0436047799885273, -0.026131819933652878, 0.010349235497415066, 0.04974532499909401, -0.01289342250674963, 0.004557975567877293, -0.0011071525514125824, -0.02620081417262554, -0.026080073788762093, 0.001047321013174951, -0.047951456159353256, -0.024734672158956528, -0.01811116188764572, 0.004644219297915697, 0.0036545738112181425, 0.01878386177122593, -0.004385488573461771, 0.004980569705367088, 0.048365429043769836, -0.07196168601512909, 0.048399925231933594, 0.019387567415833473, -0.04484668746590614, 0.06830495595932007, -0.042569857090711594, -0.054229993373155594, -0.008805474266409874, 0.000272341218078509, 0.04453621059656143, -0.028960609808564186, -0.03646380454301834, 0.02470017597079277, 0.024976154789328575, -0.08658860623836517, -0.017455710098147392, -0.024424195289611816, 0.03085797093808651, -0.055954866111278534, 0.044294726103544235, -0.0030702732037752867, -0.030064528807997704, 0.014402685686945915, 0.0068132467567920685, -0.0068132467567920685, 0.03228961303830147, -0.01019399706274271, -0.00687361741438508, -0.013255645520985126, -0.007912852801382542, -0.06195742264389992, 0.002285456284880638, -0.008602801710367203, 0.00144350272603333, -0.09679985046386719, -0.03794719651341438, 0.011013311333954334, -0.0060844882391393185, -0.015282371081411839, 0.043880756944417953, -0.04519166052341461, 0.012720935046672821, -0.042880333960056305, 0.03227236494421959, 0.029650559648871422, 0.053126074373722076, 0.03853365406394005, -0.03391099348664284, 0.020439740270376205, 0.03506666049361229, 0.1156354546546936, -0.036843277513980865, 0.07196168601512909, -0.009797275997698307, 0.004249654710292816, -0.054540470242500305, 0.00027921373839490116, 0.01386797521263361, -0.07285861670970917, 0.03591184690594673, 0.057127781212329865, -0.018318146467208862, 0.000057304849178763106, -0.07513544708490372, -0.017990421503782272, -0.04350128769874573, -0.03087521903216839, -0.024424195289611816, 0.01899084635078907, -0.03591184690594673, -0.011582518927752972, 0.09045232087373734, 0.008727855049073696, 0.06454472988843918, 0.0066407592967152596, -0.028667382895946503, -0.04684754088521004, 0.0030573366675525904, 0.014463056810200214, 0.0029107225127518177, 0.024562185630202293, 0.007136660162359476, 0.012971041724085808, -0.03287607058882713, -0.027580711990594864, 0.015627345070242882, 0.005661894101649523, 0.016110310330986977, -0.0938330665230751, 0.026821767911314964, -0.056161850690841675, -0.021112440153956413, -0.002356607234105468, 0.011323788203299046, 0.008417378179728985, -0.009366057813167572, 0.008624362759292126, -0.004234562162309885, 0.010400981642305851, 0.02664928138256073, -0.03784370422363281, 0.03925810009241104, 0.028029179200530052, 0.030271513387560844, -0.05716227740049362, -0.05871466174721718, -0.0745834931731224, -0.02525213547050953, -0.02126767858862877, 0.01046997681260109, 0.024251708760857582, 0.03591184690594673, 0.05067675560712814, -0.009245317429304123, -0.010866696946322918, 0.0016343167517334223, 0.038154181092977524, 0.06292334944009781, 0.013238397426903248, -0.04884839057922363, -0.043846260756254196, 0.042259376496076584, -0.021974876523017883, 0.06744252145290375, -0.004247498698532581, -0.017835183069109917, 0.023441018536686897, -0.001018752926029265, 0.020732969045639038, -0.045467641204595566, -0.02342377044260502, 0.0014823123347014189, -0.0034669938031584024, -0.011884371750056744, 0.006817558780312538, 0.055954866111278534, -0.01137553434818983, 0.01725734956562519, -0.04205239191651344, -0.020750217139720917, 0.011556645855307579, 0.03272083401679993, 0.05850767716765404, -0.0037084759678691626, -0.021992124617099762, 0.016774386167526245, -0.02695975825190544, -0.029184844344854355, 0.042569857090711594, 0.03142717853188515, 0.010840823873877525, 0.008883093483746052, -0.011246168985962868, -0.030461249873042107, -0.0012570008402690291, 0.010116377845406532, 0.01997402496635914, 0.019680796191096306, 0.013893848285079002, -0.03389374539256096, 0.04532965272665024, -0.052470624446868896, 0.02718399278819561, 0.06813246756792068, -0.07554941624403, -0.04777897149324417, 0.036739785224199295, 0.0020331935957074165, -0.04381176456809044, 0.005454909522086382, -0.002112968824803829, 0.011116803623735905, -0.023372024297714233, -0.08507071435451508, -0.003592047141864896, -0.00477358466014266, 0.023492764681577682, -0.034480202943086624, 0.07120274007320404, 0.019025344401597977, -0.03563586622476578, -0.014092208817601204, 0.026045575737953186, 0.023009799420833588, 0.03691227361559868, 0.0032988188322633505, 0.028788123279809952, 0.048365429043769836, -0.010262992233037949, -0.03520464897155762, 0.01868036948144436, -0.028546640649437904, 0.006735627539455891, -0.030340509489178658, 0.016705390065908432, 0.026718275621533394, 0.03416972607374191, 0.013712736777961254, 0.07320359349250793, -0.002570060081779957, 0.006175043992698193, -0.0005368666024878621, -0.02071571908891201, 0.009366057813167572, 0.010349235497415066, -0.07686032354831696, -0.007197030819952488, -0.036394812166690826, 0.00021803467825520784, -0.042121388018131256, -0.038775134831666946, 0.01747296005487442, -0.008796850219368935, 0.015937821939587593, 0.010616591200232506, 0.016248298808932304, 0.05861116945743561, 0.02761521004140377, -0.02037074603140354, -0.043742768466472626, -0.055609893053770065, -0.0028654446359723806, -0.050745751708745956, 0.008986585773527622, -0.008430315181612968, 0.021405668929219246, 0.02426895685493946, 0.04684754088521004, -0.008710606954991817, 0.02200937457382679, -0.022578582167625427, 0.020974449813365936, 0.023803241550922394, -0.050124797970056534, -0.018421638756990433, 0.017352217808365822, -0.032410357147455215, -0.004808082245290279, 0.028218915686011314, 0.007201342843472958, 0.03874063864350319, 0.03925810009241104, -0.014842528849840164, -0.03389374539256096, -0.045916106551885605, -0.029909290373325348, 0.012281092815101147, 0.020008521154522896, -0.009279814548790455, 0.007102163042873144, 0.07872318476438522, 0.03399723768234253 ]
37,633
healpy.rotator
__call__
Use the rotator to rotate either spherical coordinates (theta, phi) or a vector (x,y,z). You can use lonla keyword to use longitude, latitude (in degree) instead of theta, phi (in radian). In this case, returns longitude, latitude in degree. Accepted forms: r(x,y,z) # x,y,z either scalars or arrays r(theta,phi) # theta, phi scalars or arrays r(lon,lat,lonlat=True) # lon, lat scalars or arrays r(vec) # vec 1-D array with 3 elements, or 2-D array 3xN r(direction) # direction 1-D array with 2 elements, or 2xN array Parameters ---------- vec_or_dir : array or multiple arrays The direction to rotate. See above for accepted formats. lonlat : bool, optional If True, assumes the input direction is longitude/latitude in degrees. Otherwise, assumes co-latitude/longitude in radians. Default: False inv : bool, optional If True, applies the inverse rotation. Default: False.
def __call__(self, *args, **kwds): """Use the rotator to rotate either spherical coordinates (theta, phi) or a vector (x,y,z). You can use lonla keyword to use longitude, latitude (in degree) instead of theta, phi (in radian). In this case, returns longitude, latitude in degree. Accepted forms: r(x,y,z) # x,y,z either scalars or arrays r(theta,phi) # theta, phi scalars or arrays r(lon,lat,lonlat=True) # lon, lat scalars or arrays r(vec) # vec 1-D array with 3 elements, or 2-D array 3xN r(direction) # direction 1-D array with 2 elements, or 2xN array Parameters ---------- vec_or_dir : array or multiple arrays The direction to rotate. See above for accepted formats. lonlat : bool, optional If True, assumes the input direction is longitude/latitude in degrees. Otherwise, assumes co-latitude/longitude in radians. Default: False inv : bool, optional If True, applies the inverse rotation. Default: False. """ if kwds.pop("inv", False): m = self._matrix.T else: m = self._matrix lonlat = kwds.pop("lonlat", False) if len(args) == 1: arg = args[0] if not hasattr(arg, "__len__") or len(arg) < 2 or len(arg) > 3: raise TypeError("Argument must be a sequence of 2 or 3 " "elements") if len(arg) == 2: return rotateDirection( m, arg[0], arg[1], self._do_rotation, lonlat=lonlat ) else: return rotateVector(m, arg[0], arg[1], arg[2], self._do_rotation) elif len(args) == 2: return rotateDirection( m, args[0], args[1], self._do_rotation, lonlat=lonlat ) elif len(args) == 3: return rotateVector(m, args[0], args[1], args[2], self._do_rotation) else: raise TypeError("Either 1, 2 or 3 arguments accepted")
(self, *args, **kwds)
[ 0.0070631555281579494, -0.01272785384207964, 0.04928617924451828, 0.0403284914791584, -0.01202862523496151, -0.06225026026368141, -0.07400486618280411, 0.05333036929368973, 0.03403543308377266, 0.015883833169937134, 0.01181129738688469, 0.008442714810371399, 0.02301785536110401, 0.05733675882220268, -0.045430973172187805, 0.015817688778042793, -0.008386020548641682, 0.04781213030219078, -0.06860001385211945, -0.005480441730469465, 0.03847648203372955, 0.010204960592091084, 0.025323420763015747, 0.0267785731703043, 0.001913430169224739, 0.08594844490289688, 0.04244507849216461, 0.01162231620401144, 0.011017577722668648, -0.0060804556123912334, -0.02367928810417652, 0.06138094887137413, -0.02917862869799137, -0.002648092806339264, -0.02846050076186657, -0.002016188343986869, 0.013994025066494942, 0.036265406757593155, -0.05654304102063179, 0.03756937384605408, -0.015949975699186325, -0.02288556843996048, 0.06686139106750488, -0.013540470972657204, -0.044108107686042786, -0.026513999328017235, -0.060473840683698654, 0.01378614641726017, -0.01826499029994011, -0.004103244747966528, 0.04584673047065735, -0.0330149382352829, 0.06999847292900085, -0.03983714431524277, -0.0038103244733065367, 0.04365455359220505, 0.024510804563760757, 0.05627846717834473, 0.023509206250309944, -0.010630167089402676, -0.0030614882707595825, 0.004011116456240416, 0.0019299659179523587, 0.04233168810606003, 0.0264006108045578, -0.013190856203436852, 0.006387549452483654, 0.018094906583428383, 0.004755228292196989, 0.06115417182445526, -0.04119780287146568, 0.03146529570221901, 0.01183964405208826, -0.05397290363907814, 0.03991273418068886, 0.04898381233215332, -0.06825985014438629, -0.031559787690639496, 0.02757229283452034, -0.03452678397297859, -0.021090252324938774, -0.034356702119112015, 0.03140860050916672, 0.02354700118303299, -0.023206837475299835, 0.01980518363416195, -0.02207295224070549, -0.027251023799180984, -0.03558507561683655, -0.06791968643665314, -0.0373992919921875, -0.045808933675289154, -0.02999124489724636, -0.005858403164893389, -0.08383186161518097, 0.019597304984927177, 0.03709692135453224, -0.02868727780878544, -0.04100882261991501, 0.000823247421067208, -0.0003735322679858655, -0.010204960592091084, 0.005697769578546286, -0.0337141677737236, 0.04875703528523445, -0.027080941945314407, -0.049323976039886475, -0.022413117811083794, 0.013559369370341301, 0.026891961693763733, -0.0230934489518404, 0.05484221503138542, -0.02734551578760147, 0.005962342955172062, -0.011612867005169392, -0.010724658146500587, -0.03265587240457535, -0.03847648203372955, -0.08315153419971466, 0.0028748696204274893, 0.06054943427443504, 0.01224595308303833, 0.04758535325527191, 0.007526158355176449, 0.02039102278649807, -0.05094921216368675, -0.0010984506225213408, -0.0028772319201380014, 0.00647259084507823, 0.011782949790358543, 0.0282337237149477, -0.015005071647465229, -0.013436531648039818, -0.00042432083864696324, 0.05476662144064903, 0.0439947210252285, 0.036624468863010406, -0.03711581975221634, -0.06996067613363266, 0.06500937789678574, 0.030388105660676956, 0.023962760344147682, 0.01819884590804577, 0.03433780372142792, 0.007672618608921766, 0.06648343056440353, 0.04010171443223953, 0.0024378516245633364, 0.02670297957956791, -0.0447506420314312, 0.021751685068011284, -0.03021802194416523, 0.03893003612756729, 0.013965677469968796, 0.000341937062330544, -0.015269644558429718, 0.013842839747667313, -0.03439449891448021, 0.000005278173375700135, 0.05223428085446358, 0.0037748904433101416, -0.01097033265978098, -0.06293059140443802, 0.0329960398375988, 0.0337141677737236, -0.021808378398418427, 0.031559787690639496, -0.00943013932555914, -0.04962634667754173, 0.01730118878185749, 0.022564301267266273, -0.001080143149010837, -0.012236503884196281, -0.026457305997610092, -0.0025228930171579123, 0.014589314348995686, -0.04728298634290695, 0.040366288274526596, 0.013275898061692715, -0.027307718992233276, -0.014589314348995686, 0.007582852616906166, -0.008253734558820724, -0.024624193087220192, 0.023225734010338783, 0.07438282668590546, 0.044259291142225266, -0.04584673047065735, 0.038400888442993164, -0.015373583883047104, -0.015505870804190636, 0.015827137976884842, -0.007129298988729715, 0.028554992750287056, -0.027005350217223167, 0.004658375401049852, -0.04664044827222824, 0.02413284219801426, 0.021883971989154816, 0.017253942787647247, -0.023660389706492424, 0.017792537808418274, 0.05847064405679703, -0.013266448862850666, -0.04743416979908943, 0.03862766548991203, 0.04429708793759346, -0.015014520846307278, 0.008551378734409809, 0.015194052830338478, 0.08005224913358688, -0.04025290161371231, -0.0011604599421843886, -0.004433961119502783, -0.005948169156908989, 0.04119780287146568, 0.012368789874017239, 0.024907663464546204, 0.036038629710674286, 0.06739053875207901, 0.056958798319101334, 0.023225734010338783, -0.025909261777997017, -0.05272563174366951, -0.003982769325375557, -0.03380865603685379, 0.01921934261918068, -0.0053056348115205765, -0.062439240515232086, -0.029027443379163742, 0.023490307852625847, -0.06565191596746445, 0.005617452785372734, 0.011924685910344124, -0.09320531040430069, -0.07385367900133133, 0.06070061773061752, -0.02214854396879673, -0.013247550465166569, 0.03199444338679314, -0.01796262152493, 0.025776974856853485, 0.013030222617089748, 0.039572570472955704, -0.0003865246835630387, 0.03847648203372955, 0.008815952576696873, 0.04996651038527489, -0.01096088346093893, -0.000102905927633401, -0.0623636469244957, 0.03770165890455246, -0.005957618355751038, 0.010866393335163593, 0.0077482108026742935, -0.045355379581451416, 0.05310359224677086, 0.03036920726299286, 0.037210311740636826, -0.004658375401049852, 0.03698353469371796, -0.045430973172187805, 0.0075025358237326145, -0.04236948490142822, 0.010497881099581718, -0.028725074604153633, 0.008645869791507721, 0.0033803931437432766, 0.026438407599925995, 0.031559787690639496, 0.0851169303059578, 0.023452511057257652, -0.07079219073057175, 0.0009513999684713781, 0.05873521789908409, 0.03125741705298424, 0.022261932492256165, -0.013701104559004307, -0.007880497723817825, 0.011197109706699848, 0.023187939077615738, -0.012973528355360031, -0.03821190819144249, 0.021506009623408318, -0.090937539935112, -0.019020913168787956, -0.019616201519966125, 0.014844438061118126, 0.02910303696990013, 0.033846452832221985, 0.07098117470741272, 0.006259987596422434, -0.020712289959192276, -0.017858680337667465, 0.03923240303993225, 0.0015248385025188327, -0.046375878155231476, -0.055484749376773834, 0.03131411224603653, -0.0557115264236927, -0.01096088346093893, -0.033185020089149475, 0.03503703325986862, -0.0696205124258995, -0.01817994937300682, -0.02118474245071411, -0.014381435699760914, -0.04486403241753578, 0.007124574389308691, 0.0029835335444658995, 0.007875773124396801, -0.020183144137263298, -0.06122976541519165, -0.05911317840218544, -0.004188286140561104, 0.04626248776912689, -0.0064867641776800156, -0.020258737727999687, 0.05552254617214203, 0.025833668187260628, 0.005423747468739748, 0.028573889285326004, -0.04391912743449211, -0.0043961647897958755, 0.0030803862027823925, -0.03745598718523979, 0.014542069286108017, 0.010828597471117973, 0.04853025823831558, 0.07801125198602676, -0.010762454010546207, 0.014759397134184837, -0.004686722531914711, 0.025701383128762245, 0.002700062468647957, -0.02367928810417652, 0.00010947595728794113, 0.003054401371628046, 0.058621831238269806, 0.02118474245071411, 0.05382172018289566, -0.025399012491106987, -0.05227207764983177, -0.003581185359507799, -0.00894823856651783, 0.02441631257534027, 0.04890821874141693, 0.02815813198685646, 0.05457764118909836, 0.014532620087265968, 0.036038629710674286, 0.03622760996222496, -0.015524769201874733, -0.007398596499115229, -0.060322657227516174, 0.04013951122760773, -0.020145349204540253, -0.047623150050640106, 0.018935872241854668, -0.05522017553448677, 0.03976155072450638, 0.0062410891987383366, 0.0031370804645121098, 0.015515320003032684, -0.017716946080327034, -0.06266602128744125, -0.04187813401222229, -0.025021051988005638, 0.044032514095306396, 0.018019314855337143, 0.03681344911456108, -0.031937748193740845, 0.04422149807214737, 0.03600083291530609, -0.027383310720324516, 0.05072243511676788, 0.02367928810417652, 0.021619398146867752, -0.02449190616607666, -0.07147251814603806, -0.002884318819269538, -0.03562287241220474, 0.05465323477983475, 0.036775656044483185, -0.002167372964322567, 0.03976155072450638, 0.034129925072193146, 0.04630028456449509, 0.0027378585655242205, 0.005437921267002821, -0.08300034701824188, 0.0008244285127148032, 0.06070061773061752, -0.05106259882450104, -0.04146237671375275, 0.0359441377222538, -0.01093253679573536, 0.0542752742767334, -0.04123559966683388, -0.07162370532751083, 0.017121655866503716, -0.01745237223803997, -0.04165135696530342, 0.02851719595491886, -0.0005468630697578192, 0.0013630236499011517, 0.03265587240457535, -0.030766066163778305, 0.0075545054860413074, 0.007346626836806536, -0.007053706794977188, -0.01876578852534294, 0.04905940219759941, -0.03915681317448616, -0.011782949790358543, 0.05023108422756195, -0.06115417182445526, 0.00945376232266426, 0.03188105300068855, 0.04376794397830963, 0.0067277150228619576, 0.026570694521069527, 0.004684360232204199, 0.0630817785859108, 0.05363273620605469, -0.004689084831625223, 0.015411380678415298, -0.037361495196819305, -0.0028984923847019672, -0.007341902237385511, 0.009000208228826523, -0.006902521941810846, 0.0004252067010384053, -0.0027614813297986984, 0.03709692135453224, 0.016979921609163284, -0.005135552026331425, 0.04437268152832985, -0.026740776374936104, 0.06705037504434586, 0.01621454954147339, -0.00041516710189171135, -0.07642381638288498, -0.013096366077661514, -0.06950712203979492, -0.04361675679683685, -0.003947335295379162, -0.0005202876636758447, 0.004424511920660734, 0.002851247088983655, 0.09381004422903061, 0.0682220533490181, -0.005626901984214783, -0.02199736051261425, 0.032523587346076965, -0.0024520251899957657, -0.012935732491314411, 0.031351905316114426, -0.027043145149946213, -0.0513271726667881, 0.03622760996222496, -0.018869727849960327, 0.008990759029984474, -0.017102757468819618, -0.04361675679683685, 0.03656777739524841, -0.030010143294930458, 0.014088515192270279, -0.04996651038527489, -0.0461868979036808, 0.02413284219801426, -0.02245091274380684, 0.013965677469968796, 0.04350337013602257, 0.022696588188409805, 0.030123531818389893, -0.05367053300142288, -0.024624193087220192, -0.08035461604595184, -0.04664044827222824, -0.08957687765359879, -0.06289279460906982, 0.013483776710927486, 0.015052316710352898, 0.010290002450346947, 0.0023906065616756678, 0.025323420763015747, 0.020939067006111145, 0.02778017148375511, -0.00296935997903347, -0.040971025824546814, 0.08859417587518692, 0.021506009623408318, 0.049021609127521515, 0.013370388187468052, 0.024964356794953346, -0.021506009623408318, -0.030671576038002968, -0.039194609969854355, 0.05850844085216522, 0.06878899782896042, 0.00919863861054182, 0.0033898423425853252, -0.016479121521115303, 0.01935162954032421, -0.019710693508386612, -0.01022385898977518, -0.03904342278838158, -0.05238546431064606, 0.02602265030145645, -0.07298436760902405, 0.0021295768674463034, 0.02418953739106655, 0.011178211309015751, -0.031068436801433563, 0.05238546431064606, -0.04221830144524574, 0.03528270497918129, -0.023509206250309944, -0.028498297557234764, 0.00960967130959034, 0.012264850549399853, -0.04384353384375572, 0.02332022413611412, -0.043163202702999115, 0.04686722531914711, -0.01695157401263714, -0.02352810464799404, 0.03386535122990608, -0.008234836161136627, -0.07453400641679764, 0.0011563260341063142, -0.08919891715049744, 0.019011463969945908, 0.005910373292863369, 0.04040408506989479, -0.03747488185763359, 0.0018555547576397657, 0.021600499749183655, -0.006609601899981499, 0.004089070949703455, -0.0018945320043712854, -0.008560827933251858, -0.037002433091402054, -0.03103064000606537, -0.042860835790634155, 0.02851719595491886, -0.025266727432608604, 0.02912193350493908, -0.0008645869675092399, -0.03930799663066864, -0.03866546228528023, 0.011726255528628826, 0.04981532692909241, -0.027742374688386917, -0.0044623082503676414, -0.03995053097605705, -0.051591746509075165, -0.05223428085446358, -0.005891474895179272, 0.023660389706492424, 0.08337830752134323, -0.019200444221496582, -0.008135621435940266, -0.004556798376142979, 0.025701383128762245, 0.08020342886447906, -0.010242756456136703, 0.027099840342998505, -0.026306120678782463, -0.001152782584540546, -0.0067796846851706505, -0.0711323544383049, -0.020939067006111145, -0.039119016379117966, 0.007341902237385511, 0.04592232406139374, -0.006897797342389822, -0.018869727849960327, -0.06803306937217712, 0.010015980340540409, -0.0396103672683239, -0.009741958230733871, -0.03394094482064247, 0.0034536232706159353, -0.012227054685354233, 0.01650746911764145, 0.06977169215679169, 0.00005639894516207278, 0.04225609824061394, -0.036416590213775635, -0.002893767785280943, -0.023509206250309944, -0.03182435780763626, -0.011754603125154972, -0.013918432407081127, 0.015638157725334167, 0.010696310549974442, 0.03148419409990311, -0.01788702793419361, -0.07506315410137177, -0.021694989874958992, -0.010894740000367165, -0.0032622802536934614, -0.09267616271972656, -0.015666505321860313, -0.08912332355976105, -0.010214409790933132, -0.034659069031476974, -0.00912777055054903, -0.01657361164689064, -0.006916695740073919, 0.013068019412457943, -0.02802584506571293, 0.049021609127521515, -0.0077812825329601765, -0.0513271726667881, 0.03148419409990311, 0.06066282093524933, 0.008201764896512032, -0.09222260862588882, -0.047471966594457626, -0.08572167158126831, -0.021676093339920044, -0.050798024982213974, -0.010979781858623028, 0.004273327067494392, 0.013238102197647095, 0.06769290566444397, -0.0388544425368309, 0.002363440580666065, -0.014806642197072506, 0.07298436760902405, -0.00046743208076804876, 0.009694712236523628, -0.035603974014520645, -0.06916695833206177, 0.025115542113780975, -0.00102640176191926, 0.017565760761499405, -0.0005300319753587246, -0.012142013758420944, 0.025909261777997017, 0.004348919726908207, 0.016516918316483498, -0.061607725918293, 0.007837976329028606, 0.045468769967556, 0.055333565920591354, 0.006401723250746727, -0.014504272490739822, 0.0923737958073616, 0.006789133418351412, 0.008645869791507721, -0.01914375089108944, -0.05491780862212181, -0.004570972174406052, 0.005532411392778158, 0.019861876964569092, -0.007204891182482243, -0.009959286078810692, 0.03169207274913788, -0.016101161018013954, -0.03628430515527725, -0.004837907385081053, -0.03188105300068855, -0.013058570213615894, 0.05397290363907814, 0.025758076459169388, 0.014551518484950066, -0.0006254081963561475, -0.030614882707595825, 0.044183701276779175, 0.051516152918338776, 0.023717084899544716, -0.03414882346987724, 0.06557632237672806, -0.08073257654905319, 0.017613006755709648, 0.04429708793759346, -0.10953324288129807, 0.03462127223610878, -0.018378378823399544, 0.05382172018289566, -0.06576529890298843, 0.03609532490372658, 0.035528380423784256, 0.026306120678782463, -0.056656431406736374, -0.06070061773061752, 0.04218050464987755, 0.0403284914791584, 0.04819009080529213, -0.024850968271493912, 0.011593969538807869, 0.0067466129548847675, -0.05831946060061455, -0.008471062406897545, -0.015250747092068195, 0.0011191203957423568, 0.02383047342300415, -0.027175432071089745, -0.01477829460054636, 0.03635989874601364, -0.00982699915766716, -0.05480441823601723, 0.02655179612338543, -0.008934064768254757, 0.027232127264142036, -0.026967553421854973, 0.021449316293001175, 0.03908121958374977, 0.06701257824897766, -0.0004473528824746609, 0.03312832489609718, -0.04233168810606003, 0.043238796293735504, 0.010063225403428078, 0.018227193504571915, -0.008655318059027195, -0.030482595786452293, -0.04633808135986328, 0.0264006108045578, -0.018312234431505203, 0.022016257047653198, -0.05608948692679405, -0.010412839241325855, 0.013275898061692715, -0.03930799663066864, -0.012784548103809357, -0.050495658069849014, 0.03110623173415661, 0.07525213807821274, 0.040366288274526596, -0.01753741316497326, -0.011971930973231792, -0.04236948490142822, -0.006203293334692717, -0.0659920796751976, 0.05699659511446953, -0.03558507561683655, 0.02874397300183773, -0.018094906583428383, -0.02194066531956196, 0.004363093059509993, 0.030747167766094208, -0.029726672917604446, 0.0351882167160511, 0.004544987343251705, -0.030123531818389893, 0.02288556843996048, -0.040819842368364334, -0.01811380498111248, -0.001400819863192737, 0.015779893845319748, -0.01648857071995735, -0.004993816372007132, 0.0017268116353079677, 0.007578128017485142, -0.038400888442993164, -0.0652739554643631, -0.005315083544701338, -0.014249148778617382, 0.017990967258810997, 0.037644967436790466, 0.002402417827397585, -0.0002030066680163145, 0.02515333890914917 ]
37,634
healpy.rotator
__eq__
null
def __eq__(self, a): if type(a) is not type(self): return False # compare the _rots v = [np.allclose(x, y, rtol=0, atol=1e-15) for x, y in zip(self._rots, a._rots)] return ( np.array(v).all() and (self._coords == a._coords) and (self._invs == a._invs) )
(self, a)
[ 0.00901525467634201, -0.023399922996759415, 0.0020724458154290915, 0.037964802235364914, -0.03803873807191849, -0.05005291476845741, -0.08554095029830933, 0.009343334473669529, -0.029702745378017426, 0.030386630445718765, 0.0023161950521171093, -0.032197996973991394, 0.07622534036636353, 0.04524724557995796, -0.03513685241341591, -0.021514620631933212, -0.04265957698225975, 0.011284085921943188, -0.008747246116399765, -0.0005068481550551951, -0.04661501199007034, 0.040145840495824814, -0.0010766552295535803, 0.02705962583422661, 0.02303025685250759, 0.07238080352544785, 0.06077326089143753, -0.009722243063151836, -0.02099708653986454, 0.08221394568681717, -0.04990505054593086, -0.009629826061427593, 0.05515431985259056, 0.00933409295976162, 0.07681681215763092, -0.03323306515812874, 0.002211070852354169, 0.00903373770415783, -0.00466704647988081, -0.0006833064253441989, -0.03728092089295387, -0.00170739961322397, -0.001632311032153666, 0.0020227718632668257, -0.002555323299020529, -0.031181413680315018, -0.05574578791856766, 0.02591365948319435, -0.026431191712617874, 0.04025673866271973, 0.0030820989049971104, -0.04724344611167908, 0.029943030327558517, 0.08413621783256531, -0.022863905876874924, 0.05951639264822006, 0.023381439968943596, 0.05156854912638664, -0.028575262054800987, -0.025155840441584587, -0.03321458399295807, -0.0018471799558028579, 0.05685478821396828, -0.06036662682890892, 0.03933257237076759, -0.03018331341445446, -0.066983662545681, -0.003719774540513754, 0.010868210345506668, 0.06890593469142914, -0.030922647565603256, 0.026671476662158966, -0.0021925875917077065, -0.04450790956616402, -0.008317507803440094, 0.049461450427770615, 0.01523028127849102, 0.046319279819726944, -0.022309405729174614, -0.05877705663442612, -0.005013609305024147, -0.015258006751537323, 0.028150144964456558, -0.030534496530890465, -0.08014380931854248, 0.03073781356215477, -0.02112647145986557, 0.03151411563158035, 0.033676665276288986, -0.015877198427915573, 0.012420812621712685, 0.018788326531648636, 0.014149005524814129, -0.016736675053834915, -0.008377579040825367, 0.03606101870536804, 0.009371059015393257, -0.0589618906378746, -0.018575768917798996, -0.015110139735043049, -0.0001103947070077993, -0.014435497112572193, -0.032161030918359756, 0.03715153783559799, -0.0020227718632668257, 0.05511735379695892, -0.020072920247912407, -0.015516773797571659, -0.028168627992272377, 0.02303025685250759, -0.033140648156404495, 0.10668590664863586, -0.06081022694706917, 0.06343486160039902, -0.043694641441106796, -0.03447145223617554, -0.013954930007457733, -0.016542600467801094, -0.031625013798475266, 0.0026107733137905598, 0.04447094351053238, 0.08029168099164963, 0.05156854912638664, 0.026246359571814537, 0.09049449115991592, -0.024527408182621002, 0.04543207958340645, 0.017993543297052383, -0.06568983197212219, -0.03981313854455948, 0.036726418882608414, -0.02567337453365326, 0.015498289838433266, 0.08354474604129791, 0.022734522819519043, 0.04539510980248451, 0.031033547595143318, -0.004105614498257637, -0.01427838858217001, 0.006339789368212223, 0.014860614202916622, 0.023252056911587715, 0.05286238342523575, -0.006219647824764252, -0.0015988098457455635, 0.022309405729174614, -0.05393442139029503, 0.007675211876630783, -0.033270031213760376, 0.013160145841538906, -0.008317507803440094, -0.03548803552985191, 0.020553486421704292, -0.00755044911056757, -0.0524187833070755, -0.09766603261232376, 0.01961083523929119, -0.04125484079122543, 0.0172172412276268, 0.026948725804686546, -0.01281820423901081, 0.017716292291879654, 0.013150904327630997, -0.0006417188560590148, -0.03772452101111412, -0.014860614202916622, -0.05622635409235954, -0.0017686256906017661, -0.013381946831941605, -0.007873907685279846, 0.003077477915212512, -0.04447094351053238, -0.05622635409235954, -0.005905430763959885, -0.029536396265029907, -0.04214204102754593, 0.010988352820277214, 0.0015722400275990367, -0.009274021722376347, -0.058111656457185745, 0.014962272718548775, -0.06424812972545624, -0.020682869479060173, 0.01049854326993227, 0.023436889052391052, 0.003216103184968233, -0.005780667997896671, -0.015729332342743874, 0.04088517278432846, 0.02522977441549301, -0.07308316975831985, 0.005826876498758793, -0.038778070360422134, -0.0028579882346093655, 0.009648309089243412, -0.032456766813993454, 0.007291682064533234, -0.01042461022734642, 0.03363969922065735, 0.033140648156404495, -0.01413976401090622, -0.09456082433462143, 0.01043385174125433, -0.00310289254412055, -0.00895980466157198, -0.01633928343653679, -0.027336876839399338, -0.05278845131397247, 0.10661197453737259, 0.02210608869791031, -0.019536903128027916, -0.033011265099048615, -0.01974022015929222, 0.0020585833117365837, 0.03718850389122963, 0.05337991937994957, 0.012799721211194992, -0.02360324002802372, 0.00020620488794520497, 0.0493505485355854, 0.0899769514799118, -0.0012476262636482716, -0.013973413966596127, 0.007129952777177095, -0.02866767905652523, 0.046319279819726944, -0.03339941427111626, 0.06568983197212219, -0.002885713241994381, -0.03144017979502678, 0.022716039791703224, -0.014999239705502987, 0.0006873496458865702, -0.02811317704617977, -0.04277047514915466, 0.01036916021257639, -0.0155814653262496, 0.03075629658997059, -0.06465476006269455, 0.004546904470771551, -0.020812254399061203, 0.03896290436387062, 0.0009351420449092984, 0.006640144158154726, 0.004958158824592829, -0.06702063232660294, -0.023917457088828087, 0.02303025685250759, -0.007236232049763203, -0.028870994225144386, 0.0006099505699239671, -0.031199896708130836, -0.010600201785564423, 0.0007254715310409665, 0.02497100830078125, -0.012661095708608627, -0.033270031213760376, -0.014980756677687168, 0.06299126148223877, 0.014444739557802677, 0.04380554333329201, 0.04058944061398506, 0.03840840607881546, 0.03360273316502571, -0.03977617248892784, -0.01036916021257639, -0.007929357700049877, 0.03892593830823898, 0.013012279756367207, -0.03306671604514122, 0.07027370482683182, 0.0028533674776554108, -0.02125585451722145, 0.055376119911670685, -0.03447145223617554, 0.025063425302505493, 0.027225976809859276, -0.01845562644302845, -0.012882895767688751, -0.031199896708130836, -0.016348524019122124, 0.013354221358895302, -0.0073332698084414005, -0.026930242776870728, -0.035857703536748886, -0.0672793984413147, -0.006478414870798588, -0.016847575083374977, 0.006404481362551451, -0.03046056255698204, 0.0100087346509099, -0.00953740905970335, 0.02620939165353775, -0.03293733298778534, 0.04051550477743149, 0.02400987409055233, -0.013945688493549824, -0.005813014227896929, 0.02086770348250866, 0.01281820423901081, -0.01803050935268402, 0.0007832320407032967, 0.03153259679675102, -0.045764777809381485, 0.020627420395612717, 0.038630206137895584, -0.017420558258891106, 0.05101405084133148, 0.040293704718351364, 0.025876691564917564, 0.04325104132294655, -0.000871605530846864, 0.00778149114921689, 0.0384453721344471, 0.022475754842162132, 0.02059045433998108, 0.0063721355982124805, -0.052086085081100464, 0.00856703333556652, 0.05197518318891525, -0.02251272276043892, 0.04476667568087578, -0.014352322556078434, -0.029018862172961235, 0.02046106941998005, -0.05334295332431793, 0.02193973772227764, 0.00947271753102541, 0.0023161950521171093, 0.03236434981226921, 0.013030762784183025, -0.036301303654909134, 0.06036662682890892, 0.02524825744330883, 0.029961513355374336, -0.011413469910621643, 0.009357196278870106, 0.016903024166822433, 0.026985693722963333, 0.0023185054305940866, 0.002444423269480467, 0.03648613765835762, 0.0375581718981266, -0.02894492819905281, 0.01708785817027092, 0.010073426179587841, -0.060144826769828796, -0.007448790594935417, 0.013095454312860966, -0.003830674570053816, -0.08265754580497742, 0.007208507042378187, 0.04129180684685707, -0.010313710197806358, -0.023806557059288025, 0.07792580872774124, 0.024897074326872826, 0.014703505672514439, -0.005078300833702087, 0.03663400188088417, 0.03992404043674469, -0.0008103794534690678, 0.0074996198527514935, -0.04073730483651161, -0.025007974356412888, 0.00466704647988081, -0.019093303009867668, -0.04990505054593086, -0.016625775024294853, -0.006154955830425024, -0.04853728041052818, 0.013603746891021729, -0.006344410590827465, -0.058666158467531204, -0.02225395478308201, -0.025580957531929016, -0.02879706211388111, 0.015184072777628899, -0.005711355712264776, -0.06868413090705872, 0.06824053078889847, 0.016801366582512856, 0.007458032108843327, 0.032734014093875885, -0.002985061379149556, 0.003197619691491127, 0.001691226614639163, -0.01625610701739788, -0.009269400499761105, 0.04484061151742935, -0.03933257237076759, -0.04668894410133362, -0.020645903423428535, 0.0018841465935111046, -0.05855525657534599, -0.020146852359175682, -0.0015849473420530558, 0.023011771962046623, -0.091159887611866, -0.037964802235364914, 0.02236485481262207, 0.013289529830217361, -0.006321306340396404, -0.008530066348612309, -0.0057067349553108215, 0.0159788578748703, 0.026394225656986237, 0.009301746264100075, -0.01858500950038433, 0.03456386551260948, -0.02099708653986454, 0.018270792439579964, 0.04661501199007034, -0.007231611292809248, -0.059479426592588425, 0.04487757757306099, -0.03705912083387375, -0.04661501199007034, 0.049461450427770615, 0.022069120779633522, -0.02073832042515278, 0.055634889751672745, -0.030793262645602226, 0.013742371462285519, 0.0425117090344429, -0.03033117949962616, 0.004602354485541582, 0.026116976514458656, 0.033011265099048615, -0.01791960932314396, -0.03005393035709858, -0.05903582647442818, 0.04683681204915047, 0.0031329281628131866, 0.019389035180211067, 0.0319577157497406, -0.008728763088583946, -0.027632610872387886, -0.016653500497341156, 0.01871439255774021, 0.04872211441397667, -0.025580957531929016, -0.011764653027057648, -0.03192074969410896, -0.06365666538476944, -0.043140143156051636, 0.013954930007457733, -0.02646815963089466, 0.01145967748016119, 0.029296111315488815, 0.025470057502388954, 0.04816761240363121, -0.04155057296156883, -0.08583668619394302, -0.02112647145986557, -0.03206861391663551, -0.008266679011285305, -0.04502544552087784, -0.023935940116643906, -0.03310368210077286, -0.004842638038098812, -0.04140270873904228, -0.04524724557995796, -0.041513606905937195, -0.0031560321804136038, 0.03652310371398926, -0.030275730416178703, 0.030220279470086098, 0.019925052300095558, 0.04047853872179985, 0.017161792144179344, -0.028353461995720863, -0.038630206137895584, 0.0350814014673233, 0.025765791535377502, 0.04894391447305679, -0.01596037484705448, 0.04872211441397667, -0.05641118809580803, -0.013409671373665333, -0.06872110068798065, -0.0008883560658432543, -0.00170739961322397, -0.03347335010766983, 0.07703860849142075, -0.0077907326631248, -0.04801974818110466, -0.008335991762578487, -0.0005383276147767901, -0.029684262350201607, 0.016690466552972794, -0.03550651669502258, -0.09079021960496902, 0.08664995431900024, 0.010720344260334969, 0.016801366582512856, 0.04683681204915047, -0.010544751770794392, -0.014795922674238682, 0.02044258639216423, 0.034120265394449234, 0.0403306744992733, -0.02593214251101017, 0.023362956941127777, 0.023289022967219353, -0.00011133331281598657, -0.022198505699634552, -0.0551912859082222, -0.03962830454111099, 0.03680035099387169, -0.01646866649389267, -0.04853728041052818, 0.04650411382317543, -0.0021868115290999413, 0.06106899306178093, 0.02787289395928383, -0.045210279524326324, -0.08332294970750809, -0.019795669242739677, -0.033122166991233826, 0.009916317649185658, 0.011894037015736103, 0.0026893275789916515, -0.02755867689847946, -0.0710500031709671, 0.05966425687074661, -0.006496897898614407, 0.014860614202916622, 0.034933533519506454, -0.036726418882608414, -0.0033316242042928934, -0.004475281573832035, -0.023898974061012268, 0.019389035180211067, -0.04957234859466553, 0.05545005574822426, -0.012503987178206444, -0.01413976401090622, 0.030904164537787437, 0.03484111651778221, 0.004225756041705608, 0.020072920247912407, 0.021348271518945694, -0.038186606019735336, -0.02193973772227764, 0.042326875030994415, 0.017947334796190262, -0.031181413680315018, 0.036153435707092285, 0.03565438464283943, 0.07345283776521683, -0.0028926446102559566, 0.052492719143629074, 0.02097860351204872, -0.01323407981544733, 0.04387947544455528, 0.00995328463613987, -0.019943535327911377, 0.03914773836731911, 0.006922014988958836, 0.035598933696746826, 0.023972906172275543, 0.07341587543487549, -0.05197518318891525, -0.03977617248892784, -0.006362893618643284, 0.04199417307972908, 0.011755411513149738, 0.04188327491283417, 0.02471224032342434, 0.00454459385946393, 0.01619141548871994, -0.07829547673463821, -0.04461881145834923, 0.005198442377150059, -0.01633928343653679, -0.02182883769273758, 0.02565489150583744, -0.08347081393003464, -0.07042156904935837, 0.013511329889297485, 0.018658943474292755, 0.004586181603372097, -0.050829216837882996, 0.015452082268893719, -0.03718850389122963, -0.03317761421203613, 0.018141409382224083, 0.01742980070412159, -0.03448993340134621, -0.03548803552985191, 0.05493251979351044, -0.017725534737110138, -0.05068134889006615, 0.010119634680449963, -0.0032669324427843094, 0.07053247094154358, 0.020756803452968597, 0.006104127038270235, -0.018464868888258934, 0.03140321373939514, -0.022605139762163162, -0.035469550639390945, -0.06465476006269455, -0.03948044031858444, -0.0034124888479709625, -0.012078870087862015, 0.00427196454256773, 0.02537764236330986, 0.02787289395928383, 0.07955234497785568, 0.028704645112156868, 0.03774300217628479, -0.10291530191898346, 0.02827952802181244, -0.028889479115605354, -0.05814862251281738, 0.07770401239395142, -0.025580957531929016, 0.0694604367017746, 0.027392327785491943, -0.02193973772227764, -0.010175084695219994, 0.006215027067810297, -0.06594859808683395, -0.026394225656986237, 0.05075528472661972, -0.022161537781357765, 0.04580174386501312, -0.03676338493824005, 0.05293631926178932, -0.05411925166845322, -0.014943789690732956, -0.051531583070755005, -0.0006070625968277454, -0.089385487139225, -0.021200403571128845, 0.019407518208026886, -0.017328141257166862, 0.08628028631210327, -0.028501328080892563, -0.012162045575678349, -0.018418660387396812, 0.05545005574822426, -0.003345486707985401, -0.02388049103319645, -0.012808962725102901, -0.02497100830078125, 0.06842536479234695, 0.0014948410680517554, -0.03256766498088837, 0.0723438411951065, -0.0003087297372985631, -0.021311303600668907, -0.035746801644563675, 0.042031142860651016, 0.029979996383190155, 0.016237623989582062, 0.006034814286977053, 0.01125636138021946, 0.003865330945700407, 0.007568932604044676, -0.04724344611167908, -0.05726142227649689, 0.08302721381187439, 0.0015641535865142941, 0.02563640847802162, 0.04025673866271973, -0.04580174386501312, 0.02659754268825054, -0.044101275503635406, 0.03484111651778221, -0.005327825900167227, 0.004068647976964712, 0.016080515459179878, -0.029573362320661545, -0.016413215547800064, -0.012467020191252232, 0.013289529830217361, -0.041106972843408585, -0.03833447024226189, 0.026579059660434723, -0.016635015606880188, -0.017272692173719406, 0.026153942570090294, 0.013631471432745457, 0.0066678691655397415, 0.05722445622086525, 0.011025318875908852, -0.024749208241701126, 0.02125585451722145, -0.0524187833070755, 0.02347385697066784, 0.019814152270555496, 0.03776148706674576, 0.020627420395612717, -0.022974805906414986, 0.019980503246188164, -0.016708949580788612, 0.006871185731142759, 0.013040004298090935, -0.02619090862572193, 0.009246296249330044, 0.05119888484477997, 0.006510760635137558, 0.025026457384228706, -0.0406264066696167, 0.018705151975154877, 0.037669070065021515, -0.030626913532614708, -0.020904671400785446, 0.024213191121816635, 0.013335738331079483, -0.07918267697095871, 0.017938092350959778, -0.0067787691950798035, 0.024730725213885307, -0.02731839381158352, 0.0032045510597527027, 0.005540384445339441, -0.06816659867763519, -0.006288960110396147, 0.007379478309303522, -0.0041911001317203045, 0.010858968831598759, 0.03707760199904442, 0.029943030327558517, -0.03933257237076759, -0.01768856681883335, -0.027946827933192253, -0.024786174297332764, 0.0809570774435997, 0.03748423606157303, 0.04350981116294861, -0.0658007338643074, 0.043583743274211884, -0.040404606610536575, -0.0499420166015625, 0.0056466637179255486, 0.08798075467348099, 0.03241979703307152, -0.029813645407557487, 0.055782753974199295, -0.05101405084133148, -0.04683681204915047, 0.011025318875908852, -0.011653752997517586, 0.019851120188832283, -0.013381946831941605, -0.047687046229839325, 0.044655777513980865, 0.013557538390159607, 0.004553835839033127, -0.0010292916558682919, 0.03650461882352829, 0.043546777218580246, -0.02565489150583744, -0.00994404312223196, 0.049313582479953766, -0.045764777809381485, -0.03789087012410164, 0.01749449223279953, -0.014537155628204346, 0.0726395696401596, -0.06923863291740417, 0.04724344611167908, -0.030072413384914398, 0.06753816455602646 ]
37,635
healpy.rotator
__init__
Create a rotator with given parameters. - rot: a float, a tuple of 1,2 or 3 floats or a sequence of tuples. If it is a sequence of tuple, it must have the same length as coord. - coord: a string or a tuple of 1 or 2 strings or a sequence of tuple If it is a sequence of tuple, it must have same length as rot. - inv: whether to use inverse rotation or not - deg: if True, angles in rot are assumed in degree (default: True) - eulertype: the convention for Euler angles in rot. Note: the coord system conversion is applied first, then the rotation.
def __init__(self, rot=None, coord=None, inv=None, deg=True, eulertype="ZYX"): """Create a rotator with given parameters. - rot: a float, a tuple of 1,2 or 3 floats or a sequence of tuples. If it is a sequence of tuple, it must have the same length as coord. - coord: a string or a tuple of 1 or 2 strings or a sequence of tuple If it is a sequence of tuple, it must have same length as rot. - inv: whether to use inverse rotation or not - deg: if True, angles in rot are assumed in degree (default: True) - eulertype: the convention for Euler angles in rot. Note: the coord system conversion is applied first, then the rotation. """ rot_is_seq = hasattr(rot, "__len__") and hasattr(rot[0], "__len__") coord_is_seq = ( hasattr(coord, "__len__") and hasattr(coord[0], "__len__") and type(coord[0]) is not str ) if rot_is_seq and coord_is_seq: if len(rot) != len(coord): raise ValueError(Rotator.ErrMessWrongPar) else: rots = rot coords = coord elif (rot_is_seq or coord_is_seq) and (rot is not None and coord is not None): raise ValueError(Rotator.ErrMessWrongPar) else: rots = [rot] coords = [coord] inv_is_seq = hasattr(inv, "__len__") if inv_is_seq: if len(inv) != len(rots): raise ValueError("inv must have same length as rot and/or coord") invs = inv else: invs = [inv] * len(rots) # check the argument and normalize them if eulertype in ["ZYX", "X", "Y"]: self._eultype = eulertype else: self._eultype = "ZYX" self._rots = [] self._coords = [] self._invs = [] for r, c, i in zip(rots, coords, invs): rn = normalise_rot(r, deg=deg) # if self._eultype in ['X','Y']: # rn[1] = -rn[1] cn = normalise_coord(c) self._rots.append(rn) # append(rn) or insert(0, rn) ? self._coords.append(cn) # append(cn) or insert(0, cn) ? self._invs.append(bool(i)) if not self.consistent: log.warning("The chain of coord system rotations is not consistent") self._update_matrix()
(self, rot=None, coord=None, inv=None, deg=True, eulertype='ZYX')
[ 0.029193809255957603, -0.0023328105453401804, 0.0456128753721714, 0.03873567655682564, -0.01179508212953806, -0.0491788312792778, -0.05270560085773468, 0.029252588748931885, -0.05125570669770241, 0.0262744277715683, 0.023100335150957108, 0.041772618889808655, -0.017614251002669334, 0.07092723995447159, -0.032093595713377, 0.0214936975389719, -0.0014792835572734475, 0.012853113003075123, -0.04106726497411728, -0.01404829602688551, -0.004628884140402079, -0.015752900391817093, 0.015831273049116135, 0.048395104706287384, -0.040832147002220154, 0.03652165085077286, 0.017839573323726654, 0.0033357355277985334, -0.008302601985633373, -0.017673030495643616, -0.019397228956222534, 0.03804991766810417, 0.006994758266955614, -0.020034005865454674, 0.0026744664646685123, -0.0255298875272274, -0.01969112642109394, 0.026548732072114944, -0.002397713018581271, 0.06673430651426315, 0.031133532524108887, -0.0005648340447805822, 0.05717284232378006, -0.01770242117345333, -0.023844875395298004, 0.0403619110584259, -0.019906651228666306, 0.014283413998782635, -0.03722700476646423, -0.026215648278594017, 0.04588717967271805, -0.06477499008178711, 0.06595057994127274, -0.025706226006150246, -0.0028557030018419027, 0.06834094226360321, 0.034229252487421036, 0.05325420945882797, 0.048473477363586426, -0.005456695333123207, -0.011951827444136143, 0.024256331846117973, -0.0014045847347006202, 0.03544402867555618, 0.03130986914038658, 0.0022434168495237827, -0.005481186788529158, -0.01920129731297493, 0.035992637276649475, 0.06845850497484207, 0.04102807864546776, 0.011011356487870216, -0.000300785613944754, -0.051098961383104324, 0.09044202417135239, 0.02366853691637516, -0.0688895508646965, 0.03475826606154442, 0.03136865049600601, -0.021670036017894745, -0.0001572045002831146, 0.022434169426560402, 0.03358267620205879, 0.03217196837067604, 0.012216335162520409, 0.027450017631053925, -0.008841414004564285, -0.042673904448747635, -0.011550167575478554, 0.0013335595140233636, -0.04718032851815224, -0.07406214624643326, -0.013068637810647488, -0.05192187428474426, -0.04122401028871536, 0.027097340673208237, -0.0017780793132260442, -0.05713365599513054, 0.025706226006150246, -0.024844126775860786, 0.009512479417026043, 0.021199800074100494, -0.07112317532300949, -0.008968769572675228, 0.009424310177564621, -0.0317213274538517, -0.05497840791940689, -0.02229701727628708, 0.016193747520446777, -0.013333145529031754, -0.014773243106901646, 0.10627330094575882, -0.014743853360414505, 0.036384496837854385, -0.05435142666101456, -0.03718781843781471, -0.028410082682967186, -0.035992637276649475, -0.031447023153305054, 0.0035977941006422043, 0.06885036826133728, 0.029291775077581406, -0.0052068824879825115, 0.07727542519569397, 0.0118244718760252, -0.02817496471107006, -0.02018095552921295, 0.022257830947637558, 0.018721263855695724, -0.03850055858492851, 0.04020516574382782, -0.038147881627082825, -0.0214936975389719, 0.011501184664666653, 0.0017327701207250357, 0.03836340829730034, 0.009267564862966537, -0.0163308996707201, -0.07026107609272003, 0.03830462694168091, 0.027508797124028206, 0.006553912069648504, 0.039970047771930695, 0.008351584896445274, -0.0245894156396389, 0.07500261813402176, 0.010080681182444096, 0.028390489518642426, 0.017163608223199844, -0.01119749154895544, 0.00556935602799058, 0.01186365820467472, 0.042673904448747635, -0.011217084713280201, 0.017976725473999977, -0.05842680484056473, -0.020455259829759598, -0.0015576562145724893, 0.01114850863814354, 0.06548034399747849, -0.012569012120366096, -0.032818544656038284, -0.015752900391817093, 0.021180206909775734, 0.039538998156785965, 0.03201522305607796, 0.03170173242688179, -0.03407250717282295, -0.019583363085985184, 0.003712903941050172, -0.0012117144651710987, -0.029566079378128052, -0.04079296067357063, -0.025980530306696892, 0.0069212839007377625, 0.013881754130125046, -0.03181929141283035, 0.04439810290932655, -0.02762635610997677, -0.01026681624352932, -0.00724457111209631, -0.008351584896445274, 0.007896043360233307, -0.02817496471107006, 0.02368813008069992, 0.06211031973361969, 0.04788568243384361, -0.03158417344093323, 0.03981330245733261, -0.03846137225627899, -0.037716832011938095, 0.030232246965169907, -0.02678385004401207, 0.04079296067357063, 0.0017376684118062258, 0.04906127229332924, -0.04949232190847397, 0.0454169437289238, -0.02096468210220337, 0.016771744936704636, -0.024373890832066536, 0.008047890849411488, 0.04702358320355415, -0.03129027783870697, -0.03136865049600601, 0.01569412089884281, 0.014871208928525448, -0.03085922822356224, 0.05188268795609474, 0.014851615764200687, 0.07684437185525894, -0.044084612280130386, -0.006686165928840637, -0.02866479381918907, -0.003962716553360224, 0.031153125688433647, 0.027900660410523415, 0.010629289783537388, 0.03244627267122269, 0.05454735830426216, 0.09843603521585464, 0.04866940900683403, -0.028860725462436676, -0.04819917306303978, 0.0032916509080678225, 0.006725352257490158, 0.004648477304726839, -0.06383451819419861, -0.0793914869427681, 0.03703107312321663, 0.013068637810647488, -0.08519106358289719, -0.025980530306696892, 0.014273617416620255, -0.03348471224308014, 0.012412266805768013, -0.010159053839743137, 0.007567858323454857, -0.06167927011847496, 0.0007108643185347319, -0.03889242187142372, 0.027587169781327248, 0.002169942483305931, -0.031153125688433647, 0.01580188423395157, 0.02635280042886734, 0.059249717742204666, 0.033739421516656876, -0.0779024064540863, -0.006597996689379215, -0.026646697893738747, 0.03544402867555618, -0.010413764975965023, -0.018623298034071922, 0.0025569074787199497, -0.021101834252476692, 0.015978222712874413, 0.003225523978471756, 0.049296390265226364, -0.021728815510869026, 0.01139342226088047, -0.05058953911066055, 0.0020082988776266575, 0.011217084713280201, 0.026196055114269257, -0.042203668504953384, -0.0009006730979308486, 0.008047890849411488, -0.032348308712244034, -0.015596156008541584, 0.08268313854932785, 0.01779058948159218, -0.08534780889749527, 0.0352872833609581, 0.0491788312792778, 0.023766502737998962, 0.022473355755209923, -0.02672507055103779, 0.0068037249147892, 0.0326617993414402, 0.007450299337506294, 0.019553974270820618, -0.012353487312793732, 0.015645138919353485, -0.04471159353852272, -0.0299383495002985, -0.026705477386713028, -0.013803381472826004, 0.004210080485790968, 0.018623298034071922, 0.02012217603623867, 0.00235362839885056, -0.020847123116254807, -0.028057405725121498, 0.11724547296762466, 0.0035120740067213774, -0.02063159830868244, -0.016487644985318184, 0.017976725473999977, -0.050236862152814865, 0.02014176920056343, -0.03889242187142372, 0.008170347660779953, -0.0606212392449379, 0.0018160410691052675, -0.044515661895275116, -0.046592533588409424, -0.03975452110171318, 0.03315162658691406, 0.007087825797498226, 0.05301909148693085, 0.014381379820406437, -0.03487582504749298, -0.022238237783312798, 0.01453812513500452, 0.03567914664745331, 0.01117789838463068, -0.01608598418533802, 0.053881190717220306, 0.057368773967027664, 0.007082927506417036, 0.043065767735242844, -0.03348471224308014, -0.005784880369901657, 0.00037900518509559333, -0.018456757068634033, -0.0039970045909285545, 0.04588717967271805, 0.0018111427780240774, 0.03920591250061989, -0.060542866587638855, -0.026940595358610153, -0.024432670325040817, 0.008958972990512848, 0.0017425667028874159, -0.004685214255005121, 0.003225523978471756, -0.01772201433777809, 0.0456128753721714, 0.0008082178537733853, 0.053410954773426056, -0.03201522305607796, -0.027018968015909195, 0.034601520746946335, -0.016301508992910385, -0.019602956250309944, 0.045730434358119965, -0.0009006730979308486, 0.03583589196205139, 0.06693023443222046, -0.02451104298233986, 0.026489952579140663, -0.02995794266462326, -0.03522850200533867, -0.03712903708219528, 0.020690377801656723, -0.025373142212629318, -0.056898538023233414, 0.01831960491836071, -0.036815546452999115, 0.021219393238425255, -0.029722824692726135, -0.005304848309606314, 0.01589985005557537, -0.08260476589202881, -0.057917382568120956, -0.028253337368369102, -0.05666342005133629, 0.054312240332365036, 0.024236738681793213, 0.028233744204044342, -0.009311649017035961, -0.007464994210749865, -0.0066518778912723064, -0.01826082542538643, 0.01805509626865387, 0.027077747508883476, 0.04149831458926201, -0.00513340812176466, -0.09255808591842651, -0.004104766994714737, -0.004156199283897877, 0.045730434358119965, 0.04815998673439026, -0.02584337815642357, 0.023492198437452316, 0.032838135957717896, 0.055605389177799225, 0.054743289947509766, 0.028939098119735718, -0.0636385828256607, 0.00592693081125617, 0.07821589708328247, -0.07061374932527542, -0.04149831458926201, 0.032387495040893555, 0.020259328186511993, 0.04686683788895607, -0.040871333330869675, -0.04725870117545128, -0.01313721388578415, -0.042282041162252426, 0.0037839291617274284, 0.025706226006150246, 0.0025471108965575695, 0.0005265661748126149, 0.09052039682865143, -0.026137275621294975, 0.021611256524920464, -0.015537376515567303, -0.02359016425907612, -0.027861474081873894, 0.09733881801366806, -0.04145912826061249, -0.023315859958529472, -0.01926007680594921, -0.06179682910442352, -0.0154394106939435, 0.02549070119857788, 0.03624734655022621, -0.026666291058063507, 0.06724372506141663, 0.013754398562014103, 0.06802745163440704, 0.02774391509592533, 0.013009858317673206, -0.010070884600281715, -0.02239498309791088, -0.023472605273127556, -0.011902844533324242, -0.026215648278594017, 0.005657524801790714, 0.02008298970758915, -0.044907525181770325, 0.011246474459767342, -0.004151300992816687, 0.023942841216921806, 0.04059702903032303, -0.03277935832738876, 0.04471159353852272, 0.0403619110584259, 0.03450355678796768, -0.024295518174767494, 0.008782634511590004, -0.020376887172460556, -0.020200548693537712, -0.015292461961507797, 0.027450017631053925, -0.008958972990512848, 0.023550977930426598, 0.06653837114572525, 0.08283988386392593, -0.02235579676926136, 0.0015368384774774313, 0.014675277285277843, 0.02460900880396366, 0.02502046525478363, 0.004197834525257349, -0.03632571920752525, -0.0184861458837986, 0.031427428126335144, -0.006186540238559246, 0.003546362044289708, -0.006113065872341394, -0.02989916317164898, 0.023296266794204712, 0.007861755788326263, 0.0008259741589426994, -0.024021213874220848, -0.006646979600191116, 0.02192474715411663, -0.01359765324741602, 0.007587451487779617, -0.004856654442846775, -0.0352872833609581, 0.021160613745450974, 0.011510981246829033, -0.03405291214585304, -0.04345763102173805, -0.03803032264113426, -0.08519106358289719, -0.07946985960006714, -0.008248720318078995, 0.01920129731297493, 0.012960875406861305, -0.0016225585713982582, -0.04718032851815224, -0.03411169350147247, -0.02276725135743618, 0.032838135957717896, -0.05262722820043564, 0.041733432561159134, -0.015527579933404922, 0.0748850554227829, 0.00257650064304471, 0.06896792352199554, -0.0030369397718459368, -0.04827754572033882, -0.06034693494439125, -0.002757737413048744, 0.051569197326898575, 0.0418509915471077, 0.03319081291556358, -0.02952689304947853, 0.023786095902323723, -0.050707098096609116, -0.040832147002220154, -0.053881190717220306, -0.05399874970316887, 0.006989859975874424, -0.024334704503417015, -0.02417795918881893, 0.06359940022230148, -0.01938743144273758, -0.052039433270692825, -0.002564254915341735, -0.03877486288547516, 0.03201522305607796, -0.023766502737998962, -0.01496917475014925, 0.03213278204202652, 0.0029365248046815395, -0.0029830585699528456, 0.008758142590522766, -0.007396418135613203, 0.04118482396006584, -0.00040074135176837444, -0.04557368904352188, 0.06246299669146538, -0.003989657387137413, -0.05533108487725258, -0.018427366390824318, -0.048042427748441696, 0.013088230974972248, 0.007533570285886526, 0.06575464457273483, 0.023844875395298004, -0.012137962505221367, 0.029213402420282364, -0.030153874307870865, -0.003355328692123294, 0.033759016543626785, 0.01659540645778179, -0.046670906245708466, -0.0027307968121021986, -0.04471159353852272, 0.04725870117545128, -0.005941625684499741, -0.011295456439256668, -0.010021901689469814, 0.0016654186183586717, -0.05141245201230049, -0.0015564316418021917, 0.007386621553450823, -0.026196055114269257, 0.0045186723582446575, -0.02096468210220337, -0.027156120166182518, 0.006044489797204733, 0.033308371901512146, 0.009909240528941154, 0.06630325317382812, -0.04020516574382782, -0.027920253574848175, -0.002801822032779455, 0.012382877059280872, 0.057917382568120956, -0.023335453122854233, 0.03354348987340927, 0.011608947068452835, 0.02639198675751686, -0.014224634505808353, -0.026058902963995934, -0.01407768577337265, -0.050236862152814865, -0.025667039677500725, -0.0056673213839530945, 0.02911543659865856, -0.03487582504749298, -0.08965830504894257, 0.046631719917058945, -0.0028948893304914236, -0.05540945753455162, -0.08323174715042114, 0.03873567655682564, -0.026117682456970215, -0.03203481808304787, 0.067949078977108, 0.039578184485435486, 0.014773243106901646, 0.010550917126238346, 0.016879508271813393, -0.026705477386713028, -0.02235579676926136, -0.02106264792382717, -0.029840383678674698, 0.036306124180555344, -0.006328590679913759, -0.010815424844622612, -0.02505965158343315, -0.04674927890300751, -0.01979888789355755, 0.00770501047372818, -0.035933855921030045, -0.0482383593916893, -0.04761137813329697, -0.025275176391005516, -0.01026681624352932, -0.010119867511093616, 0.02143491804599762, 0.036854732781648636, 0.008488737046718597, 0.019122924655675888, -0.04510345309972763, 0.006029794923961163, -0.020455259829759598, -0.07946985960006714, 0.027939846739172935, 0.05748633295297623, 0.03544402867555618, -0.0499233715236187, -0.017898352816700935, -0.05838761851191521, -0.00928225927054882, -0.08448570966720581, -0.02729327231645584, 0.012813926674425602, -0.014263820834457874, 0.07445400953292847, -0.07167178392410278, 0.04741544649004936, -0.059641581028699875, 0.04815998673439026, -0.047572191804647446, -0.008694465272128582, -0.02278684452176094, -0.0227084718644619, -0.007783383131027222, 0.0352872833609581, 0.04251715913414955, 0.009091226384043694, -0.018799636512994766, -0.0017548124305903912, -0.010139460675418377, -0.04126319661736488, -0.05329339578747749, 0.015527579933404922, 0.04157668724656105, 0.037716832011938095, 0.027567576617002487, 0.019132720306515694, 0.1050977110862732, 0.0227084718644619, -0.03530687466263771, -0.06975165009498596, -0.03920591250061989, -0.007156401872634888, 0.012392673641443253, 0.014851615764200687, 0.045730434358119965, -0.005344034638255835, 0.020416073501110077, 0.015850866213440895, 0.01452832855284214, 0.020396480336785316, -0.022042306140065193, 0.0022360694129019976, 0.07272981107234955, 0.005290153436362743, 0.009585953317582607, -0.03648246452212334, -0.052431296557188034, 0.04941394925117493, 0.026431173086166382, 0.013480094261467457, -0.0307808555662632, 0.029762011021375656, -0.059680767357349396, 0.028468862175941467, 0.044985897839069366, -0.07821589708328247, 0.026548732072114944, -0.0015907196793705225, -0.004131707828491926, -0.01668357662856579, 0.06461824476718903, 0.04012679308652878, 0.008836515247821808, -0.025980530306696892, -0.08613153547048569, 0.03738375008106232, 0.054312240332365036, 0.03203481808304787, -0.03477786108851433, 0.03834381327033043, -0.004949721973389387, -0.07018270343542099, 0.039499811828136444, -0.01181467529386282, -0.0011939582182094455, 0.030271433293819427, -0.004719502292573452, -0.01805509626865387, 0.08213452994823456, -0.017065642401576042, -0.044437289237976074, 0.0001924109528772533, -0.007832366041839123, -0.00928225927054882, -0.05928890407085419, 0.02368813008069992, 0.06920304149389267, 0.05905378609895706, -0.032896917313337326, 0.0036492261569947004, -0.027587169781327248, 0.08707200735807419, 0.04369274899363518, 0.009630038402974606, -0.03765805438160896, -0.023472605273127556, -0.0403619110584259, 0.019740108400583267, -0.002249539829790592, 0.007621739525347948, -0.007053537759929895, -0.04255634546279907, -0.009458597749471664, -0.017408523708581924, -0.05995507165789604, -0.03614937886595726, 0.06598976254463196, 0.020357294008135796, 0.032407086342573166, -0.02584337815642357, -0.06685186177492142, -0.016732558608055115, -0.0052509671077132225, -0.06406963616609573, 0.066068135201931, -0.008518126793205738, -0.004178241360932589, -0.03448396176099777, 0.018348993733525276, -0.05909297242760658, 0.050236862152814865, -0.019132720306515694, 0.01495937816798687, 0.0035684043541550636, 0.0013837669976055622, 0.02145451121032238, -0.04678846523165703, 0.001789100468158722, -0.0010531323496252298, 0.0005198310245759785, -0.05309746414422989, 0.003056532936170697, 0.01659540645778179, -0.011530574411153793, -0.035992637276649475, -0.06736128777265549, -0.022512542083859444, 0.0032524645794183016, 0.02319830097258091, 0.02368813008069992, 0.02505965158343315, -0.00469256192445755, 0.0012613097205758095 ]
37,636
healpy.rotator
__mul__
Composition of rotation.
def __mul__(self, a): """Composition of rotation.""" if not isinstance(a, Rotator): raise TypeError( "A Rotator can only multiply another Rotator " "(composition of rotations)" ) rots = self._rots + a._rots coords = self._coords + a._coords invs = self._invs + a._invs return Rotator(rot=rots, coord=coords, inv=invs, deg=False)
(self, a)
[ -0.025509273633360863, -0.057853035628795624, 0.07329528778791428, 0.0333966426551342, -0.02170412428677082, -0.04444265738129616, -0.0557103306055069, -0.014232364483177662, -0.05763137713074684, 0.06963791698217392, 0.02944372221827507, 0.013715159147977829, 0.03140171244740486, 0.1114206612110138, -0.05316125229001045, 0.006802164949476719, 0.025583159178495407, -0.024308620020747185, -0.015553083270788193, -0.009891538880765438, 0.0008491161279380322, 0.022720063105225563, 0.025564687326550484, 0.034431055188179016, -0.0312354676425457, 0.09213631600141525, 0.04093305394053459, -0.0010921331122517586, -0.032159049063920975, 0.009240415878593922, 0.008713974617421627, 0.05039051175117493, 0.03258389234542847, -0.009549815207719803, 0.02506595477461815, -0.030367301777005196, -0.022406045347452164, 0.01578397862613201, -0.06627608090639114, 0.05404788628220558, 0.05009496584534645, 0.034006208181381226, 0.0482478067278862, -0.021371636539697647, -0.005112013779580593, -0.00921732559800148, 0.0025767874903976917, 0.009863832034170628, 0.002641438040882349, -0.037682052701711655, 0.03206668794155121, -0.06383783370256424, 0.037645112723112106, 0.021519407629966736, -0.002088444773107767, 0.10225874930620193, 0.045809555798769, 0.040637508034706116, -0.011027541942894459, 0.005148957017809153, -0.040009476244449615, -0.024714995175600052, 0.03856869041919708, -0.01145238894969225, 0.07861510664224625, -0.04647453501820564, -0.0278182215988636, 0.009706823155283928, -0.020725129172205925, 0.050649113953113556, -0.006562034133821726, 0.015811685472726822, 0.005305965896695852, -0.042115237563848495, 0.03300873935222626, 0.023292681202292442, -0.03271319344639778, 0.017741966992616653, 0.05220072716474533, -0.03293485566973686, -0.01965377666056156, -0.03882729262113571, -0.01627347618341446, 0.039898645132780075, 0.033747605979442596, 0.03060743398964405, 0.023680584505200386, -0.097751684486866, -0.08452601730823517, -0.021186919882893562, -0.02096526138484478, -0.054638978093862534, -0.015867101028561592, -0.015968693420290947, -0.035114504396915436, 0.03945532813668251, -0.012255903333425522, -0.029111234471201897, 0.03655528649687767, -0.0019245092989876866, -0.006211074069142342, 0.021297749131917953, -0.02776280790567398, -0.017677316442131996, 0.04108082875609398, -0.03733109310269356, -0.02153787948191166, -0.021888840943574905, 0.016661379486322403, 0.016365833580493927, 0.03938144072890282, 0.09361404180526733, -0.04540318250656128, 0.046843964606523514, -0.035945724695920944, -0.018647074699401855, -0.01641201227903366, -0.0513879768550396, 0.01578397862613201, 0.04839557781815529, 0.04913444444537163, 0.0076241507194936275, 0.05519312620162964, 0.06051294505596161, 0.03444952517747879, 0.00008781223004916683, 0.013511971570551395, -0.02438250556588173, -0.012893173843622208, -0.043482135981321335, -0.023255739361047745, 0.024770408868789673, -0.0017732731066644192, 0.03069979138672352, -0.0013530442956835032, 0.06753215193748474, 0.05172046646475792, -0.031050750985741615, -0.052016012370586395, 0.051905181258916855, -0.035742536187171936, 0.028316956013441086, 0.042854100465774536, 0.04721339792013168, -0.0525701604783535, 0.011886471882462502, 0.028261540457606316, 0.04913444444537163, 0.002018021885305643, -0.02033722586929798, 0.00680678291246295, 0.03324887156486511, 0.07270419597625732, 0.03577947989106178, 0.01561773382127285, -0.017418714240193367, -0.0015689311549067497, 0.01824069954454899, 0.002943910425528884, 0.028427785262465477, 0.035428520292043686, 0.029665382578969002, -0.037534281611442566, 0.016578257083892822, 0.015811685472726822, -0.03365524485707283, 0.11304616183042526, 0.003844400867819786, -0.02201814204454422, -0.02349586971104145, 0.0374419242143631, -0.07588130980730057, -0.011286145076155663, -0.011055249720811844, -0.0045301588252186775, 0.004624825436621904, -0.026636039838194847, 0.03234376385807991, 0.011951122432947159, -0.05297653377056122, 0.008335307240486145, -0.006109480280429125, -0.012625335715711117, -0.032842494547367096, 0.02039264142513275, 0.02713477425277233, 0.030219530686736107, 0.005850877612829208, 0.052385445684194565, -0.048691123723983765, -0.022202856838703156, -0.0014396299375221133, -0.0272271316498518, -0.004186125472187996, -0.03258389234542847, -0.012459090910851955, -0.06332062929868698, 0.0054167951457202435, 0.012394440360367298, 0.06745826452970505, -0.08400881290435791, -0.025638574734330177, 0.020078623667359352, -0.008612381294369698, 0.03986170142889023, -0.012523741461336613, -0.000060213071265025064, -0.001979924039915204, 0.018822556361556053, -0.040637508034706116, 0.028113767504692078, -0.009660644456744194, 0.04861724004149437, 0.04555095359683037, -0.016421247273683548, 0.030311888083815575, 0.03160490095615387, -0.021316220983862877, 0.043629907071590424, 0.06199067458510399, 0.052865706384181976, 0.04344519227743149, -0.042004406452178955, -0.009064935147762299, 0.015451489016413689, -0.004996566567569971, -0.048912785947322845, -0.006792929023504257, -0.07296279817819595, -0.030995337292551994, 0.04370379447937012, -0.05456509068608284, -0.03396926447749138, -0.004959623329341412, -0.05482369661331177, 0.0075825899839401245, -0.016051815822720528, -0.007952021434903145, -0.05205295607447624, 0.05220072716474533, -0.017732731997966766, 0.008298364467918873, 0.03727567940950394, 0.04407322779297829, -0.010953656397759914, 0.014029176905751228, -0.00979918148368597, 0.028058353811502457, -0.031420182436704636, 0.00893101654946804, -0.012265139259397984, 0.026931585744023323, -0.008182916790246964, 0.019136572256684303, 0.00933277327567339, 0.027578091248869896, -0.005864731501787901, -0.019672248512506485, 0.016375068575143814, 0.005790845025330782, 0.030681319534778595, -0.009669880382716656, 0.011313851922750473, -0.011018306948244572, 0.0020872901659458876, -0.03522533178329468, -0.011932650581002235, 0.038642577826976776, -0.030459661036729813, 0.01683685928583145, 0.14031024277210236, 0.004042970482259989, -0.028889574110507965, 0.026562154293060303, 0.016689086332917213, -0.007721127010881901, 0.025379972532391548, 0.07521633803844452, -0.010907476767897606, -0.04946693032979965, -0.007993582636117935, 0.03393232077360153, -0.046326760202646255, -0.02796599455177784, -0.0269131138920784, 0.016541313380002975, 0.0439254529774189, 0.040268078446388245, 0.038790348917245865, 0.00581855233758688, 0.04747200012207031, 0.007610297296196222, 0.007901225239038467, -0.01190494280308485, 0.06956402957439423, 0.006765221711248159, -0.09213631600141525, -0.0018286879640072584, 0.0018402326386421919, -0.011073721572756767, -0.0008664332563057542, -0.04082222655415535, -0.020503470674157143, -0.02028181217610836, -0.06716272234916687, -0.009185000322759151, 0.014915812760591507, 0.02670992724597454, 0.006104862317442894, 0.033045683056116104, 0.03293485566973686, 0.01490657776594162, -0.10381036251783371, 0.012292847037315369, -0.003121699672192335, 0.0017132405191659927, 0.043629907071590424, 0.020448055118322372, 0.037090964615345, 0.04377768188714981, 0.015608497895300388, 0.051018547266721725, -0.02833542786538601, -0.010205556638538837, 0.011203022673726082, -0.03075520694255829, -0.00824756734073162, -0.012034243904054165, -0.01824069954454899, 0.015026642940938473, -0.12449855357408524, 0.0005847414140589535, -0.010094726458191872, 0.006538944784551859, -0.07809790223836899, -0.008861747570335865, -0.007134653627872467, -0.020263340324163437, 0.014260071329772472, -0.0019452898995950818, 0.04651147872209549, -0.00004567390715237707, -0.006100244354456663, 0.032620836049318314, -0.027670450508594513, 0.012283611111342907, 0.02201814204454422, -0.00646505830809474, 0.03831008821725845, -0.03620432689785957, -0.013733630999922752, 0.03112463839352131, 0.03938144072890282, -0.03409856557846069, -0.025509273633360863, 0.018610132858157158, -0.0359087809920311, -0.025786347687244415, -0.0377189964056015, -0.018129870295524597, 0.023662112653255463, 0.01398299727588892, -0.012431384064257145, -0.001782508916221559, -0.03029341623187065, -0.03581642359495163, -0.0687512755393982, -0.06199067458510399, 0.010464158840477467, -0.010630402714014053, 0.017455657944083214, 0.017621902748942375, -0.012763872742652893, 0.003892888780683279, -0.026636039838194847, 0.016005637124180794, -0.002579096471890807, 0.0506860576570034, -0.02469652332365513, -0.014832691289484501, 0.03269472345709801, -0.018055984750390053, 0.015303716994822025, 0.03428328037261963, 0.0010430678958073258, 0.06638691574335098, 0.009194236248731613, -0.020817488431930542, 0.040157247334718704, 0.048063091933727264, -0.03411703556776047, -0.03746039420366287, 0.039418384432792664, -0.06934236735105515, -0.07706349343061447, -0.01161863375455141, 0.010593459941446781, -0.0071531254798173904, -0.06335756927728653, -0.06025434285402298, 0.04972553625702858, 0.014601795934140682, 0.013511971570551395, 0.018970327451825142, 0.009993133135139942, -0.03269472345709801, 0.07824567705392838, 0.013133304193615913, -0.013659744523465633, -0.021463993936777115, -0.04056362435221672, -0.0432974174618721, 0.0368138886988163, 0.01372439507395029, 0.015543847344815731, -0.037737470120191574, -0.023200323805212975, -0.08489545434713364, -0.03797759860754013, 0.056855570524930954, 0.026783812791109085, 0.0766201764345169, -0.009660644456744194, 0.02491818182170391, 0.020762072876095772, -0.01032562181353569, -0.013401142321527004, -0.00668671727180481, -0.016051815822720528, -0.005398323759436607, -0.02338504046201706, -0.06110403686761856, 0.048875842243433, -0.001120994915254414, 0.03328581526875496, -0.04514458030462265, -0.0019175824709236622, 0.02964691072702408, -0.04244772717356682, 0.039750874042510986, 0.06195373088121414, 0.002299713669344783, -0.015026642940938473, -0.032214462757110596, -0.01866554655134678, -0.04902361333370209, 0.03797759860754013, 0.009429749101400375, -0.004172271583229303, 0.02153787948191166, 0.08400881290435791, 0.07854122668504715, 0.01954294741153717, 0.003560400102287531, 0.05589504912495613, 0.013151776045560837, 0.023532811552286148, -0.0321405753493309, -0.011609397828578949, -0.026931585744023323, 0.01337343454360962, -0.004830322228372097, -0.009946954436600208, -0.004236922133713961, -0.025527745485305786, 0.021002203226089478, 0.022350629791617393, 0.0016820696182549, 0.007781159598380327, 0.02486276812851429, 0.03533616289496422, -0.01578397862613201, 0.003996791318058968, -0.00733322324231267, -0.0010084336390718818, 0.014638739638030529, -0.02175953984260559, -0.011941886506974697, -0.044220998883247375, -0.03938144072890282, -0.05763137713074684, -0.060180459171533585, -0.0030916831456124783, 0.014804983511567116, 0.02796599455177784, 0.038790348917245865, -0.006012504454702139, 0.010205556638538837, 0.03923366963863373, 0.02574940398335457, -0.021260805428028107, 0.07041372358798981, -0.03934449702501297, 0.0724455937743187, -0.03622279688715935, 0.04355602338910103, -0.015488432720303535, -0.04418405517935753, -0.02818765491247177, 0.025878705084323883, 0.018822556361556053, 0.03751581162214279, -0.005356762558221817, -0.026931585744023323, 0.04736116901040077, -0.00008629698277218267, -0.03380301967263222, -0.05205295607447624, -0.03690624609589577, 0.023883773013949394, -0.03661070019006729, -0.0336737185716629, -0.016919981688261032, 0.020872902125120163, -0.010067019611597061, -0.006866815499961376, -0.05120326206088066, -0.00834916066378355, -0.004036043770611286, -0.08437824994325638, 0.06505695730447769, 0.0023135673254728317, -0.041006941348314285, -0.03893812373280525, -0.016181116923689842, 0.012717693112790585, -0.021205391734838486, -0.043482135981321335, 0.03496672958135605, 0.007993582636117935, -0.06439197808504105, 0.009725295007228851, -0.08016671985387802, 0.037792883813381195, -0.05105549097061157, 0.010796647518873215, -0.04810003563761711, 0.002102298429235816, 0.03819926083087921, 0.004366223234683275, 0.0034842046443372965, 0.032473064959049225, 0.019986266270279884, -0.018139107152819633, -0.02270159125328064, 0.01840694434940815, 0.003197894897311926, -0.027670450508594513, 0.0006343838758766651, -0.020503470674157143, -0.017206290736794472, -0.03522533178329468, -0.048801954835653305, 0.038901180028915405, 0.012163545936346054, 0.05401094630360603, 0.0068575795739889145, -0.05024274066090584, -0.02233215793967247, 0.052016012370586395, 0.0414133183658123, 0.04913444444537163, 0.02360669896006584, -0.04159803315997124, 0.0003469196381047368, -0.012302082031965256, 0.042632441967725754, 0.01948753371834755, 0.040268078446388245, 0.002220054855570197, -0.011415446177124977, -0.015220594592392445, -0.010907476767897606, 0.0003258504730183631, -0.059441592544317245, -0.021778011694550514, -0.014047647826373577, 0.030681319534778595, -0.040157247334718704, -0.05656002461910248, 0.02750420570373535, -0.01069505326449871, -0.04008335992693901, -0.06819713115692139, 0.03507756069302559, -0.060439061373472214, -0.019136572256684303, 0.03134629875421524, 0.028778744861483574, 0.016818387433886528, -0.018102163448929787, 0.004486288875341415, -0.02275700494647026, -0.007873517461121082, -0.022110499441623688, -0.01948753371834755, 0.032953325659036636, 0.014195420779287815, -0.030219530686736107, -0.006788311060518026, -0.0033318139612674713, -0.03718332201242447, 0.02855708636343479, 0.008275275118649006, -0.04145025834441185, 0.0020838268101215363, -0.014768040738999844, 0.010094726458191872, -0.012440619058907032, -0.04326047748327255, -0.0007625305443070829, 0.036111969500780106, 0.0019522167276591063, -0.01048263069242239, 0.03997253254055977, -0.03766358271241188, -0.09627395123243332, 0.02602647803723812, 0.024271676316857338, 0.05999574065208435, -0.07373860478401184, -0.01258839201182127, -0.10351482033729553, 0.00714850751683116, -0.058074694126844406, -0.01985696516931057, 0.006437350995838642, -0.021186919882893562, 0.07196533679962158, -0.04614204540848732, 0.06236010417342186, -0.02281242050230503, 0.02881568856537342, -0.04961470514535904, -0.005439884960651398, -0.03740498051047325, -0.02233215793967247, 0.038790348917245865, -0.01145238894969225, 0.03533616289496422, -0.03313804045319557, -0.05282876268029213, -0.056744739413261414, -0.017427949234843254, -0.019561419263482094, -0.06575887650251389, -0.03239917755126953, -0.014260071329772472, 0.00676983967423439, 0.006866815499961376, -0.02523219957947731, 0.0804622694849968, 0.032473064959049225, -0.012025008909404278, -0.03986170142889023, -0.07322140038013458, 0.048912785947322845, 0.018970327451825142, 0.00012201354547869414, 0.043851565569639206, -0.0238098856061697, -0.021944254636764526, -0.02074360102415085, 0.015100529417395592, 0.053124308586120605, -0.05430648848414421, -0.018933385610580444, 0.011951122432947159, -0.009956189431250095, 0.02981315553188324, -0.026358965784311295, -0.0071946862153708935, -0.022313687950372696, 0.004234613385051489, -0.020835960283875465, -0.008963341824710369, 0.04739811271429062, -0.08674260973930359, 0.059072162955999374, 0.01593175157904625, -0.07891065627336502, 0.017935918644070625, 0.013622801750898361, 0.007610297296196222, -0.05249627307057381, 0.003701245877891779, 0.030718263238668442, 0.01863783970475197, -0.0557103306055069, -0.08570820093154907, 0.0729997456073761, 0.004137637559324503, 0.025989534333348274, -0.03112463839352131, -0.003541928483173251, 0.058074694126844406, -0.026322023943066597, 0.027578091248869896, -0.011553983204066753, 0.009185000322759151, -0.0007798476726748049, 0.025989534333348274, 0.002851552562788129, 0.020632771775126457, -0.02944372221827507, -0.016236532479524612, 0.019210459664463997, -0.01179411355406046, 0.02628508023917675, -0.05208989977836609, 0.022147443145513535, 0.0766201764345169, 0.05992185324430466, -0.002094217110425234, 0.06620220094919205, -0.021722596138715744, 0.042004406452178955, 0.02850167080760002, 0.042743273079395294, 0.019783077761530876, -0.08016671985387802, -0.011221494525671005, 0.054121773689985275, 0.006021739915013313, -0.004054515156894922, -0.040748339146375656, -0.018370000645518303, -0.017529543489217758, -0.019247401505708694, -0.018212992697954178, -0.01582092046737671, 0.07632463425397873, 0.022036613896489143, 0.00005335837704478763, -0.02323726750910282, -0.014629503712058067, -0.028409313410520554, -0.03044118918478489, -0.014130770228803158, 0.021260805428028107, -0.027374904602766037, -0.030090229585766792, 0.034948259592056274, 0.006229545455425978, -0.054638978093862534, -0.008709357120096684, -0.029148178175091743, 0.041376374661922455, 0.010390272364020348, -0.004968859255313873, 0.015322187915444374, -0.014001469127833843, -0.030792148783802986, -0.01214507408440113, 0.04307575896382332, -0.0439254529774189, 0.025084426626563072, -0.012523741461336613, 0.002422087825834751, -0.06110403686761856, -0.05120326206088066, -0.002604495035484433, 0.04255855455994606, 0.01883179135620594, -0.029000405222177505, 0.010990599170327187, 0.026562154293060303, -0.005305965896695852 ]
37,637
healpy.rotator
__nonzero__
null
def __nonzero__(self): return self._do_rotation
(self)
[ 0.035206954926252365, 0.02683151140809059, 0.06208861991763115, 0.05255967006087303, 0.03607626259326935, -0.033351317048072815, -0.04476933926343918, 0.06653545796871185, -0.038182660937309265, 0.014753151684999466, 0.025477398186922073, 0.027082273736596107, 0.036109697073698044, 0.0230533666908741, -0.031328506767749786, -0.015672611072659492, -0.008734868839383125, 0.05663872882723808, 0.006774747744202614, -0.017503172159194946, -0.0023049188312143087, -0.002405223436653614, 0.029623325914144516, -0.005972309969365597, -0.02788471058011055, 0.04580581933259964, -0.01521288137882948, -0.025042744353413582, 0.0117105757817626, 0.00015881580475252122, -0.0706813856959343, 0.019910486415028572, 0.05941382423043251, 0.010147493332624435, 0.01502063125371933, 0.04366598650813103, -0.003305876161903143, 0.0319972038269043, -0.029389280825853348, 0.008893684484064579, 0.027165859937667847, -0.0037112743593752384, 0.03211422637104988, -0.014937044121325016, -0.04075714945793152, 0.001418893807567656, -0.006248147692531347, 0.020579183474183083, 0.004743576981127262, -0.030760113149881363, 0.07449296861886978, -0.020913533866405487, 0.047845348715782166, 0.027750970795750618, -0.053796760737895966, 0.028971344232559204, 0.058745127171278, 0.017720500007271767, -0.01084962673485279, -0.007527032867074013, -0.00859277043491602, 0.021649101749062538, -0.01731928065419197, -0.013390679843723774, 0.0565049909055233, -0.013106483034789562, 0.0019914666190743446, 0.014853456057608128, 0.022735735401511192, 0.09702809154987335, -0.051723796874284744, 0.01828889362514019, 0.01502063125371933, 0.0017323460197076201, 0.02216734178364277, -0.044434987008571625, -0.062055181711912155, 0.013206787407398224, 0.01316499337553978, -0.06536523997783661, -0.04155958816409111, -0.01216194685548544, 0.022936344146728516, 0.026413574814796448, -0.0423954576253891, -0.016826115548610687, 0.020177965983748436, -0.013449190184473991, 0.004125031176954508, -0.0178542397916317, -0.020428726449608803, -0.034020014107227325, 0.004960903897881508, -0.011468172073364258, -0.02171597070991993, 0.028386233374476433, -0.005947233643382788, -0.02290290966629982, 0.005859467200934887, -0.06479684263467789, 0.0026413574814796448, 0.05443202704191208, -0.00749359792098403, -0.016533561050891876, 0.03487260639667511, -0.012847362086176872, -0.05135601386427879, -0.010657375678420067, -0.028152190148830414, -0.02490900456905365, 0.01398414932191372, 0.04296385124325752, -0.012245533987879753, 0.0386841855943203, -0.0130145363509655, -0.0773683711886406, -0.01880713365972042, -0.010841268114745617, -0.06075122207403183, 0.04527086019515991, 0.02184971049427986, 0.002518066205084324, 0.010715886950492859, -0.07007955759763718, 0.02275245264172554, 0.01962628960609436, 0.03047591634094715, 0.05530133098363876, 0.030141565948724747, -0.0034354364033788443, 0.030375611037015915, 0.020044226199388504, -0.01289751473814249, 0.03560817241668701, -0.028419669717550278, -0.012019848451018333, 0.10665734857320786, 0.012981101870536804, -0.03918571025133133, 0.06981208175420761, 0.0014481493271887302, -0.03510665148496628, 0.05490011349320412, 0.0304926335811615, 0.025895334780216217, 0.07790333032608032, 0.020244834944605827, 0.06282418966293335, 0.02238466963171959, -0.029472868889570236, 0.07904011756181717, 0.0012705264380201697, 0.038316402584314346, -0.014811662957072258, -0.001105441595427692, -0.004626554902642965, -0.028820887207984924, -0.00589290214702487, -0.0009675225592218339, 0.02067948877811432, 0.013883844017982483, -0.010164211504161358, -0.04296385124325752, -0.013850409537553787, 0.04410063847899437, -0.006089332047849894, 0.03440451622009277, 0.006523985881358385, -0.004116672556847334, 0.02893790975213051, 0.0031010874081403017, -0.004072789568454027, -0.021983450278639793, 0.02200016751885414, 0.05556881055235863, 0.056538425385951996, -0.013733386993408203, 0.05941382423043251, -0.04975114017724991, 0.016851192340254784, 0.031779877841472626, -0.004843881819397211, -0.07977568358182907, -0.010164211504161358, 0.0527937151491642, 0.05566911771893501, 0.05607033520936966, -0.008509183302521706, 0.05088792368769646, -0.02365519478917122, -0.024524502456188202, 0.03174644336104393, -0.0013572481693699956, -0.01807156577706337, 0.021314751356840134, -0.04470246657729149, -0.03955349326133728, -0.01415968220680952, 0.04995174705982208, 0.001983107766136527, 0.0023174567613750696, -0.03129507228732109, -0.0009732691687531769, 0.0019360899459570646, -0.050152357667684555, 0.03261575102806091, -0.0061896368861198425, 0.04216141626238823, -0.003117804881185293, -0.0071341730654239655, 0.012170305475592613, -0.06653545796871185, -0.003966215532273054, 0.018556371331214905, -0.015112577006220818, -0.030509350821375847, 0.029355846345424652, 0.020412009209394455, -0.026196248829364777, 0.07817080616950989, 0.026196248829364777, 0.06479684263467789, -0.02178283967077732, -0.04603986442089081, 0.016475049778819084, 0.002152371918782592, 0.004852240439504385, -0.05011892318725586, -0.09696122258901596, -0.032398421317338943, 0.023287411779165268, -0.04864778742194176, -0.04975114017724991, 0.005771700292825699, 0.011693857610225677, -0.000844231341034174, 0.01627443917095661, 0.027032120153307915, -0.06449592858552933, 0.00810378510504961, 0.015513795427978039, 0.003414539620280266, 0.03351849317550659, 0.03278292343020439, -0.006536523811519146, 0.016040395945310593, 0.022518407553434372, 0.054766375571489334, -0.023839086294174194, 0.0100388303399086, -0.019225070253014565, -0.030509350821375847, -0.04052310436964035, -0.022919626906514168, 0.019208353012800217, -0.03784831240773201, -0.01100008375942707, -0.014585977420210838, 0.031863465905189514, 0.028871040791273117, -0.0174864549189806, -0.01755332574248314, -0.013766822405159473, -0.020629337057471275, 0.017720500007271767, -0.0068666934967041016, 0.022802604362368584, 0.017436303198337555, 0.005859467200934887, 0.024775264784693718, 0.0907423347234726, -0.03978753834962845, -0.1063229963183403, -0.0219332966953516, 0.037146180868148804, -0.0011482799891382456, 0.05225875601172447, -0.012880797497928143, 0.0334516242146492, 0.06105213612318039, 0.08158116787672043, 0.004114583134651184, -0.059815045446157455, 0.012120152823626995, -0.09234720468521118, -0.015463643707334995, -0.01949254982173443, 0.0038680005818605423, 0.009921807795763016, -0.007318065036088228, 0.027048837393522263, 0.059815045446157455, 0.046574823558330536, -0.015263034030795097, 0.07335618138313293, -0.0527937151491642, -0.027901427820324898, -0.06807346642017365, 0.024123283103108406, -0.011418020352721214, 0.0226688664406538, -0.0341871902346611, -0.04664169251918793, -0.03748052939772606, -0.012061641551554203, 0.01807156577706337, 0.00010735738760558888, 0.025092896074056625, 0.033284448087215424, 0.027048837393522263, 0.01642489619553089, 0.017720500007271767, -0.019291939213871956, -0.008199910633265972, 0.018606524914503098, 0.026664337143301964, 0.04560520872473717, 0.016984932124614716, 0.04593956097960472, 0.11815895140171051, -0.019743312150239944, 0.0423620231449604, -0.06887590140104294, -0.0053788404911756516, -0.017085235565900803, -0.09174537658691406, 0.025393810123205185, -0.043097592890262604, -0.021916579455137253, 0.03962036222219467, -0.07783646136522293, 0.0017187630292028189, 0.014151323586702347, -0.006666084285825491, -0.07783646136522293, -0.025845181196928024, 0.024357328191399574, -0.012312403880059719, 0.00844231341034174, 0.010540354065597057, 0.009462078101933002, -0.022568561136722565, -0.0017521979752928019, 0.015003914013504982, 0.030442479997873306, 0.03236498683691025, 0.011944619938731194, 0.030810264870524406, 0.09395208209753036, -0.03318414464592934, -0.01066573429852724, 0.016241004690527916, -0.007727642543613911, 0.02989080548286438, -0.01882385089993477, -0.024374045431613922, 0.002996603259816766, -0.012379273772239685, 0.0038262070156633854, 0.03361879661679268, 0.04373285546898842, -0.014861815609037876, -0.057140253484249115, 0.009278185665607452, -0.02067948877811432, -0.051857538521289825, -0.05225875601172447, -0.03373581916093826, 0.027466773986816406, -0.03211422637104988, -0.030810264870524406, -0.037213049829006195, -0.012003131210803986, -0.011200693435966969, -0.019810181111097336, 0.007410010788589716, 0.01163534726947546, 0.023370997980237007, 0.04493651166558266, -0.04095776006579399, 0.03534069284796715, 0.006323376204818487, -0.00832947064191103, 0.044434987008571625, -0.052225321531295776, 0.011501607485115528, -0.01807156577706337, 0.017603477463126183, 0.00787809956818819, -0.047845348715782166, -0.025978920981287956, -0.01768706552684307, -0.010139134712517262, -0.08037751168012619, 0.0034333467483520508, 0.02566128969192505, -0.014577618800103664, 0.03295009955763817, 0.0027542002499103546, -0.03577534854412079, 0.016709093004465103, 0.007297168020159006, -0.023153671994805336, 0.03503977879881859, 0.00015803216956555843, 0.00033199816243723035, 0.07389114052057266, 0.004039354622364044, -0.00855515617877245, -0.05827704071998596, -0.0226688664406538, -0.010640658438205719, -0.022501690313220024, -0.044802773743867874, 0.021398339420557022, 0.007940789684653282, -0.011660423129796982, 0.0275169275701046, 0.014477313496172428, 0.028804169967770576, -0.009997036308050156, 0.08793380111455917, 0.0230533666908741, 0.008371264673769474, 0.035206954926252365, -0.010239440016448498, 0.014928685501217842, 0.021615665405988693, -0.02989080548286438, 0.021615665405988693, -0.042495764791965485, -0.02668105438351631, 0.050821054726839066, -0.015120935626327991, 0.015797993168234825, -0.009938525035977364, 0.006670263595879078, 0.012312403880059719, -0.06192144379019737, 0.04965083301067352, 0.0840553492307663, 0.015722764655947685, -0.04801252484321594, -0.018305610865354538, 0.003230647649616003, 0.00015032646479085088, -0.01160191185772419, 0.05296088755130768, 0.01441880315542221, 0.008902043104171753, 0.04028905928134918, 0.07516166567802429, -0.02945615164935589, -0.010088982991874218, -0.017737217247486115, 0.012053282931447029, -0.04155958816409111, -0.04540460184216499, -0.01100008375942707, -0.07663280516862869, 0.008275139145553112, 0.029088366776704788, -0.08987302333116531, -0.025159765034914017, -0.0003878971328958869, 0.04336507245898247, -0.021465208381414413, 0.014293421991169453, -0.04898213595151901, -0.0005558552802540362, 0.021231165155768394, -0.050754185765981674, 0.0023885059636086226, -0.05041983723640442, -0.017971260473132133, 0.040857452899217606, -0.004304743837565184, 0.020913533866405487, -0.0024323894176632166, -0.03092728741466999, -0.11508294194936752, -0.04366598650813103, -0.04731038957834244, -0.011518324725329876, 0.010874702595174313, -0.004802088253200054, -0.08091247081756592, -0.00616873987019062, 0.04002157971262932, -0.04630734398961067, -0.005767520982772112, 0.03711274266242981, 0.0007946013938635588, 0.043164461851119995, 0.011509966105222702, 0.048881832510232925, -0.00977970939129591, -0.045538339763879776, -0.02460809051990509, 0.032097507268190384, 0.019525984302163124, 0.04042280092835426, -0.016174135729670525, -0.030225154012441635, -0.005826032254844904, -0.062055181711912155, -0.01738615147769451, -0.06683637201786041, -0.05199127644300461, 0.015296469442546368, 0.015873221680521965, 0.017135389149188995, 0.016675658524036407, 0.02268558368086815, 0.010916496627032757, 0.031562551856040955, -0.03360208123922348, 0.0014523286372423172, 0.013373961672186852, -0.02363847754895687, 0.028971344232559204, -0.025092896074056625, -0.016533561050891876, -0.007527032867074013, -0.04694260656833649, 0.03697900474071503, -0.03995471075177193, -0.036544352769851685, 0.029088366776704788, 0.006833258550614119, -0.01449403166770935, -0.06345944851636887, -0.03296681493520737, 0.07763584703207016, -0.06329227238893509, 0.053729891777038574, -0.035507868975400925, -0.005796776618808508, -0.06426189094781876, -0.004743576981127262, 0.013482625596225262, -0.033802688121795654, 0.04008845239877701, -0.022484973073005676, 0.05807643011212349, 0.01364979986101389, -0.011192334815859795, -0.030074696987867355, 0.037079308182001114, -0.0007820633472874761, -0.04276324436068535, -0.007129993289709091, 0.008567694574594498, -0.03263246640563011, 0.05897917225956917, 0.06349288672208786, 0.05072075128555298, 0.016190852969884872, -0.02081322856247425, 0.009261468425393105, 0.031261637806892395, 0.00829185638576746, 0.0077443597838282585, -0.053863633424043655, -0.04453529417514801, -0.00943700224161148, 0.07228626310825348, -0.011877750046551228, 0.049249615520238876, 0.007288809400051832, -0.009579100646078587, -0.06188800930976868, -0.018405914306640625, -0.009085935540497303, -0.0008040049578994513, 0.026898380368947983, 0.011267563328146935, 0.03293338045477867, -0.07054764777421951, -0.09796427190303802, 0.031713008880615234, -0.06279075145721436, 0.005395557731389999, -0.05971474200487137, 0.0002972572110593319, -0.06783942133188248, 0.007627337705343962, 0.07536227256059647, 0.008354546502232552, -0.05299432575702667, -0.04677543044090271, 0.007138352375477552, -0.007823768071830273, -0.05449889600276947, 0.0037175435572862625, 0.00009814972872845829, 0.04988487809896469, -0.009119370020925999, 0.018088283017277718, 0.014828380197286606, 0.006172919180244207, -0.014937044121325016, 0.008835173211991787, -0.00993016641587019, -0.03340147063136101, 0.028954626992344856, -0.002695689210668206, 0.007911534048616886, -0.038617316633462906, -0.03510665148496628, -0.006699519231915474, 0.006055897101759911, -0.013783539645373821, -0.06700354814529419, 0.05516759306192398, -0.023839086294174194, -0.04002157971262932, 0.014000866562128067, 0.03433764725923538, 0.04988487809896469, -0.03129507228732109, 0.027048837393522263, -0.05048670619726181, -0.011543400585651398, -0.0431310273706913, -0.022635430097579956, 0.04951709508895874, -0.003884718054905534, 0.05988191440701485, -0.03226468339562416, 0.01753660850226879, -0.025076178833842278, 0.04403376951813698, -0.057808950543403625, -0.035808783024549484, -0.02863699570298195, -0.06847468763589859, 0.02669777162373066, 0.053194932639598846, 0.02780112251639366, -0.04135897755622864, -0.02469167672097683, 0.028887758031487465, -0.009946884587407112, -0.012278968468308449, -0.0594806969165802, -0.007903175428509712, 0.04664169251918793, 0.019525984302163124, -0.044067203998565674, -0.036912135779857635, 0.07776959240436554, 0.005830211564898491, -0.031863465905189514, -0.02460809051990509, -0.05881199613213539, 0.002229690318927169, 0.014602694660425186, 0.013883844017982483, -0.041526153683662415, -0.030693242326378822, -0.01703508384525776, -0.029188672080636024, 0.02268558368086815, 0.09301590919494629, -0.012479578144848347, -0.012839003466069698, 0.0076816692017018795, -0.0069084870629012585, -0.056538425385951996, -0.02200016751885414, -0.0012673918390646577, 0.025326941162347794, 0.0033790150191634893, 0.04968426749110222, -0.0197098758071661, 0.04125867411494255, -0.04714321717619896, 0.06162052974104881, 0.008153937757015228, -0.05867825821042061, 0.04135897755622864, -0.010272874496877193, 0.019425678998231888, -0.0014617322012782097, -0.0046056583523750305, 0.01434357464313507, -0.017636911943554878, 0.008810097351670265, -0.0944201722741127, 0.014928685501217842, -0.011593553237617016, 0.043766289949417114, 0.03968723118305206, 0.03524038940668106, 0.017586760222911835, -0.03450482338666916, 0.07997629046440125, 0.013432472944259644, -0.0019465383375063539, 0.03254887834191322, -0.03517352044582367, -0.037213049829006195, 0.03574191406369209, -0.04095776006579399, -0.007092379033565521, 0.021398339420557022, -0.032448574900627136, 0.015605742111802101, -0.09080920368432999, -0.025076178833842278, 0.07268748432397842, 0.0014659116277471185, -0.02497587352991104, -0.014937044121325016, -0.04797909036278725, -0.06091839820146561, 0.04276324436068535, 0.0512891449034214, -0.03671152517199516, -0.04774504527449608, -0.01160191185772419, -0.006891769822686911, 0.026530597358942032, 0.02432389371097088, -0.01962628960609436, -0.04767817258834839, -0.03368566557765007, -0.049550529569387436, -0.006035000551491976, 0.0013750104699283838, 0.019810181111097336, -0.015940090641379356, 0.03774800896644592, -0.004212798085063696, 0.0015254674945026636, 0.004329820163547993, 0.0026058328803628683, -0.038617316633462906, 0.04630734398961067, 0.012872437946498394, -0.01644161529839039, 0.02186642773449421, -0.026630902662873268, 0.03284979239106178, 0.055134158581495285, -0.033133991062641144, 0.044067203998565674, 0.013323809951543808, 0.006611752323806286, 0.024290459230542183, -0.008538438938558102, 0.013106483034789562, -0.017202258110046387, 0.021298034116625786, 0.029255541041493416, -0.015196164138615131, 0.05031953006982803, 0.018021414056420326, -0.031629420816898346, -0.10766039043664932, -0.018639959394931793, -0.047042910009622574, 0.07114947587251663, -0.00829185638576746, 0.0490824393928051, 0.01453582476824522, 0.023738782852888107 ]
37,638
healpy.rotator
__repr__
null
def __repr__(self): return ( "[ " + ", ".join([str(self._coords), str(self._rots), str(self._invs)]) + " ]" )
(self)
[ 0.008202673867344856, -0.044317521154880524, 0.01826046034693718, -0.009523479267954826, 0.01514865830540657, -0.044625282287597656, -0.016533581539988518, -0.03481113910675049, 0.056354377418756485, 0.0015334597555920482, -0.026330625638365746, -0.03178482502698898, -0.01584111899137497, 0.057311855256557465, -0.02740778774023056, 0.028638828545808792, 0.005514043383300304, -0.09574773162603378, -0.01706361211836338, 0.04476206377148628, -0.007189628668129444, 0.025834789499640465, 0.03243454173207283, -0.01803818717598915, 0.0012502772733569145, 0.012267678044736385, 0.014943485148251057, -0.05023336037993431, -0.0038128113374114037, -0.0014137750258669257, -0.07242631912231445, -0.02670677751302719, 0.02496280148625374, -0.03270810842514038, 0.016037745401263237, 0.022466519847512245, 0.00842921994626522, -0.00005393156607169658, 0.026587093248963356, 0.003293465357273817, 0.013302095234394073, -0.05406327173113823, -0.008147105574607849, -0.013284997083246708, -0.012267678044736385, -0.014473294839262962, 0.026262234896421432, 0.0055867088958621025, -0.02044897899031639, -0.08473674207925797, 0.022056173533201218, 0.03730741888284683, -0.008848115801811218, 0.01894437149167061, -0.035221487283706665, -0.0031310361810028553, 0.04883133992552757, 0.04445430263876915, 0.0384700708091259, 0.04017984867095947, -0.03366558626294136, 0.013327741995453835, 0.05255866423249245, -0.058029960840940475, 0.04038502275943756, -0.03387076035141945, -0.0441807359457016, 0.03775196149945259, 0.029459524899721146, 0.05149859935045242, 0.01993604563176632, 0.009087485261261463, -0.022979455068707466, -0.01853402517735958, -0.01894437149167061, 0.018397241830825806, 0.0033233866561204195, 0.04038502275943756, 0.029117567464709282, -0.07550392299890518, -0.014259572140872478, 0.03000665456056595, 0.028980785980820656, 0.010224489495158195, 0.01660197228193283, -0.026501603424549103, -0.0335971936583519, -0.0015943706966936588, -0.09807302802801132, 0.012626731768250465, -0.0018262596568092704, 0.03505050763487816, -0.06086819991469383, 0.02814299240708351, -0.06459552049636841, -0.013284997083246708, -0.005005383398383856, -0.06784410774707794, 0.051532793790102005, -0.0001576204231241718, -0.003381091635674238, -0.015456419438123703, -0.052250903099775314, 0.006625400856137276, -0.07352057844400406, -0.00420819828286767, -0.015909511595964432, -0.0026373369619250298, -0.02670677751302719, 0.04445430263876915, 0.01899566501379013, 0.12023179233074188, 0.0388462208211422, -0.02118418551981449, -0.0029258625581860542, -0.01127600483596325, -0.02954501286149025, -0.017867209389805794, 0.02446696348488331, -0.012780612334609032, 0.008668589405715466, 0.01009625568985939, 0.019388914108276367, 0.03720483183860779, -0.07502518594264984, 0.04229997843503952, -0.0533793568611145, 0.008574550971388817, -0.03799133002758026, -0.1102466732263565, 0.029476622119545937, -0.029852773994207382, -0.04729253798723221, 0.034264009445905685, 0.04281291365623474, 0.0015836844686418772, 0.04643764719367027, -0.05023336037993431, 0.03720483183860779, 0.08193270117044449, 0.022227151319384575, -0.019747968763113022, 0.047121562063694, 0.05166957899928093, -0.032058391720056534, 0.010506602935492992, 0.03535826876759529, 0.08336891233921051, 0.01609758660197258, -0.058029960840940475, 0.0018593866843730211, 0.03867524489760399, 0.025185072794556618, -0.03431530296802521, 0.011498276144266129, -0.01779881864786148, -0.004347117617726326, -0.05290061980485916, 0.07680335640907288, -0.002331713680177927, -0.06514265388250351, -0.03477694094181061, -0.009532027877867222, -0.010472407564520836, -0.004293687175959349, 0.02306494303047657, 0.03029731661081314, -0.04524080082774162, -0.02472343109548092, 0.019337622448801994, 0.0046762507408857346, -0.10238167643547058, -0.07140044867992401, 0.04900231957435608, 0.00342597346752882, 0.01778172142803669, -0.038606852293014526, 0.11558118462562561, -0.016516482457518578, -0.0156017504632473, 0.015105914324522018, -0.05912422388792038, -0.03458886593580246, 0.0007197108934633434, 0.04130830615758896, -0.025304757058620453, 0.04021404683589935, -0.031870316714048386, 0.03918817639350891, 0.004174002446234226, 0.006150936707854271, 0.027749743312597275, -0.023167530074715614, 0.01043821219354868, -0.007326411083340645, -0.03870943933725357, -0.014524588361382484, -0.016037745401263237, -0.033990442752838135, -0.019799262285232544, -0.01582402177155018, -0.028758514672517776, -0.02330431342124939, -0.0010055648162961006, -0.008501885458827019, 0.03600798547267914, -0.03168223798274994, -0.0552259236574173, 0.07536713778972626, 0.00007239853584906086, 0.056115008890628815, 0.008330907672643661, -0.0110451839864254, -0.04756610468029976, 0.02768135257065296, -0.0005957517423667014, -0.04438591003417969, 0.002528338460251689, -0.05016497150063515, 0.028690122067928314, 0.04927588626742363, -0.04790806025266647, -0.014319414272904396, -0.03412722423672676, -0.08993447571992874, 0.012430107221007347, -0.0048301308415830135, -0.0008783999364823103, -0.034965019673109055, -0.01654212921857834, 0.029014980420470238, -0.04537758231163025, -0.038299091160297394, 0.011096477508544922, -0.07434127479791641, 0.07187918573617935, -0.022962357848882675, -0.013156763277947903, -0.016242917627096176, 0.017850112169981003, -0.03840167820453644, 0.019064055755734444, 0.009754300117492676, -0.040248241275548935, 0.028177188709378242, -0.013943263329565525, 0.021269673481583595, 0.07591427117586136, -0.014345061033964157, 0.00010579269292065874, -0.00840357318520546, -0.004671976435929537, -0.007514487020671368, -0.0017771035199984908, 0.02427888847887516, -0.055636268109083176, -0.01679859682917595, -0.010019315406680107, 0.023475291207432747, 0.018397241830825806, 0.011720547452569008, -0.00782652199268341, -0.0005115984822623432, 0.02380014955997467, 0.053003206849098206, 0.03464015945792198, -0.05166957899928093, 0.031083816662430763, -0.018448535352945328, 0.0259544737637043, 0.08261661231517792, 0.010198842734098434, -0.08719882369041443, 0.026091255247592926, 0.00971155520528555, 0.0001439956104150042, 0.010694678872823715, -0.00672798790037632, -0.026792265474796295, -0.013190959580242634, 0.011446982622146606, 0.002921588020399213, -0.03997467830777168, -0.02067125029861927, 0.0016745165921747684, -0.047463517636060715, 0.029220154508948326, 0.0020934129133820534, -0.009070387110114098, 0.00027463355218060315, 0.05269544571638107, 0.04862616956233978, -0.03412722423672676, -0.016388248652219772, 0.09574773162603378, -0.008959251455962658, 0.039530131965875626, 0.02715132012963295, -0.018089480698108673, 0.023680465295910835, 0.005702119320631027, -0.024791821837425232, 0.031870316714048386, 0.0006005605100654066, -0.013481621630489826, -0.01551626157015562, -0.0040372200310230255, 0.027082929387688637, 0.020705446600914, -0.035187289118766785, -0.008399298414587975, -0.006287719123065472, 0.002528338460251689, 0.012130895629525185, 0.012994334101676941, 0.039735306054353714, -0.04684799537062645, -0.0110451839864254, 0.03310135751962662, 0.06767312437295914, -0.026792265474796295, -0.00009557407611282542, 0.0006684174295514822, 0.022432325407862663, 0.05406327173113823, -0.013960360549390316, -0.03243454173207283, -0.0016884085489436984, 0.025766396895051003, 0.04199221730232239, 0.03549505025148392, -0.06370643526315689, -0.0016039881156757474, 0.06873319298028946, 0.04561695456504822, 0.0037337339017540216, -0.0008313809521496296, 0.02161163091659546, -0.04356521740555763, -0.04298388957977295, 0.028177188709378242, 0.010002218186855316, -0.008625844493508339, 0.030878642573952675, -0.005749138072133064, 0.006437324918806553, -0.017114905640482903, 0.021919390186667442, 0.0015088815707713366, 0.01565304398536682, -0.03959852457046509, 0.0006833780207671225, 0.014772506430745125, 0.03282779082655907, -0.03621315956115723, 0.020996108651161194, -0.02380014955997467, 0.03139157593250275, -0.015994999557733536, 0.06678403913974762, 0.06192826107144356, 0.0010018247412517667, 0.011267456226050854, 0.0042060608975589275, -0.024603746831417084, -0.0165677759796381, 0.016866987571120262, -0.04688218981027603, 0.0254928320646286, 0.024347279220819473, -0.07974418252706528, 0.01755945011973381, -0.04342843219637871, -0.02256910689175129, -0.011763292364776134, 0.04017984867095947, -0.004612133838236332, -0.016448091715574265, -0.011096477508544922, -0.11612831801176071, -0.017935601994395256, 0.0006246043485589325, 0.0548497699201107, 0.044112347066402435, 0.01284045446664095, 0.04787386581301689, 0.01998733915388584, 0.01199411228299141, -0.006035526283085346, 0.007527310401201248, -0.07010101526975632, -0.010147549211978912, -0.013866323046386242, -0.007676916196942329, -0.05358453094959259, -0.046745408326387405, 0.0729050561785698, 0.014105692505836487, -0.040726978331804276, -0.020602859556674957, 0.0034922275226563215, -0.03000665456056595, -0.03850426524877548, 0.013344839215278625, -0.03730741888284683, -0.04995979741215706, 0.016277113929390907, 0.018397241830825806, 0.0057448637671768665, -0.03481113910675049, 0.01826046034693718, 0.02380014955997467, 0.018380144611001015, -0.04134250059723854, 0.027236809954047203, 0.015054620802402496, -0.06196245923638344, 0.015567555092275143, 0.0280746016651392, 0.03840167820453644, -0.036144766956567764, 0.049652036279439926, 0.01345597580075264, 0.037102244794368744, 0.002329576527699828, 0.018140774220228195, -0.02766425348818302, 0.023902736604213715, 0.06839123368263245, 0.016866987571120262, -0.010292881168425083, 0.005283222999423742, 0.010583543218672276, -0.03431530296802521, 0.007736758328974247, -0.027920721098780632, 0.025629615411162376, -0.0360763743519783, 0.006608303170651197, 0.08179591596126556, 0.05481557548046112, 0.004065004177391529, -0.002226989483460784, -0.003291328204795718, -0.011284553445875645, -0.010010766796767712, -0.0739993155002594, -0.0375467874109745, 0.04558275640010834, -0.028707221150398254, 0.05139601230621338, 0.03563183173537254, 0.013259350322186947, -0.05173796787858009, -0.00018433574587106705, 0.021457750350236893, -0.01322515495121479, -0.046711213886737823, -0.029852773994207382, -0.02014121785759926, 0.019559893757104874, 0.03676028922200203, -0.016764400526881218, 0.00818557571619749, 0.0000399394120904617, -0.06575816869735718, 0.023475291207432747, 0.006082545500248671, -0.057311855256557465, 0.004693348426371813, 0.0581667460501194, -0.0014971268828958273, -0.01950860023498535, -0.03693126514554024, 0.022415226325392723, 0.06473230570554733, -0.006732262205332518, 0.02357787825167179, -0.030947033315896988, -0.043633606284856796, -0.11380301415920258, -0.09985120594501495, -0.04931008070707321, -0.002100893296301365, 0.0021083734463900328, 0.07201597094535828, -0.004428332205861807, 0.03291328251361847, -0.011968466453254223, 0.0007998568471521139, 0.022398129105567932, 0.06750214844942093, -0.10457019507884979, -0.0031203501857817173, -0.013943263329565525, 0.0774872675538063, 0.011224711313843727, -0.05881646275520325, -0.052285097539424896, 0.052285097539424896, 0.02766425348818302, -0.014139887876808643, 0.017217492684721947, -0.028262678533792496, 0.004637780599296093, -0.019303426146507263, 0.05122503638267517, 0.0013763735769316554, -0.037854548543691635, -0.017439763993024826, 0.009198620915412903, -0.08193270117044449, 0.048147428780794144, -0.020705446600914, -0.026604190468788147, -0.008044518530368805, -0.030194729566574097, 0.0423341728746891, -0.045787930488586426, 0.007035748101770878, 0.008275339379906654, 0.025048289448022842, -0.0629541277885437, 0.0017418392235413194, -0.04609569162130356, 0.06421937048435211, -0.02185099944472313, -0.00685194693505764, -0.03024602308869362, 0.05214831605553627, -0.006471520755439997, 0.005129342433065176, -0.0036268725525587797, 0.007091315928846598, -0.019782165065407753, 0.11127253621816635, 0.015353832393884659, 0.019645381718873978, -0.0025454361457377672, 0.018345948308706284, 0.03287908434867859, -0.04004306718707085, 0.007189628668129444, -0.06835703551769257, -0.002342399675399065, -0.012669475749135017, 0.05454200878739357, -0.022056173533201218, 0.037615180015563965, -0.041889630258083344, 0.03894880786538124, -0.020739641040563583, 0.020808033645153046, -0.014310865662992, 0.0438045859336853, 0.044625282287597656, -0.001130592543631792, -0.02091062068939209, -0.03778615593910217, 0.03392205387353897, 0.009865435771644115, 0.029203057289123535, 0.03409302979707718, -0.029032079502940178, -0.02768135257065296, 0.08432639390230179, 0.0043385690078139305, 0.05604661628603935, -0.009361050091683865, -0.036897070705890656, 0.018602415919303894, -0.02019251137971878, -0.007548682391643524, -0.018328851088881493, -0.005099421367049217, -0.009352501481771469, 0.015071718022227287, 0.02472343109548092, 0.010181744582951069, -0.049412667751312256, -0.0071725305169820786, 0.02474052831530571, -0.01657632552087307, -0.038538459688425064, 0.005855999421328306, 0.05146440491080284, -0.04612988606095314, 0.029151763767004013, 0.04995979741215706, -0.040248241275548935, 0.01709780842065811, -0.0038384580984711647, 0.004186825826764107, 0.00913023017346859, 0.03393914923071861, -0.050848882645368576, -0.0062150536105036736, 0.026775168254971504, -0.014268121682107449, 0.02285977080464363, 0.026279332116246223, 0.01345597580075264, 0.037102244794368744, 0.03346041217446327, 0.005283222999423742, -0.05382390320301056, 0.011746194213628769, 0.005642276722937822, -0.04448849707841873, 0.03409302979707718, -0.0033896404784172773, 0.02497989870607853, -0.015293990261852741, -0.08788273483514786, -0.016678912565112114, -0.028724318370223045, -0.057311855256557465, 0.05385809764266014, -0.013344839215278625, 0.05768800526857376, 0.039051394909620285, -0.006715164519846439, -0.07317861914634705, 0.01248140074312687, -0.019354719668626785, -0.03392205387353897, 0.0026010042056441307, -0.015926608815789223, 0.07023780047893524, -0.012917394749820232, 0.05160118639469147, -0.03628154844045639, 0.01637970097362995, -0.044625282287597656, -0.04920749366283417, -0.025988668203353882, -0.018875980749726295, 0.018927274271845818, -0.035939592868089676, 0.06486908346414566, 0.02402242086827755, 0.00721100065857172, -0.055909834802150726, -0.0020848640706390142, -0.0018134362762793899, -0.03274230286478996, -0.03287908434867859, -0.033032964915037155, 0.020517369732260704, -0.00535588851198554, -0.03219517320394516, 0.027544569224119186, 0.021457750350236893, 0.012096699327230453, -0.03679448366165161, 0.032571326941251755, -0.04366780444979668, 0.011224711313843727, -0.05132761970162392, 0.01467846892774105, -0.054712988436222076, 0.01406294759362936, -0.011241809464991093, -0.07625622302293777, 0.04585632309317589, 0.012395910918712616, -0.01848273165524006, 0.059226807206869125, 0.022928161546587944, -0.006916063372045755, 0.0020047181751579046, -0.014310865662992, -0.02381724677979946, 0.013122567906975746, -0.03316975012421608, 0.010301429778337479, 0.013361937366425991, 0.011626509949564934, 0.01945730671286583, -0.021218379959464073, -0.004225295968353748, -0.009856886230409145, -0.016961026936769485, -0.04267612844705582, 0.015054620802402496, 0.04130830615758896, -0.016482288017868996, 0.04199221730232239, -0.003767929505556822, -0.027527472004294395, -0.011532471515238285, -0.026843558996915817, 0.04972042888402939, 0.010181744582951069, 0.0758458822965622, 0.028057504445314407, 0.03768356889486313, -0.08678847551345825, 0.0259544737637043, 0.0006700203521177173, 0.020825130864977837, 0.007946206256747246, -0.013712442480027676, 0.05050692707300186, 0.060423657298088074, 0.0022376757115125656, 0.054165858775377274, -0.00971155520528555, -0.01308837253600359, -0.00775813078507781, 0.0252192672342062, 0.11681222915649414, 0.023612074553966522, -0.04370199888944626, -0.0023787326645106077, 0.0010985342087224126, 0.028895296156406403, -0.002757021691650152, -0.002306066919118166, 0.011258906684815884, -0.020722543820738792, 0.03197290375828743, 0.03788874298334122, 0.014387805946171284, -0.019269229844212532, 0.06914354115724564, -0.03563183173537254, -0.017713328823447227, -0.03942754492163658, -0.040761176496744156, -0.04486465081572533, 0.019867653027176857, 0.0021521865855902433, -0.004210335202515125, -0.004304373171180487, 0.01564449444413185, -0.013344839215278625, -0.0074631934985518456, -0.02426179125905037, 0.04397556558251381, -0.016661815345287323, 0.004932717885822058, 0.028895296156406403, -0.0006609371630474925, -0.024193398654460907, -0.009309756569564342, 0.04852358251810074, 0.04342843219637871, -0.03390495479106903, -0.00038149484316818416, 0.05166957899928093, 0.09150747209787369, -0.01093404833227396, -0.015729984268546104, 0.05895324423909187, -0.02668967843055725, 0.01406294759362936, 0.021936489269137383, -0.007646995130926371, -0.06716018915176392, -0.059226807206869125, -0.016730206087231636, -0.020004436373710632, 0.05023336037993431, -0.03915398195385933, 0.07126366347074509, -0.007399076595902443, 0.01020739134401083 ]
37,639
healpy.rotator
__rmul__
null
def __rmul__(self, b): if not isinstance(b, Rotator): raise TypeError( "A Rotator can only be multiplied by another Rotator " "(composition of rotations)" ) rots = b._rots + self._rots coords = b._coords + self._coords invs = self._invs + b._invs return Rotator(rot=rots, coord=coords, inv=invs, deg=False)
(self, b)
[ -0.051105137914419174, -0.04472155496478081, 0.027157582342624664, 0.03603988140821457, -0.04566997289657593, -0.03658704459667206, -0.06234024092555046, 0.013989164493978024, -0.07463319599628448, 0.05409630015492439, 0.01865829899907112, 0.024640627205371857, -0.0026628656778484583, 0.10498256981372833, -0.06533140689134598, 0.034836120903491974, 0.03421600162982941, -0.01827528513967991, -0.023309195414185524, -0.05219946429133415, -0.028616687282919884, 0.05624847859144211, 0.029984598979353905, 0.09476883709430695, -0.054862331598997116, 0.03467196971178055, 0.024348806589841843, -0.010961523279547691, -0.01697121001780033, 0.024567672982811928, 0.024823015555739403, 0.008927895687520504, 0.04063606262207031, -0.04158448055386543, 0.020956389605998993, -0.033267583698034286, -0.020938150584697723, 0.019497284665703773, -0.044393256306648254, 0.029528627172112465, 0.048223406076431274, 0.020828716456890106, 0.07266340404748917, 0.012575657106935978, 0.02633683755993843, -0.003725276328623295, 0.021394120529294014, -0.016688508912920952, 0.005731544923037291, 0.006078082136809826, 0.03558391332626343, -0.026756329461932182, 0.03208206221461296, 0.024567672982811928, -0.011080075055360794, 0.04227755218744278, 0.006743798963725567, 0.02442176267504692, -0.02352805994451046, 0.020938150584697723, -0.04855170473456383, -0.025534329935908318, 0.007395836059004068, -0.03826501592993736, 0.07062065601348877, -0.02923680655658245, -0.06201194226741791, -0.000059846082876902074, -0.014618403278291225, 0.06565970182418823, -0.023783404380083084, 0.04267880693078041, 0.02690223976969719, -0.013341686688363552, 0.035273853689432144, 0.023637494072318077, -0.025534329935908318, 0.034763164818286896, 0.014490731991827488, -0.04753033071756363, 0.03738955408334732, 0.013961806893348694, 0.021211732178926468, 0.024239374324679375, 0.012831000611186028, 0.005070388317108154, 0.01605927012860775, -0.08528465777635574, -0.029090896248817444, -0.04468507692217827, -0.0586560033261776, -0.07587343454360962, -0.0024553993716835976, -0.02159474790096283, -0.0007677397807128727, 0.02152179181575775, -0.05515415221452713, 0.019807344302535057, 0.02438528463244438, -0.037681374698877335, 0.01105271652340889, 0.026190927252173424, -0.06657164543867111, 0.003793671727180481, 0.038155581802129745, 0.0028064963407814503, -0.027978328987956047, -0.05077683925628662, 0.01628725416958332, 0.041912779211997986, 0.01077001541852951, 0.1010429859161377, -0.030933016911149025, 0.0633980929851532, -0.07565457373857498, -0.010706179775297642, -0.015229403972625732, -0.042058687657117844, 0.04421086609363556, 0.0679577961564064, 0.051141612231731415, -0.0013644907157868147, 0.04410143569111824, 0.04760328680276871, 0.02688400074839592, 0.00167455046903342, 0.019479045644402504, -0.018348239362239838, 0.019953254610300064, -0.03943229839205742, -0.014691358432173729, 0.005325731355696917, -0.0018386996816843748, 0.009411224164068699, -0.002469078404828906, 0.08535761386156082, 0.04993785172700882, -0.011235104873776436, -0.018986597657203674, 0.033377017825841904, 0.007190649397671223, 0.03943229839205742, 0.06299684196710587, 0.03447134420275688, -0.03376002982258797, 0.04366370290517807, 0.0288173146545887, 0.09112107753753662, -0.0022866902872920036, -0.010177253745496273, -0.018877165392041206, 0.007984037511050701, 0.11074603348970413, 0.03742603212594986, 0.018968358635902405, -0.013141060248017311, -0.013058985583484173, 0.02978397160768509, -0.028580209240317345, 0.030951254069805145, 0.0700005367398262, 0.04862465709447861, -0.022433731704950333, -0.0027289814315736294, -0.004461667966097593, -0.04847874864935875, 0.12023021280765533, -0.008371612057089806, -0.038629792630672455, -0.014043881557881832, 0.0032533472403883934, -0.08521170169115067, 0.002678824821487069, 0.014053000137209892, -0.029054418206214905, 0.014499851502478123, -0.02309032902121544, 0.012603015638887882, -0.03469020873308182, -0.022762030363082886, 0.03168080747127533, 0.006438298616558313, -0.004288399592041969, -0.057817015796899796, 0.02686576172709465, 0.03779080882668495, -0.005485320929437876, 0.010414358228445053, 0.04140209034085274, -0.04596179351210594, -0.014974060468375683, 0.011627239175140858, 0.0034334552474319935, -0.014691358432173729, -0.02974749356508255, 0.01029580645263195, -0.039140477776527405, 0.016880014911293983, 0.02104758284986019, 0.044393256306648254, -0.08681672066450119, -0.01176402997225523, -0.002217154949903488, -0.011043597012758255, 0.019424328580498695, -0.015165567398071289, -0.0254248958081007, 0.018986597657203674, 0.0537315234541893, -0.018630940467119217, 0.04366370290517807, -0.010049582459032536, 0.01171843335032463, 0.031115403398871422, -0.02732173167169094, 0.01418979186564684, 0.0006816753884777427, 0.01927841827273369, 0.05431516468524933, 0.04140209034085274, 0.04997432976961136, 0.027194060385227203, -0.012940432876348495, -0.06456537544727325, -0.045305196195840836, 0.0288173146545887, -0.05052149295806885, -0.02208719402551651, -0.058291226625442505, 0.004828724078834057, 0.05519063025712967, -0.048296358436346054, -0.041949253529310226, -0.00841720961034298, -0.021375881507992744, 0.005074948072433472, -0.02693871781229973, -0.011408373713493347, -0.03200910612940788, 0.03148018196225166, -0.03023994155228138, -0.0084947245195508, 0.036714717745780945, 0.05223594233393669, -0.01839383691549301, 0.02969277650117874, 0.005435164552181959, 0.012995149940252304, -0.04731146618723869, 0.00896893348544836, -0.020500417798757553, 0.00792476162314415, 0.03160785138607025, 0.026190927252173424, 0.01628725416958332, 0.03365059942007065, 0.02836134470999241, -0.0341612845659256, 0.0037093174178153276, 0.011672836728394032, 0.047274988144636154, -0.04563349485397339, 0.002546593314036727, -0.00490167923271656, -0.0026446268893778324, -0.01683441922068596, -0.004630377050489187, 0.03447134420275688, -0.005722425412386656, 0.002160158706828952, 0.09294495731592178, -0.033778268843889236, -0.027504120022058487, 0.007336560171097517, -0.0008298656903207302, 0.01772812008857727, 0.04807749390602112, 0.05092274770140648, 0.026245642453432083, -0.04891647771000862, 0.0017361064674332738, 0.016661150380969048, -0.01339640375226736, -0.00755086587741971, -0.033431731164455414, 0.00841720961034298, 0.009210597723722458, 0.016880014911293983, 0.008841261267662048, -0.018804209306836128, 0.057817015796899796, -0.02392931468784809, -0.006748358253389597, 0.01706240326166153, 0.09206949919462204, 0.004274720326066017, -0.1006782129406929, -0.02009916491806507, 0.013998284004628658, -0.013022507540881634, -0.02161298505961895, -0.05311140418052673, -0.027577076107263565, -0.00021245359675958753, -0.04497689753770828, -0.03394242003560066, 0.07266340404748917, 0.00017056133947335184, -0.018138492479920387, 0.025990299880504608, 0.011216865852475166, 0.01871301606297493, -0.05599313601851463, -0.008170985616743565, 0.015001418069005013, -0.03968764469027519, 0.025680240243673325, 0.039541732519865036, -0.002824735129252076, 0.04074549302458763, 0.010213731788098812, 0.0012573377462103963, -0.026026777923107147, -0.009060127660632133, 0.016068387776613235, -0.011472209356725216, -0.034817881882190704, -0.007901962846517563, -0.017527492716908455, 0.02693871781229973, -0.11329946666955948, -0.02301737479865551, 0.0013371325330808759, 0.004906238988041878, -0.056321434676647186, -0.042861197143793106, 0.03594868630170822, 0.00039726399700157344, 0.006534052547067404, -0.020500417798757553, 0.021886568516492844, -0.004983753897249699, -0.005125104449689388, 0.05471641942858696, -0.013496716506779194, 0.027194060385227203, 0.01565801538527012, -0.01751837320625782, 0.07521683722734451, -0.003868906758725643, 0.008836701512336731, 0.017636926844716072, 0.034325435757637024, -0.027248777449131012, -0.023199761286377907, 0.01769164204597473, -0.06175659969449043, 0.0335594043135643, -0.01391620934009552, -0.01611398532986641, -0.024640627205371857, 0.029565105214715004, -0.03786376118659973, 0.011745791882276535, -0.017600448802113533, -0.03492731600999832, -0.09454997628927231, -0.05573779344558716, 0.01709888130426407, 0.0002593330282252282, 0.014454253949224949, -0.0005406096461229026, 0.0100404629483819, 0.023218000307679176, -0.017965225502848625, 0.014271866530179977, 0.012803642079234123, 0.025789672508835793, 0.014736955985426903, 0.014691358432173729, 0.022214867174625397, 0.002279850887134671, 0.026209164410829544, 0.027048150077462196, 0.006301507819443941, 0.08783809095621109, -0.005576515104621649, -0.024093464016914368, 0.02248844876885414, 0.025041881948709488, -0.016278134658932686, -0.0356021523475647, 0.04326244816184044, -0.037243641912937164, -0.10855738073587418, -0.013387284241616726, -0.014618403278291225, -0.021430598571896553, -0.030951254069805145, -0.048661135137081146, 0.04807749390602112, 0.06573265790939331, -0.04993785172700882, 0.022634359076619148, 0.006119119469076395, -0.01171843335032463, 0.06671755760908127, 0.02786889672279358, -0.012894836254417896, -0.01621429994702339, -0.029054418206214905, -0.060261018574237823, 0.010067821480333805, -0.013250493444502354, 0.01926017925143242, -0.04121970385313034, -0.02152179181575775, -0.07105839252471924, -0.013806777074933052, 0.04373665899038315, 0.013277851045131683, 0.08601421117782593, -0.012657731771469116, 0.013040746562182903, 0.02549785189330578, 0.020828716456890106, -0.006078082136809826, -0.015630656853318214, -0.01677970215678215, 0.025990299880504608, -0.00903276912868023, -0.04450268670916557, 0.03706125542521477, 0.00033542304299771786, 0.033431731164455414, -0.04457564279437065, -0.004833283834159374, 0.020336270332336426, -0.024202896282076836, 0.027540598064661026, 0.06485719978809357, -0.0017839833162724972, -0.0117366723716259, 0.0009438582346774638, -0.018804209306836128, -0.04997432976961136, 0.017709881067276, 0.030094031244516373, -0.017135359346866608, 0.013214015401899815, 0.10286687314510345, 0.040088895708322525, 0.021923046559095383, 0.00020376166503410786, 0.030440568923950195, -0.01776459813117981, 0.010624105110764503, -0.023856358602643013, 0.009374747052788734, -0.03025818057358265, 0.015165567398071289, 0.004434309899806976, -0.0277959406375885, 0.003451694268733263, -0.02974749356508255, 0.038155581802129745, 0.03538328409194946, -0.012220000848174095, 0.031352508813142776, 0.032392121851444244, 0.022360777482390404, -0.038228537887334824, 0.005125104449689388, -0.00541692553088069, -0.015530344098806381, 0.016013672575354576, 0.01801082119345665, -0.022707315161824226, -0.04855170473456383, -0.0518711656332016, -0.03797319531440735, -0.0411832258105278, -0.018056418746709824, 0.0018592183478176594, 0.026555702090263367, 0.042204599827528, -0.015238522551953793, 0.014280986040830612, 0.06004215031862259, 0.01975262723863125, -0.034763164818286896, 0.05803588405251503, -0.05566483736038208, 0.07029236108064651, -0.06500310450792313, 0.024786537513136864, -0.011153030209243298, -0.056905075907707214, -0.0037115970626473427, 0.01535707525908947, 0.004860641900449991, 0.013469358906149864, -0.0017839833162724972, -0.038666270673274994, 0.02115701511502266, 0.009548014961183071, -0.031060688197612762, -0.03946877643465996, -0.053549136966466904, 0.004121970385313034, -0.024859493598341942, 0.015001418069005013, -0.027577076107263565, 0.05610257014632225, -0.04742089658975601, -0.027595315128564835, -0.06047988310456276, 0.013606149703264236, -0.005923052318394184, -0.07631116360425949, 0.057379286736249924, 0.028543733060359955, -0.056905075907707214, -0.07032883912324905, -0.0035862054210156202, -0.01639668643474579, -0.023765165358781815, -0.031443703919649124, 0.04782215133309364, -0.004532343242317438, -0.05092274770140648, -0.02489597164094448, -0.045268718153238297, -0.004156168084591627, -0.047785673290491104, 0.011371895670890808, -0.04847874864935875, 0.009078365750610828, 0.05840066075325012, -0.029948120936751366, 0.01607750728726387, 0.04183982312679291, 0.023874597623944283, -0.012429746799170971, -0.0683225691318512, 0.05668621137738228, 0.008499284274876118, 0.0008691931143403053, -0.030604718253016472, -0.004039895720779896, -0.022451970726251602, -0.06456537544727325, -0.03921343386173248, 0.03594868630170822, 0.004575660452246666, 0.04059958457946777, -0.009060127660632133, -0.0020153881050646305, 0.0035246494226157665, 0.0206828061491251, 0.02832486666738987, 0.057379286736249924, 0.02633683755993843, -0.02777770347893238, 0.01412595622241497, 0.023145046085119247, 0.04158448055386543, 0.02055513486266136, 0.035346806049346924, 0.016788821667432785, -0.020792240276932716, -0.028944985941052437, -0.05508119612932205, 0.002341406885534525, -0.014736955985426903, -0.0008800224168226123, 0.005945851095020771, 0.033887702971696854, -0.019916776567697525, -0.06182955577969551, 0.006675403099507093, 0.004561981651932001, -0.006192075088620186, -0.08222053945064545, 0.017609568312764168, -0.05573779344558716, -0.02303561195731163, 0.051980599761009216, 0.025206031277775764, 0.0007688797195442021, 0.010387000627815723, 0.0009997145971283317, -0.04264232888817787, -0.06288740783929825, -0.03593045100569725, -0.03512794151902199, 0.03443486616015434, 0.00896893348544836, -0.0635804831981659, 0.028434298932552338, 0.042934149503707886, -0.04318949580192566, 0.03658704459667206, 0.012575657106935978, -0.05380447953939438, 0.01662467233836651, -0.026245642453432083, -0.009830716997385025, -0.03199086710810661, -0.024695344269275665, 0.014080358669161797, 0.023801643401384354, -0.008029635064303875, 0.013843254186213017, 0.01660643331706524, -0.05263719707727432, -0.07565457373857498, -0.01268509030342102, 0.02489597164094448, 0.03749898821115494, -0.05522710829973221, -0.017390701919794083, -0.06485719978809357, 0.04111026972532272, -0.08681672066450119, 0.006917067337781191, 0.018567105755209923, 0.022743791341781616, 0.08389850705862045, -0.0033377015497535467, 0.028872031718492508, -0.045268718153238297, 0.02310856804251671, -0.04494041949510574, -0.006388142239302397, -0.013606149703264236, -0.020463941618800163, 0.05821827054023743, -0.0035770859103649855, 0.020938150584697723, 0.000530065328348428, -0.05311140418052673, -0.056321434676647186, -0.0169894490391016, -0.06230376288294792, -0.04643600061535835, -0.009333709254860878, 0.013040746562182903, 0.012721567414700985, 0.0057543436996638775, -0.031005971133708954, 0.07248102128505707, 0.059786807745695114, -0.04475803300738335, -0.07521683722734451, -0.05074036121368408, 0.08243940770626068, 0.04738441854715347, -0.005193500313907862, 0.032337404787540436, -0.04975546523928642, -0.052090030163526535, 0.020026208832859993, 0.0006355084478855133, 0.04140209034085274, -0.02983868680894375, -0.004281559959053993, 0.03633170202374458, -0.0264462698251009, -0.024348806589841843, -0.030331134796142578, -0.02491421066224575, -0.035273853689432144, -0.007892843335866928, -0.0306776724755764, 0.0010635503567755222, 0.006898828782141209, -0.06923451274633408, 0.06040692701935768, 0.004865201655775309, -0.07543570548295975, 0.013451119884848595, -0.012356791645288467, 0.001752065378241241, -0.03133426979184151, 0.028944985941052437, 0.000024686509277671576, 0.05467994138598442, -0.038192059844732285, -0.057744063436985016, 0.07922937721014023, -0.005786261521279812, 0.022871464490890503, -0.009105724282562733, -0.008070671930909157, 0.07550866156816483, -0.010542030446231365, 0.02303561195731163, 0.0026104291900992393, 0.036149315536022186, 0.020245075225830078, -0.01315929926931858, 0.011727552860975266, 0.01221088133752346, -0.020336270332336426, -0.0015445989556610584, 0.038155581802129745, -0.01124422438442707, -0.021302925422787666, -0.054971762001514435, 0.04399200156331062, 0.07791618257761002, 0.03268394246697426, -0.027084628120064735, 0.0693439394235611, -0.018913643434643745, 0.02166770212352276, 0.009402104653418064, -0.007414075080305338, 0.01200113445520401, -0.06719176471233368, -0.0051114256493747234, 0.032465074211359024, 0.01975262723863125, 0.03591221198439598, -0.046837255358695984, -0.01727215014398098, 0.009876313619315624, -0.04140209034085274, -0.03800967335700989, -0.0009278992656618357, 0.06296036392450333, 0.004774007480591536, -0.013989164493978024, -0.010678821243345737, -0.01007694099098444, -0.039578210562467575, -0.025990299880504608, 0.009438582696020603, 0.03645937517285347, -0.0033992575481534004, -0.011827866546809673, 0.034799642860889435, -0.00600968673825264, -0.06190250813961029, 0.025242509320378304, -0.024604151025414467, 0.03489083796739578, 0.02983868680894375, -0.0016346530755981803, 0.04326244816184044, -0.023236239328980446, -0.0054032462649047375, -0.0009911651723086834, 0.023218000307679176, -0.0500108078122139, 0.027650030329823494, 0.002646906767040491, -0.0008680532337166369, -0.06398173421621323, -0.024549433961510658, -0.029127374291419983, 0.017108000814914703, 0.04162095859646797, -0.014490731991827488, 0.033887702971696854, -0.0036135634873062372, -0.006643485277891159 ]
37,641
healpy.rotator
_is_coords_consistent
null
def _is_coords_consistent(self): for c, i in zip(self._coords, self._invs): break for cnext, inext in zip(self._coords[1:], self._invs[1:]): if c[i] != cnext[not inext]: return False c, i = cnext, inext return True
(self)
[ 0.036681920289993286, -0.007700908463448286, -0.028120452538132668, 0.0737168937921524, -0.020741701126098633, -0.026637641713023186, -0.020794659852981567, 0.015604821033775806, 0.00037787409382872283, -0.01097986288368702, -0.04187176004052162, -0.020547524094581604, 0.01862340047955513, -0.014731021597981453, -0.006160726770758629, -0.01883522979915142, -0.032780714333057404, -0.021165361627936363, 0.003325291909277439, -0.0075023178942501545, -0.030803633853793144, 0.038129426538944244, -0.004572000820189714, -0.002515482949092984, -0.02489004284143448, 0.02741435170173645, 0.03166860714554787, 0.018340960144996643, 0.027996884658932686, 0.033751603215932846, -0.0434957891702652, 0.004532282706350088, 0.06817400455474854, 0.02229512296617031, 0.047344036400318146, -0.033733952790498734, 0.07519970089197159, 0.028014536947011948, 0.02720252238214016, -0.049321118742227554, -0.04709690436720848, -0.020176822319626808, 0.007436120882630348, 0.017634859308600426, 0.026337549090385437, 0.02374262921512127, -0.016452141106128693, 0.017440682277083397, -0.052781011909246445, 0.03043293207883835, 0.03954162821173668, -0.07308140397071838, 0.04836788401007652, 0.06810339540243149, 0.03225113824009895, 0.009435268118977547, 0.02301887609064579, 0.07781227678060532, -0.047873612493276596, 0.001782903796993196, -0.0548287034034729, -0.00402477290481329, 0.026831818744540215, -0.05684109032154083, 0.009858927689492702, -0.04543756693601608, -0.02783801220357418, -0.03399873897433281, -0.012250843457877636, 0.045684702694416046, -0.03872961178421974, 0.008760059252381325, 0.006813869811594486, -0.030697718262672424, -0.033628035336732864, -0.042330723255872726, 0.030097533017396927, 0.10930435359477997, 0.026196328923106194, -0.042224809527397156, -0.060936473309993744, -0.061254218220710754, 0.04649671912193298, -0.012542109936475754, -0.01872931607067585, 0.049850694835186005, 0.008936583995819092, 0.09214611351490021, 0.01397196389734745, 0.041271574795246124, 0.026231633499264717, 0.055817242711782455, -0.023389579728245735, -0.006659410428255796, 0.010414982214570045, 0.052039604634046555, 0.009347005747258663, -0.021818505600094795, -0.0219773780554533, 0.02019447460770607, -0.014616279862821102, 0.016125569120049477, -0.015551863238215446, 0.017864342778921127, -0.016655145213007927, 0.024025069549679756, 0.011015167459845543, -0.029638567939400673, -0.049215205013751984, -0.036064084619283676, -0.03770576789975166, -0.008486445061862469, -0.026884775608778, 0.05652334541082382, -0.008053958415985107, -0.054334431886672974, 0.008120155893266201, 0.010264935903251171, -0.03138616681098938, -0.009038086049258709, 0.03011518530547619, 0.033433858305215836, -0.009620619006454945, -0.011906619183719158, 0.05168655514717102, -0.03830595314502716, 0.058217987418174744, 0.08120155334472656, -0.0791538655757904, 0.004466085694730282, 0.03410465270280838, 0.01062681246548891, 0.035940516740083694, 0.08148399740457535, 0.007330205757170916, 0.03514615073800087, -0.006032746285200119, -0.02804984152317047, -0.038129426538944244, 0.026390505954623222, 0.013927832245826721, 0.043778229504823685, 0.04056547209620476, 0.019611941650509834, 0.012277321889996529, 0.07075127214193344, -0.07177511602640152, 0.008680623024702072, -0.004598479252308607, 0.017175894230604172, -0.004726460203528404, 0.002552994526922703, 0.015454774722456932, -0.0006768635357730091, -0.06333721429109573, -0.07039821892976761, -0.018888188526034355, -0.0314214713871479, 0.02031804248690605, 0.014783979393541813, -0.03996528685092926, -0.023071832954883575, 0.04978008568286896, 0.017211198806762695, -0.02865002676844597, -0.002552994526922703, -0.0998426079750061, -0.07191633433103561, -0.014422102831304073, 0.01617852784693241, -0.007378750015050173, 0.04151871055364609, -0.019541330635547638, -0.03408700227737427, 0.01730828918516636, -0.05281631648540497, -0.04903867840766907, -0.03327498584985733, 0.003585666650906205, -0.04321334883570671, -0.0066241053864359856, -0.06337252259254456, 0.0255255326628685, 0.026213981211185455, 0.008804190903902054, 0.09299343824386597, 0.025684405118227005, -0.04466085508465767, 0.03915327414870262, 0.0016560263466089964, -0.07830654829740524, 0.03022110089659691, -0.04889746010303497, -0.00977949146181345, 0.03525206819176674, -0.019717855378985405, 0.024925347417593002, 0.030891897156834602, -0.013574781827628613, -0.02762618102133274, -0.030521193519234657, -0.1084570363163948, 0.01130643393844366, 0.00033153625554405153, 0.013380604796111584, 0.04321334883570671, -0.017573075369000435, -0.0279439277946949, 0.06460819393396378, 0.011897793039679527, -0.015763694420456886, -0.02614337019622326, -0.04165992885828018, -0.005410495214164257, 0.011385870166122913, 0.07788288593292236, 0.020141515880823135, 0.033433858305215836, -0.037105582654476166, 0.018694011494517326, 0.096665158867836, -0.02541961707174778, 0.03537563607096672, -0.013786612078547478, -0.0017663545440882444, 0.025472575798630714, -0.006672649644315243, 0.07442299276590347, -0.011791878379881382, -0.0029612090438604355, 0.014457407407462597, -0.007714147679507732, 0.026443462818861008, 0.03650539740920067, -0.031121378764510155, -0.022665826603770256, -0.0010210875188931823, -0.001341590890660882, 0.04067138954997063, 0.01832330785691738, -0.041801150888204575, 0.02418394200503826, -0.026125717908143997, -0.028420545160770416, -0.013168774545192719, -0.052357353270053864, 0.02278939262032509, 0.02123597264289856, 0.010467940010130405, 0.01140352338552475, -0.02773209661245346, 0.002349990652874112, -0.02301887609064579, -0.040530167520046234, 0.02804984152317047, -0.06273702532052994, -0.05147472769021988, 0.023619061335921288, 0.040953829884529114, 0.007683256175369024, 0.0031708325259387493, 0.04102443903684616, 0.016769886016845703, 0.032586537301540375, -0.002143676858395338, 0.02093588002026081, 0.04088321700692177, 0.01730828918516636, -0.026072761043906212, -0.02478412725031376, 0.033839866518974304, -0.014686889946460724, -0.047344036400318146, 0.06944498419761658, 0.004362377338111401, 0.0047750044614076614, 0.056240905076265335, -0.021112404763698578, 0.000588049297221005, 0.012171407230198383, 0.014978156425058842, 0.022365733981132507, -0.022983571514487267, 0.0380588173866272, -0.006138660944998264, -0.08254314959049225, 0.01752011850476265, -0.09052208065986633, 0.02155371755361557, -0.033416204154491425, -0.019912034273147583, 0.004380029626190662, 0.046214278787374496, -0.018905840814113617, -0.006937437225133181, 0.020635787397623062, 0.032798368483781815, -0.02962091565132141, -0.026390505954623222, -0.012577415443956852, -0.03894144296646118, -0.017864342778921127, -0.04049486294388771, -0.04300152137875557, 0.10640934109687805, 0.02573736384510994, -0.052781011909246445, -0.004018153063952923, 0.030097533017396927, -0.013663044199347496, 0.00528251426294446, -0.005829742178320885, -0.02123597264289856, -0.003954162821173668, 0.029903355985879898, 0.06912723928689957, -0.009267568588256836, -0.00860118679702282, -0.00007929839193820953, 0.05126289650797844, -0.0034532726276665926, 0.019400110468268394, -0.02261286787688732, 0.035622768104076385, -0.05620560050010681, 0.014024920761585236, 0.04427250102162361, -0.006778564769774675, -0.008128982037305832, 0.019117670133709908, 0.015790171921253204, -0.06421983987092972, -0.00035084367846138775, 0.043990060687065125, 0.05504053458571434, -0.01062681246548891, -0.003506230190396309, -0.011200519278645515, 0.0889686644077301, -0.0017862136010080576, 0.05857103690505028, 0.01913532428443432, 0.013301167637109756, -0.04529634490609169, 0.02993866056203842, 0.002134850714355707, -0.009505878202617168, -0.014377971179783344, -0.017811384052038193, 0.029673872515559196, -0.0625251978635788, 0.02582562528550625, 0.0033142592292279005, -0.029691526666283607, 0.016107916831970215, 0.06767973303794861, 0.007727387361228466, -0.059700798243284225, 0.002081893151625991, 0.062101539224386215, 0.015445948578417301, -0.0407773032784462, 0.03357508033514023, -0.027573224157094955, -0.02573736384510994, 0.005763545166701078, 0.03295724093914032, -0.030733024701476097, -0.035640422254800797, 0.02082996442914009, -0.07661190629005432, -0.02324835956096649, 0.024819431826472282, -0.034793101251125336, -0.03890613839030266, -0.014298534952104092, -0.01579899899661541, 0.02300122380256653, -0.02132423408329487, -0.0391179658472538, 0.03096250630915165, 0.008115742355585098, 0.06287825107574463, 0.05751188471913338, -0.038447171449661255, -0.006531429477035999, 0.012630372308194637, 0.003808529581874609, -0.030891897156834602, 0.05186308175325394, 0.005763545166701078, -0.030362321063876152, -0.029462043195962906, -0.0031818654388189316, -0.016240311786532402, 0.02227747067809105, 0.027255479246377945, 0.027467308565974236, -0.03542859107255936, -0.02962091565132141, 0.016319748014211655, -0.010097237303853035, -0.00886597391217947, 0.01245384756475687, -0.02584327757358551, 0.020671091973781586, -0.013230557553470135, 0.016655145213007927, 0.027855664491653442, 0.04593183845281601, -0.052039604634046555, 0.02135954052209854, 0.0804954543709755, -0.04540226235985756, -0.06061872839927673, -0.0034466530196368694, -0.046920377761125565, -0.02384854480624199, 0.03601112589240074, 0.007043352350592613, 0.018340960144996643, -0.010856295004487038, 0.020035602152347565, -0.01129760779440403, -0.005750305950641632, -0.09066330641508102, -0.012948118150234222, 0.006315186154097319, 0.028808901086449623, 0.006504950579255819, -0.036064084619283676, -0.009876580908894539, 0.041165657341480255, -0.021641980856657028, -0.010008974932134151, 0.035852253437042236, 0.009594140574336052, 0.015057592652738094, 0.01631092093884945, 0.023477841168642044, 0.006059224717319012, 0.034369442611932755, -0.017255330458283424, -0.00711837550625205, -0.012948118150234222, -0.016081439331173897, -0.027149563655257225, -0.010414982214570045, 0.016257964074611664, 0.03578164428472519, 0.0007954663597047329, 0.006544669158756733, -0.07519970089197159, -0.10492653399705887, -0.02365436591207981, -0.0035790468100458384, -0.011580048128962517, -0.027696792036294937, -0.034157611429691315, 0.008508510887622833, -0.05083923414349556, -0.016655145213007927, -0.017546597868204117, -0.021059447899460793, -0.023936806246638298, -0.0312625989317894, -0.058535732328891754, 0.021271277219057083, 0.007793584372848272, 0.04805013909935951, 0.010326719842851162, -0.03678783401846886, -0.022542258724570274, 0.013380604796111584, 0.005503170657902956, 0.002121611265465617, -0.017811384052038193, 0.06566734611988068, 0.0070830704644322395, 0.005410495214164257, -0.09610027819871902, 0.0095147043466568, -0.0010933524463325739, -0.025666752830147743, 0.08098972588777542, -0.026867123320698738, -0.07541153579950333, -0.021112404763698578, -0.0323217511177063, -0.03408700227737427, -0.021818505600094795, 0.004717634059488773, -0.016875801607966423, 0.01851748488843441, 0.025702057406306267, 0.01811147853732109, 0.028544113039970398, -0.014669237658381462, 0.034351788461208344, -0.02155371755361557, 0.03484605997800827, 0.046602632850408554, 0.03225113824009895, -0.010450287722051144, 0.009744186885654926, 0.015684256330132484, -0.0073655107989907265, -0.039612237364053726, -0.02250695414841175, 0.010220804251730442, -0.003325291909277439, -0.06640875339508057, 0.08960415422916412, 0.015578342601656914, 0.04836788401007652, 0.026425810530781746, -0.047238122671842575, -0.09023964405059814, -0.003095809370279312, -0.011191693134605885, -0.013327647000551224, 0.017890822142362595, 0.016019655391573906, 0.015587168745696545, -0.04653202369809151, 0.057617802172899246, 0.014836936257779598, -0.0312625989317894, -0.0211477093398571, -0.07802410423755646, -0.029320823028683662, 0.008221657946705818, 0.040353644639253616, 0.0074758389964699745, -0.039824068546295166, 0.011430001817643642, 0.028950119391083717, -0.018058519810438156, -0.03901205211877823, 0.035110846161842346, 0.012383237481117249, -0.03253357857465744, 0.03767045959830284, -0.006919784937053919, 0.009497052058577538, 0.04543756693601608, 0.02324835956096649, -0.06107769161462784, -0.04363701120018959, 0.03472249209880829, 0.02153606526553631, -0.015640126541256905, 0.048332579433918, -0.03320437669754028, -0.008384943008422852, -0.03461657837033272, -0.029373779892921448, 0.0047661783173680305, -0.013663044199347496, 0.016681624576449394, 0.025401964783668518, 0.02250695414841175, 0.06969211995601654, -0.03820003569126129, -0.054157909005880356, 0.008658557198941708, 0.020900575444102287, -0.029991619288921356, 0.021377192810177803, 0.06538490951061249, 0.001174995326437056, 0.057582493871450424, -0.03901205211877823, -0.02363671362400055, 0.024519339203834534, -0.0249959584325552, -0.03548154979944229, -0.019064713269472122, -0.016575708985328674, -0.0847320556640625, 0.006434340961277485, 0.010609160177409649, 0.00160306878387928, -0.023830892518162727, 0.04868562892079353, 0.016549229621887207, -0.06566734611988068, 0.03348681703209877, 0.06171318143606186, -0.04130687937140465, -0.0314214713871479, -0.013592434115707874, -0.008067198097705841, -0.06591448187828064, 0.020635787397623062, 0.019912034273147583, 0.016761060804128647, 0.03514615073800087, 0.029744483530521393, -0.037070274353027344, 0.010132541880011559, 0.012542109936475754, -0.028844205662608147, -0.05475809425115585, -0.033645689487457275, -0.025790320709347725, -0.018182087689638138, -0.019400110468268394, 0.01270980853587389, 0.03189808875322342, 0.06030098348855972, 0.02008855901658535, 0.01135939173400402, -0.11460010707378387, -0.006796217057853937, 0.00641227513551712, -0.06820930540561676, 0.0673619881272316, -0.00680063059553504, 0.048473797738552094, 0.0360993891954422, -0.0016891247360035777, 0.03188043832778931, -0.013512997888028622, -0.029885703697800636, 0.010697422549128532, 0.060195066034793854, 0.023407232016324997, 0.03147443011403084, -0.00027057991246692836, 0.024960651993751526, -0.05083923414349556, 0.027537919580936432, -0.005547301843762398, 0.03053884580731392, -0.0499919168651104, -0.007091897074133158, -0.008195178583264351, -0.01637270487844944, 0.07562336325645447, -0.020353347063064575, -0.0007827786030247808, 0.033116113394498825, 0.02070639654994011, -0.005379603244364262, -0.02040630392730236, 0.05168655514717102, 0.014510365203022957, 0.045261040329933167, 0.014139662496745586, 0.012277321889996529, 0.0771767869591713, 0.03816473111510277, -0.050698015838861465, 0.021183013916015625, 0.01998264342546463, -0.024007417261600494, -0.024766474962234497, 0.04130687937140465, -0.04469615966081619, 0.03293958678841591, 0.036893751472234726, -0.026549378409981728, -0.05609968304634094, 0.038659002631902695, 0.004322658758610487, 0.018482180312275887, 0.039188578724861145, -0.005944483447819948, 0.02031804248690605, -0.005578193813562393, 0.0314214713871479, -0.018482180312275887, -0.008459966629743576, -0.0007353374967351556, -0.059488967061042786, 0.0072287037037312984, -0.02741435170173645, -0.03650539740920067, -0.003896792186424136, 0.0004934428725391626, -0.018588095903396606, 0.009320526383817196, -0.020847616717219353, 0.002718486823141575, 0.014501539058983326, 0.029585611075162888, 0.024960651993751526, 0.042930908501148224, -0.04056547209620476, 0.016769886016845703, -0.06750320643186569, 0.040530167520046234, -0.0017806971445679665, 0.004393268842250109, -0.013248210772871971, -0.010044279508292675, 0.07887142151594162, 0.01996499113738537, -0.015578342601656914, 0.00813339464366436, -0.027679139748215675, -0.033310290426015854, 0.05391077324748039, 0.01276276633143425, 0.03288663178682327, -0.021606674417853355, -0.003671722486615181, 0.019841423258185387, -0.0012632579309865832, -0.02289530821144581, -0.03184513375163078, -0.004013739991933107, -0.055817242711782455, -0.008640904910862446, -0.012427369132637978, 0.0015633506700396538, -0.050380270928144455, 0.08120155334472656, -0.020035602152347565, -0.044943295419216156, 0.03149208053946495, -0.06976272910833359, -0.0074493600986897945, -0.028491154313087463, 0.044625550508499146, -0.03184513375163078, -0.03209226578474045, -0.010026627220213413, -0.0374586321413517, -0.04579061642289162, 0.020741701126098633, -0.00674767279997468, 0.09539417922496796, -0.042754385620355606, 0.06725607067346573, -0.01874696835875511, -0.010812164284288883, -0.05546419322490692, 0.020247431471943855, -0.014616279862821102, -0.04752056300640106, 0.025349007919430733, -0.00993836484849453, -0.06750320643186569, 0.04720281809568405, -0.0037423325702548027, -0.0018071759259328246, -0.014086704701185226, -0.06566734611988068, 0.05094515159726143, 0.06976272910833359, 0.012356759048998356, -0.03703496977686882, 0.030574152246117592, 0.03463422879576683, -0.01968255080282688, -0.007290487643331289, 0.019064713269472122, -0.026390505954623222, -0.022436343133449554, -0.00020920985843986273, -0.015454774722456932, 0.07456421107053757, -0.06746790558099747, 0.034899018704891205, -0.03295724093914032, 0.1019609123468399 ]
37,642
healpy.rotator
_update_matrix
null
def _update_matrix(self): self._matrix = np.identity(3) self._do_rotation = False for r, c, i in zip(self._rots, self._coords, self._invs): rotmat, do_rot, rotnorm = get_rotation_matrix(r, eulertype=self._eultype) convmat, do_conv, coordnorm = get_coordconv_matrix(c) r = np.dot(rotmat, convmat) if i: r = r.T self._matrix = np.dot(self._matrix, r) self._do_rotation = self._do_rotation or (do_rot or do_conv)
(self)
[ 0.01774701662361622, -0.022771546617150307, 0.030962476506829262, 0.04550517350435257, -0.03185361996293068, -0.06837151944637299, -0.0422060452401638, 0.008517999202013016, -0.0196999479085207, 0.05339273437857628, -0.04656695947051048, -0.0011370368301868439, -0.0007892303401604295, 0.09108618646860123, -0.025653541088104248, -0.016438743099570274, 0.008816626854240894, -0.006181119009852409, -0.03439432755112648, -0.01835375279188156, -0.004690350964665413, -0.04266109690070152, 0.01368947234004736, 0.0626075342297554, -0.014637497253715992, 0.024819279089570045, -0.023776452988386154, -0.026525722816586494, 0.07887563109397888, 0.002380726393312216, -0.026317156851291656, 0.077055424451828, 0.06408645212650299, -0.01649562455713749, -0.017642734572291374, -0.016438743099570274, 0.024496950209140778, -0.0076173762790858746, 0.01701703853905201, 0.04319199174642563, 0.019055290147662163, 0.0006879102438688278, 0.03943781554698944, -0.0020062567200511694, -0.0056502255611121655, -0.004600288346409798, -0.035702601075172424, 0.022145850583910942, 0.040992576628923416, -0.026999736204743385, 0.015291634015738964, -0.061394061893224716, 0.04948687553405762, 0.01958618499338627, 0.023226598277688026, -0.0029886469710618258, 0.009802572429180145, 0.014163484796881676, 0.004389353096485138, -0.0634797140955925, -0.029199151322245598, -0.02521744929254055, -0.0745147168636322, 0.009148435667157173, 0.01524423249065876, -0.061697427183389664, 0.021595995873212814, 0.03392031416296959, 0.08024078607559204, 0.04364704340696335, -0.058625828474760056, 0.044519226998090744, 0.010921240784227848, -0.06901618093252182, 0.0034602892119437456, 0.025994829833507538, -0.03526650741696358, -0.014381530694663525, -0.007982365787029266, -0.025350172072649002, -0.024231504648923874, 0.02866825833916664, 0.014495293609797955, 0.031095201149582863, -0.021140944212675095, 0.020704852417111397, 0.012760408222675323, 0.007541534025222063, -0.04596022516489029, -0.06397268921136856, 0.0059441132470965385, -0.04296446591615677, 0.0005750360433012247, -0.020363563671708107, -0.018183108419179916, 0.05077618733048439, -0.016306020319461823, -0.026165474206209183, -0.015481238253414631, -0.007247646804898977, -0.02451591193675995, 0.043609123677015305, -0.009418622590601444, -0.0056502255611121655, 0.0018616829765960574, 0.001741994870826602, -0.013604150153696537, -0.04285070300102234, -0.0024245723616331816, 0.006712012924253941, -0.010807477869093418, 0.07599363476037979, -0.0334463007748127, 0.02624131552875042, -0.023093875497579575, -0.08031662553548813, -0.029312914237380028, -0.039930786937475204, -0.012580283917486668, 0.061166536062955856, -0.002666318556293845, 0.022525060921907425, 0.07178440690040588, -0.020591089501976967, -0.005816129967570305, -0.03206218406558037, 0.009148435667157173, 0.04550517350435257, 0.05248263105750084, -0.054719969630241394, -0.048538848757743835, -0.05032113566994667, -0.011537456884980202, 0.042243968695402145, -0.03037470206618309, -0.014504773542284966, -0.0004849737451877445, -0.0623420849442482, -0.031152082607150078, 0.053468577563762665, 0.006887397263199091, 0.04630151391029358, 0.029521480202674866, 0.031796738505363464, 0.0035313910339027643, 0.029047468677163124, 0.021235747262835503, 0.06014266982674599, -0.042243968695402145, -0.06283506006002426, 0.04277485981583595, -0.0014516623923555017, 0.049790240824222565, 0.0015322444960474968, 0.001963595626875758, 0.007982365787029266, 0.02167183719575405, -0.05688146501779556, 0.020117077976465225, 0.06431397795677185, -0.03850875049829483, -0.03778825327754021, -0.03037470206618309, 0.01054203137755394, -0.0010256438981741667, 0.010760077275335789, 0.040385838598012924, -0.05623680725693703, -0.043836649507284164, -0.0023641358129680157, -0.006332803051918745, -0.024800319224596024, -0.028042562305927277, -0.02098925970494747, 0.016931716352701187, 0.031569212675094604, -0.054151155054569244, -0.025350172072649002, 0.033180855214595795, -0.01043774839490652, 0.0015144690405577421, -0.01324390061199665, 0.031208964064717293, -0.00955134630203247, 0.0034247383009642363, 0.07178440690040588, 0.036745425313711166, -0.0680302307009697, 0.04266109690070152, -0.04607398808002472, -0.01512098964303732, 0.005901452153921127, -0.048083797097206116, 0.02498992346227169, 0.017386768013238907, 0.01887516677379608, -0.007697958033531904, 0.006323322653770447, 0.03486833721399307, -0.004915506578981876, -0.03526650741696358, -0.05430283769965172, 0.03790201619267464, 0.03206218406558037, -0.0030289380811154842, -0.008167230524122715, -0.011006563901901245, -0.028744099661707878, 0.06617210060358047, 0.035816363990306854, 0.027018696069717407, -0.008361575193703175, -0.015424356795847416, -0.05236886814236641, -0.014637497253715992, 0.042926546186208725, 0.043609123677015305, 0.014343609102070332, -0.012163152918219566, 0.014116083271801472, 0.014722819440066814, 0.051193319261074066, -0.10572367906570435, -0.06639962643384933, -0.052103422582149506, -0.02017395943403244, -0.021728718653321266, 0.0003235133190173656, -0.06605833768844604, 0.021065102890133858, 0.014959825202822685, -0.03185361996293068, -0.031208964064717293, 0.022278573364019394, -0.020249800756573677, -0.07747255265712738, -0.010456709191203117, 0.048993900418281555, -0.03809162229299545, 0.02133054845035076, -0.032934367656707764, -0.04546725004911423, 0.02212689071893692, 0.021027181297540665, -0.04603606462478638, -0.0016531175933778286, 0.040499601513147354, 0.004064654465764761, -0.024459030479192734, 0.028516573831439018, -0.02773919515311718, -0.01860971935093403, 0.0107695572078228, 0.0004556442436296493, 0.0059535931795835495, -0.07201193273067474, 0.004138126503676176, 0.06837151944637299, 0.03424264118075371, -0.020363563671708107, 0.04690824821591377, 0.014011801220476627, 0.02921811304986477, -0.04637735337018967, 0.025008883327245712, -0.005176213104277849, -0.011120326817035675, 0.06029435247182846, -0.007157584186643362, 0.009172135964035988, 0.06355555355548859, 0.010494629852473736, -0.0589291974902153, 0.051496684551239014, 0.0761832445859909, 0.022051047533750534, -0.00199322123080492, -0.006290141958743334, -0.015869928523898125, 0.03412887826561928, 0.009793092496693134, -0.025236409157514572, -0.015822527930140495, 0.025767304003238678, -0.06636171042919159, -0.047514982521533966, -0.02728414349257946, -0.009423363022506237, 0.012134712189435959, -0.02440214902162552, 0.029256032779812813, 0.0323086716234684, 0.01375583466142416, 0.014684897847473621, 0.012599244713783264, -0.04539141058921814, -0.05430283769965172, 0.011812384240329266, 0.00762211624532938, 0.013841156847774982, -0.0311710424721241, 0.0059772939421236515, -0.004228188656270504, -0.05441660061478615, 0.04637735337018967, -0.01243808027356863, -0.029995491728186607, -0.00015198015898931772, 0.018031423911452293, 0.007579455152153969, 0.023757491260766983, 0.01771857589483261, -0.04000663012266159, 0.004123906139284372, 0.030640149489045143, 0.0032375033479183912, -0.009840493090450764, 0.005413219332695007, 0.042926546186208725, 0.048425085842609406, 0.01917853392660618, -0.004756712354719639, -0.048083797097206116, 0.024724476039409637, -0.05672978237271309, -0.025634579360485077, 0.06200079619884491, -0.012220034375786781, 0.0008354465244337916, 0.009726730175316334, 0.0013284191954880953, -0.03219490870833397, -0.03621453419327736, 0.023681649938225746, -0.014391010627150536, -0.039930786937475204, -0.024383187294006348, -0.03727632015943527, 0.03600596636533737, 0.06412436813116074, 0.04285070300102234, 0.022088969126343727, -0.03701087459921837, 0.008442156948149204, 0.010323985479772091, -0.0023937616497278214, 0.01880880445241928, 0.0004251296923030168, -0.0433436743915081, -0.05676770210266113, -0.054151155054569244, 0.03632829710841179, 0.004043323919177055, 0.02210792899131775, -0.05858790874481201, 0.057943250983953476, -0.017566893249750137, -0.11755502969026566, 0.00827151257544756, -0.023985017091035843, 0.005636005196720362, 0.04414001852273941, -0.007238166406750679, -0.013632590882480145, -0.024098780006170273, -0.023112835362553596, -0.05274807661771774, -0.030412623658776283, 0.03589220345020294, 0.006536628119647503, 0.02910435013473034, 0.01065579429268837, 0.037200476974248886, 0.04611190780997276, -0.04159931093454361, 0.05229302495718002, -0.05479581281542778, 0.038451869040727615, 0.006456046365201473, -0.06651338934898376, 0.041106339544057846, -0.03429952263832092, 0.030298860743641853, 0.011385773308575153, -0.02201312780380249, -0.0029459858778864145, 0.05707107111811638, 0.04611190780997276, -0.012912092730402946, 0.023643728345632553, -0.09131371229887009, 0.016590427607297897, 0.029521480202674866, -0.05961177498102188, 0.021690798923373222, 0.0396653413772583, 0.008153010159730911, 0.06317634880542755, 0.00902993232011795, -0.04558101296424866, -0.03519066795706749, -0.03200530260801315, -0.005484321154654026, 0.02717038057744503, -0.051269158720970154, -0.003365486627444625, 0.02590002678334713, 0.02062901109457016, 0.01654302515089512, -0.019121652469038963, -0.014267767779529095, 0.03528546914458275, 0.08547388017177582, -0.01895100809633732, -0.006522407755255699, -0.0021816412918269634, 0.06086316704750061, -0.04505012184381485, 0.053468577563762665, 0.07493185251951218, 0.007271347101777792, 0.10906072705984116, 0.016135375946760178, 0.06294882297515869, -0.006835256237536669, -0.0280615221709013, -0.013973879627883434, -0.007043821271508932, -0.037883054465055466, 0.019121652469038963, -0.028857862576842308, 0.0017882110550999641, 0.037541765719652176, 0.007375630084425211, -0.008508519269526005, 0.0024316825438290834, 0.037428002804517746, 0.03365486487746239, -0.059990983456373215, 0.05961177498102188, 0.07129143923521042, -0.003036048263311386, -0.032365553081035614, -0.07295995950698853, -0.04622567072510719, 0.018249470740556717, -0.028971625491976738, 0.011831345036625862, -0.05248263105750084, 0.050852030515670776, 0.014305688440799713, 0.07462847977876663, -0.06370723992586136, -0.04296446591615677, -0.0026639485731720924, 0.04766666889190674, 0.030621187761425972, -0.02715141884982586, -0.012409639544785023, -0.028459692373871803, 0.008920909836888313, 0.006413385272026062, -0.05957385525107384, 0.050927869975566864, 0.0211030226200819, -0.033048130571842194, -0.010390347801148891, 0.002306069480255246, -0.032820604741573334, 0.002855923492461443, 0.04721161723136902, -0.05475788936018944, 0.05051074177026749, -0.033180855214595795, -0.02417462319135666, -0.03733320161700249, -0.016277579590678215, 0.008205151185393333, -0.044177938252687454, -0.004330101422965527, -0.13052399456501007, -0.00819093082100153, -0.019396578893065453, -0.01620173640549183, 0.031322725117206573, -0.0011074109934270382, 0.019339697435498238, -0.013158578425645828, 0.03035574220120907, -0.05088995024561882, -0.014722819440066814, 0.03414783999323845, 0.04656695947051048, 0.07948236912488937, 0.011053964495658875, 0.051382921636104584, -0.05790533125400543, -0.025843145325779915, -0.0041902679949998856, 0.034223683178424835, 0.06730972975492477, 0.000006526925972138997, -0.020837577059864998, 0.010532551445066929, -0.030185097828507423, -0.004358542151749134, -0.032479315996170044, -0.02794775925576687, -0.00471879169344902, 0.007759579923003912, -0.009418622590601444, -0.023416202515363693, -0.033294618129730225, -0.026753248646855354, -0.018183108419179916, 0.018296871334314346, -0.08001326024532318, 0.0019470051629468799, 0.001471807947382331, -0.024705516174435616, -0.01771857589483261, 0.0012253215536475182, -0.02337828278541565, 0.023188676685094833, -0.019026849418878555, 0.08380535989999771, 0.001461142674088478, -0.030734950676560402, 0.05388570949435234, -0.028459692373871803, -0.07413551211357117, -0.03767449036240578, -0.029085388407111168, 0.035588838160037994, 0.005323157180100679, 0.0044675651006400585, 0.09146539866924286, -0.059422168880701065, -0.036385178565979004, -0.023074913769960403, 0.0028251127805560827, -0.03424264118075371, -0.00017656954878475517, -0.039134446531534195, -0.03657478094100952, 0.01500722672790289, -0.007024860940873623, -0.050700344145298004, -0.03048846498131752, -0.03189153969287872, -0.06537576019763947, 0.012400159612298012, 0.008138789795339108, 0.02233545482158661, 0.007655296940356493, 0.03782617300748825, -0.008295213803648949, -0.03668854385614395, 0.005190433468669653, 0.01683691330254078, 0.013092217035591602, 0.0012964233756065369, 0.021159904077649117, 0.01763325370848179, -0.01031450554728508, -0.006062616128474474, 0.006015215069055557, 0.05051074177026749, 0.039020683616399765, 0.03710567578673363, 0.021633917465806007, -0.028004640713334084, -0.025407053530216217, -0.04163723066449165, -0.004787523299455643, -0.05513710156083107, 0.02844073250889778, 0.0006304362323135138, 0.030431583523750305, -0.0685611292719841, 0.033863432705402374, -0.03268788009881973, -0.007171804551035166, -0.048993900418281555, 0.04523972421884537, -0.059194643050432205, -0.05331689119338989, 0.08820419013500214, 0.06954707205295563, -0.049448952078819275, -0.04205436259508133, 0.011300451122224331, -0.017434168606996536, -0.051724210381507874, -0.018002983182668686, 0.003818168304860592, 0.025350172072649002, -0.005939372815191746, 0.018894126638770103, 0.003998293075710535, -0.029843809083104134, 0.00937122106552124, -0.00447467528283596, 0.0011779203778132796, -0.07887563109397888, -0.051420845091342926, -0.0481596402823925, 0.0211030226200819, 0.0005445215501822531, 0.05684354528784752, 0.04357120022177696, 0.011907186359167099, 0.04679448530077934, -0.030791832134127617, 0.030412623658776283, -0.061924953013658524, -0.05983930081129074, 0.022980112582445145, 0.03803474083542824, 0.05293768271803856, -0.010693714953958988, -0.0019221195252612233, -0.05475788936018944, -0.03297228738665581, -0.07015381008386612, 0.03665062412619591, 0.05407531186938286, -0.010162821970880032, 0.05168629065155983, -0.016486143693327904, 0.00716706458479166, -0.07212569564580917, 0.04724953696131706, 0.005939372815191746, 0.030545346438884735, -0.03435640409588814, -0.025141607969999313, 0.0161543358117342, 0.026980774477124214, 0.0371246375143528, 0.04846300929784775, -0.04611190780997276, 0.07068470120429993, -0.020837577059864998, 0.00504348985850811, -0.01883724518120289, 0.025065764784812927, -0.01815466769039631, 0.0003418812993913889, 0.033408381044864655, -0.035475075244903564, 0.03194842115044594, -0.021159904077649117, 0.001974260900169611, 0.0006837625987827778, -0.0323086716234684, -0.0680302307009697, 0.006119497586041689, 0.04766666889190674, 0.0015156540321186185, -0.022051047533750534, 0.0288957841694355, 0.02074277400970459, -0.06844736635684967, 0.07682789862155914, 0.005972553975880146, -0.010835918597877026, 0.07261867076158524, 0.023795412853360176, 0.017216123640537262, 0.017007557675242424, -0.001320124021731317, 0.0337117463350296, 0.035702601075172424, 0.013253381475806236, 0.00296731642447412, 0.007565234787762165, -0.053809866309165955, 0.0458843819797039, 0.04516388475894928, -0.039589498192071915, 0.03917236998677254, 0.004064654465764761, 0.04285070300102234, -0.02222169190645218, -0.0007898228359408677, 0.021368470042943954, 0.019396578893065453, -0.010248144157230854, -0.054378680884838104, 0.022316494956612587, 0.022145850583910942, 0.05809493735432625, -0.015424356795847416, 0.001996776321902871, 0.04137178510427475, -0.02337828278541565, 0.03255515918135643, 0.007527313660830259, 0.021065102890133858, 0.029976531863212585, -0.01089280005544424, -0.03943781554698944, 0.034659773111343384, 0.0031640315428376198, 0.01163225993514061, -0.007603155914694071, 0.020913418382406235, -0.04391248896718025, -0.013310262933373451, 0.020894458517432213, 0.05608512461185455, 0.01883724518120289, -0.00819093082100153, 0.04622567072510719, 0.023473083972930908, 0.01042826846241951, -0.011091886088252068, 0.04478467255830765, -0.041523467749357224, 0.024686556309461594, -0.011878745630383492, -0.01949138194322586, 0.03014717623591423, 0.00898727122694254, -0.026677407324314117, -0.04850092902779579, -0.011546937748789787, -0.022051047533750534, -0.02476239763200283, -0.001883013523183763, 0.023643728345632553, 0.04546725004911423, 0.035114824771881104, -0.008295213803648949, -0.005019789095968008, 0.009091554209589958, -0.03632829710841179, -0.07299788296222687, 0.06586873531341553, -0.05388570949435234, -0.026639485731720924, -0.01651458442211151, 0.04148554801940918, -0.03278268501162529, 0.06014266982674599, 0.00799658615142107, 0.003408147720620036, 0.0004559404915198684, 0.005948853213340044, 0.04558101296424866, -0.01156589761376381, 0.009954256005585194, -0.007498872932046652, 0.0184959564357996, 0.0184959564357996, 0.031569212675094604, -0.016410302370786667, 0.02324555814266205, -0.03873627632856369, -0.002974426606670022, -0.03814850375056267, -0.026393000036478043, 0.0850188285112381, -0.04997984692454338, 0.032820604741573334, 0.025482896715402603, 0.016031092032790184 ]
37,643
healpy.rotator
angle_ref
Compute the angle between transverse reference direction of initial and final frames For example, if angle of polarisation is psi in initial frame, it will be psi+angle_ref in final frame. Parameters ---------- dir_or_vec : array Direction or vector (see Rotator.__call__) lonlat: bool, optional If True, assume input is longitude,latitude in degrees. Otherwise, theta,phi in radian. Default: False inv : bool, optional If True, use the inverse transforms. Default: False Returns ------- angle : float, scalar or array Angle in radian (a scalar or an array if input is a sequence of direction/vector)
def angle_ref(self, *args, **kwds): """Compute the angle between transverse reference direction of initial and final frames For example, if angle of polarisation is psi in initial frame, it will be psi+angle_ref in final frame. Parameters ---------- dir_or_vec : array Direction or vector (see Rotator.__call__) lonlat: bool, optional If True, assume input is longitude,latitude in degrees. Otherwise, theta,phi in radian. Default: False inv : bool, optional If True, use the inverse transforms. Default: False Returns ------- angle : float, scalar or array Angle in radian (a scalar or an array if input is a sequence of direction/vector) """ R = self lonlat = kwds.get("lonlat", False) inv = kwds.get("inv", False) if len(args) == 1: arg = args[0] if not hasattr(arg, "__len__") or len(arg) < 2 or len(arg) > 3: raise TypeError("Argument must be a sequence of 2 or 3 " "elements") if len(arg) == 2: v = dir2vec(arg[0], arg[1], lonlat=lonlat) else: v = arg elif len(args) == 2: v = dir2vec(args[0], args[1], lonlat=lonlat) elif len(args) == 3: v = args else: raise TypeError("Either 1, 2 or 3 arguments accepted") vp = R(v, inv=inv) north_pole = R([0.0, 0.0, 1.0], inv=inv) sinalpha = north_pole[0] * vp[1] - north_pole[1] * vp[0] cosalpha = north_pole[2] - vp[2] * np.dot(north_pole, vp) return np.arctan2(sinalpha, cosalpha)
(self, *args, **kwds)
[ -0.002474584151059389, -0.06096578389406204, 0.027132129296660423, 0.0379994697868824, 0.01325815636664629, -0.03970202058553696, -0.026009170338511467, 0.014870145358145237, 0.02756682224571705, 0.03470304235816002, 0.024831874296069145, -0.019977794960141182, 0.05136629939079285, 0.051547423005104065, -0.05705353990197182, 0.024053048342466354, -0.0033960440196096897, 0.03720252960920334, -0.04332446679472923, -0.0026375942397862673, 0.032855596393346786, 0.034286461770534515, -0.018148459494113922, -0.026679322123527527, -0.026480088010430336, 0.038325488567352295, 0.011311090551316738, -0.03202243149280548, -0.0548076257109642, 0.013285324908792973, 0.03664105385541916, 0.02874411828815937, -0.026208404451608658, -0.020376265048980713, 0.024143610149621964, -0.04763517901301384, 0.013439279049634933, 0.03144283965229988, -0.0812152624130249, 0.00503520155325532, -0.01494259387254715, -0.0461137518286705, 0.0250854454934597, -0.007489409297704697, -0.04194793850183487, -0.008662176318466663, -0.06357394903898239, -0.037456102669239044, -0.0033507635816931725, 0.0003113040584139526, 0.06281322985887527, -0.048359669744968414, 0.02865355648100376, -0.013013641349971294, 0.03142472729086876, 0.07737547159194946, -0.009726270101964474, 0.08375097811222076, 0.026661209762096405, 0.010876397602260113, 0.03479360416531563, -0.046439770609140396, 0.03450380638241768, 0.008494637906551361, 0.05832139775156975, 0.028581107035279274, 0.03955712169408798, 0.0032964267302304506, 0.015431624837219715, 0.031569626182317734, -0.05285150185227394, 0.020992081612348557, -0.00723583810031414, -0.03160585090517998, 0.05053313821554184, 0.023165548220276833, -0.009409306570887566, -0.029269373044371605, 0.030627788975834846, -0.04042650759220123, -0.022133151069283485, -0.08519995212554932, 0.03770967572927475, 0.029341820627450943, -0.004881247412413359, 0.022785192355513573, -0.0368402861058712, -0.07976628094911575, -0.011057519353926182, -0.039484672248363495, -0.008884051814675331, -0.0247956495732069, -0.020611723884940147, -0.012741957791149616, -0.03781834617257118, -0.017297184094786644, 0.01995968259871006, -0.019017847254872322, -0.015033155679702759, 0.027802281081676483, -0.01918085664510727, -0.0027575879357755184, -0.05042446404695511, 0.030808912590146065, 0.030030086636543274, -0.025592587888240814, -0.04328824207186699, -0.04484589397907257, 0.05933568254113197, -0.03155151382088661, -0.020593611523509026, 0.0039054506924003363, 0.014879201538860798, 0.022730855271220207, -0.04049895703792572, -0.019524989649653435, -0.0011908794986084104, -0.011854457668960094, -0.030790800228714943, 0.013511727564036846, 0.08389587700366974, -0.00006735487841069698, 0.024469630792737007, -0.007154332939535379, 0.03836171329021454, -0.07440505921840668, 0.0063347541727125645, -0.02052116207778454, -0.05958925560116768, 0.009124038740992546, 0.017333408817648888, 0.028019627556204796, -0.03280125930905342, 0.013647569343447685, 0.05100405588746071, 0.03607957437634468, 0.051728542894124985, 0.03386988118290901, -0.07462240755558014, 0.03597090020775795, 0.021281875669956207, 0.009114982560276985, 0.03309105336666107, -0.010677162557840347, -0.009454586543142796, 0.11294789612293243, 0.01812129095196724, 0.0026217461563646793, -0.0021485639736056328, 0.013149483129382133, 0.0414770171046257, -0.07099996507167816, -0.004222414921969175, 0.043541815131902695, 0.006642662454396486, -0.06694281846284866, -0.013031753711402416, -0.011057519353926182, -0.0068418970331549644, 0.056836195290088654, 0.027331363409757614, 0.000903913751244545, -0.015938766300678253, 0.04020916298031807, 0.05730711296200752, 0.040933649986982346, 0.02767549641430378, 0.003371139755472541, -0.022585958242416382, 0.007742980495095253, 0.024922436103224754, -0.02865355648100376, -0.041911713778972626, -0.021426774561405182, -0.008046360686421394, -0.0009565524524077773, -0.006416259333491325, 0.02189769223332405, -0.004718237090855837, -0.016853434965014458, 0.015205221250653267, 0.001888200524263084, 0.034395135939121246, -0.08244689553976059, 0.007982967421412468, 0.08635913580656052, 0.03703952208161354, -0.00020093261264264584, 0.0759989395737648, -0.027657384052872658, 0.011736728250980377, 0.011030351743102074, -0.0036111269146203995, 0.010514152236282825, 0.0008976876852102578, -0.037075746804475784, -0.042201507836580276, -0.0010069271083921194, 0.03260202333331108, 0.0060947672463953495, -0.007928631268441677, -0.020213253796100616, -0.02747626043856144, -0.050569359213113785, -0.03198620676994324, 0.02872600592672825, 0.02727702632546425, -0.014507900923490524, 0.017768103629350662, -0.004650316201150417, 0.04397650808095932, 0.001736510545015335, -0.01373813021928072, -0.04593262821435928, -0.03897752985358238, 0.03763722628355026, -0.003049647668376565, 0.023274222388863564, 0.01774999126791954, 0.10222545266151428, 0.061472926288843155, -0.012941191904246807, -0.03057345375418663, -0.04107854887843132, 0.01036019902676344, -0.05488007143139839, -0.003491133451461792, 0.02872600592672825, -0.047490280121564865, -0.08809791505336761, -0.012026524171233177, -0.012071805074810982, -0.024469630792737007, -0.00188027648255229, -0.016726648434996605, 0.012995528988540173, 0.03897752985358238, 0.003013423178344965, -0.047961197793483734, 0.039013754576444626, -0.010903565213084221, 0.06810200214385986, 0.03665916249155998, 0.05882854014635086, -0.014390170574188232, 0.02720457687973976, 0.013067977502942085, 0.010686218738555908, -0.006457011681050062, -0.012424993328750134, -0.06748618930578232, 0.020865295082330704, -0.027802281081676483, 0.030446667224168777, 0.00251760077662766, -0.020557386800646782, 0.019706111401319504, 0.0003243222017772496, 0.016165170818567276, 0.001600668765604496, 0.04651222005486488, -0.09287954121828079, 0.03339896351099014, -0.021281875669956207, -0.023129325360059738, 0.0075709144584834576, 0.021843355149030685, -0.05466272681951523, 0.010550376959145069, -0.004190718289464712, 0.017768103629350662, -0.014725247398018837, -0.07418771833181381, -0.026172179728746414, 0.035047173500061035, -0.006683414801955223, 0.0298851877450943, -0.0032941626850515604, 0.006715111434459686, 0.05078670755028725, 0.004310712218284607, -0.05998772382736206, -0.01706172525882721, 0.03077268786728382, -0.05890098959207535, 0.012606116011738777, -0.008884051814675331, 0.04948262497782707, 0.03356197103857994, -0.01132920291274786, 0.07998362928628922, 0.049699973315000534, 0.008186730556190014, 0.013756242580711842, 0.053575992584228516, 0.04977242276072502, -0.046620894223451614, -0.029468607157468796, 0.021952029317617416, 0.0003240391961298883, -0.012886855751276016, 0.005682713817805052, -0.015775756910443306, -0.06317547708749771, -0.05593058094382286, -0.03635125607252121, 0.020883407443761826, -0.025773711502552032, 0.03999181464314461, -0.020593611523509026, -0.03144283965229988, -0.014861089177429676, -0.022785192355513573, -0.01773187890648842, -0.012071805074810982, 0.010305861942470074, -0.0037945134099572897, -0.044990792870521545, 0.0675586387515068, 0.009427418932318687, -0.030700238421559334, 0.06665302813053131, -0.019416315481066704, -0.005411030258983374, -0.015322950668632984, -0.03716630861163139, 0.0039439392276108265, 0.07016679644584656, 0.05527854338288307, 0.05890098959207535, -0.04028161242604256, -0.0016617976361885667, -0.0097896633669734, -0.007679587695747614, -0.05161987245082855, -0.03818059340119362, 0.026951005682349205, -0.023799477145075798, 0.07433261722326279, 0.007969383150339127, 0.022839529439806938, 0.0015621803468093276, -0.0005116706597618759, 0.032529573887586594, -0.008739153854548931, -0.010106626898050308, 0.030066311359405518, 0.018175628036260605, 0.06353772431612015, 0.0005634603439830244, -0.01325815636664629, 0.05495252087712288, -0.008413133211433887, 0.0024519439321011305, -0.08273669332265854, 0.05593058094382286, -0.024741312488913536, -0.0247956495732069, 0.023382896557450294, -0.044121406972408295, -0.044700995087623596, 0.02005024440586567, -0.029957637190818787, -0.015105604194104671, -0.022441059350967407, -0.00723131000995636, -0.04792497307062149, -0.04339691624045372, -0.028671668842434883, 0.020865295082330704, 0.007344511337578297, -0.019253306090831757, 0.04618620127439499, -0.005297828931361437, -0.02372702769935131, 0.049229055643081665, 0.007267534267157316, 0.006185328122228384, 0.009096870198845863, -0.0980234146118164, -0.00503520155325532, -0.0033077469561249018, 0.011437876150012016, 0.037274979054927826, 0.016563639044761658, 0.016373461112380028, 0.05705353990197182, 0.0077384524047374725, 0.002265161368995905, 0.0397382453083992, -0.06726884096860886, -0.03662294149398804, 0.01538634393364191, -0.07628873735666275, -0.020394377410411835, -0.012624228373169899, -0.008037304505705833, 0.037274979054927826, 0.03260202333331108, -0.028562994673848152, 0.07190557569265366, 0.05440915375947952, -0.027132129296660423, -0.013901140540838242, -0.028309423476457596, 0.0006910949596203864, 0.05835762247443199, 0.001932349056005478, -0.00752110593020916, -0.011718615889549255, -0.04756272956728935, 0.05274282768368721, 0.02564692497253418, 0.010459816083312035, -0.02102830447256565, 0.038615286350250244, -0.02671554684638977, -0.028979577124118805, -0.012461218051612377, 0.015667082741856575, -0.018637489527463913, 0.03618824481964111, -0.003298690775409341, 0.06610965728759766, 0.047381605952978134, -0.030700238421559334, 0.02274896763265133, -0.012415937148034573, -0.0068328408524394035, 0.014824864454567432, 0.04549793526530266, 0.013864915817975998, 0.03095380961894989, -0.028200751170516014, 0.02296631410717964, 0.04937395453453064, 0.03850661218166351, 0.00716338912025094, -0.002680610865354538, 0.06668925285339355, 0.011356371454894543, 0.017378689721226692, -0.047381605952978134, 0.012841574847698212, -0.06274078041315079, -0.07234026491641998, -0.02865355648100376, -0.042672425508499146, 0.007552802097052336, -0.029758403077721596, 0.05082293227314949, 0.03716630861163139, -0.0018610322149470448, 0.0014546388993039727, -0.009952673688530922, -0.012959304265677929, -0.007131692487746477, 0.039484672248363495, -0.0530688501894474, -0.0823744460940361, 0.02245917171239853, -0.0052117956802248955, 0.029541056603193283, -0.007204141467809677, -0.030229320749640465, 0.00003295224087196402, 0.04484589397907257, -0.01263328455388546, -0.08867750316858292, -0.03723875433206558, 0.04390405863523483, -0.021100753918290138, 0.024469630792737007, 0.0293055959045887, 0.07230404019355774, -0.015078435651957989, -0.024831874296069145, -0.0355180948972702, -0.06237853690981865, -0.08143261075019836, -0.08454791456460953, -0.02160789631307125, -0.011528437957167625, 0.025864271447062492, 0.008798018097877502, 0.01583009399473667, -0.029830850660800934, 0.02729513868689537, 0.024089273065328598, 0.000925988017115742, -0.015458792448043823, 0.05966170132160187, -0.012271039187908173, 0.06063976511359215, -0.03941222280263901, 0.018483536317944527, 0.019995907321572304, -0.045679058879613876, -0.03200431913137436, 0.0557132363319397, 0.0928070917725563, -0.031297940760850906, 0.009662877768278122, 0.006538516841828823, 0.0016617976361885667, -0.038905080407857895, -0.055206093937158585, -0.08389587700366974, -0.03904997929930687, 0.040643855929374695, -0.01148315705358982, 0.005727994255721569, 0.08396832644939423, 0.003948467317968607, 0.02488621138036251, 0.0794764906167984, -0.030301770195364952, 0.02749437279999256, 0.04274487495422363, -0.029776515439152718, -0.04589640349149704, -0.007978439331054688, -0.03792702034115791, -0.0025040165055543184, -0.03763722628355026, 0.024071160703897476, -0.04622242599725723, -0.007222253829240799, 0.022223712876439095, -0.01658175140619278, -0.05777803063392639, -0.035626765340566635, -0.041332121938467026, -0.022495396435260773, -0.0069143460132181644, 0.0649866983294487, -0.011003183200955391, -0.048359669744968414, -0.003149264957755804, -0.01572141982614994, 0.0051393467001616955, -0.013756242580711842, -0.05777803063392639, -0.012035580351948738, 0.023690802976489067, -0.027440035715699196, 0.00046922010369598866, -0.03531885892152786, 0.05727088823914528, 0.022223712876439095, -0.02361835539340973, -0.037673451006412506, -0.02189769223332405, 0.08672138303518295, -0.01889106072485447, 0.0530688501894474, -0.03198620676994324, -0.032928042113780975, -0.009001781232655048, 0.0052751884795725346, 0.019543102011084557, 0.011546550318598747, -0.02718646451830864, -0.028399985283613205, -0.005026145372539759, 0.034377023577690125, 0.1462744176387787, -0.01994157023727894, 0.07802750915288925, -0.004727293271571398, 0.0005954397493042052, 0.005940813105553389, -0.057524457573890686, -0.04010048881173134, -0.0368402861058712, 0.004555227234959602, 0.004926527850329876, -0.018854837864637375, 0.020955856889486313, -0.02274896763265133, 0.04542548581957817, -0.040643855929374695, 0.006457011681050062, -0.01832052692770958, 0.014553180895745754, 0.032909929752349854, 0.025864271447062492, 0.07723057270050049, 0.03926732763648033, 0.027693606913089752, -0.09715402871370316, -0.062342312186956406, -0.022803304716944695, -0.015368231572210789, -0.015060323290526867, 0.002139507792890072, -0.01611988991498947, 0.020973969250917435, 0.04716426134109497, -0.013928309082984924, 0.03549998253583908, -0.042962223291397095, -0.006158160045742989, 0.022441059350967407, -0.07802750915288925, -0.019633663818240166, -0.021970141679048538, -0.03169641271233559, -0.046439770609140396, 0.028961464762687683, 0.023111212998628616, -0.011655223555862904, 0.0187099389731884, -0.05031578987836838, 0.01563085988163948, -0.019995907321572304, -0.043614260852336884, 0.02341911941766739, -0.011075631715357304, 0.07281118631362915, -0.04299844801425934, -0.044882118701934814, -0.06563874334096909, -0.02140866219997406, -0.02651631273329258, -0.021626008674502373, 0.039303552359342575, 0.00934591330587864, 0.015015043318271637, -0.00708641204982996, 0.010378310456871986, -0.035137735307216644, 0.005465366877615452, 0.022151263430714607, -0.0019753656815737486, 0.015947822481393814, -0.011166193522512913, 0.01360228843986988, 0.031859420239925385, 0.04723671078681946, -0.04455609992146492, -0.03372498229146004, -0.019814785569906235, 0.024614527821540833, 0.023382896557450294, -0.011003183200955391, -0.04846834018826485, -0.013566064648330212, -0.0021247914992272854, 0.019307643175125122, 0.01630101166665554, 0.05303262546658516, 0.013194763101637363, 0.004475986119359732, -0.012796293944120407, -0.04129589721560478, 0.028273198753595352, 0.02486809901893139, 0.0364237055182457, 0.05006221681833267, -0.0533948689699173, 0.002850413089618087, -0.0037537608295679092, -0.047381605952978134, -0.02160789631307125, -0.02198825404047966, 0.012669508345425129, 0.018746163696050644, -0.006298529915511608, 0.007190557196736336, 0.0030541757587343454, -0.02129998803138733, 0.011573717929422855, 0.04694691300392151, 0.04415762796998024, -0.02923314832150936, 0.08802546560764313, -0.032529573887586594, 0.07491220533847809, 0.03347140923142433, -0.054916296154260635, 0.04357803985476494, -0.005071425810456276, 0.0008688212838023901, -0.00785165373235941, 0.002965878462418914, 0.0690438374876976, 0.05448160320520401, 0.01764131709933281, -0.03676783666014671, -0.0037831931840628386, 0.016916828230023384, 0.02747626043856144, -0.011012239381670952, 0.024143610149621964, -0.008811602368950844, -0.031678300350904465, -0.009187431074678898, -0.05064180865883827, -0.024904323741793633, 0.03912242874503136, -0.029269373044371605, 0.04549793526530266, 0.017414914444088936, -0.004310712218284607, -0.020032132044434547, 0.07962138950824738, -0.011827290058135986, -0.029269373044371605, -0.013439279049634933, 0.008331628516316414, 0.05136629939079285, 0.030627788975834846, -0.001366341719403863, 0.034956615418195724, -0.008426717482507229, 0.003067759796977043, 0.008662176318466663, -0.031008146703243256, -0.022422946989536285, -0.03850661218166351, -0.05545966327190399, 0.026154067367315292, -0.019217081367969513, 0.011446932330727577, -0.064733125269413, 0.000858633138705045, 0.05647394806146622, -0.05962548032402992, -0.018175628036260605, -0.02662498503923416, 0.04060763120651245, 0.062161192297935486, 0.032439012080430984, -0.05495252087712288, -0.004163550212979317, -0.04024538770318031, -0.005655545275658369, -0.022622181102633476, 0.033887993544340134, 0.030519116669893265, 0.03752855211496353, -0.01620139367878437, -0.031189268454909325, 0.013674737885594368, 0.009223655797541142, -0.04444742575287819, -0.03716630861163139, -0.002993046771734953, -0.07512955367565155, 0.011455988511443138, 0.0339423306286335, 0.01479769591242075, -0.016346292570233345, 0.012180478312075138, -0.013185706920921803, 0.023165548220276833, 0.003742440603673458, -0.02593672089278698, -0.055966805666685104, -0.028997689485549927, 0.009114982560276985, 0.0023772309068590403, 0.05368466675281525, 0.0022436531726270914, 0.0524892583489418, -0.05574946105480194, 0.011365427635610104 ]
37,644
healpy.rotator
do_rot
Returns True if rotation is not (close to) identity.
def do_rot(self, i): """Returns True if rotation is not (close to) identity.""" return not np.allclose(self.rots[i], np.zeros(3), rtol=0.0, atol=1.0e-15)
(self, i)
[ 0.03012983128428459, 0.03560640290379524, 0.05021059140563011, 0.09450995922088623, 0.04850677028298378, -0.05358346179127693, -0.060885556042194366, 0.0044029890559613705, -0.03873587027192116, 0.04419505596160889, 0.03558901697397232, 0.04304758459329605, 0.04857631400227547, 0.02733069472014904, -0.046768173575401306, -0.03249431774020195, 0.003816213458776474, 0.05250553414225578, -0.012057148851454258, -0.026496170088648796, -0.010657580569386482, 0.020793583244085312, -0.01024031825363636, -0.007662852294743061, -0.017325088381767273, 0.05876447260379791, 0.01808137632906437, 0.024914050474762917, 0.02524438314139843, 0.02771318517625332, -0.07246459275484085, 0.009336248971521854, 0.07517679780721664, -0.005350522696971893, 0.01440425030887127, 0.016142843291163445, 0.0033598325680941343, -0.011770280078053474, 0.017872745171189308, 0.0236622616648674, 0.028373852372169495, 0.039118360728025436, 0.0036706062965095043, -0.02157595008611679, -0.06669246405363083, -0.014473794028162956, 0.025783346965909004, 0.04680294543504715, -0.023888278752565384, 0.012291858904063702, 0.040196288377046585, -0.03192058205604553, 0.05059308186173439, 0.03091219812631607, -0.0014658519066870213, 0.034441545605659485, 0.03312021121382713, 0.024427244439721107, 0.02644401229918003, -0.019750425592064857, 0.000506908749230206, -0.020845741033554077, 0.02604413591325283, 0.03072095289826393, 0.06398025155067444, 0.006750090513378382, -0.00824962742626667, -0.0106315016746521, 0.0427694097161293, 0.05236644670367241, 0.0034684946294873953, 0.032146599143743515, 0.02701774798333645, -0.04050923511385918, -0.016612263396382332, 0.009857826866209507, -0.01908976025879383, -0.0011376923648640513, -0.015221389010548592, -0.04231737554073334, -0.02873895689845085, -0.025800732895731926, 0.054522302001714706, 0.04176102578639984, -0.062450289726257324, 0.006424104329198599, -0.0009453603997826576, -0.025974592193961143, 0.0056200046092271805, -0.023105911910533905, -0.03162502124905586, -0.007862790487706661, 0.023001596331596375, -0.05295756831765175, -0.012752586044371128, 0.05285325273871422, -0.009927370585501194, -0.03804043307900429, 0.0007883436628617346, -0.04374302178621292, -0.00026771629927679896, 0.039883341640233994, -0.006936989258974791, -0.020932670682668686, 0.005346176214516163, 0.016151536256074905, -0.050836484879255295, -0.004439934156835079, -0.006554498802870512, -0.06391070783138275, -0.023018982261419296, 0.07309048622846603, -0.02383612096309662, 0.018602954223752022, -0.03991811349987984, -0.05525251105427742, 0.005646083503961563, 0.0013376306742429733, -0.03287680819630623, -0.007445528171956539, 0.05594795197248459, 0.0011963698780164123, 0.027104677632451057, -0.028095677495002747, 0.05514819547533989, -0.016038527712225914, 0.03967471048235893, 0.06777039170265198, -0.017072992399334908, -0.0017961848061531782, 0.01947225071489811, -0.020532794296741486, 0.02314068377017975, 0.027556711807847023, -0.04659431427717209, 0.027852274477481842, 0.055600233376026154, 0.0007829105597920716, -0.04096127301454544, 0.012144078500568867, -0.04711589217185974, -0.03487619385123253, -0.0033815649803727865, 0.07197778671979904, 0.04569024592638016, 0.04781132936477661, -0.0346154049038887, 0.038318607956171036, 0.029469165951013565, -0.03758839890360832, 0.08727741241455078, 0.013222006149590015, 0.06919603794813156, -0.0035532512702047825, -0.0034402424935251474, -0.05181009694933891, 0.02256694808602333, -0.004289980512112379, -0.05448753014206886, 0.034145984798669815, 0.011092228814959526, 0.016134150326251984, -0.017246851697564125, 0.03689296171069145, 0.01316115539520979, 0.012683042325079441, -0.02307114005088806, 0.0441255122423172, -0.02694820426404476, 0.05497433617711067, -0.011118307709693909, 0.013056839816272259, -0.03331145644187927, -0.021819353103637695, 0.03793611750006676, -0.008110539987683296, -0.0393269918859005, 0.008523456752300262, -0.01739463210105896, 0.009962142445147038, -0.030373234301805496, -0.04078741371631622, -0.03282465040683746, 0.013526259921491146, 0.02244524657726288, 0.011996297165751457, 0.012639577500522137, -0.011544262990355492, 0.06582316011190414, -0.04902834817767143, -0.03498050943017006, 0.07121280580759048, -0.005207088775932789, -0.007145620882511139, 0.011874595656991005, -0.03299850970506668, -0.027469782158732414, 0.0039900727570056915, 0.04151762276887894, -0.009023302234709263, -0.005189702846109867, -0.029382236301898956, 0.012231008149683475, -0.04005720093846321, -0.01501275785267353, -0.0331723690032959, -0.0335722491145134, -0.0314163900911808, 0.06613610684871674, 0.04050923511385918, 0.018359551206231117, 0.005367908626794815, -0.034945737570524216, 0.039883341640233994, -0.028652027249336243, 0.0641888827085495, 0.03451108932495117, -0.018029218539595604, 0.01740332506597042, 0.057408370077610016, 0.03744931146502495, 0.03110344335436821, -0.02343624457716942, -0.057512685656547546, 0.024914050474762917, 0.018950672820210457, 0.03011244535446167, 0.004663778003305197, -0.056712932884693146, 0.0005221214960329235, 0.02256694808602333, -0.038805413991212845, 0.010414177551865578, -0.024722805246710777, -0.030147217214107513, -0.04050923511385918, -0.02454894594848156, 0.018742041662335396, 0.00004217448440613225, 0.01598636992275715, -0.011865902692079544, 0.023088525980710983, -0.007045651786029339, 0.05900787562131882, -0.01966349594295025, -0.007662852294743061, -0.014352092519402504, 0.02585289068520069, -0.02632231079041958, -0.0014854110777378082, -0.03211182728409767, -0.03884018585085869, -0.043395303189754486, -0.047950416803359985, 0.05264462158083916, -0.015977676957845688, 0.004140026401728392, -0.0055504608899354935, 0.06599701941013336, 0.012613498605787754, 0.014073917642235756, -0.03967471048235893, -0.00948402937501669, -0.004911527503281832, -0.038805413991212845, -0.002368834102526307, 0.013830513693392277, 0.0395703949034214, 0.029451780021190643, -0.01520400308072567, 0.07475953549146652, -0.015734273940324783, -0.08380022644996643, 0.00869731605052948, 0.045655474066734314, 0.003038192866370082, 0.05069739744067192, 0.012639577500522137, -0.005902525968849659, 0.027156835421919823, 0.022879894822835922, 0.0009736125357449055, -0.009005916304886341, 0.014082610607147217, -0.07997531443834305, -0.016038527712225914, -0.0048593697138130665, 0.03358963504433632, 0.0024927088525146246, 0.006080732215195894, -0.012700428254902363, 0.02307114005088806, 0.0003289745654910803, -0.055704548954963684, 0.04690726101398468, -0.004166105296462774, -0.055113423615694046, -0.046942032873630524, 0.013178541325032711, 0.007423795759677887, -0.007123888470232487, -0.027208993211388588, -0.06335435807704926, -0.09005916118621826, 0.0335722491145134, 0.05017581954598427, -0.04440368711948395, 0.035345613956451416, 0.005906872451305389, 0.04600319266319275, 0.011292167007923126, 0.014291241765022278, -0.018237849697470665, -0.010900983586907387, 0.07010010629892349, 0.03030369058251381, 0.02296682447195053, -0.025713803246617317, 0.033641792833805084, 0.05128851905465126, 0.023714419454336166, 0.024409858509898186, -0.06279800832271576, -0.04061355069279671, 0.0019787370692938566, -0.09889122098684311, -0.0015897267730906606, -0.02804351970553398, -0.05215781554579735, 0.03578026220202446, -0.01228316593915224, 0.010674966499209404, 0.02277557924389839, 0.013230699114501476, -0.022584334015846252, 0.028095677495002747, 0.007793246768414974, -0.03070356696844101, 0.04193488508462906, 0.04186534136533737, 0.021297775208950043, -0.05111465975642204, 0.01227447297424078, -0.001883114455267787, -0.0070326123386621475, 0.037032049149274826, 0.016838282346725464, -0.011048763990402222, 0.01649056188762188, -0.023905664682388306, -0.009414485655725002, 0.03884018585085869, 0.025800732895731926, 0.012543954886496067, -0.02952132374048233, 0.08039257675409317, -0.00022302899742498994, -0.014943214133381844, 0.0004346484784036875, 0.027661027386784554, -0.016368860378861427, -0.008679930120706558, 0.004620313178747892, -0.009379713796079159, -0.0251400675624609, -0.04416028410196304, -0.028460782021284103, -0.02853032574057579, -0.02197582647204399, -0.01569080911576748, -0.027661027386784554, -0.008953758515417576, -0.010648887604475021, -0.045064352452754974, 0.00571562722325325, 0.001983083551749587, 0.007497685961425304, -0.009875212796032429, 0.003716244362294674, -0.059494681656360626, 0.020237231627106667, -0.013152462430298328, 0.014552030712366104, 0.041795797646045685, -0.06954375654459, 0.009344941936433315, -0.032946351915597916, 0.02585289068520069, 0.004289980512112379, -0.02872157096862793, -0.050732169300317764, -0.04214351624250412, 0.024983594194054604, -0.04996718838810921, 0.017620649188756943, 0.039500851184129715, 0.0028991051949560642, 0.0275393258780241, -0.06398025155067444, -0.03120775893330574, -0.006076385732740164, -0.0010295734973624349, 0.004515997599810362, -0.02484450675547123, 0.01720338687300682, 0.022027984261512756, 0.020602338016033173, -0.03605843707919121, 0.017446789890527725, -0.03002551570534706, -0.02345363050699234, -0.002768710721284151, 0.04638568311929703, -0.06780516356229782, 0.018950672820210457, 0.005819942802190781, -0.012700428254902363, -0.0033598325680941343, -0.021315161138772964, 0.02048063650727272, 0.02602674998342991, 0.03132946044206619, -0.018950672820210457, 0.044473230838775635, 0.010162080638110638, -0.019559180364012718, 0.05170578137040138, 0.004746361169964075, 0.014725890010595322, 0.004629006143659353, -0.05007150396704674, -0.03162502124905586, 0.024322928860783577, 0.004266074858605862, 0.014847591519355774, -0.009014609269797802, -0.0169860627502203, 0.00888856127858162, -0.06001625955104828, 0.08053166419267654, 0.08428703248500824, 0.019211461767554283, -0.03000812977552414, -0.04523821175098419, 0.017820587381720543, 0.02733069472014904, 0.047950416803359985, 0.025070523843169212, 0.021019600331783295, 0.047150664031505585, 0.0574779137969017, 0.04662908613681793, -0.07110849022865295, -0.05229690298438072, 0.0050940802320837975, 0.0076541593298316, 0.008562575094401836, -0.007832365110516548, -0.031051285564899445, -0.05542637035250664, 0.00795841310173273, 0.04283895343542099, -0.09054596722126007, -0.04082218557596207, 0.026982976123690605, 0.0027904431335628033, -0.04325621575117111, 0.02752193994820118, -0.0020211152732372284, 0.01391744427382946, 0.03245954588055611, -0.04370824992656708, 0.0028838925063610077, -0.011709429323673248, -0.016134150326251984, 0.03946607932448387, -0.02701774798333645, 0.04134376347064972, 0.006889177951961756, -0.0012626537354663014, -0.10062981396913528, -0.006406718399375677, -0.03724068030714989, 0.005059307906776667, 0.0379708893597126, -0.022984210401773453, -0.11412130296230316, -0.015908133238554, 0.03609320893883705, -0.0609898716211319, -0.002718726173043251, -0.0013484968803822994, -0.0036054090596735477, 0.11579035222530365, 0.04610750824213028, 0.007371637970209122, 0.002355794655159116, -0.009075460024178028, -0.041413307189941406, -0.014560723677277565, 0.03849246725440025, 0.06919603794813156, 0.03308543935418129, -0.019124532118439674, -0.002718726173043251, -0.04395165294408798, -0.016160229220986366, -0.11801575124263763, -0.024983594194054604, -0.03080788254737854, 0.025296540930867195, -0.01740332506597042, 0.026200609281659126, -0.005763438530266285, 0.0016983888344839215, -0.0343720018863678, -0.06060738116502762, -0.024479402229189873, 0.012404867447912693, -0.016160229220986366, 0.01799444667994976, -0.060572609305381775, -0.04151762276887894, 0.02912144735455513, -0.0355716310441494, 0.024375086650252342, -0.004920220468193293, -0.05553068593144417, 0.031364232301712036, -0.008353943936526775, -0.04123944789171219, -0.01730770245194435, -0.02446201629936695, 0.021054372191429138, -0.07802809029817581, -0.006602310109883547, 0.004379083402454853, -0.057199738919734955, 0.01356972474604845, -0.03371133655309677, 0.009379713796079159, 0.014725890010595322, 0.024375086650252342, -0.023870892822742462, 0.013335014693439007, 0.03485880792140961, 0.0011170465731993318, -0.013039453886449337, -0.014099996536970139, 0.025487786158919334, -0.009501415304839611, 0.0057982103899121284, 0.011144386604428291, -0.050627853721380234, 0.019854741171002388, 0.06199825555086136, 0.034841421991586685, 0.005298364907503128, -0.008645158261060715, 0.007767167873680592, 0.039605166763067245, 0.020515408366918564, 0.07517679780721664, -0.0732991173863411, -0.0014180405996739864, -0.031068671494722366, 0.07941896468400955, -0.05170578137040138, 0.04621182382106781, 0.0282173790037632, 0.0004069396236445755, -0.036232296377420425, 0.01779450848698616, -0.0017016486963257194, -0.02385350689291954, -0.016977369785308838, -0.021297775208950043, 0.007276015356183052, -0.0660317912697792, -0.10125570744276047, 0.04475140571594238, -0.026774344965815544, -0.00449426518753171, -0.08616471290588379, 0.058973103761672974, -0.07225596159696579, -0.025209611281752586, 0.0655449852347374, -0.0006226339028216898, 0.011109614744782448, -0.020202459767460823, 0.03419814258813858, -0.05285325273871422, -0.060781240463256836, 0.0104315634816885, -0.022688649594783783, 0.07997531443834305, -0.006445836741477251, -0.0034228565637022257, 0.02971256896853447, 0.014751968905329704, -0.025887662544846535, -0.01997644267976284, -0.035136982798576355, -0.0876946747303009, 0.057895176112651825, -0.015934212133288383, -0.01701214164495468, 0.014065224677324295, -0.006580577697604895, 0.02632231079041958, 0.03228568658232689, 0.011022685095667839, -0.08679060637950897, 0.013222006149590015, 0.019906898960471153, -0.06860491633415222, 0.03807520493865013, 0.039292220026254654, 0.034754492342472076, -0.020637109875679016, -0.029869042336940765, -0.029486551880836487, -0.032946351915597916, -0.030755724757909775, -0.025383470579981804, 0.05991194397211075, 0.0014213004615157843, 0.05205349996685982, -0.04791564494371414, 0.033363617956638336, -0.04662908613681793, 0.03343316167593002, -0.036614786833524704, -0.02731330879032612, -0.028878044337034225, -0.05459184572100639, 0.06478000432252884, 0.004850676748901606, 0.06808333843946457, -0.03218137100338936, -0.015847282484173775, -0.004746361169964075, 0.01879419945180416, 0.013604496605694294, -0.059877172112464905, 0.019159303978085518, 0.024009980261325836, 0.049063120037317276, -0.031225144863128662, -0.013439330272376537, 0.13776618242263794, 0.027487168088555336, -0.057199738919734955, -0.002310156589373946, -0.08143573254346848, 0.022688649594783783, 0.02305375412106514, 0.007593308575451374, -0.03190319612622261, 0.034754492342472076, -0.004663778003305197, -0.06519726663827896, -0.017664114013314247, 0.0860951691865921, 0.0009931717067956924, 0.030060287564992905, 0.007741088978946209, -0.041100360453128815, -0.028391238301992416, -0.013717505149543285, 0.031937967985868454, 0.08686015009880066, -0.0001199358084704727, 0.05834721028804779, 0.010414177551865578, 0.024879278615117073, -0.0009757857769727707, 0.014630267396569252, 0.03786657378077507, -0.05434844270348549, -0.020532794296741486, -0.0008296352461911738, -0.008753820322453976, 0.012317937798798084, -0.01461288146674633, -0.012596112675964832, 0.024983594194054604, -0.00928409118205309, -0.06168530881404877, 0.0008752733701840043, 0.0014452061150223017, 0.03188581019639969, 0.02374919131398201, 0.0433257594704628, 0.030234146863222122, -0.041795797646045685, 0.15285716950893402, 0.018620340153574944, -0.009579651989042759, 0.04016151651740074, -0.02903451770544052, -0.002657875418663025, 0.033050667494535446, -0.029104061424732208, -0.03887495771050453, -0.021801967173814774, -0.007532457821071148, 0.006080732215195894, -0.08470429480075836, -0.03689296171069145, 0.06398025155067444, 0.020532794296741486, -0.032755106687545776, -0.03863155469298363, -0.01336978655308485, 0.008084461092948914, 0.0040096319280564785, 0.03468494862318039, -0.061650536954402924, -0.02096744254231453, -0.009831747971475124, -0.024322928860783577, 0.03331145644187927, -0.039605166763067245, 0.008714701980352402, -0.029556095600128174, -0.012535261921584606, -0.029660411179065704, -0.015960291028022766, 0.008271359838545322, 0.01701214164495468, -0.007510725408792496, 0.022010598331689835, -0.017742350697517395, -0.011283474043011665, -0.03000812977552414, -0.03508482500910759, -0.029051903635263443, 0.019298391416668892, 0.04235214740037918, -0.018516024574637413, 0.04245646297931671, -0.015238774940371513, -0.00959703791886568, 0.018620340153574944, -0.03668433055281639, 0.026357082650065422, 0.01657749153673649, -0.03089481219649315, 0.004924566950649023, 0.003648873884230852, -0.013300242833793163, -0.013960909098386765, 0.0021178247407078743, 0.05487002059817314, -0.011857209727168083, 0.05775608867406845, 0.02376657724380493, 0.018324779346585274, -0.050732169300317764, -0.036927733570337296, -0.022219229489564896, 0.048263367265462875, -0.0177858155220747, 0.020219845697283745, -0.020132916048169136, 0.03132946044206619 ]
37,645
healpy.rotator
get_inverse
null
def get_inverse(self): rots = self._rots[::-1] coords = self._coords[::-1] invs = [not i for i in self._invs[::-1]] return Rotator(rot=rots, coord=coords, inv=invs, deg=False)
(self)
[ 0.013279344886541367, -0.05155917629599571, 0.07486295700073242, 0.005626840982586145, -0.027476297691464424, -0.0564761683344841, -0.03450552001595497, -0.0006600717315450311, -0.003943116869777441, 0.0615316703915596, 0.004179011564701796, -0.02056826837360859, -0.03237597644329071, 0.05135141685605049, -0.022922884672880173, 0.05477945879101753, -0.017313357442617416, -0.032930005341768265, -0.008907722309231758, -0.05941943824291229, 0.026749135926365852, 0.005116096697747707, 0.025052426382899284, 0.0020949160680174828, -0.04501472786068916, 0.0005735049489885569, -0.035336561501026154, -0.02683570235967636, 0.0015387245221063495, -0.027112716808915138, -0.0008045300492085516, 0.05325588583946228, 0.07825636863708496, -0.026247048750519753, 0.03843565285205841, -0.053706031292676926, -0.03225478157401085, 0.042417723685503006, -0.01774618960916996, 0.022749749943614006, 0.04203683137893677, -0.038262516260147095, 0.057341836392879486, 0.020499013364315033, -0.0032700602896511555, 0.004999231547117233, 0.012275169603526592, -0.05962720140814781, 0.020516326650977135, 0.01663813553750515, 0.06315912306308746, 0.01446530967950821, 0.05121291056275368, 0.019598720595240593, -0.03580402210354805, -0.0025796901900321245, 0.011296965181827545, 0.014525906182825565, -0.004150877241045237, 0.01854260452091694, -0.04577651619911194, -0.057930491864681244, 0.03802013024687767, -0.03067926876246929, 0.08130352199077606, 0.02984822727739811, 0.011703829281032085, 0.011920246295630932, 0.01904469169676304, 0.05983496084809303, -0.0403747484087944, 0.013331284746527672, 0.016664106398820877, -0.03590790182352066, 0.01906200498342514, -0.017832757905125618, -0.002744167111814022, 0.0797106921672821, 0.02299213781952858, -0.027874503284692764, -0.04757710546255112, -0.014101728796958923, 0.017356639727950096, 0.05896929278969765, -0.005124753341078758, -0.005302215460687876, 0.05290961638092995, -0.0927303358912468, -0.012102035805583, -0.018681112676858902, -0.03170075640082359, -0.04712695628404617, -0.05273648351430893, -0.04809650406241417, -0.03367447853088379, 0.0018482008017599583, -0.005994749721139669, -0.011487412266433239, 0.05010485276579857, -0.03447089344263077, 0.0074274297803640366, 0.05000097304582596, -0.06468269973993301, 0.02229960262775421, 0.04162130877375603, 0.005354155320674181, -0.009816673584282398, -0.037466105073690414, 0.006925342604517937, -0.020845280960202217, 0.005258932244032621, 0.11745381355285645, -0.018715739250183105, 0.04691919684410095, -0.01250024326145649, -0.058761533349752426, -0.025987347587943077, -0.006540120579302311, 0.025260187685489655, 0.008548470214009285, -0.019893046468496323, 0.015201127156615257, -0.04809650406241417, -0.00819354597479105, -0.003575208131223917, -0.042798615992069244, 0.0013114868197590113, -0.010569804348051548, 0.020810654386878014, -0.0241867583245039, 0.019183199852705002, -0.02804763801395893, -0.027095403522253036, 0.035024918615818024, -0.04491084814071655, 0.057653479278087616, 0.0686301440000534, 0.016187988221645355, -0.008232501335442066, 0.10768907517194748, -0.012058752588927746, 0.017780818045139313, 0.048165757209062576, 0.07915666699409485, 0.0027484954334795475, 0.03743147850036621, 0.04359503090381622, 0.08095725625753403, 0.06308986991643906, -0.04982784017920494, 0.008332053199410439, 0.009608913213014603, 0.044114433228969574, 0.027770623564720154, 0.010033090598881245, -0.01644768938422203, -0.014924113638699055, 0.002761480398476124, -0.009349212981760502, 0.025156307965517044, 0.036150287836790085, 0.047334715723991394, -0.014266205951571465, -0.03874729201197624, 0.014032475650310516, -0.00884279701858759, 0.11475292593240738, -0.06807611882686615, 0.02835927903652191, 0.006310718599706888, -0.0383317731320858, -0.049169931560754776, -0.07576324790716171, 0.010855474509298801, -0.013106211088597775, 0.021208861842751503, -0.010855474509298801, 0.06845701485872269, -0.031094787642359734, 0.054917968809604645, -0.018213652074337006, -0.007886233739554882, -0.029588526114821434, -0.05308275297284126, 0.04913530498743057, 0.03220284357666969, 0.049273811280727386, -0.022749749943614006, 0.027493610978126526, -0.09023721516132355, -0.030384941026568413, 0.02642018161714077, 0.034747906029224396, 0.011452785693109035, -0.016941118985414505, -0.006964297499507666, -0.08227307349443436, 0.06080450862646103, -0.012318452820181847, -0.028757484629750252, -0.003661775030195713, -0.027995698153972626, 0.010379357263445854, -0.01745186373591423, -0.0725775882601738, 0.048338890075683594, -0.014551876112818718, -0.061670176684856415, 0.05727258324623108, 0.050970520824193954, 0.07243908196687698, -0.004213638138025999, -0.03518074005842209, -0.03260105103254318, -0.03137180209159851, 0.06218957528471947, 0.007687130477279425, 0.044322192668914795, -0.006721910554915667, 0.09432316571474075, 0.008678319863975048, 0.014378742314875126, -0.024048252031207085, -0.05173230916261673, -0.020014239475131035, 0.027995698153972626, -0.03950908035039902, -0.04591502249240875, -0.06606777012348175, -0.015175157226622105, 0.024359893053770065, -0.005786989349871874, -0.05806899815797806, -0.000860798463691026, -0.03370910510420799, 0.04061713442206383, -0.06523672491312027, -0.02179751545190811, -0.007509668357670307, 0.048477400094270706, -0.017417237162590027, 0.019996926188468933, 0.03950908035039902, 0.023650044575333595, 0.022715123370289803, 0.0423484705388546, 0.006431912072002888, 0.019321706146001816, -0.0004247182805556804, 0.00741444481536746, 0.011314278468489647, -0.012266512960195541, -0.009608913213014603, 0.02661062963306904, 0.06329762935638428, 0.0001322848693234846, -0.031112100929021835, -0.03895505145192146, 0.021728262305259705, 0.006042361259460449, 0.014248892664909363, -0.0327741838991642, -0.036046408116817474, -0.04283324256539345, 0.024844666942954063, -0.01372083555907011, -0.029709719121456146, 0.01885424554347992, 0.02399631217122078, -0.004968933295458555, 0.07084625214338303, -0.029467333108186722, -0.058449890464544296, -0.00039333783206529915, 0.06482120603322983, 0.02390974573791027, 0.054917968809604645, 0.00037845916813239455, -0.0036964016035199165, 0.017573056742548943, -0.009392496198415756, 0.011946216225624084, -0.03902430459856987, -0.04660755768418312, 0.03426313400268555, -0.00703355111181736, -0.0023459598887711763, -0.08421216905117035, 0.04082489386200905, -0.009002945385873318, 0.09446167200803757, 0.05194006860256195, -0.04781949147582054, -0.021104982122778893, 0.04757710546255112, -0.03895505145192146, -0.05928093194961548, -0.05166305601596832, 0.02642018161714077, 0.008656678721308708, 0.01513187400996685, -0.037362225353717804, -0.020620208233594894, -0.03015986643731594, 0.006946984212845564, 0.007946830242872238, -0.009141452610492706, 0.048477400094270706, 0.02451571263372898, -0.031423743814229965, -0.024446459487080574, -0.0082022026181221, -0.032618362456560135, -0.03410731256008148, -0.01200681272894144, 0.015772467479109764, 0.009600256569683552, 0.003384761279448867, 0.0544331930577755, 0.05796511843800545, 0.018282905220985413, 0.060250479727983475, -0.04113653674721718, -0.0022485721856355667, -0.02704346366226673, -0.020014239475131035, -0.05398304760456085, 0.02378855273127556, -0.0110978614538908, 0.03228941187262535, -0.027303162962198257, -0.04172518849372864, -0.03320701792836189, 0.004605352878570557, -0.031614188104867935, 0.011461442336440086, 0.06409404426813126, 0.04709232971072197, 0.036358047276735306, 0.01068234071135521, 0.04570726305246353, -0.016465002670884132, -0.030800461769104004, -0.009167422540485859, -0.04868515953421593, 0.0024043924640864134, 0.006128928158432245, -0.022420797497034073, 0.036773569881916046, 0.04376816377043724, 0.011184428818523884, 0.009297272190451622, 0.018127083778381348, -0.023355718702077866, -0.051974695175886154, 0.0052329618483781815, -0.01674201525747776, -0.023753926157951355, -0.01996229961514473, -0.022611243650317192, -0.03597715497016907, 0.022559303790330887, -0.04626128822565079, -0.0035059547517448664, -0.050381869077682495, -0.04356040433049202, -0.002884838031604886, -0.049758587032556534, -0.011582635343074799, 0.05211320519447327, -0.03197776898741722, -0.015772467479109764, 0.042798615992069244, 0.007942502386868, -0.004066474735736847, -0.0196852870285511, -0.025381380692124367, 0.0028155846521258354, 0.050277989357709885, -0.04196757823228836, 0.019996926188468933, 0.00300170318223536, 0.030783148482441902, 0.02943270653486252, -0.0023978999815881252, 0.050381869077682495, 0.05176693573594093, 0.056026022881269455, 0.056337662041187286, -0.03426313400268555, -0.06523672491312027, -0.04556875303387642, 0.044945474714040756, -0.061670176684856415, 0.0031228966545313597, 0.0025602125097066164, -0.011071891523897648, 0.010284134186804295, 0.024082878604531288, -0.058034371584653854, 0.014906800352036953, 0.052494097501039505, 0.015253067016601562, 0.016516942530870438, -0.02229960262775421, 0.014647100120782852, 0.06883790343999863, 0.03587327525019646, 0.038989678025245667, -0.08746707439422607, -0.05453707277774811, 0.01875036582350731, 0.014283519238233566, -0.04799262434244156, 0.04730008915066719, -0.014335459098219872, -0.008795185014605522, -0.013036957941949368, -0.020412446931004524, 0.010050403885543346, -0.011115174740552902, 0.06139316409826279, 0.02953658625483513, -0.023823179304599762, 0.025848841294646263, 0.0026835703756660223, -0.032220155000686646, -0.01793663762509823, -0.03559626266360283, 0.06537523120641708, -0.02965777926146984, -0.07991845160722733, 0.07652503252029419, -0.03438432514667511, 0.033241644501686096, -0.011634575203061104, 0.050485748797655106, -0.006518478970974684, -0.05654542148113251, 0.09799359738826752, 0.04345652461051941, 0.005600871052592993, -0.027493610978126526, 0.0024844666477292776, -0.026887642219662666, -0.0009581861086189747, -0.02652406319975853, 0.0221784096211195, 0.09092974662780762, 0.004523114301264286, 0.052805736660957336, 0.04186369478702545, -0.020412446931004524, -0.038470279425382614, 0.020706774666905403, 0.007323550060391426, -0.016144705936312675, 0.019823793321847916, -0.03570014238357544, -0.0206721480935812, 0.00819354597479105, 0.020031552761793137, -0.006804149132221937, -0.02693958207964897, 0.01836947165429592, -0.03447089344263077, 0.01946021243929863, -0.017192162573337555, -0.019339019432663918, 0.0022767065092921257, 0.02411750517785549, -0.02541600726544857, 0.015599334612488747, -0.008388320915400982, 0.008180560544133186, 0.011660546064376831, -0.002863196423277259, -0.024948546662926674, -0.03197776898741722, -0.07209281623363495, -0.0878133475780487, -0.0474039688706398, -0.052078574895858765, -0.006336688529700041, 0.020291253924369812, -0.006418927107006311, -0.05294424295425415, 0.016915149986743927, 0.015313663519918919, -0.018594544380903244, 0.026195108890533447, 0.05072813481092453, -0.04193294793367386, 0.06118540093302727, 0.006146241445094347, 0.036946702748537064, -0.013997849076986313, -0.027493610978126526, -0.0010745101608335972, 0.0035946855787187815, 0.026991523802280426, -0.0036747599951922894, 0.04446069896221161, -0.008163247257471085, -0.0221784096211195, -0.005527289118617773, -0.022213036194443703, -0.024169445037841797, -0.004553413018584251, -0.0044019208289682865, 0.039197441190481186, 0.0004523114475887269, 0.024082878604531288, -0.012327109463512897, -0.005453707184642553, 0.02541600726544857, -0.05114365369081497, 0.013088897801935673, 0.02652406319975853, -0.01703634299337864, 0.016378436237573624, 0.002566705225035548, -0.06624089926481247, -0.019667973741889, -0.017529774457216263, 0.04307563230395317, -0.05658004805445671, -0.02671450935304165, 0.04283324256539345, -0.007708772085607052, -0.04414905980229378, -0.058449890464544296, -0.003246254287660122, 0.014508592896163464, -0.05391379073262215, 0.02510436624288559, -0.02188408188521862, -0.0173912663012743, 0.03923206776380539, 0.011556665413081646, -0.019321706146001816, 0.021537816151976585, -0.008855781517922878, 0.019183199852705002, 0.01674201525747776, -0.024030938744544983, -0.022420797497034073, 0.037258341908454895, -0.019823793321847916, 0.015296350233256817, -0.02671450935304165, -0.03296463191509247, 0.016941118985414505, -0.07936442643404007, -0.02822077088057995, 0.043941300362348557, -0.030523447319865227, 0.037050582468509674, -0.03422850742936134, 0.03739685192704201, 0.022628556936979294, 0.012456960044801235, 0.01421426609158516, -0.053809911012649536, -0.004687591455876827, 0.05640691518783569, 0.0878133475780487, -0.006592060439288616, 0.03673894330859184, 0.040201615542173386, -0.018836932256817818, -0.007215341553092003, -0.0025710335467010736, 0.01885424554347992, -0.03379567340016365, 0.018784992396831512, 0.013954565860331059, -0.009556972421705723, 0.023061390966176987, -0.07029222697019577, 0.015789780765771866, -0.03950908035039902, -0.025467947125434875, -0.042798615992069244, -0.02229960262775421, -0.022230349481105804, -0.023442285135388374, 0.10512670129537582, 0.06329762935638428, 0.017270073294639587, 0.02209184318780899, -0.023978998884558678, -0.02754555083811283, 0.016620822250843048, 0.01200681272894144, -0.024256013333797455, 0.023615418002009392, -0.006856088992208242, 0.008557126857340336, -0.009063541889190674, 0.03471327945590019, 0.008916378952562809, 0.014456653036177158, 0.016248585656285286, -0.04061713442206383, -0.03537118807435036, -0.030073300004005432, -0.07403191179037094, -0.020031552761793137, -0.005843257997184992, 0.03549237921833992, 0.009738762862980366, -0.02562376856803894, -0.03570014238357544, 0.059142425656318665, 0.008635036647319794, -0.04390667378902435, 0.006488180253654718, -0.046330541372299194, 0.03808938339352608, -0.038366399705410004, -0.020343193784356117, -0.0494469478726387, 0.012370393611490726, -0.04103265330195427, -0.025381380692124367, 0.05436393991112709, 0.03268761560320854, 0.04446069896221161, 0.019321706146001816, 0.011063234880566597, -0.07617876678705215, -0.0113402483984828, 0.03753535822033882, -0.030073300004005432, -0.0038349085953086615, -0.011045921593904495, 0.01904469169676304, 0.004046997055411339, 0.08836737275123596, -0.025069739669561386, -0.026160482317209244, -0.020152747631072998, 0.007133102975785732, -0.042694736272096634, -0.04248697683215141, 0.005505647510290146, 0.007531309965997934, -0.04082489386200905, -0.03367447853088379, -0.006306390278041363, 0.06302061676979065, 0.06080450862646103, -0.03781237080693245, -0.09342287480831146, -0.027891816571354866, 0.024636905640363693, 0.013885311782360077, 0.047057703137397766, 0.009955179877579212, -0.037258341908454895, 0.0006887469789944589, -0.048754412680864334, -0.013902625069022179, 0.05110902711749077, 0.03542312607169151, 0.008899065665900707, 0.04515323415398598, -0.010033090598881245, -0.0383317731320858, 0.027407042682170868, 0.013989192433655262, -0.009816673584282398, 0.0034778204280883074, 0.003966922871768475, -0.022213036194443703, 0.012959047220647335, -0.006284748669713736, 0.03157956153154373, 0.03237597644329071, -0.06191256269812584, -0.0013915610034018755, 0.00887309480458498, -0.0002710622502490878, -0.017512459307909012, 0.010154283605515957, 0.018075143918395042, -0.0016047317767515779, -0.025450633838772774, -0.05938481166958809, 0.01291576400399208, 0.0005010052700527012, 0.015408887527883053, -0.006102958228439093, 0.09369988739490509, 0.008189218118786812, 0.0017789474222809076, -0.0011080547701567411, 0.00953100249171257, 0.024377206340432167, -0.0009354623034596443, -0.02006618119776249, 0.025970034301280975, 0.006977282930165529, -0.011219055391848087, -0.028290024027228355, 0.09868613630533218, -0.04968933388590813, -0.049758587032556534, -0.0226978100836277, 0.01099398173391819, 0.03497298061847687, 0.03447089344263077, -0.01854260452091694, 0.07202356308698654, 0.020602894946932793, 0.009219362400472164, -0.0035946855787187815, -0.04016698896884918, -0.019823793321847916, 0.003315507899969816, -0.04567263647913933, -0.026801075786352158, 0.01835215836763382, 0.002700883662328124, 0.011868305504322052, -0.06686418503522873, 0.004449532832950354, -0.060562122613191605, -0.038781918585300446, -0.009392496198415756, 0.0053498269990086555, 0.042106084525585175, -0.006583403795957565, -0.015062619931995869, -0.025242874398827553, -0.012128006666898727, -0.016187988221645355, -0.08206530660390854, 0.003728864248842001, 0.00331334350630641, 0.027684057131409645, 0.008994288742542267, 0.06340151280164719, -0.03216821700334549, 0.043387271463871, -0.012084722518920898, -0.03471327945590019, 0.011028608307242393, -0.04207145795226097, 0.022161096334457397, 0.00887309480458498, -0.0007212095079012215, -0.037673864513635635, 0.00028242412372492254, -0.00836235098540783, 0.04754247888922691, 0.048165757209062576, -0.03400343284010887, -0.02500048652291298, -0.043318018317222595, -0.006384300068020821, -0.009297272190451622, 0.03711983561515808, -0.039474453777074814, 0.018404098227620125, 0.03315507620573044, -0.019321706146001816 ]
37,646
healpy.rotator
rotate_alm
Rotate Alms with the transform defined in the Rotator object see the docstring of the rotate_alm function defined in the healpy package, this function **returns** the rotated alms, does not rotate in place
def rotate_alm(self, alm, lmax=None, mmax=None, inplace=False): """Rotate Alms with the transform defined in the Rotator object see the docstring of the rotate_alm function defined in the healpy package, this function **returns** the rotated alms, does not rotate in place""" if not inplace: rotated_alm = alm.copy() # rotate_alm works inplace else: rotated_alm = alm rotate_alm(rotated_alm, matrix=self.mat, lmax=lmax, mmax=mmax) if not inplace: return rotated_alm
(self, alm, lmax=None, mmax=None, inplace=False)
[ 0.007593952585011721, 0.0503421351313591, 0.08761023730039597, 0.028706029057502747, 0.013109561055898666, -0.04170900955796242, -0.01428196020424366, -0.013962214812636375, -0.046256497502326965, 0.015738578513264656, -0.006279443856328726, 0.0013977758353576064, -0.0006716873613186181, 0.06490831077098846, -0.011057861149311066, 0.019611049443483353, -0.03051792085170746, 0.0005603870959021151, 0.02559739351272583, -0.012168087996542454, 0.06689783930778503, 0.009619006887078285, -0.009965397417545319, -0.02030383236706257, -0.011981570161879063, 0.023892085999250412, -0.002164942678064108, 0.03431933745741844, 0.020907795056700706, -0.03971948102116585, 0.0084688114002347, 0.022861795499920845, 0.03348444774746895, -0.029611974954605103, -0.005777621176093817, -0.0238210316747427, 0.009272616356611252, -0.012168087996542454, -0.0877523422241211, -0.03012712113559246, 0.04970264434814453, -0.008753029629588127, 0.08455488830804825, 0.03300482779741287, -0.01969986781477928, 0.010036452673375607, 0.007531780283898115, 0.0337686650454998, 0.06238587573170662, -0.014521769247949123, 0.024549338966608047, -0.07229798287153244, 0.041673481464385986, 0.0420287549495697, -0.01544547826051712, 0.02508224919438362, 0.012994096614420414, -0.011830579489469528, 0.08036267012357712, -0.062314823269844055, 0.009379197843372822, -0.06711100041866302, 0.03886682912707329, -0.054179079830646515, 0.03122846595942974, -0.01633366011083126, -0.0300027746707201, 0.036379918456077576, 0.004565253388136625, 0.030748847872018814, -0.05897526070475578, 0.049986861646175385, 0.025828320533037186, 0.006665803026407957, 0.026858612895011902, 0.046718351542949677, -0.04313009977340698, -0.0008387765265069902, 0.0014410746516659856, -0.016600115224719048, -0.02449604868888855, -0.0255085751414299, 0.021032139658927917, 0.08050478249788284, -0.04835260659456253, -0.030233701691031456, 0.012310197576880455, -0.05162111669778824, -0.013065151870250702, -0.09428936243057251, 0.007678329944610596, 0.012070388533174992, 0.0029221174772828817, 0.016680050641298294, -0.021085431799292564, -0.008513220585882664, -0.05140795186161995, 0.02479803003370762, 0.03794311732053757, -0.009037247858941555, -0.024460522457957268, 0.04881446063518524, -0.0003974612627644092, -0.03733915463089943, 0.04497751593589783, -0.004960494115948677, 0.011564124375581741, -0.053539589047431946, -0.003219658276066184, 0.0359003022313118, -0.05119478702545166, 0.0049560535699129105, -0.018403122201561928, 0.03586477413773537, 0.02886590175330639, 0.0025624039117246866, 0.009379197843372822, -0.07730732858181, 0.03183243051171303, 0.06060951203107834, 0.03581148386001587, -0.04529726132750511, 0.038085225969552994, -0.037197045981884, 0.03428380936384201, -0.01275428757071495, -0.0009731139871291816, -0.08782339841127396, 0.005342412274330854, -0.04508410021662712, -0.000023297419829759747, 0.014850396662950516, -0.03666413575410843, 0.019504468888044357, 0.006639157421886921, 0.0069589028134942055, 0.06071609631180763, -0.007118775509297848, -0.021156486123800278, 0.015303369611501694, -0.054356712847948074, 0.07624150812625885, 0.06171085685491562, 0.05194086208939552, 0.005089280661195517, 0.027942193672060966, 0.03648649901151657, 0.07283089309930801, 0.018127785995602608, -0.043591953814029694, 0.019557759165763855, -0.04586569964885712, 0.052402716130018234, 0.004569694399833679, 0.011768406257033348, 0.025366466492414474, -0.07844419777393341, 0.027284938842058182, -0.030056064948439598, -0.005822030361741781, -0.002176044974476099, 0.0076872119680047035, -0.016342541202902794, 0.0031019742600619793, 0.029558684676885605, -0.09457357972860336, 0.09691837430000305, 0.006870084907859564, -0.01822548732161522, 0.03296929970383644, -0.014441832900047302, -0.03437262773513794, -0.04639860615134239, -0.039222098886966705, -0.03380419313907623, 0.04288140684366226, -0.052864570170640945, 0.03199230134487152, -0.00960124284029007, 0.002309272298589349, -0.028155356645584106, 0.06622282415628433, 0.009166033938527107, -0.05851340293884277, -0.022915085777640343, 0.014441832900047302, -0.006075162440538406, 0.019770922139286995, -0.004523064941167831, -0.021707158535718918, -0.02250652201473713, 0.012070388533174992, 0.025330940261483192, -0.05577780678868294, -0.043840643018484116, -0.0026467812713235617, -0.040536608546972275, 0.03291600942611694, 0.051763225346803665, 0.05186980590224266, -0.0613555870950222, 0.018065614625811577, 0.03954184427857399, -0.006608071271330118, 0.022364413365721703, -0.0014843734679743648, 0.009867697954177856, -0.005107044242322445, -0.03076661191880703, 0.027853375300765038, 0.04902762547135353, 0.02954092063009739, -0.018145550042390823, -0.001653128070756793, -0.01578298769891262, -0.025455284863710403, 0.022701922804117203, 0.058797623962163925, 0.06995318084955215, 0.05119478702545166, -0.04774864390492439, 0.014130969531834126, -0.024549338966608047, -0.03312917426228523, 0.009698943234980106, -0.02563292160630226, -0.002031715353950858, -0.0086109209805727, -0.02776455692946911, -0.008042484521865845, 0.021387413144111633, -0.06927816569805145, 0.012230261228978634, -0.03694835677742958, -0.06195954978466034, -0.009037247858941555, 0.010116389021277428, -0.04192217066884041, -0.07609940320253372, 0.044728826731443405, 0.0007649463950656354, -0.016777750104665756, 0.02822641097009182, 0.06277667731046677, -0.029185647144913673, 0.06171085685491562, -0.013722405768930912, 0.006648039445281029, -0.012425661087036133, 0.009299261495471, -0.04654071480035782, 0.03373313695192337, -0.02666321210563183, 0.0421353355050087, -0.0001468275295337662, 0.023199303075671196, -0.010649297386407852, -0.007927021011710167, -0.005457875784486532, -0.03982606530189514, 0.04565253481268883, -0.051088206470012665, 0.012319078668951988, 0.007753825280815363, -0.028386283665895462, -0.016680050641298294, 0.0115463612601161, 0.028759321197867393, 0.02597043104469776, -0.010480542667210102, 0.11695575714111328, -0.003232981078326702, -0.04501304402947426, -0.04106951877474785, 0.03220546618103981, 0.045190680772066116, 0.057447586208581924, -0.03357326611876488, -0.037872064858675, 0.005360175855457783, 0.026592157781124115, -0.023625630885362625, -0.020374886691570282, 0.034177228808403015, -0.07066372781991959, 0.034603554755449295, -0.04718020558357239, -0.010613770224153996, 0.010604888200759888, 0.0261835940182209, 0.06334511190652847, -0.017470533028244972, -0.0441603884100914, -0.0016864348435774446, 0.05957922339439392, -0.0675373300909996, -0.017168549820780754, -0.009752234444022179, -0.0030664470978081226, -0.022595340386033058, 0.008229002356529236, -0.049738168716430664, 0.02902577444911003, -0.045794643461704254, -0.0023336971644312143, -0.03215217590332031, -0.051052678376436234, -0.03776548057794571, -0.00519142160192132, 0.014104324392974377, 0.011111152358353138, -0.007380789145827293, -0.05897526070475578, -0.05442776903510094, -0.04654071480035782, 0.0008670872775837779, 0.02568621188402176, 0.002384767634794116, 0.05442776903510094, 0.017346186563372612, -0.011075624264776707, -0.014432950876653194, -0.045155152678489685, -0.05684362351894379, 0.041247155517339706, -0.06110689416527748, 0.008695297874510288, 0.02220454066991806, 0.01724848710000515, 0.003363987896591425, -0.08675757795572281, 0.008539866656064987, -0.027515865862369537, -0.02453157678246498, -0.030056064948439598, -0.04266824573278427, 0.0009031696827150881, -0.03476342931389809, 0.025775030255317688, -0.002788890153169632, 0.0056044259108603, 0.016680050641298294, -0.017363950610160828, 0.038653664290905, 0.000124137251987122, 0.06171085685491562, 0.009805524721741676, 0.021138722077012062, -0.013633587397634983, -0.06703995168209076, 0.021369649097323418, -0.005035989917814732, -0.036628611385822296, -0.015587586909532547, -0.02716059423983097, 0.04330773651599884, 0.015649760141968727, -0.015703050419688225, -0.02678755670785904, 0.008704179897904396, 0.028119830414652824, -0.051798753440380096, -0.08043372631072998, 0.023163776844739914, -0.0148326326161623, -0.023678921163082123, -0.030286993831396103, -0.022346649318933487, 0.04767758771777153, -0.00885517057031393, 0.03323575481772423, -0.03183243051171303, 0.05027107894420624, 0.045403845608234406, -0.07226245850324631, 0.06537016481161118, -0.004329885356128216, 0.03609570115804672, -0.02144070342183113, 0.02144070342183113, 0.05297115072607994, 0.000947023625485599, 0.06632940471172333, 0.01987750455737114, 0.010507188737392426, -0.0006022981833666563, 0.016253722831606865, -0.044764354825019836, -0.02017948590219021, -0.010649297386407852, -0.005089280661195517, -0.03911551833152771, 0.0028999128844588995, -0.035580556839704514, -0.021582813933491707, 0.03939973562955856, -0.07545991241931915, 0.0007355253910645843, -0.07986529171466827, -0.033289045095443726, 0.051976386457681656, 0.031850192695856094, -0.02073015831410885, -0.0434853732585907, -0.04774864390492439, -0.002104990417137742, 0.06867419928312302, 0.056381769478321075, -0.020783450454473495, 0.02746257558465004, 0.02568621188402176, 0.041176099330186844, -0.02669874019920826, -0.040749773383140564, 0.0656188577413559, -0.025881612673401833, 0.012452306225895882, -0.013971096836030483, -0.014530651271343231, 0.003490553703159094, 0.028066538274288177, 0.05602649599313736, -0.038582608103752136, 0.015774104744195938, 0.038369446992874146, -0.05368169769644737, -0.051301371306180954, -0.017852449789643288, -0.06714653223752975, -0.00899283867329359, 0.06931369006633759, -0.00036332180025056005, 0.077094167470932, 0.008619803003966808, 0.0441603884100914, 0.055742278695106506, 0.021636104211211205, 0.0489920973777771, -0.0359003022313118, -0.026414521038532257, 0.071694016456604, -0.031139647588133812, -0.023465758189558983, 0.033111412078142166, 0.009672298096120358, -0.03119293786585331, -0.006838998291641474, 0.0193268321454525, 0.012523360550403595, 0.03367984667420387, 0.0931524857878685, 0.06792812794446945, -0.04003922641277313, 0.018332067877054214, 0.04174453765153885, 0.0007960327784530818, 0.011501952074468136, 0.030446866527199745, 0.0037525673396885395, 0.0413537360727787, 0.01527672354131937, 0.005226948764175177, 0.059898968786001205, 0.014974742196500301, 0.01771034114062786, 0.05403696745634079, 0.0015298927901312709, 0.020836740732192993, -0.030784374102950096, -0.024691449478268623, 0.05030660703778267, -0.03758784756064415, 0.016715578734874725, 0.01678663305938244, -0.0007771588861942291, -0.04149584472179413, 0.03186795487999916, 0.01547212339937687, 0.0179501511156559, -0.017017560079693794, 0.0014233110705390573, -0.02106766775250435, 0.023323649540543556, -0.001646466669626534, -0.006501489318907261, 0.040785301476716995, -0.025242121890187263, -0.05776733160018921, -0.011768406257033348, -0.004627426154911518, -0.04849471524357796, 0.05442776903510094, -0.03684177249670029, 0.08789445459842682, 0.0007455174345523119, -0.011244378983974457, -0.019611049443483353, -0.043201152235269547, -0.010400606319308281, 0.04394722729921341, 0.041247155517339706, -0.03844049945473671, -0.04465777054429054, -0.03801417350769043, 0.023678921163082123, 0.029931720346212387, -0.02190255932509899, -0.058797623962163925, -0.020907795056700706, 0.04504857212305069, -0.0559554398059845, -0.029523156583309174, -0.014424069784581661, 0.03431933745741844, -0.03904446214437485, 0.00786040723323822, -0.013589178211987019, 0.002102769911289215, 0.04504857212305069, -0.02996724843978882, -0.00899283867329359, -0.005360175855457783, -0.0979841947555542, -0.048459187150001526, -0.027107302099466324, -0.0011340968776494265, 0.017301777377724648, 0.024567103013396263, 0.008522102609276772, -0.0022870677057653666, -0.011430897749960423, -0.01843865029513836, -0.00913050677627325, 0.037658900022506714, -0.043414317071437836, 0.027853375300765038, -0.08952870965003967, -0.04664729908108711, -0.02920341119170189, -0.045581478625535965, -0.005968580488115549, 0.016555706039071083, -0.028741557151079178, -0.03776548057794571, -0.04156690090894699, -0.017328422516584396, 0.015800751745700836, -0.0168843325227499, 0.003439483232796192, 0.027959957718849182, -0.05609755218029022, -0.0272494126111269, -0.02369668520987034, 0.018314305692911148, -0.011279906146228313, 0.019007086753845215, 0.030358048155903816, -0.052189551293849945, -0.01284310594201088, -0.007660566363483667, 0.010347316041588783, 0.06171085685491562, 0.02128083072602749, 0.019078141078352928, 0.04288140684366226, 0.00321077648550272, 0.03202782943844795, 0.049098677933216095, 0.010125270113348961, 0.01987750455737114, 0.007038839161396027, -0.05780285969376564, -0.021156486123800278, -0.04597228020429611, -0.04131820797920227, 0.024513812735676765, -0.011022333987057209, 0.024726975709199905, -0.006612512283027172, -0.020996613427996635, 0.050661880522966385, 0.014361896552145481, -0.027871139347553253, -0.03844049945473671, 0.03872471675276756, -0.022790739312767982, 0.013251669704914093, 0.10025794059038162, -0.036379918456077576, -0.0005118146655149758, -0.057660751044750214, 0.01868734136223793, -0.013953332789242268, -0.026716502383351326, -0.008095775730907917, 0.02300390414893627, 0.047144681215286255, 0.01366911455988884, -0.02801324799656868, 0.06256351619958878, 0.012434542179107666, 0.005937493871897459, -0.01575634256005287, 0.013802342116832733, -0.034941066056489944, 0.024691449478268623, 0.010338434018194675, -0.060325294733047485, -0.038582608103752136, 0.02758692018687725, -0.05673704296350479, 0.053255368024110794, -0.00012150046677561477, -0.019380122423171997, 0.016315896064043045, -0.04178006201982498, -0.03156597539782524, 0.01218585204333067, 0.03741021081805229, 0.013891160488128662, -0.051550060510635376, -0.006479284726083279, -0.07482042163610458, -0.03327128291130066, -0.0010003144852817059, -0.02458486706018448, -0.005626630503684282, -0.02886590175330639, 0.04838813468813896, -0.00847325287759304, 0.0023425789549946785, -0.07172954827547073, 0.04554595425724983, -0.02415853925049305, -0.015569823794066906, -0.006648039445281029, -0.019344596192240715, 0.005182539578527212, -0.01962881349027157, -0.016555706039071083, -0.05929500609636307, -0.026805320754647255, 0.03195677325129509, -0.03709046542644501, 0.01975315995514393, 0.0013789020013064146, -0.025703975930809975, 0.041176099330186844, -0.04025239124894142, -0.031335048377513885, -0.0182610135525465, 0.014184260740876198, 0.018616287037730217, 0.017603758722543716, -0.02978961169719696, -0.07972317934036255, 0.03488777205348015, 0.018864978104829788, -0.027071775868535042, -0.014965860173106194, -0.04501304402947426, -0.006998870987445116, -0.0272494126111269, -0.007420757319778204, 0.07844419777393341, -0.0359003022313118, -0.0036570876836776733, 0.07066372781991959, 0.010054215788841248, 0.0019406768260523677, -0.0009525747736915946, -0.033164702355861664, 0.046931516379117966, 0.008073571138083935, 0.03373313695192337, -0.0017097495729103684, 0.03780100867152214, -0.017603758722543716, 0.06568991392850876, 0.021707158535718918, -0.046043336391448975, 0.03433709964156151, -0.009121624752879143, 0.007287530228495598, -0.050413187593221664, 0.0738256573677063, -0.011768406257033348, 0.041673481464385986, -0.03804970160126686, -0.0359003022313118, 0.03497659042477608, -0.005457875784486532, 0.016031678766012192, -0.020232778042554855, 0.038333918899297714, 0.042099807411432266, -0.03822733834385872, 0.020588049665093422, -0.01746165007352829, 0.03021593764424324, 0.05915289372205734, 0.037197045981884, 0.0036948355846107006, -0.0031041947659105062, -0.0022260050754994154, 0.001685324590653181, 0.042277444154024124, 0.03957737237215042, -0.09471568465232849, -0.04895656928420067, 0.03529633581638336, 0.07368354499340057, 0.04313009977340698, 0.05357511341571808, 0.07027292996644974, -0.06867419928312302, -0.011430897749960423, 0.009094979614019394, -0.029043538495898247, -0.02073015831410885, -0.028972484171390533, -0.004605221562087536, 0.0063993483781814575, -0.047997333109378815, 0.027640212327241898, -0.011288788169622421, -0.011395369656383991, 0.033075883984565735, -0.03312917426228523, -0.0606805682182312, -0.01624484173953533, 0.037303626537323, 0.06558333337306976, 0.017088614404201508, 0.005035989917814732, 0.037268102169036865, -0.04391169920563698, 0.01712414063513279, -0.041886646300554276, 0.006892289500683546, 0.03343115746974945, 0.038333918899297714, 0.016218196600675583, 0.002203800715506077, -0.02673426643013954, -0.0045874579809606075, -0.046043336391448975, 0.004996021743863821, -0.017843568697571754, -0.0021727143321186304, 0.004991580732166767, 0.006474844180047512, 0.007229798473417759, 0.0566304586827755, 0.05226060748100281, 0.003086431184783578, 0.03216993808746338, 0.0036748514976352453, 0.028581684455275536, -0.04959606006741524, -0.015143496915698051, -0.021085431799292564, 0.01771034114062786, -0.01675998792052269, -0.02534870244562626, -0.001368909957818687, -0.0007627259474247694, -0.02122754044830799 ]
37,647
healpy.rotator
rotate_map_alms
Rotate a HEALPix map to a new reference frame in spherical harmonics space This is generally the best strategy to rotate/change reference frame of maps. If the input map is band-limited, i.e. it can be represented exactly by a spherical harmonics transform under a specific lmax, the map rotation will be invertible. Parameters ---------- m : np.ndarray Input map, single array is considered I, array with 3 rows:[I,Q,U] other arguments : see map2alm Returns ------- m_rotated : np.ndarray Map in the new reference frame
def rotateVector(rotmat, vec, vy=None, vz=None, do_rot=True): """Rotate a vector (or a list of vectors) using the rotation matrix given as first argument. Parameters ---------- rotmat : float, array-like shape (3,3) The rotation matrix vec : float, scalar or array-like The vector to transform (shape (3,) or (3,N)), or x component (scalar or shape (N,)) if vy and vz are given vy : float, scalar or array-like, optional The y component of the vector (scalar or shape (N,)) vz : float, scalar or array-like, optional The z component of the vector (scalar or shape (N,)) do_rot : bool, optional if True, really perform the operation, if False do nothing. Returns ------- vec : float, array The component of the rotated vector(s). See Also -------- Rotator """ if vy is None and vz is None: if do_rot: return np.tensordot(rotmat, vec, axes=(1, 0)) else: return vec elif vy is not None and vz is not None: if do_rot: return np.tensordot(rotmat, np.array([vec, vy, vz]), axes=(1, 0)) else: return vec, vy, vz else: raise TypeError("You must give either vec only or vec, vy " "and vz parameters")
(self, m, use_pixel_weights=True, lmax=None, mmax=None, datapath=None, verbose=None)
[ 0.0342097170650959, 0.03408254310488701, 0.009955882094800472, 0.005423048511147499, -0.0059362854808568954, -0.04792630672454834, -0.04650922864675522, 0.0021540040615946054, 0.048943694680929184, 0.04247600585222244, -0.0000776383894844912, -0.008625100366771221, -0.012326762080192566, 0.010864265263080597, -0.03913315385580063, 0.0010457762982696295, -0.013762008398771286, 0.03175708279013634, -0.017976906150579453, 0.012699199840426445, 0.04047756269574165, 0.03202959895133972, 0.03620816022157669, 0.009756037034094334, 0.03012199141085148, 0.031775251030921936, 0.02543473429977894, -0.009837792254984379, 0.01800415851175785, -0.001068485900759697, 0.027633022516965866, 0.058136533945798874, -0.05824553966522217, -0.04992474988102913, -0.05726448819041252, 0.03689853101968765, 0.014506882056593895, 0.03439139574766159, 0.042803023010492325, 0.03281080722808838, 0.013662085868418217, -0.0007295453688129783, 0.06634832173585892, -0.033973537385463715, -0.03749806433916092, -0.01749546267092228, 0.007094474043697119, 0.062278762459754944, -0.023181943222880363, -0.01316247507929802, 0.06634832173585892, 0.00046072067925706506, 0.054103314876556396, -0.06627564877271652, 0.03677135705947876, 0.018603691831231117, 0.004605503752827644, 0.0504697784781456, 0.07237998396158218, 0.03344667702913284, 0.006976384203881025, -0.01962107978761196, -0.05174151808023453, 0.008988453075289726, 0.02538023144006729, -0.04600053280591965, 0.030230998992919922, 0.04360240325331688, 0.015215421095490456, 0.013534911908209324, -0.04898003116250038, 0.05119648575782776, -0.011718145571649075, -0.03446406498551369, 0.029758639633655548, 0.045491840690374374, -0.011182199232280254, -0.08037375658750534, -0.024290170520544052, 0.030176496133208275, 0.04610953852534294, -0.04469246044754982, 0.02777836285531521, 0.01889437437057495, 0.027705691754817963, 0.04992474988102913, -0.07790295779705048, -0.056283432990312576, -0.04196731001138687, -0.06416819989681244, 0.01116403192281723, -0.00034035989665426314, -0.02648845873773098, -0.03230211138725281, -0.10726191103458405, 0.0027524016331881285, 0.04265768453478813, -0.017413709312677383, -0.0702725350856781, 0.025471068918704987, 0.0035426951944828033, 0.0449831448495388, -0.030558016151189804, -0.028432399034500122, 0.029849477112293243, -0.008974827826023102, -0.04977940768003464, -0.013117055408656597, 0.03446406498551369, 0.022509740665555, 0.051232822239398956, 0.031829752027988434, 0.045128487050533295, -0.013407738879323006, -0.011345707811415195, 0.029286280274391174, -0.028595907613635063, -0.029104603454470634, -0.0630781427025795, -0.021710362285375595, 0.043856747448444366, -0.016169223934412003, 0.07543215155601501, 0.00684466864913702, -0.0008510416373610497, -0.09127435833215714, -0.0015056454576551914, -0.0144069604575634, 0.03130289167165756, 0.0685284435749054, 0.014634056016802788, -0.0012456206604838371, -0.025652745738625526, 0.007158061023801565, 0.03931483253836632, 0.03357384726405144, 0.030757861211895943, 0.02396315336227417, -0.03620816022157669, -0.01583312265574932, 0.020674806088209152, 0.04970673844218254, -0.028577741235494614, 0.02432650700211525, -0.02087464928627014, 0.02683364413678646, 0.026597464457154274, -0.011300289072096348, 0.021764865145087242, -0.03927849605679512, 0.05028810352087021, -0.029595129191875458, -0.017758894711732864, -0.009492605924606323, 0.003506359877064824, -0.0013637105002999306, -0.003847003448754549, -0.04247600585222244, -0.0018735406920313835, 0.05657411739230156, 0.048943694680929184, 0.016359984874725342, -0.025144051760435104, 0.06634832173585892, 0.06238776817917824, 0.0018372053746134043, 0.03844278305768967, 0.048907361924648285, -0.05606542155146599, 0.002169900806620717, 0.040986258536577225, 0.03815210238099098, -0.042984701693058014, -0.03818843513727188, 0.039532843977212906, -0.034845586866140366, -0.08567871898412704, 0.0027433177456259727, 0.01369842141866684, -0.04937972128391266, -0.017386456951498985, 0.03357384726405144, 0.030721524730324745, -0.020111607387661934, 0.02467169240117073, -0.008030109107494354, -0.024744363501667976, -0.009220090694725513, 0.002164223464205861, -0.04309370741248131, -0.029504291713237762, 0.002881846157833934, -0.0014329747064039111, 0.0033610183745622635, -0.0378250814974308, 0.020838314667344093, -0.03568129986524582, -0.013743840157985687, 0.02178303338587284, -0.0077121746726334095, -0.011854402720928192, 0.015478852204978466, 0.03388269990682602, 0.003002207027748227, -0.025525571778416634, 0.020220613107085228, 0.024471847340464592, -0.0666026696562767, 0.014697642996907234, -0.017023103311657906, 0.0648949071764946, -0.001758857280947268, 0.029286280274391174, 0.015133666805922985, 0.01297171413898468, 0.022618746384978294, -0.048216987401247025, 0.021510517224669456, -0.0017281993059441447, 0.04356606677174568, 0.020783811807632446, -0.01306255254894495, -0.0378250814974308, -0.014924738556146622, 0.018158582970499992, -0.05842721834778786, -0.013671169988811016, 0.027433177456259727, -0.06827409565448761, 0.006790165789425373, 0.014198032207787037, -0.05624709650874138, 0.05185052379965782, -0.024798866361379623, -0.07463277876377106, -0.09934080392122269, 0.013471324928104877, -0.029595129191875458, 0.01996626704931259, 0.01414352934807539, 0.0012808205792680383, 0.022019213065505028, 0.006372309289872646, 0.04047756269574165, 0.0075668334029614925, 0.11198550462722778, -0.010646252892911434, 0.057736847549676895, -0.012771870009601116, 0.029867645353078842, -0.026270447298884392, 0.08858554810285568, -0.030376339331269264, 0.005477551836520433, -0.02143784798681736, -0.02038412354886532, 0.05802752822637558, 0.026070602238178253, 0.029068266972899437, 0.039351169019937515, 0.017749810591340065, -0.05980795994400978, 0.003996886778622866, -0.038806136697530746, 0.014643140137195587, -0.06965483725070953, 0.02845056727528572, 0.003792500589042902, 0.004419284872710705, 0.01623281091451645, 0.07964705675840378, -0.008961201645433903, 0.02289126068353653, -0.017895152792334557, 0.03188425675034523, -0.012762785889208317, 0.027851033955812454, 0.02736050635576248, 0.014806648716330528, 0.0261432733386755, -0.014198032207787037, -0.02074747532606125, -0.016141971573233604, 0.022982100024819374, -0.10035819560289383, -0.03477291390299797, -0.003111212980002165, 0.0449831448495388, -0.036135490983724594, 0.026760973036289215, 0.07630420476198196, 0.017041271552443504, -0.0041535827331244946, -0.06511291861534119, 0.003565404796972871, -0.00544575834646821, 0.023745141923427582, -0.009665198624134064, 0.05192319303750992, 0.022291727364063263, -0.018412930890917778, -0.0018190377159044147, -0.012426684610545635, -0.09963148832321167, -0.04843500256538391, 0.028922926634550095, 0.021328842267394066, -0.06500391662120819, 0.00047377869486808777, 0.015560607425868511, 0.004055931698530912, -0.011345707811415195, -0.11983393132686615, -0.008811318315565586, -0.007834806106984615, 0.038261108100414276, -0.015360762365162373, -0.028377896174788475, 0.06471323221921921, -0.021837536245584488, 0.014924738556146622, 0.019766421988606453, -0.0252530574798584, -0.00729431863874197, 0.04763562232255936, -0.03589931130409241, -0.02200104482471943, -0.001154782366938889, 0.009061124175786972, 0.08626008778810501, 0.005604725331068039, -0.00562743516638875, -0.0261251050978899, 0.021710362285375595, -0.017804313451051712, -0.005790943745523691, 0.011672725901007652, 0.008520635776221752, 0.017014021053910255, 0.04879835247993469, 0.05621076375246048, -0.03946017473936081, 0.010037636384367943, -0.00954710878431797, 0.0005061398842372, 0.013916432857513428, 0.036662351340055466, 0.03509993478655815, 0.02915910631418228, 0.04483780264854431, 0.025834422558546066, 0.07357905060052872, 0.050360772758722305, 0.009211007505655289, -0.0684194341301918, 0.001065079472027719, 0.03735272213816643, -0.04222165793180466, 0.012590193189680576, -0.03008565679192543, -0.012953546829521656, 0.012190504930913448, 0.03909682109951973, 0.0010730278445407748, -0.03508176654577255, -0.06765639036893845, -0.018412930890917778, -0.05802752822637558, 0.04182197153568268, 0.024090327322483063, 0.04022321477532387, 0.028232555836439133, 0.04182197153568268, 0.02739684283733368, 0.011182199232280254, 0.012126917950809002, -0.009338180534541607, 0.009238258935511112, 0.03906048461794853, -0.040804579854011536, -0.0034927339293062687, -0.035572294145822525, 0.09112901985645294, 0.016841428354382515, 0.004796264227479696, 0.07826630771160126, 0.0020325076766312122, 0.0005211849347688258, -0.021510517224669456, 0.01133662462234497, -0.08451598882675171, -0.002047268906608224, 0.047090593725442886, -0.01467039156705141, -0.024798866361379623, -0.017195697873830795, -0.03749806433916092, 0.014152612537145615, -0.01748638041317463, -0.03228394314646721, 0.022291727364063263, 0.045164819806814194, -0.05897224694490433, 0.010246564634144306, -0.04091358557343483, 0.029104603454470634, -0.02668830379843712, -0.03266546502709389, 0.0058000278659164906, -0.004312550183385611, -0.023999487981200218, -0.009492605924606323, 0.04483780264854431, -0.05028810352087021, 0.0171502772718668, 0.03159357234835625, 0.003286076709628105, -0.01062808558344841, 0.030230998992919922, 0.011236702091991901, 0.006081626750528812, 0.0012864979216828942, 0.02325461432337761, 0.05726448819041252, 0.020093439146876335, -0.010073971934616566, 0.059190258383750916, -0.03946017473936081, 0.01656891219317913, -0.02901376411318779, 0.05472101271152496, -0.010046719573438168, 0.01567869633436203, 0.0040445770137012005, 0.06097069010138512, -0.006154297385364771, -0.01853102073073387, 0.01026473194360733, -0.040259551256895065, 0.07121725380420685, 0.022455235943198204, -0.0002036765799857676, -0.07833898067474365, 0.05446666479110718, -0.05352194607257843, 0.0027569434605538845, 0.02343629114329815, -0.0031793417874723673, -0.03393720090389252, -0.008416172116994858, 0.09825074672698975, 0.06460422277450562, -0.025652745738625526, -0.0007567969150841236, 0.03531794622540474, -0.036662351340055466, -0.008102779276669025, 0.01818583533167839, -0.0343005545437336, -0.02218272164463997, 0.03444589674472809, -0.02577991969883442, 0.0078120967373251915, 0.00990137830376625, -0.05239555239677429, -0.04018687829375267, -0.017077608034014702, 0.009410851635038853, -0.01343499030917883, -0.022582409903407097, 0.02038412354886532, -0.027287837117910385, 0.027705691754817963, 0.011945241130888462, -0.004950689151883125, 0.060280319303274155, -0.01839476265013218, -0.06994552165269852, -0.05334027111530304, 0.005545680411159992, -0.06075267866253853, -0.039714518934488297, 0.001705489819869399, 0.024035824462771416, 0.0033178701996803284, 0.015751367434859276, -0.012826372869312763, 0.04055023193359375, 0.03457307070493698, 0.003149819327518344, -0.039024148136377335, 0.04309370741248131, 0.008070985786616802, 0.0829172357916832, -0.015805870294570923, 0.007753051817417145, -0.030176496133208275, -0.02992214821279049, -0.026234110817313194, 0.0811731368303299, 0.10966003686189651, 0.011372960172593594, 0.025271225720643997, -0.022927595302462578, -0.0016759673599153757, -0.06533093005418777, -0.0003483082400634885, -0.011808983981609344, -0.01675058901309967, -0.026797309517860413, -0.022945763543248177, 0.004253505263477564, 0.020656637847423553, 0.021038157865405083, -0.01244485192000866, 0.04447444900870323, -0.02303660288453102, 0.022237224504351616, 0.040077872574329376, -0.048544008284807205, 0.011263953521847725, -0.007276150863617659, -0.011554636061191559, -0.012853624299168587, -0.017976906150579453, 0.03584480658173561, -0.04669090360403061, -0.0270334891974926, 0.022836757823824883, 0.016359984874725342, -0.0648222342133522, -0.009601612575352192, -0.0882221907377243, -0.029867645353078842, -0.010482744313776493, 0.0017259283922612667, 0.0037062042392790318, -0.05003375560045242, -0.012472103349864483, -0.017758894711732864, 0.01600571535527706, -0.015097331255674362, 0.02087464928627014, 0.002786465920507908, -0.07354271411895752, -0.0005160752916708589, -0.004069557413458824, -0.011645474471151829, -0.027705691754817963, -0.03135739266872406, -0.05599275231361389, -0.0038583583664149046, -0.04174929857254028, 0.041712965816259384, -0.055375050753355026, 0.01297171413898468, -0.05570206791162491, -0.015333510935306549, -0.053412940353155136, -0.0002605924673844129, 0.032338447868824005, 0.06278745830059052, 0.04574618488550186, 0.03551778942346573, 0.05483001843094826, 0.010119390673935413, 0.010773426853120327, -0.015115499496459961, 0.051269158720970154, -0.05105114355683327, 0.036662351340055466, -0.05461200699210167, -0.051232822239398956, -0.04265768453478813, -0.0342097170650959, 0.014643140137195587, 0.004446536768227816, 0.024817032739520073, -0.04000520333647728, -0.03462757542729378, -0.039351169019937515, -0.05730082094669342, -0.037243716418743134, -0.007257983088493347, 0.018231254070997238, -0.024798866361379623, 0.019130554050207138, 0.04970673844218254, -0.0026047893334180117, 0.09265509992837906, -0.04701792448759079, 0.012335846200585365, 0.001705489819869399, 0.007507788483053446, -0.016069302335381508, -0.02200104482471943, 0.011318456381559372, 0.060062307864427567, -0.0070626805536448956, 0.0171502772718668, 0.006463147699832916, -0.0032747220247983932, 0.04705425724387169, 0.01359849888831377, -0.06765639036893845, 0.05257722735404968, -0.062278762459754944, -0.02992214821279049, 0.024562686681747437, -0.03876980021595955, -0.023745141923427582, -0.00008750286360736936, -0.028868423774838448, 0.009656115435063839, 0.005849988665431738, 0.04076824709773064, -0.056101758033037186, 0.04796264320611954, 0.011927073821425438, 0.00342233432456851, -0.041022591292858124, -0.034682076424360275, -0.060789015144109726, -0.04214898869395256, -0.0055320546962320805, -0.03344667702913284, 0.0022096424363553524, -0.035772137343883514, 0.004414743278175592, -0.015042828395962715, -0.0010111442534253001, 0.022219056263566017, 0.08735014498233795, 0.02741500921547413, -0.02254607528448105, -0.012072415091097355, -0.07397874444723129, -0.009710618294775486, -0.016151055693626404, -0.006535818334668875, -0.006653908174484968, 0.040622904896736145, 0.0323929525911808, 0.030921369791030884, 0.06925515085458755, -0.034682076424360275, -0.026215944439172745, 0.02739684283733368, 0.02487153559923172, 0.023745141923427582, 0.0036812236066907644, 0.029849477112293243, -0.003295160597190261, 0.02432650700211525, 0.014697642996907234, -0.039605513215065, 0.027342339977622032, -0.0066493661142885685, -0.00015953482943587005, 0.031811583787202835, -0.004612316377460957, -0.0020177464466542006, -0.002902284963056445, -0.031084878370165825, -0.005972620565444231, -0.0020904173143208027, -0.019693750888109207, 0.01873086579144001, 0.008207243867218494, 0.013098888099193573, 0.03526344150304794, -0.00836166925728321, -0.0013114784378558397, 0.008988453075289726, 0.06351416558027267, -0.028196219354867935, 0.05562939867377281, -0.03261096403002739, 0.006018039770424366, 0.010673504322767258, -0.02089281752705574, 0.014842984266579151, 0.030194662511348724, 0.014615888707339764, -0.06809241324663162, 0.013834678567945957, -0.0014908842276781797, 0.01404360681772232, -0.011836235411465168, -0.040804579854011536, -0.0025752668734639883, 0.005309500731527805, 0.008774983696639538, -0.002400403143838048, -0.0342460535466671, -0.014198032207787037, -0.026270447298884392, 0.00981053989380598, -0.03797042369842529, 0.030376339331269264, -0.042257994413375854, -0.00011248340888414532, 0.0011292340932413936, 0.06402286142110825, -0.028396064415574074, -0.04309370741248131, 0.020983655005693436, -0.047453947365283966, 0.016886847093701363, -0.08756815642118454, 0.011191283352673054, 0.000301185849821195, 0.05264990031719208, -0.00693550705909729, 0.02272775210440159, -0.022927595302462578, 0.0017702120821923018, -0.026888146996498108, -0.0025207637809216976, -0.00827537290751934, -0.04000520333647728, -0.033810026943683624, -0.02777836285531521, -0.0740150734782219, 0.015515187755227089, -0.09280044585466385, -0.03097587265074253, -0.0034041665494441986, -0.03043084219098091, 0.03588114306330681, 0.0077666775323450565, 0.04778096452355385, 0.11147680878639221, -0.04727226868271828, 0.007507788483053446, -0.0360446535050869, -0.07081756740808487, -0.023745141923427582, -0.028904758393764496, 0.05555672571063042, -0.02358163148164749, 0.029268112033605576, -0.004598690662533045, -0.041167933493852615, -0.019584745168685913, -0.0035994690842926502, -0.02917727455496788, 0.039605513215065, -0.003102129092440009, -0.01601479947566986, -0.059008583426475525, -0.07456010580062866, -0.03589931130409241, -0.02141967974603176, 0.043311718851327896, 0.06424087285995483, -0.02828705869615078, -0.007257983088493347, -0.015033744275569916, -0.04716326296329498, -0.03275630250573158, -0.02016611024737358, -0.029813142493367195, -0.009801456704735756, 0.014688558876514435, -0.03615365922451019, -0.00004981915117241442, 0.019166888669133186 ]
37,648
healpy.rotator
rotate_map_pixel
Rotate a HEALPix map to a new reference frame in pixel space It is generally better to rotate in spherical harmonics space, see the rotate_map_alms method. A case where pixel space rotation is better is for heavily masked maps where the spherical harmonics transform is not well defined. This function first rotates the pixels centers of the new reference frame to the original reference frame, then uses hp.get_interp_val to interpolate bilinearly the pixel values, finally fixes Q and U polarization by the modification to the psi angle caused by the Rotator using Rotator.angle_ref. Due to interpolation, this function generally suppresses the signal at high angular scales. Parameters ---------- m : np.ndarray Input map, 1 map is considered I, 2 maps:[Q,U], 3 maps:[I,Q,U] Returns ------- m_rotated : np.ndarray Map in the new reference frame
def rotate_map_pixel(self, m): """Rotate a HEALPix map to a new reference frame in pixel space It is generally better to rotate in spherical harmonics space, see the rotate_map_alms method. A case where pixel space rotation is better is for heavily masked maps where the spherical harmonics transform is not well defined. This function first rotates the pixels centers of the new reference frame to the original reference frame, then uses hp.get_interp_val to interpolate bilinearly the pixel values, finally fixes Q and U polarization by the modification to the psi angle caused by the Rotator using Rotator.angle_ref. Due to interpolation, this function generally suppresses the signal at high angular scales. Parameters ---------- m : np.ndarray Input map, 1 map is considered I, 2 maps:[Q,U], 3 maps:[I,Q,U] Returns ------- m_rotated : np.ndarray Map in the new reference frame """ if pixelfunc.maptype(m) == 0: # a single map is converted to a list m = [m] npix = len(m[0]) nside = pixelfunc.npix2nside(npix) theta_pix_center, phi_pix_center = pixelfunc.pix2ang( nside=nside, ipix=np.arange(npix) ) # Rotate the pixels center of the new reference frame to the original frame theta_pix_center_rot, phi_pix_center_rot = self.I( theta_pix_center, phi_pix_center ) # Interpolate the original map to the pixels centers in the new ref frame m_rotated = [ pixelfunc.get_interp_val(each, theta_pix_center_rot, phi_pix_center_rot) for each in m ] # Rotate polarization if len(m_rotated) > 1: # Create a complex map from QU and apply the rotation in psi due to the rotation # Slice from the end of the array so that it works both for QU and IQU L_map = (m_rotated[-2] + m_rotated[-1] * 1j) * np.exp( 1j * 2 * self.angle_ref(theta_pix_center_rot, phi_pix_center_rot) ) # Overwrite the Q and U maps with the correct values m_rotated[-2] = np.real(L_map) m_rotated[-1] = np.imag(L_map) else: m_rotated = m_rotated[0] return m_rotated
(self, m)
[ 0.051316339522600174, -0.07481852173805237, 0.017539232969284058, 0.07815932482481003, -0.009162938222289085, -0.022472748532891273, -0.02206485904753208, 0.03974005579948425, -0.048635922372341156, 0.004782985895872116, 0.07225465029478073, 0.015014205127954483, 0.04137161374092102, 0.05325866863131523, -0.04545050486922264, -0.01082848571240902, 0.009090100415050983, 0.034087877720594406, -0.029970139265060425, -0.07901395112276077, 0.02775588445365429, -0.058075644075870514, 0.05240404233336449, 0.011906477622687817, -0.05255942791700363, 0.017442116513848305, -0.02474527433514595, 0.0028115215245634317, 0.0034986205864697695, -0.02272525243461132, -0.04700436815619469, 0.004212426487356424, 0.026842989027500153, 0.000532016099896282, -0.013275819830596447, -0.039060238748788834, 0.059862587600946426, 0.007589651271700859, -0.08701635152101517, -0.0014154723612591624, 0.01597565785050392, -0.030416876077651978, 0.045256271958351135, -0.05920219421386719, 0.025910671800374985, 0.042537011206150055, -0.06864191591739655, 0.026027211919426918, 0.07326465845108032, 0.009017263539135456, 0.019102808088064194, -0.09657260775566101, -0.030047832056879997, 0.03954582288861275, -0.0015927099157124758, 0.05395790562033653, 0.015091897919774055, 0.01896684430539608, 0.06052297726273537, -0.03383537381887436, -0.0034986205864697695, -0.06339762359857559, 0.025832979008555412, 0.04245931655168533, 0.04766475781798363, -0.00541424285620451, 0.038788314908742905, -0.011644263751804829, -0.010187516920268536, -0.0021547714713960886, -0.012392059899866581, 0.024492770433425903, 0.02408488281071186, -0.011294644325971603, 0.032747671008110046, 0.014664585702121258, -0.010935313068330288, -0.04875246435403824, 0.04121622443199158, -0.040128521621227264, -0.025852402672171593, -0.038768891245126724, 0.0392933189868927, 0.026571063324809074, -0.014149867929518223, 0.004057039972394705, 0.08375323563814163, -0.0440908744931221, -0.04245931655168533, -0.051704805344343185, -0.017733465880155563, -0.014567469246685505, -0.0021693389862775803, 0.02336622029542923, 0.028027810156345367, -0.008638509549200535, -0.03556404635310173, 0.045916661620140076, -0.002932917093858123, 0.000896506302524358, 0.02373526245355606, -0.013693421147763729, -0.015800848603248596, 0.027367418631911278, 0.05376367270946503, 0.01694682240486145, -0.005598763935267925, 0.02608548104763031, -0.022608712315559387, -0.017209036275744438, -0.008861877024173737, 0.03839984908699989, -0.03820561617612839, -0.01863664947450161, 0.0064048306085169315, -0.015460940077900887, 0.011984171345829964, -0.015791136771440506, 0.056716013699769974, 0.019510697573423386, -0.00045644736383110285, -0.004685869440436363, 0.026668179780244827, -0.030688801780343056, 0.012090999633073807, -0.026007788255810738, 0.024240268394351006, -0.00627372320741415, -0.052326347678899765, -0.0172964408993721, -0.048247456550598145, 0.001296504749916494, -0.016131043434143066, 0.01475199032574892, 0.014606315642595291, -0.03931274265050888, 0.007215753197669983, -0.03531154617667198, 0.013178703375160694, 0.019840892404317856, -0.029562249779701233, 0.023482760414481163, 0.011255797930061817, 0.09470797330141068, 0.03445691987872124, 0.011945324949920177, 0.08173321187496185, 0.045256271958351135, 0.06063951924443245, -0.059823740273714066, -0.01657778024673462, -0.015509498305618763, 0.018918287009000778, 0.033660564571619034, 0.011605417355895042, -0.03764234110713005, 0.04090545326471329, 0.03354402631521225, -0.022200822830200195, 0.010080688633024693, 0.030921880155801773, -0.0338936448097229, -0.027950117364525795, -0.0019192640902474523, -0.02470642700791359, -0.006365984212607145, 0.06176606938242912, 0.019860316067934036, 0.001718961400911212, 0.027678191661834717, -0.01409159880131483, -0.0520932711660862, -0.038691196590662, -0.01489766500890255, 0.04952939599752426, 0.05123864486813545, -0.05613331496715546, -0.038768891245126724, -0.013353513553738594, -0.00194475706666708, -0.002183906501159072, 0.011051853187382221, 0.004525627009570599, -0.00965823233127594, -0.05038401857018471, 0.08647249639034271, 0.10170035809278488, -0.036360401660203934, 0.03016437217593193, 0.0017942265840247273, -0.04226508364081383, 0.016529221087694168, 0.011459742672741413, 0.037448108196258545, 0.05485137552022934, -0.045605890452861786, 0.006254300009459257, 0.015470651909708977, 0.0032096989452838898, 0.061843760311603546, -0.06203799322247505, -0.024978354573249817, 0.011382048949599266, -0.004591180477291346, -0.011770514771342278, -0.02818319760262966, 0.04735398665070534, 0.03086361102759838, 0.0091240918263793, 0.035136736929416656, 0.03566116467118263, -0.015480363741517067, -0.025172587484121323, -0.060833752155303955, -0.012382348999381065, 0.0440908744931221, 0.000574201054405421, 0.038438696414232254, -0.0075216698460280895, 0.04533396288752556, -0.033699411898851395, 0.07536237686872482, -0.0391962043941021, -0.030630530789494514, 0.004965079016983509, -0.00880360696464777, 0.00041304845944978297, -0.014363524504005909, 0.005365684628486633, -0.04607204720377922, 0.02849396876990795, -0.008211196400225163, -0.022084282711148262, -0.06036759167909622, 0.003624871838837862, -0.018850304186344147, 0.037797726690769196, -0.022783521562814713, -0.011624840088188648, 0.051005564630031586, -0.008628797717392445, 0.03630213439464569, -0.011925901286303997, 0.0912894755601883, -0.04245931655168533, -0.021113118156790733, -0.013285531662404537, -0.004331394098699093, 0.008900723420083523, 0.021618124097585678, -0.015023916028439999, -0.01526670716702938, -0.02977590635418892, 0.00560361985117197, 0.025502782315015793, -0.0440908744931221, 0.026493370532989502, -0.02610490471124649, 0.020200224593281746, -0.013596304692327976, 0.007026375737041235, -0.07691624015569687, 0.02678471989929676, -0.05314212664961815, -0.0031344338785856962, -0.02950398065149784, 0.0031514291185885668, 0.06600034981966019, -0.024978354573249817, 0.012110422365367413, 0.13464225828647614, 0.015451229177415371, -0.115374356508255, -0.003243689890950918, 0.04191546514630318, 0.041798923164606094, 0.06910807639360428, -0.013877942226827145, 0.010391461662948132, 0.008852165192365646, -0.006069778930395842, -0.04782014340162277, 0.014043040573596954, 0.05760948359966278, -0.03214554861187935, 0.034087877720594406, -0.013159280642867088, 0.06172722205519676, 0.07582852989435196, -0.03702079504728317, 0.013819672167301178, 0.02606605738401413, -0.07804279029369354, -0.04366356134414673, 0.04642166942358017, 0.017082786187529564, -0.04704321175813675, -0.010236075147986412, -0.014344100840389729, -0.041798923164606094, 0.025658169761300087, -0.025968940928578377, 0.018063662573695183, -0.023521605879068375, 0.003360229544341564, -0.03185419738292694, -0.009318324737250805, -0.023618722334504128, -0.018801746889948845, -0.006667044945061207, 0.014703432098031044, 0.02060811221599579, -0.05590023472905159, -0.05454060435295105, -0.021229658275842667, -0.0005672208499163389, 0.04848053678870201, 0.046615902334451675, 0.08111166954040527, 0.03383537381887436, 0.016043638810515404, -0.01694682240486145, -0.03597193583846092, -0.016354411840438843, 0.023288527503609657, -0.08320938050746918, 0.003394220257177949, -0.0032242664601653814, 0.03395191580057144, -0.03935158997774124, -0.037739455699920654, 0.03836100175976753, -0.032650552690029144, -0.02808608114719391, -0.020433302968740463, -0.028241466730833054, -0.01927761733531952, -0.021754087880253792, -0.021229658275842667, -0.008531681261956692, -0.01068281102925539, -0.057764869183301926, -0.011110123246908188, 0.03290305659174919, -0.010789638385176659, -0.001340207178145647, -0.022608712315559387, 0.015392959117889404, -0.061494141817092896, -0.010964448563754559, 0.05516215041279793, 0.011080987751483917, 0.017043938860297203, 0.02062753587961197, 0.014684008434414864, 0.07213810831308365, -0.030319759622216225, 0.008240331895649433, -0.0024509767536073923, 0.028610508888959885, 0.08833713084459305, -0.03340806066989899, -0.0061960299499332905, -0.03682656213641167, -0.05496791750192642, -0.0213461983948946, -0.04572242870926857, 0.03191246837377548, 0.002438837196677923, -0.029329171404242516, -0.0036394393537193537, -0.017063362523913383, -0.0005253393319435418, 0.03224266320466995, -0.021423891186714172, 0.01862693764269352, 0.001731100957840681, 0.06063951924443245, -0.08429709076881409, -0.021812357008457184, 0.044168565422296524, 0.023890649899840355, 0.007628498133271933, 0.023210834711790085, -0.027309149503707886, -0.008099513128399849, 0.024531617760658264, -0.027639344334602356, 0.002012738725170493, -0.0260466355830431, -0.0635918602347374, -0.04778129979968071, 0.03175708279013634, -0.04980131983757019, -0.007045799400657415, 0.023191411048173904, -0.038458120077848434, 0.0794801115989685, -0.05240404233336449, -0.04533396288752556, 0.0555894635617733, -0.06650535017251968, -0.01587854139506817, -0.03191246837377548, 0.007230320479720831, -0.04805322363972664, 0.029018398374319077, 0.013071876019239426, 0.027639344334602356, -0.0419931560754776, -0.026260290294885635, 0.03020321950316429, 0.032747671008110046, -0.03770060837268829, -0.02433738484978676, -0.016742877662181854, -0.06005682051181793, -0.035078465938568115, -0.0487913079559803, 0.07804279029369354, -0.006904980167746544, -0.013848807662725449, -0.052714813500642776, 0.026493370532989502, -0.006220309529453516, -0.05224865674972534, -0.034359805285930634, 0.029232054948806763, -0.041565846651792526, 0.06250415742397308, 0.028338583186268806, -0.009245486930012703, 0.0398954413831234, -0.017850005999207497, 0.008696778677403927, 0.04098314791917801, 0.052054423838853836, 0.05119979754090309, 0.0037754024378955364, -0.01998656801879406, 0.06199914962053299, -0.005899825133383274, 0.010265209712088108, -0.0147714139893651, 0.01799567975103855, -0.017179902642965317, -0.08872559666633606, 0.02577470801770687, -0.03288363292813301, 0.05566715449094772, 0.045877814292907715, 0.03317498415708542, -0.01117810420691967, -0.014781124889850616, 0.06063951924443245, 0.018753187730908394, 0.02303602360188961, 0.02775588445365429, -0.028921281918883324, -0.0029936148785054684, 0.025133740156888962, 0.06060067191720009, 0.007220608647912741, -0.03484538570046425, 0.032650552690029144, 0.07777085900306702, 0.006118337158113718, -0.03228151053190231, -0.030649954453110695, -0.025172587484121323, 0.04774245247244835, -0.01867549493908882, 0.016082486137747765, 0.007395418360829353, 0.017442116513848305, -0.0016182030085474253, -0.028901858255267143, 0.08670557290315628, -0.015169590711593628, -0.03531154617667198, -0.041449304670095444, -0.05356943979859352, 0.04133276641368866, -0.028280314058065414, -0.011304356157779694, -0.017772313207387924, 0.0032873922027647495, -0.04638282209634781, -0.00015826948219910264, -0.03682656213641167, -0.040128521621227264, 0.03750637546181679, -0.03197073936462402, 0.07582852989435196, -0.03725387528538704, 0.020938308909535408, 0.01862693764269352, -0.03212612494826317, -0.008055810816586018, -0.0098476093262434, 0.028921281918883324, -0.007900424301624298, -0.0250948928296566, -0.04195431247353554, 0.011595705524086952, -0.01068281102925539, 0.04277008771896362, -0.03465115278959274, 0.01541238185018301, 0.04463472589850426, -0.05722101777791977, -0.0357971265912056, 0.019860316067934036, -0.005035488400608301, -0.015490075573325157, -0.018821170553565025, -0.05092787370085716, 0.021404467523097992, -0.01730615273118019, -0.02742568776011467, -0.010692521929740906, 0.02400718815624714, -0.01596594601869583, 0.04471241682767868, -0.0199477206915617, -0.0041007427498698235, 0.012673698365688324, -0.042925477027893066, 0.005142316687852144, -0.032359205186367035, -0.07520698755979538, -0.012158980593085289, -0.06063951924443245, -0.01900569163262844, 0.03461230546236038, 0.04708205908536911, -0.022200822830200195, -0.09556259959936142, 0.001754166092723608, -0.0364963673055172, -0.022200822830200195, 0.019102808088064194, -0.011518011800944805, -0.04094430059194565, 0.0044187987223267555, 0.00037420185981318355, -0.05092787370085716, 0.0018015103414654732, 0.010983871296048164, -0.012741679325699806, -0.006676756776869297, -0.0024230557028204203, 0.013168992474675179, 0.0005732906283810735, 0.022084282711148262, 0.05764833092689514, 0.03276709467172623, -0.08973561227321625, -0.0630868524312973, 0.0182481836527586, 0.02470642700791359, 0.031990163028240204, 0.018753187730908394, -0.008060665801167488, -0.041177380830049515, 0.0047101485542953014, 0.03144631162285805, 0.036748867481946945, -0.014567469246685505, 0.007050654850900173, 0.014246984384953976, 0.02845512330532074, 0.038768891245126724, 0.003809393150731921, -0.04075006768107414, -0.015528921969234943, 0.05760948359966278, -0.03296132758259773, 0.06545649468898773, -0.07660546153783798, 0.04094430059194565, 0.025891248136758804, 0.054773684591054916, -0.004472212865948677, 0.023191411048173904, 0.002180264564231038, 0.018772611394524574, 0.11902593076229095, 0.0006907408242113888, 0.002467971993610263, -0.03622443974018097, -0.038768891245126724, 0.00670589180663228, -0.017539232969284058, -0.014276119880378246, -0.006128048524260521, 0.0037826860789209604, -0.007696479558944702, -0.014625739306211472, 0.03764234110713005, 0.010877043940126896, -0.04576127603650093, -0.005321981851011515, -0.04366356134414673, -0.04851938411593437, -0.044168565422296524, 0.02876589633524418, -0.006628198549151421, -0.03626328706741333, -0.0023113717325031757, 0.011255797930061817, 0.02917378395795822, 0.04513972997665405, -0.01924848183989525, 0.004282835870981216, -0.03546693176031113, -0.05590023472905159, 0.039448704570531845, 0.03698194772005081, 0.04506203904747963, -0.04545050486922264, 0.002847940195351839, -0.03993428871035576, 0.010323479771614075, -0.03688483312726021, -0.039817750453948975, 0.01103242952376604, 0.03292248025536537, 0.017490673810243607, -0.010333191603422165, -0.0030810197349637747, -0.043896641582250595, 0.033796526491642, -0.009017263539135456, -0.020530419424176216, 0.005754150450229645, -0.011741380207240582, 0.0098476093262434, -0.01589796505868435, 0.060833752155303955, 0.007152627222239971, -0.04906323552131653, -0.004965079016983509, 0.008808462880551815, 0.0005820918013341725, 0.002414558082818985, 0.009255198761820793, 0.023812955245375633, -0.016713742166757584, -0.004197859205305576, -0.007822730578482151, 0.0656895712018013, 0.014130445197224617, 0.004525627009570599, -0.00568131310865283, -0.0616883747279644, -0.07062309235334396, -0.019394157454371452, -0.035738859325647354, -0.002578441984951496, -0.014713143929839134, 0.032339781522750854, -0.05108325928449631, -0.023424489423632622, 0.009633952751755714, -0.042886629700660706, 0.061455294489860535, 0.045217424631118774, 0.0030518847052007914, 0.022511595860123634, 0.024492770433425903, -0.06910807639360428, -0.011605417355895042, -0.004326538182795048, 0.0508890263736248, -0.012382348999381065, 0.040206216275691986, -0.047587066888809204, -0.0022288227919489145, 0.047276291996240616, 0.005011209286749363, 0.01555805653333664, -0.02470642700791359, 0.07753778249025345, -0.00763335358351469, 0.1031765267252922, 0.037448108196258545, -0.022181399166584015, -0.06553418934345245, -0.035447508096694946, 0.061494141817092896, -0.0011508300667628646, 0.043508175760507584, -0.0030227499082684517, 0.03014494851231575, 0.061494141817092896, -0.06351416558027267, -0.013062164187431335, 0.007881000638008118, 0.0011022718390449882, 0.02711491659283638, -0.022278515622019768, -0.0256970152258873, 0.004193003289401531, -0.029698213562369347, 0.023133140057325363, 0.01665547303855419, -0.002219111192971468, -0.049645934253931046, 0.004421226680278778, -0.01421784982085228, 0.052714813500642776, 0.04750937223434448, -0.016849705949425697, 0.024667581543326378, -0.04401317983865738, -0.06790383160114288, -0.008638509549200535, 0.05636639520525932, -0.018801746889948845, -0.0006506802747026086, -0.0035763136111199856, -0.0030446010641753674, 0.032009586691856384, -0.041138533502817154, -0.013508900068700314, 0.006550505291670561, -0.0007271594949997962, -0.09299872070550919, 0.006803008262068033, -0.04890784993767738, 0.030008986592292786, -0.007822730578482151, 0.07823701947927475, 0.028027810156345367, 0.0038215327076613903, 0.00997386034578085, -0.03383537381887436, -0.015538633801043034, 0.015315265394747257, 0.024220844730734825, -0.02476469799876213, -0.008570527657866478, 0.015490075573325157, -0.001988459611311555, 0.012799949385225773, -0.018510397523641586, 0.004001198336482048, 0.020782923325896263, 0.03896312415599823, 0.03160169720649719, 0.022589288651943207, -0.021870626136660576, 0.010741080157458782, 0.01081877388060093, -0.016480663791298866, -0.010100112296640873, 0.04498434439301491, -0.0068564219400286674, 0.0072885905392467976, -0.06506802886724472, 0.04533396288752556, -0.04867476969957352, -0.0154220936819911, 0.0034816251136362553, 0.03276709467172623, -0.05081133171916008, -0.004486780613660812 ]
37,657
healpy.sphtfunc
alm2cl
Computes (cross-)spectra from alm(s). If alm2 is given, cross-spectra between alm and alm2 are computed. If alm (and alm2 if provided) contains n alm, then n(n+1)/2 auto and cross-spectra are returned. Parameters ---------- alm : complex, array or sequence of arrays The alm from which to compute the power spectrum. If n>=2 arrays are given, computes both auto- and cross-spectra. alms2 : complex, array or sequence of 3 arrays, optional If provided, computes cross-spectra between alm and alm2. Default: alm2=alm, so auto-spectra are computed. lmax : None or int, optional The maximum l of the input alm. Default: computed from size of alm and mmax_in mmax : None or int, optional The maximum m of the input alm. Default: assume mmax_in = lmax_in lmax_out : None or int, optional The maximum l of the returned spectra. By default: the lmax of the given alm(s). nspec : None or int, optional The number of spectra to return. None means all, otherwise returns cl[:nspec] Returns ------- cl : array or tuple of n(n+1)/2 arrays the spectrum <*alm* x *alm2*> if *alm* (and *alm2*) is one alm, or the auto- and cross-spectra <*alm*[i] x *alm2*[j]> if alm (and alm2) contains more than one spectra. If more than one spectrum is returned, they are ordered by diagonal. For example, if *alm* is almT, almE, almB, then the returned spectra are: TT, EE, BB, TE, EB, TB.
def alm2cl(alms1, alms2=None, lmax=None, mmax=None, lmax_out=None, nspec=None): """Computes (cross-)spectra from alm(s). If alm2 is given, cross-spectra between alm and alm2 are computed. If alm (and alm2 if provided) contains n alm, then n(n+1)/2 auto and cross-spectra are returned. Parameters ---------- alm : complex, array or sequence of arrays The alm from which to compute the power spectrum. If n>=2 arrays are given, computes both auto- and cross-spectra. alms2 : complex, array or sequence of 3 arrays, optional If provided, computes cross-spectra between alm and alm2. Default: alm2=alm, so auto-spectra are computed. lmax : None or int, optional The maximum l of the input alm. Default: computed from size of alm and mmax_in mmax : None or int, optional The maximum m of the input alm. Default: assume mmax_in = lmax_in lmax_out : None or int, optional The maximum l of the returned spectra. By default: the lmax of the given alm(s). nspec : None or int, optional The number of spectra to return. None means all, otherwise returns cl[:nspec] Returns ------- cl : array or tuple of n(n+1)/2 arrays the spectrum <*alm* x *alm2*> if *alm* (and *alm2*) is one alm, or the auto- and cross-spectra <*alm*[i] x *alm2*[j]> if alm (and alm2) contains more than one spectra. If more than one spectrum is returned, they are ordered by diagonal. For example, if *alm* is almT, almE, almB, then the returned spectra are: TT, EE, BB, TE, EB, TB. """ cls = _sphtools.alm2cl(alms1, alms2=alms2, lmax=lmax, mmax=mmax, lmax_out=lmax_out) if nspec is None: return np.array(cls) else: return np.array(cls[:nspec])
(alms1, alms2=None, lmax=None, mmax=None, lmax_out=None, nspec=None)
[ -0.013974929228425026, 0.024088112637400627, 0.039879210293293, -0.02204253524541855, -0.018161673098802567, 0.017655057832598686, -0.015456539578735828, -0.06412026286125183, -0.04389389604330063, 0.05597618594765663, -0.043320368975400925, -0.008297016844153404, 0.01218743808567524, 0.024833697825670242, 0.031276311725378036, 0.004315786994993687, -0.0206469539552927, -0.07192022353410721, 0.03886597976088524, -0.009104733355343342, 0.0404527373611927, 0.037986572831869125, -0.011919792741537094, 0.015934478491544724, -0.004389867652207613, 0.02083813026547432, 0.007016140967607498, 0.034641001373529434, -0.08610544353723526, -0.03659098967909813, 0.02825574018061161, 0.02101018838584423, 0.04867328330874443, -0.011805087327957153, -0.0057304855436086655, -0.02011166326701641, 0.0634702667593956, -0.023992525413632393, -0.13711106777191162, 0.005023136269301176, 0.0513879768550396, -0.035654231905937195, 0.0718819871544838, 0.026668982580304146, -0.004609719384461641, 0.010457299649715424, -0.04106449708342552, 0.014930807054042816, -0.08266428858041763, 0.016106536611914635, 0.011938910000026226, -0.12716995179653168, -0.034163061529397964, 0.0014744410291314125, -0.022960178554058075, 0.04083508625626564, -0.005816514603793621, -0.005161738488823175, 0.020035192370414734, -0.04102626442909241, -0.01904108002781868, -0.044926244765520096, 0.028408680111169815, -0.009372378699481487, -0.0014792204601690173, -0.038827743381261826, -0.019289609044790268, 0.04106449708342552, 0.014146987348794937, 0.03890421614050865, -0.02336164563894272, 0.04159978777170181, 0.020570484921336174, -0.02659251168370247, 0.019614607095718384, 0.0065143052488565445, 0.040682148188352585, -0.003639503614977002, 0.014653602614998817, -0.011155090294778347, -0.03521452844142914, 0.02227194607257843, -0.003954943269491196, -0.028638090938329697, -0.04377919062972069, 0.030148377642035484, -0.004385088104754686, 0.0033670784905552864, -0.05498207360506058, -0.061940863728523254, -0.014414632692933083, 0.0345454141497612, 0.0010741673177108169, 0.0575820617377758, -0.03278660029172897, -0.004265603609383106, -0.052420321851968765, 0.007188199087977409, 0.04874975234270096, 0.015963153913617134, -0.013525666669011116, -0.004313397221267223, 0.02659251168370247, 0.041102733463048935, 0.018993286415934563, -0.025254283100366592, -0.02556016482412815, 0.004303838592022657, -0.0064330557361245155, 0.04653211683034897, -0.025311635807156563, 0.009663921780884266, 0.00037368835182860494, -0.02951749786734581, -0.009797744452953339, 0.0189550518989563, 0.018515346571803093, 0.032174836844205856, -0.00037607806734740734, 0.0003091666440013796, -0.017769763246178627, -0.0438174270093441, 0.01976754702627659, -0.03150572255253792, 0.011585235595703125, 0.016450652852654457, 0.0007408050587400794, -0.018744757398962975, -0.006934891454875469, -0.05605265870690346, 0.005845190957188606, 0.01484477799385786, -0.013965370133519173, 0.05979969725012779, 0.025426341220736504, -0.009644804522395134, 0.003962112125009298, -0.002549803350120783, -0.011011708527803421, -0.06763789057731628, -0.045843884348869324, 0.061749689280986786, 0.03278660029172897, 0.019308725371956825, -0.06679672002792358, 0.01110729668289423, 0.06847906857728958, -0.04458212852478027, -0.013171992264688015, 0.04932327941060066, -0.019519018009305, -0.008416501805186272, 0.06526731699705124, 0.005252547096461058, -0.016833003610372543, -0.01766461692750454, -0.028485149145126343, -0.023514587432146072, -0.021449891850352287, -0.01168082281947136, -0.05375855043530464, -0.008344810456037521, 0.004822402261197567, -0.016383741050958633, 0.021449891850352287, -0.05192326754331589, 0.0074510653503239155, -0.034048356115818024, 0.0317351333796978, -0.01603962481021881, -0.027911623939871788, -0.01036171242594719, 0.00273142009973526, -0.10185831040143967, -0.04672329127788544, -0.021889595314860344, -0.060984984040260315, -0.040988028049468994, -0.004614498931914568, -0.025368988513946533, -0.0013262800639495254, 0.03357041999697685, 0.028963088989257812, 0.001973886974155903, -0.02418370172381401, 0.03898068517446518, -0.020321955904364586, -0.00021656599710695446, 0.007140405010432005, -0.002332341158762574, 0.0008991222712211311, 0.010342595167458057, -0.006490408442914486, 0.029001323506236076, -0.0049896808341145515, -0.07539961487054825, -0.01173817552626133, 0.0471821129322052, 0.019844017922878265, 0.029173381626605988, -0.01451977901160717, 0.08121135085821152, 0.008062826469540596, -0.0023873040918260813, 0.09474658221006393, -0.050623271614313126, 0.04029979556798935, 0.010036714375019073, -0.018209466710686684, 0.009009145200252533, 0.02328517660498619, 0.03804392367601395, -0.0064426143653690815, -0.020035192370414734, 0.03119984269142151, -0.0027457582764327526, 0.050087980926036835, -0.0037996130995452404, -0.014462427236139774, -0.030148377642035484, -0.011413177475333214, 0.004315786994993687, -0.021583713591098785, 0.037986572831869125, -0.07490256428718567, 0.03513805568218231, 0.02286458946764469, 0.04052920639514923, 0.05937911197543144, 0.015399186871945858, -0.032308660447597504, -0.027796918526291847, 0.005854749586433172, -0.01693814992904663, -0.03683951869606972, 0.04939974844455719, -0.006772391963750124, 0.03360865265130997, -0.03555864468216896, 0.008392604999244213, 0.0017659837612882257, -0.006127174943685532, 0.0056492360308766365, 0.016393300145864487, -0.011785970069468021, 0.02844691462814808, 0.0037350913044065237, -0.004129390697926283, -0.029421910643577576, 0.02760574221611023, -0.021985182538628578, -0.03634246438741684, 0.03318806737661362, 0.021755771711468697, -0.02443222887814045, -0.04224978759884834, -0.07876430451869965, -0.04305272176861763, 0.03357041999697685, -0.055708542466163635, 0.01705285534262657, 0.05490560457110405, -0.013860223814845085, 0.05922617018222809, -0.045843884348869324, -0.01982489973306656, -0.022405769675970078, 0.03626599162817001, -0.024585168808698654, 0.018209466710686684, 0.0066576870158314705, 0.025426341220736504, -0.024088112637400627, -0.006079380866140127, 0.004232147708535194, 0.010897004045546055, 0.0322895422577858, -0.0671408399939537, -0.01293302234262228, -0.005171297583729029, 0.00996980257332325, 0.007465403527021408, -0.02682192251086235, -0.007718711160123348, 0.037871867418289185, -0.03450717777013779, -0.020627837628126144, -0.03077925555408001, 0.0013764635659754276, -0.004858247470110655, 0.07069670408964157, -0.015676390379667282, 0.05024092271924019, -0.02466163970530033, 0.06859377026557922, -0.025942515581846237, 0.0018735199701040983, -0.024164583534002304, -0.025846928358078003, -0.010046272538602352, -0.030033672228455544, 0.012521995231509209, 0.05605265870690346, -0.019519018009305, -0.019509460777044296, -0.09130541980266571, -0.03119984269142151, -0.04592035710811615, 0.03901892155408859, 0.02611457370221615, -0.0014111142372712493, 0.020742541179060936, -0.029020441696047783, -0.055058546364307404, -0.0454997681081295, 0.030224846675992012, 0.027051333338022232, 0.052535027265548706, 0.05096738785505295, 0.007455844432115555, 0.004148508422076702, -0.0018771045142784715, -0.014127870090305805, 0.02741456776857376, 0.058461468666791916, -0.02406899631023407, 0.029135147109627724, 0.029326321557164192, 0.05180856212973595, -0.0057113682851195335, -0.05807911604642868, 0.04561447352170944, -0.05150268226861954, 0.03479394316673279, 0.033493947237730026, -0.043970365077257156, 0.019394755363464355, -0.04010862112045288, 0.01879255287349224, -0.03276748210191727, 0.04825269803404808, 0.02058960124850273, -0.003254762850701809, -0.025846928358078003, -0.0407203808426857, 0.02173665538430214, 0.03827333450317383, 0.027089567855000496, -0.0884760245680809, -0.061634983867406845, -0.005171297583729029, -0.03414394333958626, 0.0007557406788691878, 0.026305750012397766, 0.0111646493896842, 0.10782298445701599, -0.02179400809109211, -0.05268796905875206, 0.001268927357159555, -0.0438174270093441, 0.0023048596922308207, 0.0300527885556221, -0.017932262271642685, -0.05567030608654022, -0.03267189487814903, 0.034946881234645844, 0.00036980511504225433, -0.03609393537044525, 0.012818317860364914, -0.06844083219766617, -0.05184679478406906, 0.020073428750038147, 0.03980274125933647, 0.00654298160225153, -0.019060198217630386, 0.02280723676085472, -0.024049878120422363, -0.029842495918273926, -0.006490408442914486, 0.08350545912981033, 0.01191023364663124, -0.005548868793994188, 0.016536680981516838, 0.01530359871685505, 0.02999543584883213, 0.0017910754540935159, -0.005548868793994188, 0.009453628212213516, -0.03508070483803749, 0.032423365861177444, 0.07417609542608261, 0.016804326325654984, 0.011116855777800083, -0.0379101037979126, -0.017980055883526802, -0.009372378699481487, -0.009272011928260326, 0.04645564779639244, -0.008349590003490448, -0.03255718946456909, -0.01553300954401493, 0.049667395651340485, 0.08128782361745834, -0.05154091492295265, -0.05215267837047577, -0.002633442636579275, 0.026382219046354294, -0.051158566027879715, -0.05077621340751648, 0.00024031358771026134, -0.015858007594943047, 0.03181160241365433, 0.009769068099558353, -0.03901892155408859, 0.0362277589738369, 0.006418717559427023, -0.04527035728096962, -0.003273880574852228, 0.022921942174434662, 0.039420388638973236, 0.030683668330311775, -0.013277138583362103, 0.037451282143592834, 0.014806542545557022, 0.05414090305566788, -0.0065764375030994415, -0.017827115952968597, 0.018515346571803093, -0.04186743497848511, -0.07937607169151306, 0.04175272956490517, 0.07146140187978745, -0.0044400510378181934, -0.055823247879743576, -0.039726268500089645, 0.04167626053094864, 0.02058960124850273, 0.048405636101961136, -0.005314678885042667, -0.06526731699705124, 0.018668288365006447, -0.02058960124850273, -0.035463057458400726, -0.00021537115389946848, -0.041523318737745285, -0.0766613781452179, 0.010849209502339363, -0.017167560756206512, -0.017530793324112892, -0.027529273182153702, 0.008841866627335548, 0.03552040830254555, -0.007627902552485466, -0.006772391963750124, 0.06228497996926308, -0.018333731219172478, 0.0138315474614501, -0.002340705133974552, -0.03854098170995712, 0.01060068141669035, 0.00914296880364418, -0.03477482497692108, 0.049667395651340485, 0.01721535436809063, 0.04959092661738396, 0.02238665148615837, 0.03957333043217659, 0.05498207360506058, -0.022730767726898193, -0.009893332608044147, 0.03922921419143677, -0.009228997863829136, 0.050623271614313126, 0.030320433899760246, 0.04844387248158455, -0.043205663561820984, 0.005677912384271622, 0.020264603197574615, 0.017874909564852715, -0.034870412200689316, -0.0047124759294092655, 0.03171601518988609, -0.022061653435230255, -0.023552821949124336, 0.0020515520591288805, 0.010447741486132145, -0.0322895422577858, -0.05394972860813141, -0.024508699774742126, -0.015628596767783165, -0.012999934144318104, 0.04282331094145775, -0.02951749786734581, 0.019901370629668236, 0.023935172706842422, 0.0023180029820650816, 0.04232625663280487, -0.049552690237760544, 0.03573070093989372, 0.06557320058345795, -0.005806955974549055, -0.04729681834578514, -0.020379308611154556, -0.008660250343382359, 0.02491016872227192, 0.0381968654692173, -0.08839955180883408, -0.04167626053094864, 0.008985248394310474, 0.04599682614207268, -0.04274684190750122, -0.05800264701247215, 0.07765548676252365, 0.034870412200689316, -0.007283786777406931, -0.010572005063295364, 0.008999587036669254, 0.006198865827172995, 0.037279222160577774, 0.04917033761739731, -0.014863895252346992, 0.02095283567905426, -0.05394972860813141, -0.04920857399702072, -0.030626315623521805, -0.03492776304483414, -0.00149355863686651, -0.018993286415934563, -0.023916054517030716, 0.0035702025052160025, -0.018295494839549065, -0.015265364199876785, -0.003959722816944122, 0.0693584755063057, -0.024642521515488625, 0.01802784949541092, -0.07539961487054825, 0.03186895698308945, -0.0006637374754063785, -0.035348352044820786, 0.023438116535544395, 0.004717255476862192, 0.05719970911741257, 0.05429384112358093, -0.022673415020108223, 0.0152366878464818, 0.018935933709144592, 0.023380763828754425, -0.02125871554017067, 0.044161539524793625, 0.025961633771657944, -0.016154330223798752, -0.0072168754413723946, -0.018046967685222626, -0.051464445888996124, 0.008191870525479317, 0.0665673092007637, -0.07364080101251602, -0.029957201331853867, -0.000012489884284150321, -0.0328630693256855, 0.045346830040216446, -0.020914599299430847, -0.03724098950624466, 0.00043552168062888086, -0.005821294151246548, 0.10048184543848038, 0.0064426143653690815, -0.016813885420560837, -0.003627555212005973, -0.03590276092290878, 0.005491516552865505, -0.037030693143606186, 0.0010723751038312912, -0.024585168808698654, 0.10537593811750412, 0.019557254388928413, -0.07467315346002579, -0.03077925555408001, -0.03162042796611786, 0.05329972878098488, 0.03485129401087761, -0.01766461692750454, -0.04366448521614075, 0.06369967758655548, -0.013286697678267956, -0.07861136645078659, -0.0584232322871685, -0.03500423580408096, -0.029058676213026047, -0.0429762527346611, 0.04075861722230911, -0.016555799171328545, 0.006179748103022575, -0.0339910052716732, 0.06274379789829254, -0.00685842102393508, 0.05035562813282013, -0.02491016872227192, 0.054637957364320755, 0.02389693818986416, 0.02299841307103634, -0.0008447567815892398, 0.005959896370768547, 0.012378613464534283, -0.003142447443678975, -0.005094827152788639, -0.09734656661748886, -0.0074510653503239155, 0.0189550518989563, -0.035883642733097076, 0.04611153155565262, -0.029307205229997635, -0.0036586211062967777, 0.014328603632748127, -0.02204253524541855, -0.03192630782723427, 0.013152875006198883, 0.03502335399389267, 0.019308725371956825, 0.05047033354640007, 0.02580869384109974, -0.01338228490203619, -0.022291064262390137, -0.03766157478094101, 0.036132171750068665, -0.053376201540231705, -0.02030283771455288, 0.033264536410570145, 0.04370272159576416, 0.05303208529949188, 0.0026501703541725874, 0.0789172500371933, -0.02108665741980076, 0.017874909564852715, -0.012340378947556019, 0.036667462438344955, 0.022138122469186783, 0.02053224854171276, 0.06817318499088287, -0.04832916706800461, 0.047679170966148376, 0.0008650691597722471, -0.02389693818986416, -0.009434510953724384, 0.0013525666436180472, -0.006241880357265472, -0.006045925430953503, 0.03626599162817001, -0.007063935045152903, -0.02550281211733818, -0.004308617673814297, -0.007666137535125017, 0.020914599299430847, -0.0015043122693896294, -0.07838195562362671, 0.021985182538628578, 0.003211748553439975, 0.005725706461817026, -0.043320368975400925, 0.029249852523207664, 0.029249852523207664, 0.029249852523207664, -0.05012621730566025, -0.05077621340751648, -0.03443070873618126, 0.09359952807426453, -0.00666246609762311, -0.007752166595309973, 0.019805781543254852, -0.0043683601543307304, -0.01665138639509678, 0.0014875844353809953, 0.01415654644370079, -0.003249983536079526, -0.02269253134727478, -0.0304733756929636, -0.004619278013706207, 0.026305750012397766, -0.004779387731105089, -0.016412416473031044, 0.039879210293293, -0.02143077366054058, -0.02072342485189438, -0.02030283771455288, -0.006342247128486633, 0.060793809592723846, -0.0021734265610575676, -0.0062179830856621265, -0.0024661640636622906, 0.052114441990852356, 0.06465555727481842, 0.0038115615025162697, -0.006614672485738993, 0.02078077755868435, 0.04874975234270096, -0.009496643207967281, -0.03508070483803749, -0.013391843996942043, 0.04125567525625229, 0.04993504285812378, -0.005305120255798101, -0.023724880069494247, 0.04473506659269333, -0.05895852670073509, 0.064043790102005, 0.001171547337435186, 0.005367252044379711, -0.02634398452937603, 0.024757226929068565, 0.005276443902403116, 0.05658794939517975, 0.05375855043530464, 0.04125567525625229, 0.004805674310773611, -0.0901583656668663, 0.0040624793618917465, 0.013802871108055115, -0.00047614649520255625, 0.025158695876598358, 0.012263908982276917, 0.04106449708342552, 0.03255718946456909, -0.027510154992341995, 0.013009493239223957, 0.056740887463092804, 0.054332077503204346, 0.043129194527864456, 0.079758420586586, -0.05329972878098488, -0.013544783927500248, -0.039726268500089645, 0.015619038604199886, 0.08878190070390701, 0.007431947626173496, -0.018782993778586388, 0.004279941786080599, -0.07788489758968353, -0.005740044638514519, -0.06874670833349228, 0.0012366665760055184, 0.0033646889496594667, 0.04267037287354469, 0.01777932234108448, -0.12479937076568604, 0.007274227682501078, -0.002834176877513528, -0.0006386456661857665, 0.03058808110654354, -0.06438791006803513, -0.020016076043248177, -0.04477330297231674, 0.02334252931177616, 0.018849903717637062, 0.007661358453333378, 0.0035224086605012417, 0.018974168226122856, -0.04106449708342552, 0.029804261401295662, -0.041638024151325226, 0.016001390293240547, 0.07180552184581757, 0.052955612540245056, 0.041102733463048935, -0.061826158314943314, 0.004659902770072222, -0.011126413941383362, -0.026745453476905823 ]
37,658
healpy.sphtfunc
alm2map
Computes a Healpix map given the alm. The alm are given as a complex array. You can specify lmax and mmax, or they will be computed from array size (assuming lmax==mmax). Parameters ---------- alms : complex, array or sequence of arrays A complex array or a sequence of complex arrays. Each array must have a size of the form: mmax * (2 * lmax + 1 - mmax) / 2 + lmax + 1 nside : int, scalar The nside of the output map. lmax : None or int, scalar, optional Explicitly define lmax (needed if mmax!=lmax) mmax : None or int, scalar, optional Explicitly define mmax (needed if mmax!=lmax) pixwin : bool, optional Smooth the alm using the pixel window functions. Default: False. fwhm : float, scalar, optional The fwhm of the Gaussian used to smooth the map (applied on alm) [in radians] sigma : float, scalar, optional The sigma of the Gaussian used to smooth the map (applied on alm) [in radians] pol : bool, optional If True, assumes input alms are TEB. Output will be TQU maps. (input must be 1 or 3 alms) If False, apply spin 0 harmonic transform to each alm. (input can be any number of alms) If there is only one input alm, it has no effect. Default: True. inplace : bool, optional If True, input alms may be modified by pixel window function and beam smoothing (if alm(s) are complex128 contiguous arrays). Otherwise, input alms are not modified. A copy is made if needed to apply beam smoothing or pixel window. Returns ------- maps : array or list of arrays A Healpix map in RING scheme at nside or a list of T,Q,U maps (if polarized input) Notes ----- Running map2alm then alm2map will not return exactly the same map if the discretized field you construct on the sphere is not band-limited (for example, if you have a map containing pixel-based noise rather than beam-smoothed noise). If you need a band-limited map, you have to start with random numbers in lm space and transform these via alm2map. With such an input, the accuracy of map2alm->alm2map should be quite good, depending on your choices of lmax, mmax and nside (for some typical values, see e.g., section 5.1 of https://arxiv.org/pdf/1010.2084).
def synalm(cls, lmax=None, mmax=None, new=False, verbose=True): """Generate a set of alm given cl. The cl are given as a float array. Corresponding alm are generated. If lmax is None, it is assumed lmax=cl.size-1 If mmax is None, it is assumed mmax=lmax. Parameters ---------- cls : float, array or tuple of arrays Either one cl (1D array) or a tuple of either 4 cl or of n*(n+1)/2 cl. Some of the cl may be None, implying no cross-correlation. See *new* parameter. lmax : int, scalar, optional The lmax (if None or <0, the largest size-1 of cls) mmax : int, scalar, optional The mmax (if None or <0, =lmax) new : bool, optional If True, use the new ordering of cl's, ie by diagonal (e.g. TT, EE, BB, TE, EB, TB or TT, EE, BB, TE if 4 cl as input). If False, use the old ordering, ie by row (e.g. TT, TE, TB, EE, EB, BB or TT, TE, EE, BB if 4 cl as input). Returns ------- alms : array or list of arrays the generated alm if one spectrum is given, or a list of n alms (with n(n+1)/2 the number of input cl, or n=3 if there are 4 input cl). Notes ----- We don't plan to change the default order anymore, that would break old code in a way difficult to debug. """ if not cb.is_seq(cls): raise TypeError("cls must be an array or a sequence of arrays") if not cb.is_seq_of_seq(cls, True): # Only one spectrum if lmax is None or lmax < 0: lmax = len(cls) - 1 if mmax is None or mmax < 0: mmax = lmax cls_list = [np.asarray(cls, dtype=np.float64)] szalm = Alm.getsize(lmax, mmax) alm = np.zeros(szalm, "D") alm.real = np.random.standard_normal(szalm) alm.imag = np.random.standard_normal(szalm) alms_list = [alm] sphtlib._synalm(cls_list, alms_list, lmax, mmax) return alm # From here, we interpret cls as a list of spectra cls_list = list(cls) maxsize = max([len(c) for c in cls if c is not None]) if lmax is None or lmax < 0: lmax = maxsize - 1 if mmax is None or mmax < 0: mmax = lmax Nspec = sphtlib._getn(len(cls_list)) if Nspec <= 0: if len(cls_list) == 4: if new: ## new input order: TT EE BB TE -> TT EE BB TE 0 0 cls_list = [cls[0], cls[1], cls[2], cls[3], None, None] else: ## old input order: TT TE EE BB -> TT TE 0 EE 0 BB cls_list = [cls[0], cls[1], None, cls[2], None, cls[3]] Nspec = 3 else: raise TypeError( "The sequence of arrays must have either 4 elements " "or n(n+1)/2 elements (some may be None)" ) szalm = Alm.getsize(lmax, mmax) alms_list = [] for i in range(Nspec): alm = np.zeros(szalm, "D") alm.real = np.random.standard_normal(szalm) alm.imag = np.random.standard_normal(szalm) alms_list.append(alm) if new: # new input order: input given by diagonal, should be given by row cls_list = new_to_old_spectra_order(cls_list) # ensure cls are float64 cls_list = [ (np.asarray(cl, dtype=np.float64) if cl is not None else None) for cl in cls_list ] sphtlib._synalm(cls_list, alms_list, lmax, mmax) return np.array(alms_list)
(alms, nside, lmax=None, mmax=None, pixwin=False, fwhm=0.0, sigma=None, pol=True, inplace=False, verbose=True)
[ 0.00004990191155229695, 0.02564927004277706, 0.06713781505823135, -0.032554078847169876, -0.012456512078642845, -0.012944026850163937, -0.04676166549324989, -0.044334039092063904, -0.02302265726029873, 0.07549521327018738, -0.062003977596759796, -0.002066965214908123, 0.031996916979551315, 0.01330220140516758, 0.005959624890238047, 0.038324665278196335, -0.03060401789844036, 0.006561557296663523, -0.015799473971128464, -0.0030071730725467205, 0.022724179551005363, 0.05297002196311951, -0.02751973830163479, 0.023818600922822952, 0.02857436239719391, 0.046443287283182144, 0.016406379640102386, -0.0021440722048282623, -0.05647217109799385, -0.03338981792330742, 0.023281339555978775, 0.03510109707713127, 0.026723794639110565, -0.00896431040018797, 0.02789781056344509, -0.06347647309303284, 0.026126837357878685, -0.0127052441239357, -0.09527440369129181, 0.03898131847381592, 0.06427241861820221, -0.048472944647073746, 0.07593298703432083, 0.015182617120444775, 0.00754653662443161, 0.04512998089194298, 0.018157456070184708, 0.05257204920053482, -0.10052762925624847, -0.01577957533299923, 0.015560690313577652, -0.09320495277643204, 0.011501380242407322, 0.005026878789067268, -0.02284357137978077, 0.07561460882425308, -0.00850664358586073, -0.016495924443006516, 0.04146864265203476, -0.03717054799199104, 0.02137107588350773, -0.021808844059705734, 0.04286154359579086, -0.023977790027856827, 0.0038752485997974873, -0.03022594377398491, -0.04962706193327904, 0.025291096419095993, 0.019928429275751114, 0.05734771117568016, -0.051179151982069016, 0.03448424115777016, 0.02582835778594017, -0.021987931802868843, 0.045527953654527664, 0.010093554854393005, -0.03444444388151169, -0.026902882382273674, 0.0045095160603523254, -0.02023685723543167, -0.004949771799147129, 0.049706656485795975, 0.019838884472846985, 0.03191732242703438, -0.04246357083320618, 0.02143077179789543, -0.0009650811553001404, -0.005059214308857918, -0.06518775224685669, -0.08699659258127213, -0.0001465965760871768, 0.015809422358870506, 0.015381603501737118, 0.03687207028269768, -0.06876949220895767, 0.029071826487779617, -0.04783618822693825, -0.04258296266198158, 0.055755823850631714, -0.004151341505348682, -0.012764940038323402, -0.0020545285660773516, 0.06490916758775711, 0.045249372720718384, -0.01577957533299923, -0.018008215352892876, -0.03257397562265396, 0.01002391055226326, -0.04266255721449852, 0.062003977596759796, 0.0064222668297588825, 0.08285769075155258, 0.00905882939696312, 0.026783490553498268, 0.004203575197607279, -0.03830476850271225, 0.011899351142346859, 0.043060529977083206, -0.037827201187610626, 0.006163585465401411, -0.007073945365846157, -0.002539556473493576, -0.02467424049973488, -0.024156877771019936, 0.05098016560077667, -0.014943834394216537, 0.023679310455918312, -0.023559920489788055, 0.050582192838191986, -0.02473393641412258, -0.02734065055847168, 0.019023044034838676, -0.03235509246587753, 0.05436292290687561, -0.007123691961169243, -0.026226330548524857, 0.003939919173717499, -0.04005584493279457, -0.039896655827760696, -0.05583541840314865, -0.014595609158277512, 0.06626227498054504, 0.054522112011909485, 0.010775081813335419, -0.042821746319532394, 0.023798702284693718, 0.03335002064704895, -0.02646511234343052, -0.033230628818273544, 0.055437445640563965, -0.025072211399674416, -0.04775659367442131, 0.05730791389942169, 0.05925797298550606, -0.01903299242258072, -0.0334097184240818, -0.03802618756890297, -0.013849412091076374, -0.019888631999492645, 0.011949097737669945, -0.06845112144947052, -0.04059310629963875, -0.0217889454215765, 0.013361897319555283, -0.02266448363661766, -0.021530264988541603, -0.023818600922822952, 0.0020458227954804897, -0.015023428946733475, 0.007690801750868559, -0.027718722820281982, -0.050900571048259735, -0.04059310629963875, -0.052412863820791245, -0.006865010596811771, -0.009824924170970917, -0.030026959255337715, -0.024515051394701004, 0.025808459147810936, 0.010576095432043076, -0.011023813858628273, 0.03219590336084366, 0.02427626959979534, -0.04246357083320618, -0.010864624753594398, 0.04389626905322075, -0.014346877112984657, -0.009864721447229385, -0.03448424115777016, -0.0004548691213130951, -0.007153539918363094, -0.0013506162213161588, -0.029927466064691544, 0.02143077179789543, 0.015202515758574009, -0.013033570721745491, -0.061128441244363785, 0.051218949258327484, 0.031181076541543007, 0.03601643070578575, -0.026664098724722862, 0.041906412690877914, 0.02495282143354416, -0.026365619152784348, 0.05074138194322586, -0.03804608806967735, 0.02509211003780365, -0.016943641006946564, -0.027042170986533165, 0.006556582637131214, 0.05161691829562187, 0.014207586646080017, -0.015292059630155563, -0.017331663519144058, 0.03120097517967224, -0.03655369207262993, 0.08429039269685745, 0.02509211003780365, 0.008969285525381565, -0.008372328244149685, -0.035936836153268814, -0.014874189160764217, -0.05766608938574791, 0.03609602525830269, -0.056909941136837006, 0.007009275257587433, 0.00951649621129036, 0.034245457500219345, -0.010287566110491753, -0.017192373052239418, -0.02990756742656231, -0.01596861146390438, 0.009974163956940174, -0.006143686827272177, -0.03504139930009842, 0.0639142394065857, 0.01180980820208788, 0.05460170656442642, -0.04111046716570854, 0.034842416644096375, -0.018724564462900162, -0.017560496926307678, -0.004191138781607151, 0.03651389479637146, -0.04234417900443077, 0.06001412123441696, 0.013192758895456791, 0.04477180540561676, -0.04775659367442131, 0.024972718209028244, -0.04321971908211708, -0.0170232355594635, 0.01990853063762188, 0.004544338211417198, 0.023420630022883415, 0.008387251757085323, -0.03384748473763466, -0.018495731055736542, 0.024893125519156456, -0.0905783399939537, 0.0005730169359594584, 0.011620771139860153, 0.042264584451913834, 0.06399383395910263, -0.0653071403503418, -0.0019376242998987436, 0.01881410740315914, 0.02220681682229042, -0.05050259828567505, 0.019848834723234177, -0.06880929321050644, 0.07111752778291702, -0.056273188441991806, -0.016724757850170135, 0.0013506162213161588, 0.06240195035934448, 0.0294101033359766, -0.05408434197306633, -0.002770877443253994, -0.0075415619648993015, 0.015361704863607883, -0.003442454617470503, 0.0024189213290810585, -0.0022746564354747534, -0.004875152371823788, -0.00019245658768340945, -0.015391552820801735, -0.015471146441996098, 0.020396046340465546, -0.021311379969120026, 0.05802426114678383, -0.016675010323524475, 0.027678925544023514, -0.04990564286708832, 0.11143205314874649, -0.04715963825583458, -0.05384555831551552, 0.0030245843809098005, 0.008869792334735394, -0.029987161979079247, -0.004208549857139587, -0.018545476719737053, 0.087155781686306, -0.01036716066300869, -0.027042170986533165, -0.07732588797807693, -0.04365748539566994, -0.027877911925315857, 0.056671157479286194, 0.005700943525880575, 0.00765100447461009, 0.06964503228664398, -0.017321715131402016, -0.038643043488264084, -0.016505872830748558, 0.05687014386057854, -0.014575710520148277, 0.016675010323524475, 0.06697862595319748, 0.06805314868688583, -0.027818216010928154, 0.01950060948729515, -0.026723794639110565, -0.013093266636133194, 0.05778547748923302, -0.05408434197306633, 0.019968226552009583, -0.016316836699843407, -0.02284357137978077, -0.016993388533592224, -0.035479169338941574, -0.0183564405888319, -0.00694957934319973, 0.02151036635041237, -0.006258103530853987, 0.02059503085911274, 0.03197702020406723, -0.04206560179591179, 0.04353809356689453, -0.05559663474559784, 0.02087361179292202, 0.0719134733080864, -0.03149945288896561, 0.044015660881996155, -0.018754413351416588, 0.013292252086102962, 0.017998266965150833, -0.0020545285660773516, -0.04843314737081528, -0.03730984032154083, 0.01729186624288559, -0.06252133846282959, -0.005581552162766457, 0.023460427299141884, 0.05400474742054939, 0.06088965758681297, -0.004815456457436085, -0.022147120907902718, -0.014157840050756931, -0.05969574302434921, 0.015789523720741272, 0.01678445376455784, -0.014854290522634983, 0.00944685097783804, -0.032872457057237625, -0.0015819371910765767, -0.020993003621697426, -0.05436292290687561, 0.026584504172205925, -0.04998523369431496, -0.002589302835986018, -0.04512998089194298, 0.014525963924825191, 0.023739006370306015, -0.007332627195864916, 0.06033249571919441, -0.0241369791328907, -0.0019450862891972065, -0.0012542324839159846, 0.02160985954105854, 0.027599330991506577, 0.02059503085911274, 0.04747801274061203, 0.014545862562954426, 0.04111046716570854, -0.009994062595069408, 0.02101290225982666, 0.03746902942657471, -0.03247448429465294, 0.03565825894474983, 0.05985493212938309, -0.024793632328510284, 0.00004698707925854251, -0.0686103105545044, -0.027141664177179337, 0.047358620911836624, -0.029569290578365326, 0.05495988205075264, -0.04178702086210251, -0.02018710970878601, 0.0015122921904549003, -0.021669555455446243, 0.0415482372045517, -0.012058540247380733, -0.048472944647073746, -0.053288400173187256, 0.059058986604213715, -0.05042300373315811, -0.06355606764554977, -0.011620771139860153, 0.013451441191136837, 0.048194363713264465, -0.018406188115477562, -0.0021627270616590977, 0.04075229540467262, 0.021808844059705734, -0.018426086753606796, -0.002606714144349098, 0.029668783769011497, 0.05651196837425232, 0.06049168482422829, 0.036076128482818604, 0.013849412091076374, 0.05022401735186577, 0.08811091631650925, -0.0035717952996492386, -0.03541947528719902, 0.0019886144436895847, -0.0667000412940979, -0.04445343092083931, 0.056949738413095474, 0.02958918921649456, -0.00746694253757596, -0.02903202921152115, -0.03929969668388367, -0.004111544229090214, -0.012456512078642845, 0.02073432132601738, -0.0028131618164479733, -0.04017523676156998, 0.016356633976101875, -0.0373496375977993, -0.042543165385723114, 0.018754413351416588, -0.020953206345438957, -0.07832081615924835, 0.012546055018901825, -0.021709352731704712, 0.00858126301318407, -0.016595415771007538, -0.0003870895889122039, 0.04747801274061203, -0.019052891060709953, 0.046085111796855927, 0.09662751108407974, -0.02702227234840393, 0.07247063517570496, -0.02958918921649456, -0.03673278167843819, -0.01889370195567608, -0.010615892708301544, -0.0196299497038126, 0.0416676290333271, 0.03730984032154083, 0.03981706127524376, 0.015441298484802246, 0.020147312432527542, -0.0012579633621498942, -0.04302073270082474, -0.04095127806067467, 0.036454200744628906, -0.030862698331475258, 0.027778418734669685, 0.014297130517661572, -0.0019139947835355997, -0.029748378321528435, 0.022545091807842255, -0.0035892066080123186, -0.05042300373315811, -0.0231221504509449, 0.05917837843298912, 0.016356633976101875, -0.01774953491985798, -0.030245842412114143, -0.009123499505221844, 0.037369534373283386, -0.0008456896757707, -0.04325951635837555, 0.010446755215525627, 0.005656171590089798, -0.012466461397707462, 0.02133127860724926, 0.005934751592576504, 0.06283971667289734, 0.0067804413847625256, 0.030265741050243378, 0.05850182846188545, -0.03981706127524376, 0.027400346472859383, 0.04469221457839012, 0.03804608806967735, -0.04079209268093109, -0.06904807686805725, -0.005860132165253162, 0.03567815572023392, -0.002912654774263501, -0.042145196348428726, -0.042543165385723114, -0.029469799250364304, 0.07704730331897736, -0.025529880076646805, -0.042781949043273926, 0.003539460012689233, -0.0006199651397764683, 0.03082290105521679, -0.01852557808160782, -0.019739393144845963, -0.033190831542015076, 0.034703124314546585, 0.0588202066719532, -0.0011273790150880814, 0.020296553149819374, -0.0865190327167511, -0.0066660246811807156, -0.028733551502227783, 0.01834649220108986, -0.02340073138475418, -0.03719044849276543, 0.04202580451965332, 0.010586044751107693, 0.018048012629151344, -0.0349419079720974, -0.008317606523633003, 0.08628024905920029, -0.0010751452064141631, 0.027499839663505554, -0.029370306059718132, -0.015699980780482292, 0.07083895057439804, -0.06248154491186142, -0.0003090498212259263, 0.0021179551258683205, 0.007670903112739325, 0.015292059630155563, 0.0028877814766019583, -0.003427530638873577, 0.008596186526119709, -0.02294306457042694, 0.0004769441147800535, 0.022445598617196083, -0.02119198814034462, -0.021908337250351906, 0.006004396826028824, 0.025529880076646805, 0.010586044751107693, -0.02073432132601738, 0.04115026444196701, -0.04779639095067978, -0.023679310455918312, 0.018048012629151344, -0.0330316461622715, 0.02008761838078499, -0.044930994510650635, -0.02817639149725437, 0.0008021615212783217, -0.016197444871068, 0.0791565552353859, 0.039160408079624176, 0.0036812375765293837, 0.00030220969347283244, -0.04107066988945007, 0.03689197078347206, -0.07079914957284927, 0.017361512407660484, -0.03924000263214111, 0.0613672249019146, 0.007840041071176529, -0.016157647594809532, -0.02206752635538578, -0.06928686052560806, 0.04437383636832237, 0.027778418734669685, -0.023957891389727592, -0.027042170986533165, 0.056909941136837006, -0.04055330902338028, -0.04799537733197212, -0.005108960438519716, -0.06829193234443665, -0.011372039094567299, -0.022505294531583786, 0.057228319346904755, -0.015789523720741272, 0.0025818408466875553, -0.03838436305522919, 0.02435586228966713, 0.023977790027856827, 0.001692623016424477, -0.009143398143351078, 0.04417484998703003, 0.0027484914753586054, 0.059655945748090744, -0.04234417900443077, 0.00408418383449316, 0.05651196837425232, -0.03145965561270714, 0.013272353447973728, -0.06650105863809586, -0.02775852009654045, 0.005909878760576248, -0.00905882939696312, 0.05492008477449417, 0.022405801340937614, -0.0313800610601902, 0.03263367339968681, -0.044334039092063904, -0.04469221457839012, 0.03655369207262993, 0.0667000412940979, -0.0037533699069172144, 0.04059310629963875, 0.01871461607515812, -0.018694717437028885, -0.023181846365332603, -0.04568714275956154, 0.01940111629664898, -0.04314012452960014, -0.011372039094567299, 0.03217600658535957, -0.04855253919959068, 0.026126837357878685, -0.0363348089158535, 0.06880929321050644, 0.004850279074162245, 0.013332049362361431, -0.047955580055713654, -0.0007244326989166439, 0.055079273879528046, 0.03331022337079048, 0.027002373710274696, -0.042543165385723114, 0.011411836370825768, 0.04005584493279457, -0.03500160574913025, 0.018694717437028885, -0.02344052866101265, -0.009735380299389362, 0.006148661486804485, 0.006680948659777641, 0.0009644593228586018, -0.002895243465900421, 0.004325454123318195, -0.04349829629063606, 0.03271326795220375, 0.007476891856640577, -0.06765517592430115, 0.02459464594721794, 0.005770588293671608, 0.028017202392220497, -0.012237627059221268, -0.004651293158531189, 0.020654726773500443, 0.020197059959173203, -0.05889980122447014, 0.01170036569237709, -0.0035991559270769358, 0.04055330902338028, 0.013322100043296814, 0.004114031791687012, 0.011073560453951359, -0.04930868372321129, 0.0010440537007525563, 0.0011360845528542995, -0.010033859871327877, -0.0054770843125879765, -0.02817639149725437, 0.013381795957684517, -0.021092494949698448, 0.057467103004455566, -0.025947749614715576, -0.018406188115477562, 0.02775852009654045, 0.0019935891032218933, -0.04747801274061203, -0.017500802874565125, 0.0270620696246624, 0.018336541950702667, -0.013391745276749134, -0.0043901242315769196, -0.05440272018313408, 0.015202515758574009, 0.033230628818273544, 0.016575517132878304, -0.01656556874513626, 0.03159894794225693, 0.06829193234443665, -0.014366775751113892, -0.013620578683912754, -0.01816740445792675, 0.018246999010443687, 0.04946787282824516, 0.006218306720256805, -0.061725396662950516, 0.022783875465393066, -0.02284357137978077, 0.044572822749614716, -0.002457474824041128, 0.0416676290333271, -0.03689197078347206, 0.002746004145592451, 0.016615314409136772, 0.06335708498954773, 0.019341420382261276, 0.04986584559082985, 0.020754219964146614, -0.11190962046384811, 0.05917837843298912, 0.03679247573018074, -0.019848834723234177, 0.026027344167232513, 0.0031091533601284027, 0.014605558477342129, 0.03279286250472069, -0.011491430923342705, 0.0061586108058691025, 0.0456075482070446, 0.01479459460824728, 0.04974645376205444, 0.03478271886706352, -0.07780345529317856, -0.007188362535089254, -0.001476226025260985, 0.007655979134142399, 0.056631360203027725, -0.0167048592120409, -0.013113165274262428, -0.038245074450969696, -0.04274215176701546, -0.019281724467873573, 0.012058540247380733, -0.051776107400655746, 0.0055467295460402966, 0.015033378265798092, 0.00006432060763472691, -0.0846087634563446, -0.023042555898427963, 0.013501186855137348, 0.01656556874513626, -0.002780826762318611, -0.04684126004576683, 0.01757044717669487, -0.04684126004576683, 0.0017883849795907736, 0.03693176805973053, 0.03508119657635689, -0.009601064957678318, 0.06088965758681297, -0.05830284208059311, 0.050582192838191986, -0.0706399604678154, -0.005576577503234148, -0.021112393587827682, 0.06562551856040955, 0.048154566437006, -0.04021503031253815, 0.004442358389496803, 0.003939919173717499, -0.03838436305522919 ]
37,659
healpy.sphtfunc
alm2map_der1
Computes a Healpix map and its first derivatives given the alm. The alm are given as a complex array. You can specify lmax and mmax, or they will be computed from array size (assuming lmax==mmax). Parameters ---------- alm : array, complex A complex array of alm. Size must be of the form mmax(lmax-mmax+1)/2+lmax nside : int The nside of the output map. lmax : None or int, optional Explicitly define lmax (needed if mmax!=lmax) mmax : None or int, optional Explicitly define mmax (needed if mmax!=lmax) Returns ------- m, d_theta, d_phi : tuple of arrays The maps correponding to alm, and its derivatives with respect to theta and phi. d_phi is already divided by sin(theta)
def alm2map_der1(alm, nside, lmax=None, mmax=None): """Computes a Healpix map and its first derivatives given the alm. The alm are given as a complex array. You can specify lmax and mmax, or they will be computed from array size (assuming lmax==mmax). Parameters ---------- alm : array, complex A complex array of alm. Size must be of the form mmax(lmax-mmax+1)/2+lmax nside : int The nside of the output map. lmax : None or int, optional Explicitly define lmax (needed if mmax!=lmax) mmax : None or int, optional Explicitly define mmax (needed if mmax!=lmax) Returns ------- m, d_theta, d_phi : tuple of arrays The maps correponding to alm, and its derivatives with respect to theta and phi. d_phi is already divided by sin(theta) """ check_max_nside(nside) if lmax is None: lmax = -1 if mmax is None: mmax = -1 return np.array(sphtlib._alm2map_der1(alm, nside, lmax=lmax, mmax=mmax))
(alm, nside, lmax=None, mmax=None)
[ 0.03192577883601189, 0.06315231323242188, 0.09369801729917526, -0.0035145955625921488, 0.0009827297180891037, -0.01388357300311327, 0.005267293192446232, -0.04261677339673042, -0.09561172127723694, 0.036636438220739365, 0.0005583560559898615, 0.032533012330532074, -0.03293783217668533, 0.07743150740861893, 0.027730343863368034, 0.017352165654301643, -0.06179064139723778, 0.023902930319309235, -0.008841692470014095, -0.004586455412209034, 0.028429582715034485, -0.04743783921003342, 0.030288085341453552, 0.00603553606197238, -0.04357362538576126, -0.07713709026575089, 0.013736364431679249, -0.0019930610433220863, -0.003602000419050455, -0.023958133533596992, 0.01155584305524826, 0.002002261346206069, 0.04062946140766144, 0.014325197786092758, 0.026773490011692047, -0.033011436462402344, 0.04022463783621788, -0.004505950957536697, -0.13476909697055817, 0.01782139204442501, 0.05980332940816879, -0.04280078411102295, 0.06388835608959198, 0.052442919462919235, -0.001469781855121255, 0.016938142478466034, -0.014131986536085606, -0.03779570385813713, -0.014886428602039814, 0.025559023022651672, -0.0563807375729084, -0.11290868371725082, 0.034152302891016006, 0.05170687660574913, 0.02289087511599064, 0.04817388206720352, 0.0053454977460205555, -0.014674817211925983, 0.03772209957242012, -0.022246837615966797, -0.0156592708081007, -0.06812059134244919, 0.03223859518766403, -0.06867261976003647, 0.018272217363119125, -0.01103141438215971, 0.003084471682086587, 0.02151079662144184, -0.04129189997911453, 0.03150255233049393, -0.01214467640966177, 0.05737439543008804, 0.01064499281346798, 0.03325065225362778, 0.040335044264793396, 0.06098099425435066, 0.07294166088104248, -0.028631994500756264, 0.03993022441864014, 0.02371891960501671, -0.06440358608961105, -0.02949684113264084, -0.01705775037407875, 0.020774755626916885, -0.06911424547433853, 0.03856854513287544, 0.056049518287181854, -0.04077666997909546, -0.027546333149075508, -0.05277413874864578, 0.002764753997325897, 0.0005166662740521133, 0.009494928643107414, 0.04960916191339493, -0.041107889264822006, -0.04320560395717621, -0.009522530250251293, 0.03709646314382553, 0.04626017436385155, -0.004082727245986462, 0.030932120978832245, -0.04946195334196091, 0.06878302991390228, 0.020296329632401466, 0.07176399230957031, -0.006173543632030487, 0.03049049712717533, -0.024050138890743256, -0.041659917682409286, 0.004770465660840273, -0.028926409780979156, 0.008404667489230633, -0.021731609478592873, -0.016800135374069214, 0.016514919698238373, 0.04125509783625603, 0.01859423518180847, -0.010194167494773865, -0.0010684094158932567, 0.03437311202287674, -0.0058745271526277065, -0.027877552434802055, -0.04467768594622612, -0.050492409616708755, 0.018143409863114357, -0.027583135291934013, 0.02601904794573784, -0.09112187474966049, -0.007107395678758621, -0.03161295875906944, 0.03238580375909805, 0.061422619968652725, -0.045340124517679214, 0.046812206506729126, -0.0233140978962183, -0.027380723506212234, 0.0015974389389157295, -0.05535028129816055, 0.04184392839670181, -0.04537692666053772, -0.039488598704338074, 0.04626017436385155, 0.064035564661026, 0.05781601741909981, -0.0008866993593983352, 0.00016374036204069853, 0.04758504778146744, 0.050970837473869324, 0.04545053094625473, -0.018005402758717537, -0.0030982724856585264, -0.044640883803367615, 0.019026659429073334, 0.008570277132093906, -0.019652293995022774, -0.050639618188142776, -0.00928791705518961, 0.053841397166252136, -0.04990357905626297, -0.019100263714790344, -0.011767455376684666, -0.058699268847703934, 0.013101529330015182, -0.021253183484077454, -0.027711942791938782, -0.08067008852958679, 0.0632995218038559, 0.0025209402665495872, 0.06720054149627686, 0.03801651671528816, -0.03700445964932442, -0.042064741253852844, -0.0688566341996193, -0.04913073405623436, 0.036507632583379745, 0.007788233458995819, -0.00356749864295125, -0.010948609560728073, -0.02351650968194008, -0.001062659197486937, 0.04224875196814537, 0.019817903637886047, -0.001171915209852159, 0.019026659429073334, -0.019192269071936607, 0.04545053094625473, 0.004793467000126839, 0.0018918552668765187, -0.0016066394746303558, 0.0035421971697360277, 0.00006573334394488484, 0.0006888883654028177, -0.025246204808354378, 0.00849207304418087, 0.008041247725486755, -0.029975268989801407, 0.0063437530770897865, 0.01802380383014679, 0.009467327035963535, 0.037630096077919006, -0.06558124721050262, 0.0007504167733713984, -0.024822982028126717, -0.006785377860069275, 0.011325830593705177, 0.013533953577280045, 0.020498741418123245, -0.0035951000172644854, 0.002511739730834961, 0.034060295671224594, 0.058772873133420944, -0.00013786392810288817, -0.0431688018143177, -0.009789344854652882, 0.021271584555506706, -0.04272717982530594, 0.016956543549895287, 0.03282742574810982, -0.010939409025013447, 0.026736687868833542, -0.09075385332107544, 0.012172278016805649, 0.028098363429307938, 0.047217030078172684, 0.00737421028316021, -0.02576143480837345, 0.02060914784669876, 0.014674817211925983, 0.0340970978140831, -0.004779666196554899, -0.004648558795452118, -0.017977800220251083, -0.005557109136134386, -0.06859901547431946, 0.015714474022388458, 0.052222106605768204, -0.014242392964661121, -0.03786930814385414, -0.03959900513291359, 0.0668325200676918, 0.004556553438305855, -0.016441315412521362, -0.05649114400148392, 0.022817270830273628, -0.038715753704309464, 0.06046576425433159, -0.02964404970407486, 0.02261485904455185, -0.01864023692905903, 0.020572345703840256, -0.01429759617894888, 0.023424504324793816, -0.0088784946128726, 0.06385155767202377, 0.0010448332177475095, -0.051670074462890625, -0.0037147067487239838, -0.02101396955549717, -0.020425137132406235, -0.028908008709549904, 0.018253816291689873, -0.053068555891513824, 0.020645949989557266, 0.008754286915063858, -0.006173543632030487, -0.00030821716063655913, 0.016800135374069214, 0.0229644775390625, 0.002872859826311469, 0.006463359575718641, 0.08221577852964401, 0.0016802435275167227, -0.03536676988005638, -0.051118046045303345, 0.029386436566710472, 0.05958251655101776, 0.09796705096960068, -0.05122845247387886, -0.00459335558116436, 0.021050771698355675, -0.011850259266793728, -0.057521600276231766, -0.042359158396720886, 0.03849494457244873, -0.07500257343053818, 0.0410710871219635, -0.007627224549651146, 0.013138331472873688, 0.05461423844099045, -0.007521418854594231, 0.04302159324288368, 0.0037837105337530375, -0.03882616013288498, -0.0037101064808666706, 0.031079329550266266, -0.052295710891485214, 0.01823541522026062, -0.030656106770038605, -0.014500007033348083, -0.03450192138552666, -0.035881996154785156, 0.005428302101790905, 0.05770561099052429, -0.013267138972878456, -0.007608823478221893, -0.03334265574812889, -0.0549822598695755, -0.0369124561548233, 0.015006035566329956, -0.026147855445742607, 0.02311168611049652, -0.004618657287210226, -0.07949242740869522, -0.03223859518766403, -0.053068555891513824, -0.029662450775504112, 0.015539664775133133, 0.022872474044561386, 0.054540637880563736, 0.02798795886337757, -0.027822349220514297, 0.06694292277097702, -0.00006828505138400942, -0.008648481220006943, 0.0877360850572586, 0.0037998114712536335, 0.06458759307861328, 0.01760057918727398, 0.07227922230958939, -0.0306193046271801, -0.06948226690292358, 0.020425137132406235, -0.0075536202639341354, -0.031557757407426834, -0.011749054305255413, 0.00017107202438637614, 0.012273482978343964, -0.05086043104529381, -0.02031473070383072, -0.040040627121925354, -0.020130719989538193, 0.0021805213764309883, 0.012015868909657001, 0.014361999928951263, -0.032109785825014114, 0.025375012308359146, -0.03356346860527992, -0.02324049361050129, -0.028834404423832893, -0.003151175333186984, -0.006095339078456163, -0.02638706937432289, -0.028098363429307938, 0.03284582868218422, 0.010083761066198349, 0.029202425852417946, 0.009540931321680546, -0.008607079274952412, -0.04857870563864708, 0.026847094297409058, 0.029607247561216354, -0.0326986201107502, -0.07757871598005295, -0.03488834202289581, -0.022633260115981102, -0.03567958623170853, -0.00027673415024764836, -0.011776655912399292, 0.045634541660547256, -0.01822621375322342, -0.005248892121016979, -0.009310917928814888, -0.017490172758698463, 0.030453694984316826, -0.03744608536362648, -0.020167522132396698, 0.017839793115854263, 0.06731094419956207, -0.04294798895716667, 0.07183759659528732, 0.011187822557985783, 0.0014548309845849872, -0.00807344913482666, 0.04085027426481247, 0.022817270830273628, -0.008413868024945259, 0.08221577852964401, -0.002755553461611271, -0.050639618188142776, -0.041586313396692276, 0.03682044893503189, 0.007268404588103294, 0.014665616676211357, 0.0019608591683208942, 0.003162676002830267, 0.037335678935050964, -0.027325520291924477, 0.03442831709980965, -0.08067008852958679, -0.006228746846318245, 0.018879450857639313, -0.010313774459064007, 0.05240611732006073, -0.040739867836236954, -0.04949875548481941, -0.07963963598012924, 0.04957235977053642, -0.02324049361050129, 0.01754537597298622, -0.010773799382150173, 0.03266181796789169, 0.03582679480314255, -0.012742709368467331, -0.028300775215029716, 0.047769058495759964, 0.0341155007481575, -0.03396829217672348, -0.030453694984316826, -0.020829958841204643, 0.01228268351405859, 0.03424430638551712, -0.03542197123169899, -0.03498034551739693, -0.006605967879295349, 0.01565007120370865, -0.06304191052913666, -0.07364089787006378, 0.00041028534178622067, -0.05649114400148392, 0.0340970978140831, 0.05685916543006897, -0.027251917868852615, 0.021878818050026894, -0.03291943296790123, -0.009149909019470215, 0.08803050220012665, 0.04184392839670181, 0.05535028129816055, 0.0288712065666914, -0.06782617419958115, -0.013000323437154293, 0.008795689791440964, -0.02546701766550541, -0.0156684722751379, -0.0013455748558044434, -0.043242406100034714, 0.03564278408885002, -0.026497475802898407, 0.034833140671253204, 0.0016135398764163256, 0.018686240538954735, 0.016395311802625656, 0.010626591742038727, -0.02094036526978016, 0.061422619968652725, -0.0334162600338459, -0.00523509131744504, 0.018428625538945198, -0.012724308297038078, 0.0849391296505928, -0.013193534687161446, -0.01523604802787304, 0.06848861277103424, 0.01380996871739626, 0.06558124721050262, 0.006835980340838432, 0.026736687868833542, 0.03360027074813843, -0.03501714766025543, -0.023001279681921005, 0.04622337222099304, 0.03383948281407356, 0.04677540436387062, 0.025724632665514946, 0.03194417804479599, -0.050271596759557724, -0.0023035781923681498, 0.04092387855052948, 0.01684613712131977, -0.04188073053956032, 0.015300451777875423, 0.006785377860069275, 0.03860534727573395, -0.04265357553958893, 0.0023047283757478, 0.0015341853722929955, -0.041107889264822006, -0.034005094319581985, -0.04368403181433678, 0.010810601525008678, -0.017030147835612297, 0.02576143480837345, -0.014536809176206589, 0.035605981945991516, 0.003974621184170246, 0.04743783921003342, 0.04990357905626297, -0.04821068421006203, 0.0347963385283947, 0.033931490033864975, -0.0033857885282486677, -0.0632995218038559, -0.025595825165510178, -0.017729386687278748, -0.03166816383600235, 0.03168656304478645, -0.025706231594085693, -0.001853903173469007, -0.009724941104650497, 0.08803050220012665, -0.01726016029715538, -0.051338858902454376, -0.0034432916436344385, 0.04964596405625343, 0.03321385011076927, 0.07054952532052994, 0.01698414608836174, -0.005524907726794481, -0.029000014066696167, 0.003772210096940398, 0.00984454806894064, 0.012439092621207237, -0.06226906552910805, -0.021345188841223717, -0.04725383222103119, 0.014389600604772568, 0.026810292154550552, -0.008188455365598202, 0.012715107761323452, -0.015456859953701496, -0.0247125755995512, 0.00824365857988596, -0.003068370744585991, 0.030324887484312057, -0.006610568147152662, -0.02086676098406315, -0.058699268847703934, -0.04655459150671959, -0.036507632583379745, -0.046738602221012115, 0.007622624281793833, -0.014794423244893551, -0.022099630907177925, -0.042690377682447433, 0.014058382250368595, -0.0529213473200798, 0.008064248599112034, -0.011703051626682281, 0.025209402665495872, -0.012319485656917095, -0.010203368030488491, -0.0024795380886644125, 0.0033443861175328493, -0.02761993743479252, -0.029901664704084396, 0.0605393685400486, 0.04692261293530464, -0.057116780430078506, -0.052590128034353256, 0.015926087275147438, -0.04935154691338539, 0.0271415114402771, 0.04121829569339752, 0.027307119220495224, -0.013543154112994671, 0.03464912995696068, 0.04850510135293007, 0.03945179656147957, -0.0542830228805542, -0.0076134237460792065, -0.06326272338628769, 0.019799502566456795, -0.027454327791929245, -0.045340124517679214, -0.033508263528347015, 0.06230586767196655, -0.0004844644572585821, -0.1037081703543663, 0.020369933918118477, -0.033710677176713943, 0.008892294950783253, 0.027031105011701584, -0.02393973246216774, 0.06201145052909851, 0.021326787769794464, 0.03647083044052124, -0.031281739473342896, 0.01996511220932007, -0.005810123402625322, -0.005745719652622938, -0.04552413523197174, -0.05211170017719269, 0.0180974081158638, 0.022302040830254555, -0.006049336865544319, 0.020369933918118477, -0.019100263714790344, 0.030159279704093933, -0.008676082827150822, 0.0292208269238472, 0.017931798473000526, -0.0009114257409237325, -0.03461232781410217, -0.027233516797423363, 0.019781101495027542, -0.027049506083130836, 0.055571094155311584, -0.0431688018143177, -0.03794291242957115, -0.04545053094625473, -0.0633363276720047, 0.034336309880018234, 0.04217514768242836, -0.0033489863853901625, -0.028908008709549904, -0.023001279681921005, 0.015576466917991638, 0.01259550079703331, 0.02476777881383896, 0.03452032059431076, -0.05936170369386673, 0.010525385849177837, -0.01318433415144682, -0.01996511220932007, 0.05781601741909981, -0.04059265926480293, 0.02121638134121895, -0.0046669598668813705, 0.04475129023194313, 0.02491498738527298, -0.035329967737197876, 0.006835980340838432, 0.0059711323119699955, -0.04029824212193489, 0.020130719989538193, 0.007079794071614742, -0.0046071563847362995, -0.021253183484077454, -0.028797602280974388, 0.05325256288051605, -0.05196449160575867, 0.01961549185216427, 0.02853998914361, -0.03567958623170853, 0.03591879829764366, 0.0487259142100811, 0.014766821637749672, 0.011224624700844288, -0.005653714761137962, -0.04740103706717491, -0.007544420193880796, 0.002470337552949786, -0.002244924893602729, 0.08677922934293747, 0.012034269981086254, -0.07157998532056808, -0.019670695066452026, -0.014500007033348083, -0.08177415281534195, -0.005083282943814993, 0.05700637400150299, -0.00807344913482666, -0.025485418736934662, -0.07838836312294006, 0.00577792152762413, 0.011160220950841904, 0.017149753868579865, 0.013662760145962238, -0.010396578349173069, 0.0007711179205216467, -0.005299495067447424, -0.0061551425606012344, 0.0341155007481575, -0.04059265926480293, 0.03779570385813713, -0.01419639028608799, 0.027730343863368034, -0.016606925055384636, -0.003503094892948866, 0.03834773600101471, -0.02206282876431942, 0.056969571858644485, 0.008717485703527927, 0.08155333995819092, -0.0281903687864542, 0.048468299210071564, 0.018005402758717537, -0.007498417515307665, -0.03801651671528816, 0.004519751761108637, 0.04467768594622612, -0.023130087181925774, 0.03937819227576256, -0.003256981261074543, 0.0515228696167469, 0.009366121143102646, -0.010148164816200733, -0.0037607094272971153, -0.03442831709980965, 0.017352165654301643, 0.036231618374586105, 0.02193402126431465, 0.00045456280349753797, 0.04070306569337845, -0.007328208070248365, 0.0368756540119648, 0.011749054305255413, 0.03229379653930664, -0.025853438302874565, 0.0007734180544503033, -0.02449176274240017, 0.04570814594626427, 0.041512709110975266, 0.02046193927526474, -0.0018090506782755256, -0.0591408908367157, -0.015824880450963974, 0.021069172769784927, 0.004257536958903074, 0.0040183234959840775, -0.008901495486497879, -0.03474113345146179, 0.029404837638139725, 0.009697339497506618, -0.04883631691336632, 0.024399757385253906, 0.01520844642072916, -0.028503187000751495, -0.05122845247387886, -0.01968909613788128, -0.050639618188142776, -0.031557757407426834, 0.016938142478466034, 0.10061679780483246, -0.025485418736934662, 0.0030085674952715635, 0.011233825236558914, 0.02581663802266121, -0.025485418736934662, -0.03188897669315338, 0.023902930319309235, 0.009094705805182457, 0.03626842051744461, 0.004830268677324057, -0.026552677154541016, 0.012908319011330605, -0.014730019494891167, -0.004013723228126764, -0.031704965978860855, 0.0009769793832674623, -0.008786489255726337, 0.025319809094071388, -0.032533012330532074, 0.05409901216626167, 0.004811868071556091, -0.009494928643107414, -0.014518408104777336, -0.024270951747894287, 0.034005094319581985, -0.030729711055755615, -0.04132870212197304, 0.059472110122442245, 0.02463897131383419, -0.03188897669315338, -0.05597591772675514, -0.017103752121329308, 0.003661803901195526, -0.03152095526456833 ]
37,660
healpy.sphtfunc
almxfl
Multiply alm by a function of l. The function is assumed to be zero where not defined. Parameters ---------- alm : array The alm to multiply fl : array The function (at l=0..fl.size-1) by which alm must be multiplied. mmax : None or int, optional The maximum m defining the alm layout. Default: lmax. inplace : bool, optional If True, modify the given alm, otherwise make a copy before multiplying. Returns ------- alm : array The modified alm, either a new array or a reference to input alm, if inplace is True.
def almxfl(alm, fl, mmax=None, inplace=False): """Multiply alm by a function of l. The function is assumed to be zero where not defined. Parameters ---------- alm : array The alm to multiply fl : array The function (at l=0..fl.size-1) by which alm must be multiplied. mmax : None or int, optional The maximum m defining the alm layout. Default: lmax. inplace : bool, optional If True, modify the given alm, otherwise make a copy before multiplying. Returns ------- alm : array The modified alm, either a new array or a reference to input alm, if inplace is True. """ # FIXME: Should handle multidimensional input almout = _sphtools.almxfl(alm, fl, mmax=mmax, inplace=inplace) return almout
(alm, fl, mmax=None, inplace=False)
[ -0.004548046737909317, 0.040817990899086, 0.0686761736869812, 0.051659706979990005, 0.024806711822748184, 0.000256206258200109, -0.0036146538332104683, -0.04832103103399277, -0.06214242801070213, 0.03884350508451462, -0.0273735411465168, -0.04756713658571243, 0.024106666445732117, 0.06562469899654388, 0.01184691023081541, 0.05941404774785042, -0.07438423484563828, -0.03519968315958977, 0.03448168933391571, 0.012376430444419384, 0.03618692606687546, 0.019996147602796555, 0.01791396364569664, 0.04128468409180641, 0.010662218555808067, -0.012932876124978065, 0.025488806888461113, 0.03067631646990776, 0.011748185381293297, -0.02473491244018078, 0.03286619856953621, 0.05205460265278816, 0.028971079736948013, -0.06375791132450104, -0.021198788657784462, -0.030730165541172028, 0.0102852713316679, -0.008979419246315956, -0.061316732317209244, -0.07276874780654907, 0.05104941129684448, -0.010051923803985119, 0.04674144461750984, 0.061962928622961044, -0.039238400757312775, 0.02771458961069584, 0.012977750971913338, 0.02338867262005806, 0.016854921355843544, 0.022850176319479942, -0.01394704356789589, -0.04117698594927788, 0.026422198861837387, 0.0035204170271754265, -0.009594202041625977, 0.03329699486494064, 0.0068837725557386875, -0.06630679219961166, 0.02058849297463894, -0.08773893117904663, -0.00609397841617465, -0.01940380223095417, 0.040817990899086, -0.04631064832210541, 0.027265843003988266, -0.01839861087501049, -0.023514321073889732, 0.04839283227920532, -0.023783568292856216, 0.02638629823923111, -0.08982111513614655, 0.0673837885260582, 0.0024411813355982304, -0.017303667962551117, 0.009755751118063927, 0.05959354713559151, 0.028594132512807846, -0.0032332190312445164, -0.04839283227920532, 0.012322581373155117, 0.011416113004088402, -0.026637597009539604, -0.016576698049902916, 0.0683530792593956, -0.03432013839483261, -0.010653244331479073, 0.023981017991900444, -0.033279046416282654, 0.014431689865887165, -0.04067439213395119, 0.01409961748868227, 0.005609332118183374, -0.020193595439195633, 0.005524070467799902, -0.056829266250133514, -0.03403294086456299, -0.02837873436510563, 0.03489453345537186, 0.03645617142319679, 0.03909480199217796, -0.006273477338254452, 0.02390921860933304, 0.02191678248345852, 0.006233090069144964, 0.07424063235521317, -0.019834598526358604, -0.004532340448349714, -0.050869911909103394, 0.027786388993263245, 0.04135648533701897, -0.011263539083302021, -0.026422198861837387, -0.012852102518081665, 0.0136867705732584, -0.018228085711598396, 0.06591189652681351, -0.010599394328892231, -0.04264887422323227, 0.03751521557569504, 0.0664144977927208, 0.023801518604159355, -0.05984484404325485, -0.00260946131311357, -0.06016794219613075, 0.06519390642642975, -0.020157696679234505, 0.05011601746082306, -0.07653822004795074, 0.05406498908996582, -0.03555867820978165, -0.008431948721408844, 0.08343096822500229, -0.029312126338481903, 0.044372063130140305, -0.03220205381512642, -0.008548622019588947, 0.018955055624246597, -0.009809600189328194, -0.0395255982875824, -0.018470410257577896, -0.07998459041118622, 0.09010831266641617, 0.05122891068458557, 0.081635981798172, -0.013363673351705074, 0.005178535357117653, 0.016379250213503838, 0.0343380868434906, 0.0032399503979831934, 0.021862933412194252, -0.0038771703839302063, -0.022257830947637558, 0.01890120655298233, 0.03003012202680111, -0.009037756361067295, 0.039381999522447586, -0.01317519973963499, -0.019673049449920654, 0.03220205381512642, -0.01195460930466652, -0.03001217171549797, 0.0017489898018538952, -0.013794469647109509, 0.0027867162134498358, -0.022347580641508102, -0.07912299782037735, 0.03712031617760658, -0.013938069343566895, 0.006811973173171282, 0.043869465589523315, 0.04035129398107529, -0.020337196066975594, 0.026440149173140526, -0.033099547028541565, -0.02274247631430626, 0.015068910084664822, -0.040064096450805664, 0.01095839124172926, 0.006708761211484671, -0.013749595731496811, -0.005533045157790184, 0.07847680151462555, -0.00510224886238575, -0.06817357987165451, -0.014404765330255032, 0.04512595757842064, -0.08271297067403793, 0.03365599364042282, -0.02620680071413517, 0.004233924206346273, -0.02340662106871605, -0.04257707670331001, 0.027122244238853455, -0.0822821706533432, -0.11028396338224411, 0.015212508849799633, -0.03769471123814583, 0.011299438774585724, 0.06989676505327225, 0.012807227671146393, -0.019206354394555092, 0.016540799289941788, 0.01102121639996767, -0.00037302059354260564, -0.027660738676786423, -0.02536315657198429, -0.007462655659765005, 0.020803891122341156, -0.08594394475221634, 0.02256297878921032, 0.0639733150601387, 0.025758054107427597, -0.050510916858911514, 0.06418871134519577, -0.011425088159739971, 0.0023200197611004114, -0.009105068631470203, 0.051839206367731094, 0.030137820169329643, 0.013893194496631622, -0.06081413850188255, -0.03453553840517998, -0.014458615332841873, 0.010051923803985119, 0.050977613776922226, 0.006529262755066156, 0.04864412918686867, 0.043223269283771515, 0.025632405653595924, 0.012062308378517628, -0.014754788018763065, -0.01757291704416275, 0.006578624714165926, -0.0242143664509058, -0.006969034671783447, -0.018506309017539024, 0.029312126338481903, 0.002290851203724742, -0.04045899212360382, 0.03686901926994324, 0.019996147602796555, -0.02950957603752613, 0.05485478416085243, 0.026781195774674416, -0.012717477977275848, 0.08522595465183258, -0.039561498910188675, 0.04839283227920532, -0.010599394328892231, 0.032076407223939896, -0.06856847554445267, 0.052521299570798874, -0.0102852713316679, 0.047208141535520554, 0.037084419280290604, 0.022293729707598686, -0.005434321239590645, 0.0000058854166127275676, -0.015634331852197647, -0.03613307327032089, 0.059808943420648575, -0.0344996377825737, 0.03234565258026123, 0.02487851120531559, -0.04279247298836708, -0.016334375366568565, 0.0003780690021812916, -0.011012241244316101, 0.04128468409180641, 0.018371684476733208, 0.10461180657148361, 0.01369574572890997, 0.03164561092853546, -0.036079224199056625, 0.018210137262940407, 0.023998966440558434, 0.0464901477098465, 0.004491953179240227, 0.002894415520131588, 0.002213442465290427, 0.02489645965397358, -0.06476310640573502, -0.061460331082344055, 0.05478298291563988, -0.05255720019340515, 0.046202946454286575, -0.034409888088703156, 0.02520160749554634, -0.004972112365067005, -0.046705543994903564, 0.05661386996507645, 0.007938327267765999, 0.02071414142847061, -0.004049937706440687, 0.03146611154079437, -0.0056317695416510105, -0.02403486706316471, 0.000665827770717442, 0.0336918942630291, -0.013641895726323128, -0.027606889605522156, -0.009190330281853676, 0.06088593602180481, -0.03516378253698349, 0.012232831679284573, -0.05334699526429176, -0.051013510674238205, -0.015670230612158775, -0.04160778224468231, 0.05621897056698799, 0.029617274180054665, -0.028486432507634163, -0.08450795710086823, -0.10454000532627106, -0.024609262123703957, 0.020606443285942078, 0.006964547093957663, 0.027481241151690483, 0.017213918268680573, -0.03783831372857094, 0.032920047640800476, -0.009405728429555893, -0.01974484883248806, -0.00506634870544076, 0.009131993167102337, -0.029276227578520775, 0.05453168600797653, -0.0020675999112427235, -0.009513427503407001, -0.033727794885635376, -0.03765881434082985, 0.008418485522270203, -0.057798560708761215, 0.021001340821385384, -0.030119869858026505, -0.006403613835573196, 0.002139399293810129, -0.054962482303380966, 0.020193595439195633, -0.027768438681960106, -0.033763691782951355, 0.05471118539571762, -0.045879852026700974, 0.03866400569677353, -0.025111859664320946, 0.05104941129684448, -0.0018881012219935656, 0.021360337734222412, -0.0001356056018266827, -0.025919603183865547, 0.03916660323739052, -0.08529774844646454, -0.01922430284321308, -0.057331863790750504, 0.00839156098663807, 0.027804337441921234, -0.025596505030989647, -0.03948969766497612, -0.0276966392993927, 0.008485797792673111, 0.015311233699321747, -0.05334699526429176, -0.05589587613940239, 0.006533750332891941, 0.012645678594708443, -0.006708761211484671, 0.017904989421367645, -0.009387778118252754, -0.002800178714096546, -0.008427460677921772, 0.01658567413687706, -0.022598877549171448, 0.0004097617347724736, 0.018524259328842163, -0.05453168600797653, 0.037263914942741394, 0.004972112365067005, 0.05140841007232666, -0.07215844839811325, 0.06702478975057602, 0.015194559469819069, -0.0276966392993927, 0.03555867820978165, -0.016029227524995804, 0.03087376430630684, 0.026422198861837387, 0.000029852164516341873, -0.030909664928913116, -0.04196678102016449, 0.02719404362142086, 0.07775881141424179, -0.015472781844437122, 0.01664849743247032, 0.008790945634245872, -0.028594132512807846, -0.01261875405907631, -0.025596505030989647, -0.00979165080934763, -0.046167049556970596, -0.02952752448618412, 0.014494515024125576, 0.061460331082344055, -0.04659784585237503, -0.06838897615671158, -0.05489068105816841, 0.0404948927462101, -0.01805756241083145, 0.032740551978349686, -0.049039024859666824, 0.06329122185707092, 0.06713248789310455, 0.038556307554244995, -0.03762291371822357, -0.04325916990637779, 0.04595164954662323, 0.010599394328892231, -0.009908325038850307, -0.046167049556970596, -0.04225397855043411, 0.02238347940146923, 0.064799003303051, -0.030730165541172028, -0.007974226959049702, 0.00666837440803647, -0.002858515828847885, -0.06454771012067795, -0.03536123037338257, -0.015993328765034676, -0.04796203598380089, -0.00022759866260457784, 0.04358226805925369, -0.013803444802761078, 0.04990062117576599, 0.044874656945466995, 0.0008750558481551707, 0.025758054107427597, -0.0068164607509970665, 0.03299184888601303, -0.03300979733467102, -0.0487518273293972, 0.05690106749534607, -0.03633052483201027, -0.00011842702951980755, 0.018210137262940407, -0.04225397855043411, -0.02505800873041153, 0.013902168720960617, 0.008813383057713509, -0.014449640177190304, 0.04512595757842064, 0.025488806888461113, 0.041535984724760056, -0.015508681535720825, 0.03555867820978165, 0.043043773621320724, -0.04674144461750984, -0.014467589557170868, -0.04225397855043411, 0.007947302423417568, 0.07154815644025803, -0.01566125638782978, 0.008270399644970894, 0.06885567307472229, -0.027463290840387344, 0.020498743280768394, -0.005663182120770216, 0.058624252676963806, 0.0015459320275112987, -0.028665931895375252, -0.05593177303671837, 0.04480285942554474, -0.002012628363445401, 0.03484068438410759, 0.0033655993174761534, 0.0655888020992279, -0.02258092723786831, -0.015876654535531998, 0.02004999667406082, 0.053670089691877365, -0.0468132421374321, 0.022293729707598686, 0.01385729480534792, 0.036240775138139725, -0.019798699766397476, 0.00609397841617465, 0.018973005935549736, 0.014691962860524654, -0.015248408541083336, -0.013740620575845242, 0.021773183718323708, -0.01908070407807827, 0.021432137116789818, 0.026332449167966843, 0.005775368306785822, -0.001568369334563613, -0.040746189653873444, 0.025596505030989647, 0.01817423664033413, 0.037730611860752106, 0.04806973412632942, -0.02504006028175354, -0.019708950072526932, -0.060993634164333344, 0.028324885293841362, 0.02286812663078308, 0.03819730877876282, -0.006542725022882223, -0.050008319318294525, -0.02204243279993534, 0.02521955780684948, -0.06519390642642975, -0.02407076768577099, -0.013058525510132313, 0.019278153777122498, -0.01358804665505886, 0.02606320194900036, 0.012977750971913338, -0.035738177597522736, 0.06049104034900665, -0.03755111247301102, 0.028576182201504707, -0.0010741871083155274, -0.07459963113069534, -0.0911853089928627, -0.029778823256492615, -0.02141418680548668, 0.007049808744341135, 0.009235205128788948, -0.006264502182602882, 0.022975824773311615, -0.0022347578778862953, -0.003322968492284417, 0.005025961901992559, -0.00016701787535566837, -0.052485398948192596, 0.020444894209504128, -0.08429256081581116, -0.04839283227920532, -0.03898710384964943, -0.03618692606687546, -0.02055259421467781, 0.012161032296717167, -0.025614455342292786, 0.0038637081161141396, -0.04997241869568825, -0.02805563621222973, -0.02536315657198429, 0.007013909053057432, 0.0333687961101532, -0.00476568890735507, -0.03762291371822357, -0.022347580641508102, -0.01369574572890997, 0.02855823189020157, -0.005371496547013521, 0.011425088159739971, 0.03866400569677353, -0.0035136856604367495, -0.04631064832210541, -0.03469708561897278, -0.03636642172932625, 0.029778823256492615, 0.040064096450805664, -0.01718699373304844, -0.0022100768983364105, -0.054495785385370255, 0.043187372386455536, -0.012394380755722523, 0.027301741763949394, 0.01184691023081541, -0.0008369123679585755, -0.006026666611433029, -0.032776448875665665, -0.04498235881328583, -0.05510608106851578, 0.004653502255678177, 0.005052886437624693, -0.08501055091619492, 0.027086343616247177, -0.010509644635021687, 0.008265912532806396, 0.018703756853938103, -0.016738247126340866, 0.00792037695646286, 0.04182318225502968, -0.007610742002725601, -0.025596505030989647, 0.029653174802660942, -0.07021986693143845, 0.0013159493682906032, -0.046526044607162476, 0.021952683106064796, 0.014557339251041412, -0.009764725342392921, -0.033727794885635376, -0.005636257119476795, -0.02821718528866768, 0.03570227697491646, 0.03570227697491646, 0.047136340290308, 0.0121071832254529, -0.006372201722115278, -0.05801395699381828, -0.041392385959625244, -0.01425219140946865, -0.005061861593276262, -0.023496370762586594, -0.039381999522447586, -0.023783568292856216, -0.01906275562942028, -0.03902300447225571, 0.048177432268857956, 0.014081668108701706, 0.0200858972966671, -0.007489580661058426, -0.0268888957798481, 0.002856272039934993, 0.04760303720831871, 0.058480653911828995, 0.01574202999472618, -0.06347071379423141, 0.016271552070975304, -0.046382445842027664, -0.04067439213395119, 0.05338289216160774, -0.02635039947926998, -0.003711134195327759, -0.03266875073313713, 0.024340014904737473, 0.05288029834628105, -0.02600935287773609, 0.05273669958114624, 0.010500670410692692, 0.0019599006045609713, 0.01839861087501049, -0.031125063076615334, -0.022527078166604042, -0.011164815165102482, -0.012681578285992146, -0.020498743280768394, -0.06016794219613075, 0.008454385213553905, 0.03480478376150131, -0.12227446585893631, 0.07108145952224731, 0.021827034652233124, -0.019708950072526932, -0.007633179426193237, 0.03286619856953621, -0.024914409965276718, -0.029778823256492615, -0.033261097967624664, -0.023675870150327682, 0.0712609589099884, 0.021270588040351868, -0.05323929339647293, 0.011380213312804699, 0.05406498908996582, -0.01029424648731947, -0.023657919839024544, -0.05801395699381828, -0.037730611860752106, -0.02888133004307747, -0.00419129291549325, 0.00730559416115284, -0.02337072230875492, 0.03751521557569504, -0.006408101413398981, -0.019619200378656387, -0.013938069343566895, -0.008710171096026897, 0.016801072284579277, 0.03134046122431755, 0.02457336336374283, 0.022275781258940697, -0.02222193032503128, 0.0016042690258473158, 0.020301295444369316, 0.02654784731566906, 0.028396684676408768, -0.015526631847023964, 0.0009889253415167332, 0.00036993547109887004, 0.06329122185707092, -0.02886337973177433, 0.035738177597522736, -0.009028781205415726, 0.05542917922139168, -0.042218077927827835, 0.022024482488632202, 0.02125263772904873, -0.005183022934943438, 0.04031539335846901, -0.010536570101976395, -0.009280079044401646, 0.004738763906061649, -0.019511502236127853, 0.030748115852475166, 0.01760881580412388, 0.013345723040401936, 0.049864720553159714, 0.08867232501506805, -0.0023693819530308247, -0.00839156098663807, -0.015607406385242939, 0.016289500519633293, -0.009585226885974407, 0.01640617474913597, -0.0936264842748642, 0.009486502967774868, -0.0013069744454696774, 0.04724404215812683, 0.02487851120531559, 0.037228018045425415, 0.0336918942630291, -0.04458745941519737, 0.018631957471370697, -0.03945380076766014, -0.017303667962551117, 0.04677734524011612, 0.02171933464705944, -0.013417522422969341, 0.018524259328842163, -0.022473229095339775, -0.016630548983812332, -0.03884350508451462, -0.01369574572890997, 0.03999229520559311, -0.022652728483080864, -0.019834598526358604, 0.04060259088873863, 0.041033387184143066, 0.0500442199409008, 0.022652728483080864, 0.0328841507434845, 0.006749148480594158, -0.03198665753006935, 0.0012542466865852475, -0.05883965268731117, -0.04150008410215378, 0.04300787299871445, 0.018030637875199318, 0.031143013387918472, -0.004945187363773584, -0.05022371932864189, 0.016271552070975304, -0.02920442819595337, -0.012555929832160473, -0.029581375420093536, 0.029958322644233704, -0.00730559416115284, -0.017940888181328773, -0.02934802696108818, 0.02423231489956379, 0.05428038537502289, 0.015526631847023964, 0.06472720950841904, -0.03826911002397537, 0.01128148939460516, -0.038053710013628006, -0.03414063900709152, 0.024322064593434334, 0.06067053973674774, 0.011084040626883507, -0.039884597063064575, -0.03270465135574341, -0.009028781205415726, -0.0036662595812231302 ]
37,661
healpy.sphtfunc
anafast
Computes the power spectrum of a Healpix map, or the cross-spectrum between two maps if *map2* is given. No removal of monopole or dipole is performed. The input maps must be in ring-ordering. Spherical harmonics transforms in HEALPix are always on the full sky, if the map is masked, those pixels are set to 0. It is recommended to remove monopole from the map before running `anafast` to reduce boundary effects. For recommendations about how to set `lmax`, `iter`, and weights, see the `Anafast documentation <https://healpix.sourceforge.io/html/fac_anafast.htm>`_ Parameters ---------- map1 : float, array-like shape (Npix,) or (3, Npix) Either an array representing a map, or a sequence of 3 arrays representing I, Q, U maps. Must be in ring ordering. map2 : float, array-like shape (Npix,) or (3, Npix) Either an array representing a map, or a sequence of 3 arrays representing I, Q, U maps. Must be in ring ordering. nspec : None or int, optional The number of spectra to return. If None, returns all, otherwise returns cls[:nspec] lmax : int, scalar, optional Maximum l of the power spectrum (default: 3*nside-1) mmax : int, scalar, optional Maximum m of the alm (default: lmax) iter : int, scalar, optional Number of iteration (default: 3) alm : bool, scalar, optional If True, returns both cl and alm, otherwise only cl is returned pol : bool, optional If True, assumes input maps are TQU. Output will be TEB cl's and correlations (input must be 1 or 3 maps). If False, maps are assumed to be described by spin 0 spherical harmonics. (input can be any number of maps) If there is only one input map, it has no effect. Default: True. datapath : None or str, optional If given, the directory where to find the weights data. See the docstring of `map2alm` for details on how to set it up gal_cut : float [degrees] pixels at latitude in [-gal_cut;+gal_cut] are not taken into account use_pixel_weights: bool, optional If True, use pixel by pixel weighting, healpy will automatically download the weights, if needed See the map2alm docs for details about weighting Returns ------- res : array or sequence of arrays If *alm* is False, returns cl or a list of cl's (TT, EE, BB, TE, EB, TB for polarized input map) Otherwise, returns a tuple (cl, alm), where cl is as above and alm is the spherical harmonic transform or a list of almT, almE, almB for polarized input
def anafast( map1, map2=None, nspec=None, lmax=None, mmax=None, iter=3, alm=False, pol=True, use_weights=False, datapath=None, gal_cut=0, use_pixel_weights=False, ): """Computes the power spectrum of a Healpix map, or the cross-spectrum between two maps if *map2* is given. No removal of monopole or dipole is performed. The input maps must be in ring-ordering. Spherical harmonics transforms in HEALPix are always on the full sky, if the map is masked, those pixels are set to 0. It is recommended to remove monopole from the map before running `anafast` to reduce boundary effects. For recommendations about how to set `lmax`, `iter`, and weights, see the `Anafast documentation <https://healpix.sourceforge.io/html/fac_anafast.htm>`_ Parameters ---------- map1 : float, array-like shape (Npix,) or (3, Npix) Either an array representing a map, or a sequence of 3 arrays representing I, Q, U maps. Must be in ring ordering. map2 : float, array-like shape (Npix,) or (3, Npix) Either an array representing a map, or a sequence of 3 arrays representing I, Q, U maps. Must be in ring ordering. nspec : None or int, optional The number of spectra to return. If None, returns all, otherwise returns cls[:nspec] lmax : int, scalar, optional Maximum l of the power spectrum (default: 3*nside-1) mmax : int, scalar, optional Maximum m of the alm (default: lmax) iter : int, scalar, optional Number of iteration (default: 3) alm : bool, scalar, optional If True, returns both cl and alm, otherwise only cl is returned pol : bool, optional If True, assumes input maps are TQU. Output will be TEB cl's and correlations (input must be 1 or 3 maps). If False, maps are assumed to be described by spin 0 spherical harmonics. (input can be any number of maps) If there is only one input map, it has no effect. Default: True. datapath : None or str, optional If given, the directory where to find the weights data. See the docstring of `map2alm` for details on how to set it up gal_cut : float [degrees] pixels at latitude in [-gal_cut;+gal_cut] are not taken into account use_pixel_weights: bool, optional If True, use pixel by pixel weighting, healpy will automatically download the weights, if needed See the map2alm docs for details about weighting Returns ------- res : array or sequence of arrays If *alm* is False, returns cl or a list of cl's (TT, EE, BB, TE, EB, TB for polarized input map) Otherwise, returns a tuple (cl, alm), where cl is as above and alm is the spherical harmonic transform or a list of almT, almE, almB for polarized input """ map1 = ma_to_array(map1) alms1 = map2alm( map1, lmax=lmax, mmax=mmax, pol=pol, iter=iter, use_weights=use_weights, datapath=datapath, gal_cut=gal_cut, use_pixel_weights=use_pixel_weights, ) if map2 is not None: map2 = ma_to_array(map2) alms2 = map2alm( map2, lmax=lmax, mmax=mmax, pol=pol, iter=iter, use_weights=use_weights, datapath=datapath, gal_cut=gal_cut, use_pixel_weights=use_pixel_weights, ) else: alms2 = None cls = alm2cl(alms1, alms2=alms2, lmax=lmax, mmax=mmax, lmax_out=lmax, nspec=nspec) if alm: if map2 is not None: return (cls, alms1, alms2) else: return (cls, alms1) else: return cls
(map1, map2=None, nspec=None, lmax=None, mmax=None, iter=3, alm=False, pol=True, use_weights=False, datapath=None, gal_cut=0, use_pixel_weights=False)
[ 0.012784280814230442, 0.0030520069412887096, 0.07060167193412781, -0.012410784140229225, -0.012229370884597301, -0.01828002743422985, -0.04274944216012955, -0.055064182728528976, -0.03805404528975487, 0.045459963381290436, -0.016284484416246414, 0.04520385339856148, 0.01901635155081749, 0.0741872489452362, 0.03367879241704941, 0.025675276294350624, -0.06573553383350372, 0.008606445975601673, 0.005629139021039009, -0.004511314444243908, 0.008750509470701218, -0.018429426476359367, 0.014854523353278637, 0.019005680456757545, -0.029837103560566902, 0.00550641817972064, -0.01609240099787712, 0.00367628107778728, -0.04038039967417717, -0.015526819042861462, 0.019347162917256355, -0.018183985725045204, 0.03199271857738495, 0.003959071822464466, 0.01709550805389881, -0.044435515999794006, 0.04362449049949646, -0.017586389556527138, -0.12173879891633987, 0.007491290103644133, 0.04998461902141571, -0.046014875173568726, 0.0338708758354187, 0.029602333903312683, 0.01632717065513134, 0.03824612870812416, -0.06283292919397354, -0.021171964704990387, -0.05425316095352173, 0.011791844852268696, -0.04315495118498802, -0.086736761033535, -0.011450362391769886, 0.04921628162264824, -0.019219107925891876, 0.06872351467609406, -0.027596119791269302, -0.002567794406786561, 0.016871409490704536, -0.07363233715295792, -0.0003478194121271372, -0.044905055314302444, 0.01795988716185093, -0.018429426476359367, 0.004284548107534647, -0.01475848164409399, -0.04309092462062836, 0.0053543513640761375, 0.026336899027228355, 0.048704054206609726, -0.014278270304203033, 0.058863185346126556, 0.008979943580925465, -0.026486298069357872, 0.028343113139271736, 0.02637958526611328, 0.053057968616485596, -0.004228523466736078, 0.024885594844818115, -0.03743510693311691, -0.05570446327328682, 0.010548632591962814, 0.006296098232269287, -0.024992309510707855, -0.0297517329454422, 0.02808700129389763, 0.011503718793392181, 0.014107529073953629, -0.02075578272342682, -0.09399327635765076, -0.005367690697312355, 0.005922601092606783, 0.043667178601026535, 0.05152129381895065, -0.025461848825216293, 0.024864252656698227, -0.0595034658908844, -0.022431183606386185, 0.02078779600560665, -0.006936379708349705, -0.004017764236778021, -0.028705939650535583, 0.034617871046066284, 0.060442544519901276, 0.031245721504092216, -0.0031934024300426245, -0.027980288490653038, 0.010553968138992786, -0.02017952874302864, 0.031715262681245804, -0.05929003655910492, -0.015857631340622902, -0.002426398918032646, -0.017469005659222603, -0.04046577215194702, 0.027980288490653038, 0.01912306435406208, 0.00772072421386838, -0.019240450114011765, 0.026486298069357872, 0.01515332143753767, 0.014566397294402122, 0.02928219363093376, -0.06782712042331696, 0.061466995626688004, 0.012848309241235256, 0.004177834838628769, -0.04016697406768799, -0.002897272352129221, -0.02729732170701027, 0.01983804628252983, 0.041895732283592224, -0.04119142144918442, 0.11601895093917847, 0.0039617400616407394, -0.024800224229693413, -0.006248077377676964, -0.042557355016469955, -0.026806438341736794, -0.04025234282016754, -0.023839803412556648, -0.0015019929269328713, 0.06530868262052536, 0.012517496943473816, -0.06680267304182053, -0.022409841418266296, 0.02181224524974823, -0.06377200782299042, 0.024629482999444008, 0.030349329113960266, 0.0297517329454422, -0.045801449567079544, 0.01811995729804039, 0.03286776691675186, -0.019272463396191597, -0.05924735218286514, 0.01008976437151432, 0.0064081475138664246, 0.008963936939835548, 0.0017821160145103931, -0.055533722043037415, -0.0365600548684597, 0.019848717376589775, 0.00023043452529236674, -0.03273971006274223, -0.06646119058132172, 0.026080787181854248, 0.004324565641582012, 0.06693072617053986, -0.019037693738937378, -0.0234769769012928, -0.05997300520539284, -0.04016697406768799, -0.054082419723272324, 0.0326116569340229, -0.022623268887400627, -0.05425316095352173, -0.05796679109334946, -0.02616615779697895, 0.007752737961709499, -0.021342705935239792, 0.008766517043113708, -0.016145756468176842, -0.008494396694004536, -0.031950030475854874, 0.0718822330236435, 0.019048364832997322, -0.0009130676626227796, -0.0045593357644975185, 0.026208844035863876, -0.005997300613671541, -0.008195599541068077, -0.03199271857738495, 0.02996516041457653, 0.0494723916053772, -0.08784657716751099, -0.008403690531849861, 0.03839552775025368, 0.003212077310308814, 0.037520479410886765, -0.08870028704404831, 0.05792410671710968, 0.014054171741008759, -0.005442390218377113, 0.06970527768135071, -0.011076864786446095, 0.008387683890759945, 0.033379994332790375, -0.007251184433698654, 0.0010698031401261687, 0.016391199082136154, -0.012165342457592487, -0.04274944216012955, -0.009572204202413559, 0.016497911885380745, -0.009001286700367928, 0.05416778847575188, 0.004970182664692402, -0.03927057981491089, -0.007891465909779072, -0.037648532539606094, -0.02906876616179943, -0.012773609720170498, 0.03177928924560547, -0.033166565001010895, 0.058777812868356705, 0.027105236425995827, 0.04507579654455185, 0.07128463685512543, 0.02853519842028618, -0.012965694069862366, -0.03235554322600365, 0.008979943580925465, -0.038544926792383194, -0.015046607702970505, 0.02141740545630455, 0.004783433862030506, 0.006418819073587656, -0.022644611075520515, 0.009940365329384804, 0.016028372570872307, -0.03581305965781212, -0.04213050380349159, 0.012837638147175312, -0.05066758394241333, -0.012570854276418686, -0.04977118968963623, -0.02143874764442444, -0.018760239705443382, 0.012560182251036167, -0.036069173365831375, 0.0038737012073397636, 0.03645334392786026, 0.02684912458062172, -0.0015860298881307244, -0.0586070716381073, -0.04618561640381813, -0.04486236721277237, 0.031608548015356064, -0.052503056824207306, 0.041895732283592224, 0.007181820459663868, 0.00559178926050663, 0.0044286116026341915, -0.04281346872448921, -0.01978468894958496, 0.00727252708747983, 0.011599760502576828, -0.03877969831228256, 0.005068892613053322, -0.09544458240270615, 0.015633532777428627, -0.03971877694129944, -0.00098109757527709, 0.00019725329184439033, 0.06991870701313019, 0.07892532646656036, -0.04721006751060486, 0.02223910018801689, 0.0026504972483962774, 0.010810080915689468, -0.004369919188320637, -0.059759579598903656, 0.01482250913977623, 0.020051471889019012, 0.00031013620900921524, -0.013232477940618992, 0.057326510548591614, 0.055064182728528976, -0.04392328858375549, 0.09057844430208206, 0.01274159550666809, -0.004172499291598797, -0.05301528424024582, 0.05514955148100853, -0.00526097696274519, 0.013936786912381649, -0.02919682301580906, -0.013083078898489475, -0.07657763361930847, -0.022836696356534958, -0.0406791977584362, 0.08263895660638809, 0.002335692523047328, -0.0027718839701265097, -0.03152317553758621, -0.03591977432370186, -0.014918551780283451, 0.052716486155986786, 0.04213050380349159, -0.0017327609239146113, 0.004644706379622221, -0.008339662104845047, -0.011418348178267479, -0.024800224229693413, 0.02962367609143257, 0.03143780678510666, 0.07909607142210007, 0.07461410015821457, 0.017682433128356934, -0.021854931488633156, 0.03636797145009041, 0.043795231729745865, 0.023754432797431946, 0.06163773685693741, -0.03873701021075249, 0.05455195903778076, 0.0018047925550490618, 0.07726059854030609, -0.04038039967417717, -0.05792410671710968, 0.03559963405132294, 0.003027996513992548, 0.0019435201538726687, -0.01973133161664009, 0.045801449567079544, -0.008793194778263569, -0.008355669677257538, -0.02030758559703827, -0.05011267587542534, 0.03250494226813316, 0.04003891721367836, -0.011450362391769886, 0.017362290993332863, 0.00542638311162591, 0.029815761372447014, 0.011375662870705128, -0.008979943580925465, -0.08063274621963501, -0.03579171746969223, -0.008072878234088421, -0.044563569128513336, -0.01706349290907383, 0.04575876146554947, 0.029666362330317497, 0.1276293843984604, -0.021214650943875313, -0.04082859680056572, -0.0008630456868559122, 0.0002739536575973034, 0.016081729903817177, -0.017308935523033142, -0.03621857240796089, -0.07627883553504944, -0.02179090306162834, 0.008563760668039322, 0.02405323088169098, -0.004508646670728922, 0.005415711551904678, -0.0718822330236435, 0.01630582846701145, -0.007880793884396553, -0.008062207140028477, -0.007496625650674105, -0.014395655132830143, 0.013659331947565079, 0.024074573069810867, 0.018322713673114777, -0.05280185490846634, 0.07798624783754349, 0.01569756120443344, 0.03860895708203316, -0.05092369765043259, 0.042792126536369324, 0.03869432583451271, -0.0032387557439506054, -0.005055553745478392, 0.005330340936779976, -0.06556479632854462, 0.044776998460292816, 0.06155236437916756, 0.005981293506920338, 0.03470323979854584, -0.060357172042131424, -0.01795988716185093, 0.06590627878904343, -0.014384984038770199, 0.07235177606344223, -0.06334514915943146, -0.030456041917204857, -0.011119550094008446, -0.044776998460292816, 0.06116819754242897, -0.023861145600676537, -0.020275570452213287, -0.035620976239442825, 0.03378550335764885, -0.03355073556303978, -0.02595273032784462, -0.010415241122245789, 0.026315556839108467, 0.010201813653111458, 0.00012272056483197957, -0.016391199082136154, -0.01632717065513134, 0.011898558586835861, -0.04721006751060486, -0.008723830804228783, 0.018109286203980446, 0.04114873707294464, 0.04861868545413017, -0.026230186223983765, 0.009940365329384804, 0.0275107491761446, 0.06500988453626633, -0.04789303243160248, -0.029367564246058464, 0.02505633793771267, -0.05971689149737358, -0.022303128615021706, 0.04550265148282051, 0.01983804628252983, 0.006920372601598501, -0.06915036588907242, -0.020222214981913567, 0.04149021953344345, 0.025653932243585587, 0.03408430144190788, 0.037285707890987396, -0.08601110428571701, 0.060784026980400085, 0.0037509805988520384, 0.024757539853453636, -0.01297636516392231, -0.05416778847575188, -0.04831988736987114, -0.013061736710369587, -0.01169580314308405, -0.010292519815266132, -0.017052821815013885, -0.004524653777480125, -0.018472112715244293, -0.005959950853139162, 0.022559240460395813, 0.07128463685512543, -0.0006169375847093761, -0.01269891019910574, 0.008286305703222752, -0.05122249573469162, 0.050069987773895264, 0.01996610127389431, -0.03030664287507534, 0.03579171746969223, 0.015782931819558144, 0.06347320973873138, 0.04520385339856148, 0.07064435631036758, 0.0310963224619627, -0.022004330530762672, -0.022665953263640404, 0.03434041514992714, -0.027041209861636162, 0.044222086668014526, 0.018696211278438568, 0.05566177889704704, -0.011663788929581642, 0.006370797753334045, 0.023434290662407875, 0.02091585285961628, -0.025355136021971703, 0.015420105308294296, 0.03521546721458435, 0.009582875296473503, -0.0212359931319952, 0.002713191555812955, -0.015622860752046108, -0.010415241122245789, -0.05660085752606392, 0.0002597807615529746, 0.013627317734062672, -0.0442647747695446, -0.01016979943960905, 0.01811995729804039, 0.03088289685547352, -0.024074573069810867, 0.01230407040566206, 0.05391167476773262, -0.07649225741624832, 0.013456576503813267, -0.001192523748613894, 0.012314741499722004, -0.01978468894958496, -0.06880888342857361, -0.0035108751617372036, 0.0178318303078413, 0.04405134543776512, -0.046911269426345825, -0.05847901478409767, 0.018002573400735855, 0.07124195247888565, -0.02917547896504402, -0.026464955881237984, 0.0586070716381073, 0.03860895708203316, 0.0034575185272842646, 0.03824612870812416, 0.023562347516417503, -0.012208027765154839, 0.004956843331456184, 0.027318663895130157, -0.03873701021075249, 0.055747147649526596, -0.02853519842028618, -0.023348920047283173, -0.03453249856829643, -0.0657782182097435, 0.05707039684057236, -0.011258278042078018, -0.004671385046094656, -0.06279024481773376, -0.047935716807842255, -0.013168449513614178, -0.023882487788796425, 0.039868175983428955, 0.015078621916472912, 0.015846960246562958, -0.02708389423787594, -0.03749913349747658, -0.015313391573727131, -0.024885594844818115, -0.0020288911182433367, 0.004927497357130051, 0.011482375673949718, -0.010393898002803326, 0.017469005659222603, -0.010548632591962814, -0.028471169993281364, -0.021726874634623528, 0.0233916062861681, 0.00534101203083992, 0.002619817154482007, -0.017031479626893997, 0.0369228832423687, 0.0414048507809639, -0.00654687499627471, 0.04040174186229706, 0.03621857240796089, -0.05796679109334946, -0.04136216640472412, 0.015025265514850616, -0.0370936244726181, 0.026785096153616905, -0.021854931488633156, -0.027318663895130157, -0.02381845936179161, -0.010191142559051514, 0.05096638202667236, 0.06556479632854462, -0.011557075195014477, -0.010084428824484348, -0.05399704724550247, 0.055747147649526596, -0.012101314030587673, -0.021726874634623528, -0.0369228832423687, 0.053954362869262695, -0.009268070571124554, -0.08699287474155426, 0.03165123239159584, -0.0541251040995121, 0.03043469972908497, 0.05100906640291214, -0.007208499126136303, 0.007565989624708891, 0.08929788321256638, 0.017970558255910873, -0.055405665189027786, 0.002715859329327941, -0.03222748637199402, 0.0005215624114498496, -0.016967451199889183, -0.02819371595978737, 0.027873573824763298, 0.020905181765556335, -0.05335676670074463, -0.010788737796247005, 0.015580175444483757, 0.007608674932271242, -0.031224379315972328, 0.04776497557759285, 0.010810080915689468, -0.005751859396696091, -0.034489814192056656, -0.06786980479955673, 0.013264492154121399, 0.03273971006274223, 0.03446847200393677, -0.04370986297726631, -0.019774017855525017, 0.03856626898050308, -0.012688239105045795, 0.0496431365609169, 0.022516556084156036, -0.04309092462062836, 0.04823451489210129, -0.0659489631652832, -0.035642318427562714, 0.05549103766679764, 0.03999623283743858, 0.02941024862229824, 0.014523711986839771, 0.00975895207375288, -0.02529110759496689, -0.01629515551030636, -0.028833996504545212, 0.023220865055918694, -0.00904930755496025, -0.01548413373529911, 0.01571890339255333, 0.04699663817882538, 0.03500203788280487, -0.014160885475575924, 0.04413671791553497, -0.025974074378609657, 0.006200056057423353, -0.027318663895130157, 0.04183170571923256, 0.032931797206401825, 0.01912306435406208, 0.07866921275854111, -0.07034555822610855, -0.012816295027732849, 0.030456041917204857, -0.027211951091885567, 0.048490628600120544, -0.006706945598125458, -0.017789145931601524, 0.00006761302938684821, 0.033059850335121155, -0.019155079498887062, -0.013968801125884056, 0.023861145600676537, -0.03043469972908497, 0.06821128726005554, 0.005762530490756035, -0.04174633324146271, -0.003353472799062729, -0.01996610127389431, -0.06407080590724945, -0.015121307224035263, 0.009225385263562202, 0.008344998583197594, -0.008601110428571701, -0.01242145523428917, -0.012645553797483444, -0.0162204559892416, 0.06556479632854462, 0.024970967322587967, -0.017981229349970818, 0.05109443888068199, -0.007256519980728626, -0.019368505105376244, 0.02830042876303196, 0.0148758664727211, 0.01302972249686718, 0.029260849580168724, -0.008510404266417027, 0.048362571746110916, 0.02695583738386631, 0.0006642917287535965, 0.013360533863306046, 0.04091396927833557, -0.009225385263562202, 0.04430745914578438, -0.0027345342095941305, 0.030733497813344002, 0.026550326496362686, -0.016156429424881935, 0.0052236272022128105, 0.008851887658238411, 0.09331031143665314, -0.018002573400735855, 0.012090642936527729, 0.0024023884907364845, 0.022345812991261482, 0.0550214983522892, -0.04215184599161148, -0.036837510764598846, 0.015409434214234352, 0.017415648326277733, 0.053868990391492844, -0.005821223370730877, -0.052972596138715744, 0.006296098232269287, -0.04473431408405304, 0.04296286776661873, -0.052844539284706116, 0.052716486155986786, -0.023199521005153656, 0.01213332824409008, -0.01890963688492775, 0.07055898755788803, 0.05433852970600128, 0.0073312195017933846, -0.0004285215400159359, -0.10167665034532547, 0.02941024862229824, 0.03199271857738495, -0.0003138044849038124, -0.015334734693169594, -0.006450832821428776, 0.013659331947565079, 0.047679606825113297, 0.000657955592032522, 0.011770502664148808, 0.024757539853453636, 0.014246256090700626, 0.0022129719145596027, 0.018162643536925316, -0.017927873879671097, -0.034852638840675354, -0.0178318303078413, -0.015121307224035263, 0.07030287384986877, -0.03880104050040245, -0.012314741499722004, -0.007043092977255583, -0.03803270310163498, 0.01582561619579792, -0.03374281898140907, 0.030477384105324745, -0.04240795597434044, -0.00019291805801913142, 0.020873166620731354, -0.07854115962982178, -0.020158186554908752, -0.009438811801373959, -0.00883588008582592, -0.010596653446555138, -0.010265842080116272, 0.01242145523428917, -0.002669172128662467, 0.0008130237110890448, 0.05438121408224106, 0.03581305965781212, 0.0041965097188949585, 0.038630299270153046, -0.04528922215104103, 0.018536141142249107, -0.03649602830410004, -0.0023810456041246653, 0.052631113678216934, -0.010399233549833298, 0.013221806846559048, -0.03559963405132294, 0.017447661608457565, -0.049258965998888016, -0.02268729731440544 ]
37,662
healpy.pixelfunc
ang2pix
ang2pix : nside,theta[rad],phi[rad],nest=False,lonlat=False -> ipix (default:RING) Parameters ---------- nside : int, scalar or array-like The healpix nside parameter, must be a power of 2, less than 2**30 theta, phi : float, scalars or array-like Angular coordinates of a point on the sphere nest : bool, optional if True, assume NESTED pixel ordering, otherwise, RING pixel ordering lonlat : bool If True, input angles are assumed to be longitude and latitude in degree, otherwise, they are co-latitude and longitude in radians. Returns ------- pix : int or array of int The healpix pixel numbers. Scalar if all input are scalar, array otherwise. Usual numpy broadcasting rules apply. See Also -------- pix2ang, pix2vec, vec2pix Examples -------- Note that some of the test inputs below that are on pixel boundaries such as theta=pi/2, phi=pi/2, have a tiny value of 1e-15 added to them to make them reproducible on i386 machines using x87 floating point instruction set (see https://github.com/healpy/healpy/issues/528). >>> import healpy as hp >>> hp.ang2pix(16, np.pi/2, 0) 1440 >>> print(hp.ang2pix(16, [np.pi/2, np.pi/4, np.pi/2, 0, np.pi], [0., np.pi/4, np.pi/2 + 1e-15, 0, 0])) [1440 427 1520 0 3068] >>> print(hp.ang2pix(16, np.pi/2, [0, np.pi/2 + 1e-15])) [1440 1520] >>> print(hp.ang2pix([1, 2, 4, 8, 16], np.pi/2, 0)) [ 4 12 72 336 1440] >>> print(hp.ang2pix([1, 2, 4, 8, 16], 0, 0, lonlat=True)) [ 4 12 72 336 1440]
def ang2pix(nside, theta, phi, nest=False, lonlat=False): """ang2pix : nside,theta[rad],phi[rad],nest=False,lonlat=False -> ipix (default:RING) Parameters ---------- nside : int, scalar or array-like The healpix nside parameter, must be a power of 2, less than 2**30 theta, phi : float, scalars or array-like Angular coordinates of a point on the sphere nest : bool, optional if True, assume NESTED pixel ordering, otherwise, RING pixel ordering lonlat : bool If True, input angles are assumed to be longitude and latitude in degree, otherwise, they are co-latitude and longitude in radians. Returns ------- pix : int or array of int The healpix pixel numbers. Scalar if all input are scalar, array otherwise. Usual numpy broadcasting rules apply. See Also -------- pix2ang, pix2vec, vec2pix Examples -------- Note that some of the test inputs below that are on pixel boundaries such as theta=pi/2, phi=pi/2, have a tiny value of 1e-15 added to them to make them reproducible on i386 machines using x87 floating point instruction set (see https://github.com/healpy/healpy/issues/528). >>> import healpy as hp >>> hp.ang2pix(16, np.pi/2, 0) 1440 >>> print(hp.ang2pix(16, [np.pi/2, np.pi/4, np.pi/2, 0, np.pi], [0., np.pi/4, np.pi/2 + 1e-15, 0, 0])) [1440 427 1520 0 3068] >>> print(hp.ang2pix(16, np.pi/2, [0, np.pi/2 + 1e-15])) [1440 1520] >>> print(hp.ang2pix([1, 2, 4, 8, 16], np.pi/2, 0)) [ 4 12 72 336 1440] >>> print(hp.ang2pix([1, 2, 4, 8, 16], 0, 0, lonlat=True)) [ 4 12 72 336 1440] """ check_nside(nside, nest=nest) if lonlat: theta, phi = lonlat2thetaphi(theta, phi) check_theta_valid(theta) check_nside(nside, nest=nest) if nest: return pixlib._ang2pix_nest(nside, theta, phi) else: return pixlib._ang2pix_ring(nside, theta, phi)
(nside, theta, phi, nest=False, lonlat=False)
[ 0.008814816363155842, -0.06561492383480072, 0.037516482174396515, -0.0644863173365593, 0.0056333099491894245, 0.037224601954221725, -0.011753088794648647, 0.015469711273908615, 0.025510428473353386, -0.05452343448996544, 0.08118192851543427, -0.029674602672457695, 0.04973658174276352, 0.03123130463063717, -0.026755789294838905, 0.009739107452332973, 0.0028190873563289642, 0.02831248939037323, -0.07382652163505554, -0.02716442383825779, 0.024187233299016953, -0.025374218821525574, 0.03257395699620247, 0.0050787352956831455, -0.04561132565140724, -0.02270836941897869, 0.06736621260643005, -0.02099599875509739, -0.01929335668683052, -0.0037433782126754522, 0.00477225985378027, -0.00511765293776989, 0.07110229879617691, 0.003920939285308123, -0.0010209765750914812, -0.002719361102208495, 0.009432632476091385, 0.026288779452443123, -0.08429533243179321, 0.016189685091376305, -0.005054411944001913, -0.06713271141052246, 0.028584912419319153, -0.016384271904826164, -0.01441893819719553, 0.0352981835603714, -0.06164534017443657, -0.03018053062260151, -0.038995347917079926, 0.025121254846453667, -0.02887679450213909, -0.01441893819719553, -0.02181326597929001, 0.021540842950344086, 0.014097868464887142, -0.0017184513853862882, -0.013358436524868011, 0.011694712564349174, 0.055496372282505035, -0.01689019985496998, -0.01994522474706173, -0.01916687563061714, 0.008396453224122524, -0.02605527453124523, 0.02228027582168579, 0.012901155278086662, 0.011967134661972523, -0.030822670087218285, -0.022747285664081573, 0.0060419440269470215, -0.03533710166811943, 0.044599469751119614, 0.023545095697045326, -0.005044682417064905, 0.00040954601718112826, -0.0018595274304971099, 0.06234585493803024, 0.02247486263513565, 0.018913911655545235, 0.005623580422252417, -0.03955965116620064, 0.039151016622781754, 0.0185344647616148, 0.04121364653110504, 0.04658426344394684, 0.0802479088306427, 0.004969279747456312, -0.01929335668683052, -0.03313826024532318, -0.019468486309051514, -0.023895353078842163, -0.06615976989269257, 0.08040358126163483, 0.017415586858987808, 0.02578285150229931, -0.0030015131924301386, 0.0013475188752636313, 0.020645739510655403, 0.053200241178274155, -0.03776944428682327, -0.037516482174396515, -0.07931388914585114, -0.015479440800845623, 0.02319483831524849, 0.0589989498257637, 0.015411335043609142, -0.01150012481957674, 0.028623830527067184, 0.04117472842335701, -0.019799284636974335, 0.0010307059856131673, 0.015917262062430382, 0.0022134336177259684, -0.024595867842435837, 0.019828472286462784, -0.011412560939788818, 0.008265106938779354, 0.015897803008556366, 0.019672801718115807, -0.024946125224232674, -0.016608048230409622, 0.027962232008576393, -0.004166606348007917, 0.020237106829881668, 0.0564303919672966, 0.029421638697385788, -0.005516557488590479, -0.006007891148328781, -0.010896903462707996, 0.023408884182572365, -0.008644552901387215, -0.014788654632866383, -0.00719487527385354, -0.017503151670098305, -0.02640553191304207, -0.03195127844810486, 0.02171597257256508, -0.005472775083035231, -0.002095464849844575, 0.00898994505405426, 0.007155957631766796, 0.012482792139053345, 0.014302185736596584, 0.005477639846503735, 0.023836975917220116, 0.04529998451471329, 0.047362614423036575, 0.01755179837346077, 0.07211414724588394, -0.04195307940244675, -0.03590140491724014, -0.06324096024036407, 0.018913911655545235, 0.04821879789233208, -0.0026026086416095495, -0.05615796893835068, 0.004419569857418537, 0.006805699784308672, 0.008075383491814137, 0.02401210553944111, -0.018155019730329514, -0.031873442232608795, -0.02936326339840889, -0.008775899186730385, -0.03093942254781723, 0.032301533967256546, -0.04853013902902603, 0.004774692468345165, 0.038041867315769196, -0.013173578307032585, -0.051915962249040604, -0.07787394523620605, -0.003573114052414894, -0.0493474043905735, 0.026172026991844177, 0.014058951288461685, 0.04786853864789009, 0.005039817653596401, -0.04070771858096123, 0.023350507020950317, 0.052382972091436386, -0.07363193482160568, 0.014525961130857468, -0.008367265574634075, -0.020840328186750412, 0.09604842215776443, 0.07067420333623886, -0.023272672668099403, 0.013932469300925732, -0.020937621593475342, 0.014467584900557995, 0.06686028838157654, -0.02270836941897869, 0.05316132307052612, 0.024498574435710907, -0.038703467696905136, 0.028059527277946472, 0.05160462111234665, -0.06647111475467682, 0.0010574618354439735, -0.0012125237844884396, -0.007895390503108501, -0.005278187803924084, -0.03625166416168213, -0.011655795387923717, 0.00779323186725378, -0.028390325605869293, -0.0105661042034626, 0.004910903517156839, -0.004088771063834429, 0.04479405656456947, -0.03202911093831062, -0.005458181258291006, -0.04012395441532135, -0.010488269850611687, 0.09044429659843445, 0.052382972091436386, 0.04514431580901146, -0.045455653220415115, 0.014681631699204445, 0.001874121488071978, -0.006990558002144098, 0.000545149203389883, -0.009281827136874199, -0.006387336645275354, -0.010118553414940834, -0.00405228603631258, 0.04498864337801933, -0.005964108742773533, -0.03298259153962135, 0.01774638518691063, 0.033644188195466995, 0.0081386249512434, -0.010011530481278896, -0.002097897231578827, 0.050904106348752975, 0.02257215790450573, 0.0052246758714318275, 0.015985367819666862, 0.06433064490556717, -0.017075058072805405, 0.0015202153008431196, -0.06938992440700531, 0.012687109410762787, -0.04370436817407608, 0.013951928354799747, 0.030861588194966316, -0.03592086583375931, 0.010935820639133453, -0.03592086583375931, -0.05888219550251961, 0.025549346581101418, 0.048802562057971954, -0.016189685091376305, -0.01918633282184601, 0.01706532947719097, -0.10025151073932648, 0.02013981342315674, 0.00530737591907382, -0.0022085688542574644, 0.014341102913022041, -0.012901155278086662, -0.023739682510495186, -0.05355049669742584, 0.01329033076763153, -0.0009169938857667148, 0.005521422252058983, 0.023447800427675247, -0.044015705585479736, 0.009296420961618423, -0.010147741064429283, 0.025977440178394318, -0.0008671308169141412, -0.011422289535403252, 0.07028502970933914, 0.002405588747933507, 0.10912470519542694, 0.038800761103630066, 0.018359337002038956, 0.03204857185482979, -0.019468486309051514, -0.02342834323644638, -0.013757340610027313, 0.05312240496277809, -0.02726171724498272, -0.026172026991844177, 0.024303985759615898, 0.1349659264087677, 0.01810637302696705, -0.039151016622781754, 0.05748116597533226, 0.041057974100112915, -0.06806673109531403, 0.009418037720024586, 0.0387813001871109, 0.0671716257929802, -0.07892471551895142, -0.03288529813289642, 0.0009911804227158427, -0.08125976473093033, 0.039384521543979645, 0.03829483315348625, 0.015625381842255592, -0.01360167097300291, 0.04144715145230293, 0.03514251485466957, -0.020431693643331528, -0.023155920207500458, 0.017775574699044228, -0.024518033489584923, -0.0033031238708645105, -0.07184173166751862, 0.0440935418009758, -0.009126156568527222, 0.00785647239536047, -0.04759611934423447, -0.002945569111034274, -0.04829663410782814, 0.052772145718336105, 0.041291479021310806, 0.013582211919128895, 0.05681956931948662, 0.03422795236110687, 0.04654534533619881, 0.03403336554765701, -0.012307663448154926, 0.027339551597833633, 0.10289790481328964, 0.034792255610227585, 0.003011242486536503, -0.057130906730890274, -0.0036874343641102314, -0.03950127586722374, -0.05242189019918442, -0.0388396792113781, -0.04553348943591118, 0.0033687972463667393, -0.0510597750544548, -0.04323735460639, -0.023214295506477356, -0.020100895315408707, -0.0396374873816967, 0.012521709315478802, 0.039189934730529785, 0.004584969487041235, -0.02807898446917534, -0.041875243186950684, -0.009383984841406345, -0.0012672514421865344, 0.03251558169722557, 0.032632336020469666, 0.04716802388429642, 0.002235324587672949, 0.022124605253338814, -0.016228603199124336, 0.015245935879647732, -0.04938632249832153, -0.00515170581638813, -0.022027311846613884, 0.012706567533314228, -0.03132859617471695, 0.02237756922841072, 0.014545420184731483, -0.057169824838638306, -0.014749737456440926, 0.01410759799182415, -0.0013086013495922089, 0.013377894647419453, -0.027806563302874565, 0.044638387858867645, 0.014574608765542507, -0.020256565883755684, -0.08359481394290924, -0.011072032153606415, 0.030063778162002563, 0.005394940264523029, 0.018252313137054443, 0.011013655923306942, -0.04642859101295471, -0.01071204524487257, -0.009140750393271446, 0.0016977764898911119, -0.005959243979305029, 0.06592626869678497, 0.022027311846613884, -0.03843104466795921, 0.06744404882192612, 0.0015104860067367554, -0.04199199751019478, -0.04432704672217369, -0.06997368484735489, -0.00043022094178013504, 0.05409534275531769, -0.049191735684871674, 0.02615256793797016, -0.019371191039681435, -0.011869841255247593, 0.0555742084980011, -0.010468810796737671, -0.008722387254238129, -0.02066519856452942, -0.06526467204093933, 0.05199379846453667, -0.020198188722133636, -0.029752438887953758, -0.03677704930305481, 0.020976539701223373, -0.041719574481248856, -0.0006840968853794038, -0.07787394523620605, -0.018972286954522133, 0.023545095697045326, 0.023253213614225388, 0.011548771522939205, 0.0335274375975132, 0.07799069583415985, -0.07102446258068085, -0.021988393738865852, -0.05187704414129257, 0.005793844815343618, -0.046078335493803024, -0.06775538623332977, 0.01329033076763153, 0.02726171724498272, 0.07553888857364655, -0.027864938601851463, -0.007953766733407974, 0.013981116004288197, -0.04288709908723831, 0.09239017218351364, 0.021151667460799217, 0.02936326339840889, 0.021501924842596054, -0.040435295552015305, 0.018086913973093033, 0.0021842452697455883, 0.0633966252207756, -0.0026901729870587587, 0.0036825696006417274, 0.003035566071048379, 0.01837879605591297, 0.03996828570961952, 0.0029285429045557976, 0.015216747298836708, -0.03271016851067543, -0.03520089015364647, -0.0378667414188385, 0.04109689220786095, 0.03979315608739853, -0.03601815924048424, 0.06503116339445114, -0.0651089996099472, 0.08040358126163483, -0.01846635900437832, 0.05207163095474243, -0.07421569526195526, -0.030978340655565262, 0.030044319108128548, -0.036465708166360855, 0.01078015100210905, -0.008357536047697067, 0.043159522116184235, -0.0032982591073960066, -0.0167637187987566, 0.034986842423677444, -0.05008683726191521, 0.0019860093016177416, -0.00810457207262516, -0.03185398504137993, -0.0037628370337188244, 0.009242909029126167, 0.01666642539203167, 0.013591941446065903, 0.00948127917945385, 0.05977730080485344, -0.023681307211518288, -0.03864508867263794, 0.03093942254781723, -0.065225750207901, -0.03802241012454033, -0.06713271141052246, 0.008430506102740765, -0.0033104210160672665, -0.017493421211838722, -0.018680406734347343, -0.0269309189170599, 0.0029844867531210184, 0.02056790515780449, -0.03179560601711273, -0.08125976473093033, 0.0005348117556422949, 0.009403443895280361, 0.004361193627119064, 0.005210082046687603, -0.03662138059735298, 0.016870740801095963, 0.029110299423336983, -0.010624480433762074, -0.005521422252058983, 0.04389895498752594, 0.005818168167024851, -0.05355049669742584, 0.049619827419519424, 0.01696803607046604, -0.021073833107948303, -0.011033114977180958, -0.000772269384469837, -0.0062268017791211605, 0.018660947680473328, 0.05304456874728203, 0.015401605516672134, 0.027475763112306595, 0.03650462627410889, -0.018680406734347343, 0.024556949734687805, 0.035648442804813385, -0.015022159554064274, -0.0013718423433601856, 0.03924831002950668, -0.005667362827807665, -0.011850382201373577, 0.022844579070806503, 0.009739107452332973, 0.060944825410842896, 0.02529638260602951, 0.027748186141252518, 0.038995347917079926, -0.029207592830061913, -0.01929335668683052, -0.041486069560050964, -0.01833987794816494, -0.025179630145430565, -0.04098014160990715, -0.011840653605759144, -0.03337176516652107, -0.024420738220214844, -0.0020054681226611137, -0.04456055164337158, 0.10250873118638992, -0.0035536554642021656, -0.03566789999604225, 0.019526861608028412, -0.06121724843978882, 0.009636948816478252, 0.026697413995862007, 0.033644188195466995, -0.0304140355437994, -0.033313389867544174, 0.05849302187561989, -0.03307988494634628, 0.011519583873450756, -0.01023530587553978, 0.009131021797657013, 0.006460307165980339, 0.017143163830041885, 0.06417497992515564, -0.028798958286643028, -0.01401030458509922, -0.09659326821565628, 0.02070411667227745, -0.040863387286663055, -0.05646931007504463, -0.022260816767811775, -0.040007203817367554, -0.05199379846453667, -0.010770421475172043, 0.03457821160554886, 0.0022754583042114973, 0.0028239518869668245, -0.012132534757256508, -0.008182407356798649, 0.03736081346869469, -0.016948577016592026, -0.028584912419319153, -0.03586248680949211, 0.013407083228230476, 0.028040068224072456, -0.09130048751831055, 0.03685488551855087, -0.011383372358977795, 0.03193181753158569, -0.01883607544004917, -0.017444774508476257, 0.03920939192175865, 0.022163523361086845, 0.09309069067239761, 0.04164173826575279, 0.06191776320338249, 0.03381931781768799, -0.033118803054094315, 0.0037214872427284718, -0.05853193998336792, 0.08351698517799377, -0.003636355046182871, -0.025082336738705635, -0.011081761680543423, -0.07993657141923904, -0.009846130385994911, 0.015644840896129608, -0.048607971519231796, -0.02768981084227562, 0.01597563922405243, -0.04518323019146919, -0.052149467170238495, 0.019118227064609528, -0.019964683800935745, 0.07168605923652649, -0.07098554074764252, -0.06078915297985077, -0.062423691153526306, -0.01284277904778719, -0.003967153839766979, 0.0070781223475933075, -0.024362362921237946, -0.005823032930493355, -0.015002701431512833, 0.007374868728220463, 0.043782200664281845, -0.03453929349780083, 0.04771286994218826, -0.06016647443175316, 0.01315411925315857, 0.021696513518691063, 0.01922525092959404, 0.009719648398458958, -0.05608013644814491, 0.03257395699620247, 0.01965334452688694, -0.003030701307579875, -0.03778890520334244, 0.008707793429493904, -0.012706567533314228, -0.03580411151051521, -0.02519908919930458, -0.006119778845459223, -0.013309788890182972, 0.004531458020210266, -0.0581427626311779, -0.015148641541600227, 0.08857625722885132, 0.007321356795728207, -0.002322888933122158, 0.012385498732328415, 0.04572807624936104, 0.06798889487981796, -0.023253213614225388, 0.00879049301147461, 0.013066554442048073, -0.05176028981804848, -0.061333999037742615, 0.033216096460819244, 0.04635075852274895, 0.003339609131217003, 0.0015238638734444976, -0.03954019397497177, 0.03224315866827965, -0.03245720639824867, 0.01259954459965229, -0.015819968655705452, 0.0003551222907844931, 0.06966234743595123, 0.03500630334019661, -0.02850707806646824, 0.041914161294698715, -0.03944290056824684, 0.032924216240644455, -0.008153218775987625, -0.029927566647529602, 0.001874121488071978, -0.005268458276987076, -0.008683470077812672, 0.019400380551815033, 0.011694712564349174, -0.000701731420122087, 0.0396374873816967, 0.034792255610227585, 0.0325544998049736, -0.020023060962557793, 0.006090590730309486, 0.05701415613293648, -0.06713271141052246, -0.040863387286663055, 0.026424990966916084, 0.03271016851067543, -0.0052295406349003315, 0.05417317897081375, 0.06553708761930466, -0.027028212323784828, -0.011889300309121609, -0.035084135830402374, 0.004898741841316223, 0.004387949593365192, 0.03868400678038597, 0.023934269323945045, 0.06444740295410156, -0.011373642832040787, -0.0476350337266922, 0.054056424647569656, -0.025802310556173325, -0.010030988603830338, 0.052772145718336105, -0.029947025701403618, -0.015557275153696537, 0.019770096987485886, -0.013737881556153297, -0.00527332304045558, -0.008435370400547981, -0.019273897632956505, -0.008887787349522114, 0.05043709650635719, -0.06370797008275986, 0.012171451933681965, -0.004689560271799564, -0.0950365662574768, -0.008746710605919361, 0.005623580422252417, 0.024790454655885696, 0.013037366792559624, -0.004570375196635723, -0.0060808612033724785, 0.016355084255337715, -0.016257790848612785, 0.034831173717975616, -0.019040392711758614, -0.05748116597533226, -0.018515005707740784, 0.05849302187561989, 0.008625093847513199, -0.06970126181840897, -0.021112751215696335, -0.017366940155625343, -0.01002125907689333, -0.0032982591073960066, 0.015644840896129608, -0.03580411151051521, -0.003098806831985712, -0.014331374317407608, 0.010196388699114323, -0.0028166549745947123, -0.053200241178274155, 0.0707131177186966, 0.01269683800637722, -0.01441893819719553, -0.01023530587553978, -0.01222009863704443, 0.001560349017381668, 0.03162048012018204, -0.09168966114521027, 0.028487619012594223, 0.031756691634655, 0.033974986523389816, 0.059465959668159485, 0.012726026587188244, 0.006280313711613417, 0.031289681792259216, 0.015469711273908615, -0.02119058556854725, 0.01889445260167122, -0.011967134661972523, 0.007024610880762339, -0.070479616522789, 0.049658745527267456, -0.04280926287174225, 0.004324708599597216, -0.009821807034313679, 0.038703467696905136, -0.01479838415980339, -0.013572482392191887 ]
37,663
healpy.pixelfunc
ang2vec
ang2vec : convert angles to 3D position vector Parameters ---------- theta : float, scalar or arry-like colatitude in radians measured southward from north pole (in [0,pi]). phi : float, scalar or array-like longitude in radians measured eastward (in [0, 2*pi]). lonlat : bool If True, input angles are assumed to be longitude and latitude in degree, otherwise, they are co-latitude and longitude in radians. Returns ------- vec : float, array if theta and phi are vectors, the result is a 2D array with a vector per row otherwise, it is a 1D array of shape (3,) See Also -------- vec2ang, rotator.dir2vec, rotator.vec2dir
def ang2vec(theta, phi, lonlat=False): """ang2vec : convert angles to 3D position vector Parameters ---------- theta : float, scalar or arry-like colatitude in radians measured southward from north pole (in [0,pi]). phi : float, scalar or array-like longitude in radians measured eastward (in [0, 2*pi]). lonlat : bool If True, input angles are assumed to be longitude and latitude in degree, otherwise, they are co-latitude and longitude in radians. Returns ------- vec : float, array if theta and phi are vectors, the result is a 2D array with a vector per row otherwise, it is a 1D array of shape (3,) See Also -------- vec2ang, rotator.dir2vec, rotator.vec2dir """ if lonlat: theta, phi = lonlat2thetaphi(theta, phi) check_theta_valid(theta) sintheta = np.sin(theta) return np.array([sintheta * np.cos(phi), sintheta * np.sin(phi), np.cos(theta)]).T
(theta, phi, lonlat=False)
[ -0.0019656415097415447, -0.011618098244071007, -0.0412183478474617, -0.05964450538158417, -0.017436396330595016, 0.00455566355958581, -0.0018939535366371274, 0.05631447583436966, 0.01122959516942501, -0.008690448477864265, 0.06245652586221695, -0.05664747953414917, 0.01133134588599205, -0.009411954320967197, -0.07492563128471375, 0.01229335367679596, -0.020017169415950775, -0.0306362584233284, -0.0765906497836113, -0.0000571625932934694, 0.009023451246321201, -0.009610830806195736, 0.042143356055021286, 0.033836785703897476, -0.0006324740825220942, -0.059385500848293304, 0.03548330068588257, -0.00020928301091771573, 0.011932600289583206, 0.03764781728386879, 0.029489248991012573, 0.04047834128141403, 0.04917341470718384, 0.007807065732777119, -0.008755198679864407, 0.024642208591103554, 0.06870958209037781, -0.02665872499346733, -0.020461171865463257, -0.007113310042768717, -0.05871949717402458, -0.04351236671209335, 0.0277132336050272, 0.009990083985030651, -0.024623708799481392, -0.03204227238893509, -0.04425237327814102, -0.0007949285791255534, -0.04258735850453377, 0.043734367936849594, 0.04802640527486801, 0.018860910087823868, 0.03896132856607437, -0.02201518602669239, -0.0032560275867581367, 0.017343895509839058, 0.015540131367743015, 0.0037994696758687496, -0.0601625069975853, 0.007150310557335615, -0.0061883023008704185, 0.014134119264781475, -0.0019818292930722237, -0.0007683346047997475, 0.05609247460961342, 0.01649288833141327, 0.049358416348695755, 0.016455888748168945, -0.008847699500620365, -0.008449946530163288, -0.06497254967689514, -0.00453022588044405, 0.02382820099592209, -0.05598147213459015, 0.020331671461462975, 0.0377403199672699, 0.009518329985439777, 0.0009909146465361118, -0.03655630722641945, 0.022089187055826187, -0.03515029698610306, -0.03418828919529915, 0.0360013023018837, 0.04662039503455162, 0.08798674494028091, 0.03733331337571144, -0.01467062346637249, -0.00609580148011446, -0.008792199194431305, -0.022514689713716507, -0.03087676130235195, -0.021312179043889046, 0.006239177659153938, 0.016483638435602188, -0.007048559375107288, 0.01605813577771187, 0.04813740774989128, 0.03409578651189804, -0.061346519738435745, 0.01203435193747282, -0.0038272198289632797, 0.0060310508124530315, -0.01381036639213562, 0.03690781071782112, 0.04229135811328888, -0.031653765588998795, -0.021867183968424797, -0.0371113121509552, 0.08791274577379227, -0.007400062400847673, 0.012543105520308018, 0.08376871049404144, 0.07725664973258972, 0.011035343632102013, -0.043734367936849594, 0.002267425414174795, -0.03992333635687828, -0.007464813068509102, -0.06641556322574615, -0.043734367936849594, 0.012163852341473103, 0.012432104907929897, 0.023772701621055603, 0.03531679883599281, 0.03563129901885986, -0.032856278121471405, 0.013930617831647396, -0.0288232434540987, -0.019073661416769028, 0.05198543891310692, 0.01778789982199669, -0.03870232775807381, 0.025641215965151787, -0.05557446926832199, 0.02623322233557701, -0.008616447448730469, -0.0092778280377388, -0.012876108288764954, 0.03518729656934738, 0.012552356347441673, -0.0013239174149930477, 0.04240235686302185, -0.024956710636615753, -0.0011978851398453116, -0.0046874769032001495, 0.04928441718220711, 0.026806727051734924, -0.04236535727977753, -0.011294345371425152, -0.06652656197547913, -0.03746281564235687, -0.06360353529453278, 0.04033033922314644, 0.014763124287128448, -0.012691107578575611, -0.030284754931926727, -0.004026096314191818, -0.04410437121987343, 0.06223452463746071, 0.025641215965151787, 0.012755857780575752, -0.011858600191771984, -0.05061642825603485, 0.030451256781816483, 0.011886350810527802, 0.0023795824963599443, 0.027916735038161278, -0.02125667966902256, -0.03914633020758629, -0.008796824142336845, -0.013782616704702377, 0.054427459836006165, -0.008010568097233772, -0.04144034907221794, -0.0007504125824198127, -0.02083117514848709, 0.04336436465382576, -0.0008215225534513593, 0.03722231462597847, -0.013301611877977848, 0.00037722973502241075, -0.023032695055007935, 0.002946149790659547, -0.012413605116307735, 0.02902674488723278, 0.04691639542579651, 0.0018419218249619007, -0.002490583574399352, 0.007006934378296137, -0.030247755348682404, -0.027232229709625244, 0.026399722322821617, 0.029045244678854942, 0.04787840321660042, -0.020535172894597054, 0.019684165716171265, -0.012228603474795818, 0.046768393367528915, -0.07562863826751709, -0.015355129726231098, 0.04787840321660042, -0.03378128632903099, -0.0016569201834499836, -0.01639113761484623, -0.03172776848077774, 0.038998328149318695, -0.010942842811346054, -0.07444462925195694, 0.039220329374074936, -0.02817573770880699, 0.06334453821182251, -0.025548715144395828, 0.02146018110215664, 0.008662697859108448, -0.017510397359728813, 0.08783873915672302, 0.013449613936245441, 0.01381036639213562, 0.010064085014164448, 0.023236196488142014, 0.0720026046037674, -0.024956710636615753, -0.04662039503455162, 0.005166168790310621, -0.044067371636629105, -0.04488137736916542, -0.01597488485276699, 0.0688575804233551, -0.02784273587167263, -0.04987642168998718, 0.029267247766256332, -0.0018673595041036606, 0.017001643776893616, -0.0336332842707634, 0.0076590646058321, -0.014106368646025658, 0.03962733596563339, -0.011507096700370312, -0.005563921760767698, 0.037185315042734146, -0.04140334948897362, -0.009180702269077301, -0.01450412254780531, 0.07777465879917145, -0.01726064644753933, 0.06811757385730743, -0.020442672073841095, -0.0028998993802815676, 0.02512321248650551, -0.008436071686446667, -0.0675995722413063, 0.07351961731910706, 0.043438367545604706, 0.02577071823179722, 0.021922685205936432, -0.0181209035217762, 0.004814665764570236, 0.051948439329862595, 0.0005755283054895699, 0.013986118137836456, -0.011803099885582924, -0.010600589215755463, 0.02253318950533867, 0.002180706011131406, 0.058645494282245636, -0.03076576068997383, 0.028212737292051315, -0.01240435428917408, -0.018259653821587563, -0.0025391464587301016, 0.04306836426258087, -0.01462437305599451, -0.012959359213709831, 0.0007342249737121165, 0.07522163540124893, -0.03355928510427475, 0.05709148198366165, 0.018296655267477036, -0.07255761325359344, 0.08103068172931671, -0.01813940331339836, -0.020997676998376846, -0.01911066100001335, 0.05050542578101158, -0.06967158615589142, -0.0070670596323907375, -0.029415247961878777, 0.02869374305009842, 0.05350245162844658, -0.0092778280377388, 0.022255687043070793, -0.03228277340531349, -0.018925659358501434, -0.01706639491021633, 0.052799444645643234, 0.057794488966464996, -0.05198543891310692, -0.0023980827536433935, 0.05720248445868492, -0.018611157312989235, 0.014550372958183289, 0.057794488966464996, 0.02824973873794079, -0.027010228484869003, -0.008112318813800812, 0.026677224785089493, 0.012811358086764812, -0.05975550413131714, -0.014735374599695206, -0.024623708799481392, -0.04554738476872444, -0.0723356083035469, -0.000818053784314543, -0.014337620697915554, -0.03021075576543808, 0.021201178431510925, -0.02417970448732376, -0.05964450538158417, 0.03746281564235687, -0.02525271289050579, 0.04229135811328888, 0.0435863696038723, 0.021515682339668274, 0.032745275646448135, -0.00998083408921957, -0.02536371350288391, -0.019147662445902824, 0.049987420439720154, 0.05772048607468605, -0.00007905926031526178, 0.0008943669381551445, 0.014337620697915554, -0.0247162077575922, 0.03977533429861069, 0.022514689713716507, -0.02018367126584053, -0.015364379622042179, -0.04325336590409279, 0.042772360146045685, -0.030395757406949997, 0.002779648406431079, -0.008348195813596249, -0.031209763139486313, 0.0489514134824276, 0.012117601931095123, 0.04243936017155647, -0.03559429943561554, -0.02569671720266342, 0.04565838724374771, 0.013070360757410526, 0.04791540279984474, 0.01067459024488926, -0.018361404538154602, 0.006724806968122721, -0.051504433155059814, -0.0022558628115803003, 0.02362469956278801, -0.017427146434783936, -0.018416905775666237, 0.006946808658540249, -0.024753209203481674, 0.027380231767892838, 0.024568207561969757, -0.08598872274160385, 0.03330028057098389, -0.042217355221509933, 0.05176343768835068, -0.025715216994285583, -0.034243788570165634, 0.055278465151786804, 0.03799932077527046, -0.00190089107491076, 0.0382213220000267, 0.02523421309888363, 0.0061975521966814995, 0.04565838724374771, 0.011303595267236233, 0.01866665668785572, -0.05309544876217842, -0.01813940331339836, -0.03733331337571144, -0.054205458611249924, 0.04391936957836151, -0.0423283576965332, 0.03753681853413582, 0.0010030553676187992, 0.014985126443207264, -0.030395757406949997, -0.0524294413626194, 0.019221661612391472, -0.035760801285505295, 0.007640564348548651, 0.05165243521332741, -0.026843726634979248, 0.05738748610019684, -0.028675241395831108, -0.03485429286956787, 0.018518656492233276, 0.011960350908339024, 0.01435612142086029, -0.024216704070568085, -0.019073661416769028, -0.07333461940288544, -0.013329362496733665, -0.10907692462205887, -0.00006590681005036458, -0.008967950940132141, -0.03083975985646248, 0.017630649730563164, -0.026806727051734924, 0.001580607146024704, 0.0011435409542173147, 0.08436071127653122, -0.01062833983451128, 0.03970133513212204, 0.12779907882213593, -0.0524294413626194, -0.03076576068997383, -0.01586388424038887, 0.008052192628383636, -0.02599271945655346, -0.026621725410223007, 0.018537156283855438, 0.029729751870036125, 0.04821140691637993, 0.022625690326094627, -0.001203666441142559, -0.010850341990590096, 0.03270827606320381, 0.01606738567352295, 0.07666464895009995, -0.016668640077114105, -0.006914433557540178, -0.041921354830265045, -0.0014487934531643987, 0.07274261116981506, -0.012691107578575611, 0.03106176294386387, -0.03757381811738014, 0.05272544547915459, -0.014605873264372349, 0.03379978612065315, -0.027565233409404755, 0.06956058740615845, -0.03128376230597496, -0.05072742700576782, 0.0020882051903754473, -0.017186645418405533, 0.056055475026369095, -0.02331019751727581, 0.06778457015752792, 0.015521630644798279, 0.002573834266513586, -0.06345553696155548, 0.07866266369819641, -0.02351369895040989, 0.002601584419608116, -0.006331678479909897, -0.049469418823719025, -0.029304247349500656, 0.02565971575677395, 0.020757175981998444, 0.02114567905664444, -0.04776740446686745, 0.027750235050916672, -0.01122959516942501, -0.0038942829705774784, -0.017001643776893616, -0.02858274057507515, -0.03666730970144272, 0.025086211040616035, 0.00604492612183094, 0.043734367936849594, -0.016973894089460373, 0.03729631379246712, -0.009842082858085632, -0.06700756400823593, -0.01845390535891056, -0.08080868422985077, -0.031043261289596558, -0.09657081216573715, 0.007839441299438477, -0.01306110993027687, 0.08857874572277069, -0.003302277997136116, 0.02321769669651985, 0.02654772438108921, 0.011035343632102013, -0.023236196488142014, -0.02935974858701229, -0.01067459024488926, 0.05598147213459015, 0.027805734425783157, -0.02181168459355831, 0.01598413474857807, 0.06789557635784149, 0.013347862288355827, 0.034780293703079224, -0.03489129617810249, 0.08672872930765152, 0.013024110347032547, 0.014846375212073326, 0.03483579307794571, 0.0029160871636122465, -0.01682589203119278, -0.06389953941106796, 0.0214786808937788, -0.02730623073875904, -0.034262288361787796, 0.04314236342906952, -0.03021075576543808, 0.017871150746941566, 0.0061605521477758884, -0.008288069628179073, -0.004810040816664696, 0.09975284337997437, -0.08058667927980423, -0.03807331994175911, -0.009139076806604862, 0.0247162077575922, -0.0024304580874741077, -0.019554665312170982, -0.017417896538972855, -0.03977533429861069, -0.02212618663907051, 0.02504921145737171, -0.03444729000329971, -0.028897244483232498, 0.019924668595194817, -0.015382880344986916, -0.05997750535607338, -0.022718191146850586, -0.06441754102706909, -0.0153181292116642, -0.009000325575470924, 0.018611157312989235, 0.03154276683926582, -0.035890303552150726, 0.035538800060749054, -0.022496189922094345, -0.025289714336395264, 0.031098762527108192, -0.0060033006593585014, 0.0072243111208081245, -0.0034456541761755943, -0.002250081393867731, -0.00997158419340849, -0.015447630546987057, 0.0028975869063287973, 0.05920049920678139, -0.02989625185728073, -0.0028744617011398077, -0.057572487741708755, 0.023254696279764175, -0.009453579783439636, -0.009129826910793781, 0.01767689920961857, -0.011238845065236092, -0.04403037205338478, -0.014050868339836597, 0.014818625524640083, -0.02491971105337143, -0.0453253835439682, 0.030377255752682686, -0.05405745655298233, 0.039664335548877716, 0.04684239625930786, 0.0019806730560958385, 0.06919058412313461, -0.040848344564437866, 0.05912650004029274, -0.023920701816678047, -0.05309544876217842, -0.03870232775807381, -0.0008018661173991859, -0.04251335933804512, 0.05812748894095421, -0.04565838724374771, 0.012654107064008713, 0.011867850087583065, 0.025104712694883347, -0.02826823852956295, -0.06574955582618713, 0.05609247460961342, 0.02545621432363987, 0.050764430314302444, 0.06256752461194992, 0.05246644467115402, 0.04724939912557602, 0.0107393404468894, 0.0029022120870649815, 0.013449613936245441, 0.07703465223312378, -0.04081134498119354, -0.033170778304338455, -0.07681264728307724, -0.027380231767892838, 0.05198543891310692, -0.003003962803632021, -0.06893157958984375, -0.03206077218055725, -0.0018534844275563955, -0.00038879233761690557, -0.008676573634147644, -0.005859924480319023, -0.03413278982043266, -0.019776666536927223, -0.05979250371456146, 0.014494872651994228, -0.023606199771165848, -0.05945950374007225, -0.06249352917075157, -0.02318069525063038, -0.02027617208659649, 0.03914633020758629, 0.05760948732495308, -0.015678882598876953, -0.01445787213742733, -0.03379978612065315, 0.020091170445084572, -0.07607264071702957, -0.05698047950863838, -0.026251722127199173, 0.034780293703079224, -0.019665665924549103, -0.04314236342906952, 0.011090843938291073, -0.024364706128835678, -0.006752557121217251, -0.020905176177620888, -0.008838449604809284, -0.02824973873794079, 0.003954408224672079, 0.03851732611656189, -0.026566224172711372, 0.015345879830420017, -0.07388962060213089, -0.0030270880088210106, 0.026936227455735207, -0.0021714558824896812, 0.012015851214528084, 0.03429928794503212, -0.010054835118353367, 0.008658072911202908, 0.06623055785894394, -0.06907958537340164, -0.005295669659972191, 0.02762073278427124, 0.027768734842538834, -0.057868488132953644, 0.0262147206813097, 0.07718265056610107, 0.016113635152578354, 0.022274188697338104, -0.022940194234251976, -0.040626343339681625, -0.04499237984418869, 0.01527187880128622, 0.0241612046957016, 0.04565838724374771, 0.065231554210186, 0.011923350393772125, -0.0007712252554483712, -0.009601580910384655, 0.06334453821182251, 0.0229771938174963, -0.031339265406131744, 0.0025784592144191265, 0.02514171227812767, 0.0040792846120893955, -0.00911132711917162, 0.02565971575677395, 0.03690781071782112, 0.03248627483844757, 0.03207927197217941, 0.027028728276491165, 0.07570263743400574, -0.061457518488168716, 0.04047834128141403, 0.04425237327814102, -0.07718265056610107, 0.01692764274775982, 0.03870232775807381, 0.008436071686446667, -0.05553746968507767, -0.0029808375984430313, 0.004847040865570307, 0.01294085942208767, 0.043216366320848465, -0.020202171057462692, 0.01445787213742733, 0.03352228179574013, 0.015281128697097301, 0.02417970448732376, 0.04432637244462967, 0.01703864336013794, 0.014309871010482311, 0.0018430780619382858, -0.018083902075886726, 0.024013202637434006, 0.0345027931034565, -0.04162535071372986, -0.05235544219613075, 0.03757381811738014, -0.00612355163320899, -0.0565364770591259, 0.014957376755774021, -0.05235544219613075, -0.030617758631706238, 0.011035343632102013, -0.029618749395012856, -0.01692764274775982, 0.01737164705991745, -0.031894270330667496, 0.03400328755378723, 0.01682589203119278, 0.0046874769032001495, -0.009851332753896713, 0.0270842295140028, 0.0025807716883718967, -0.011146344244480133, -0.052170440554618835, 0.01768614910542965, -0.013246111571788788, -0.04229135811328888, -0.04802640527486801, 0.005901549942791462, 0.027047228068113327, -0.03333728015422821, 0.01132209599018097, -0.046583391726017, 0.008177069015800953, 0.03119126334786415, -0.009499830193817616, -0.04798940569162369, 0.024031702429056168, -0.07263161242008209, -0.018537156283855438, -0.07318662106990814, 0.03257877379655838, 0.04099634662270546, 0.024531207978725433, 0.010656089521944523, -0.03959033265709877, -0.0511714331805706, -0.0184354055672884, -0.02177468314766884, -0.0382213220000267, 0.0025137087795883417, -0.012589355930685997, 0.017769400030374527, 0.027047228068113327, -0.017103394493460655, -0.02773173339664936, 0.004856291227042675, 0.017880400642752647, -0.029729751870036125, 0.018694408237934113, -0.07211361080408096, -0.02331019751727581, -0.07340861856937408, 0.04972841963171959, -0.009088201448321342, 0.02299569360911846, -0.022181687876582146, -0.018962660804390907, -0.00030091661028563976, -0.016335638239979744 ]
37,664
healpy.visufunc
azeqview
Plot a healpix map (given as an array) in Azimuthal equidistant projection or Lambert azimuthal equal-area projection. Parameters ---------- map : float, array-like or None An array containing the map, supports masked maps, see the `ma` function. If None, will display a blank map, useful for overplotting. fig : int or None, optional The figure number to use. Default: create a new figure rot : scalar or sequence, optional Describe the rotation to apply. In the form (lon, lat, psi) (unit: degrees) : the point at longitude *lon* and latitude *lat* will be at the center. An additional rotation of angle *psi* around this direction is applied. coord : sequence of character, optional Either one of 'G', 'E' or 'C' to describe the coordinate system of the map, or a sequence of 2 of these to rotate the map from the first to the second coordinate system. unit : str, optional A text describing the unit of the data. Default: '' xsize : int, optional The size of the image. Default: 800 ysize : None or int, optional The size of the image. Default: None= xsize reso : float, optional Resolution (in arcmin). Default: 1.5 arcmin lamb : bool, optional If True, plot Lambert azimuthal equal area instead of azimuthal equidistant. Default: False (az equidistant) half_sky : bool, optional Plot only one side of the sphere. Default: False title : str, optional The title of the plot. Default: 'Azimuthal equidistant view' or 'Lambert azimuthal equal-area view' (if lamb is True) nest : bool, optional If True, ordering scheme is NESTED. Default: False (RING) min : float, optional The minimum range value max : float, optional The maximum range value flip : {'astro', 'geo'}, optional Defines the convention of projection : 'astro' (default, east towards left, west towards right) or 'geo' (east towards roght, west towards left) remove_dip : bool, optional If :const:`True`, remove the dipole+monopole remove_mono : bool, optional If :const:`True`, remove the monopole gal_cut : float, scalar, optional Symmetric galactic cut for the dipole/monopole fit. Removes points in latitude range [-gal_cut, +gal_cut] format : str, optional The format of the scale label. Default: '%g' cbar : bool, optional Display the colorbar. Default: True notext : bool, optional If True, no text is printed around the map norm : {'hist', 'log', None} Color normalization, hist= histogram equalized color mapping, log= logarithmic color mapping, default: None (linear color mapping) cmap : a color map The colormap to use (see matplotlib.cm) badcolor : str Color to use to plot bad values bgcolor : str Color to use for background hold : bool, optional If True, replace the current Axes by an Equidistant AzimuthalAxes. use this if you want to have multiple maps on the same figure. Default: False sub : int, scalar or sequence, optional Use only a zone of the current figure (same syntax as subplot). Default: None reuse_axes : bool, optional If True, reuse the current Axes (should be a AzimuthalAxes). This is useful if you want to overplot with a partially transparent colormap, such as for plotting a line integral convolution. Default: False margins : None or sequence, optional Either None, or a sequence (left,bottom,right,top) giving the margins on left,bottom,right and top of the axes. Values are relative to figure (0-1). Default: None return_projected_map : bool if True returns the projected map in a 2d numpy array alpha : float, array-like or None An array containing the alpha channel, supports masked maps, see the `ma` function. If None, no transparency will be applied. See Also -------- mollview, gnomview, cartview, orthview
def azeqview( map=None, fig=None, rot=None, zat=None, coord=None, unit="", xsize=800, ysize=None, reso=1.5, lamb=False, half_sky=False, title=None, nest=False, remove_dip=False, remove_mono=False, gal_cut=0, min=None, max=None, flip="astro", format="%.3g", cbar=True, cmap=None, badcolor="gray", bgcolor="white", norm=None, aspect=None, hold=False, sub=None, reuse_axes=False, margins=None, notext=False, return_projected_map=False, alpha=None, ): """Plot a healpix map (given as an array) in Azimuthal equidistant projection or Lambert azimuthal equal-area projection. Parameters ---------- map : float, array-like or None An array containing the map, supports masked maps, see the `ma` function. If None, will display a blank map, useful for overplotting. fig : int or None, optional The figure number to use. Default: create a new figure rot : scalar or sequence, optional Describe the rotation to apply. In the form (lon, lat, psi) (unit: degrees) : the point at longitude *lon* and latitude *lat* will be at the center. An additional rotation of angle *psi* around this direction is applied. coord : sequence of character, optional Either one of 'G', 'E' or 'C' to describe the coordinate system of the map, or a sequence of 2 of these to rotate the map from the first to the second coordinate system. unit : str, optional A text describing the unit of the data. Default: '' xsize : int, optional The size of the image. Default: 800 ysize : None or int, optional The size of the image. Default: None= xsize reso : float, optional Resolution (in arcmin). Default: 1.5 arcmin lamb : bool, optional If True, plot Lambert azimuthal equal area instead of azimuthal equidistant. Default: False (az equidistant) half_sky : bool, optional Plot only one side of the sphere. Default: False title : str, optional The title of the plot. Default: 'Azimuthal equidistant view' or 'Lambert azimuthal equal-area view' (if lamb is True) nest : bool, optional If True, ordering scheme is NESTED. Default: False (RING) min : float, optional The minimum range value max : float, optional The maximum range value flip : {'astro', 'geo'}, optional Defines the convention of projection : 'astro' (default, east towards left, west towards right) or 'geo' (east towards roght, west towards left) remove_dip : bool, optional If :const:`True`, remove the dipole+monopole remove_mono : bool, optional If :const:`True`, remove the monopole gal_cut : float, scalar, optional Symmetric galactic cut for the dipole/monopole fit. Removes points in latitude range [-gal_cut, +gal_cut] format : str, optional The format of the scale label. Default: '%g' cbar : bool, optional Display the colorbar. Default: True notext : bool, optional If True, no text is printed around the map norm : {'hist', 'log', None} Color normalization, hist= histogram equalized color mapping, log= logarithmic color mapping, default: None (linear color mapping) cmap : a color map The colormap to use (see matplotlib.cm) badcolor : str Color to use to plot bad values bgcolor : str Color to use for background hold : bool, optional If True, replace the current Axes by an Equidistant AzimuthalAxes. use this if you want to have multiple maps on the same figure. Default: False sub : int, scalar or sequence, optional Use only a zone of the current figure (same syntax as subplot). Default: None reuse_axes : bool, optional If True, reuse the current Axes (should be a AzimuthalAxes). This is useful if you want to overplot with a partially transparent colormap, such as for plotting a line integral convolution. Default: False margins : None or sequence, optional Either None, or a sequence (left,bottom,right,top) giving the margins on left,bottom,right and top of the axes. Values are relative to figure (0-1). Default: None return_projected_map : bool if True returns the projected map in a 2d numpy array alpha : float, array-like or None An array containing the alpha channel, supports masked maps, see the `ma` function. If None, no transparency will be applied. See Also -------- mollview, gnomview, cartview, orthview """ # Create the figure import pylab if map is None: map = np.zeros(12) + np.inf cbar = False # Ensure that the nside is valid nside = pixelfunc.get_nside(map) pixelfunc.check_nside(nside, nest=nest) if not (hold or sub or reuse_axes): f = pylab.figure(fig, figsize=(8.5, 5.4)) if not margins: margins = (0.02, 0.05, 0.02, 0.05) extent = (0.0, 0.0, 1.0, 1.0) elif hold: f = pylab.gcf() left, bottom, right, top = np.array(f.gca().get_position()).ravel() if not margins: margins = (0.0, 0.0, 0.0, 0.0) extent = (left, bottom, right - left, top - bottom) f.delaxes(f.gca()) elif reuse_axes: f = pylab.gcf() else: # using subplot syntax f = pylab.gcf() if hasattr(sub, "__len__"): nrows, ncols, idx = sub else: nrows, ncols, idx = sub // 100, (sub % 100) // 10, (sub % 10) if idx < 1 or idx > ncols * nrows: raise ValueError("Wrong values for sub: %d, %d, %d" % (nrows, ncols, idx)) c, r = (idx - 1) % ncols, (idx - 1) // ncols if not margins: margins = (0.01, 0.0, 0.0, 0.02) extent = ( c * 1.0 / ncols, 1.0 - (r + 1) * 1.0 / nrows, 1.0 / ncols, 1.0 / nrows, ) if not reuse_axes: extent = ( extent[0] + margins[0], extent[1] + margins[1], extent[2] - margins[2] - margins[0], extent[3] - margins[3] - margins[1], ) # Starting to draw : turn interactive off wasinteractive = pylab.isinteractive() pylab.ioff() try: if reuse_axes: ax = f.gca() else: ax = PA.HpxAzimuthalAxes( f, extent, coord=coord, rot=rot, format=format, flipconv=flip ) f.add_axes(ax) if remove_dip: map = pixelfunc.remove_dipole( map, gal_cut=gal_cut, nest=nest, copy=True ) elif remove_mono: map = pixelfunc.remove_monopole( map, gal_cut=gal_cut, nest=nest, copy=True ) img = ax.projmap( map, nest=nest, xsize=xsize, ysize=ysize, reso=reso, lamb=lamb, half_sky=half_sky, coord=coord, vmin=min, vmax=max, cmap=cmap, badcolor=badcolor, bgcolor=bgcolor, norm=norm, alpha=alpha, ) if cbar: im = ax.get_images()[0] b = im.norm.inverse(np.linspace(0, 1, im.cmap.N + 1)) v = np.linspace(im.norm.vmin, im.norm.vmax, im.cmap.N) mappable = plt.cm.ScalarMappable( norm=matplotlib.colors.Normalize(vmin=im.norm.vmin, vmax=im.norm.vmax), cmap=cmap, ) if matplotlib.__version__ >= "0.91.0": cb = f.colorbar( mappable, ax=ax, orientation="horizontal", shrink=0.5, aspect=25, ticks=PA.BoundaryLocator(), pad=0.05, fraction=0.1, boundaries=b, values=v, format=format, ) else: # for older matplotlib v
(map=None, fig=None, rot=None, zat=None, coord=None, unit='', xsize=800, ysize=None, reso=1.5, lamb=False, half_sky=False, title=None, nest=False, remove_dip=False, remove_mono=False, gal_cut=0, min=None, max=None, flip='astro', format='%.3g', cbar=True, cmap=None, badcolor='gray', bgcolor='white', norm=None, aspect=None, hold=False, sub=None, reuse_axes=False, margins=None, notext=False, return_projected_map=False, alpha=None)
[ 0.05140611156821251, -0.06526646018028259, 0.04649358242750168, 0.014945931732654572, -0.022227002307772636, -0.006699900608509779, -0.04855509102344513, -0.025286367163062096, -0.06052938103675842, -0.03096647933125496, 0.022018657997250557, 0.03394908830523491, 0.05816083773970604, 0.05908193811774254, -0.012248426675796509, -0.007374276872724295, -0.008125411346554756, 0.015998616814613342, -0.003900964977219701, -0.05254651978611946, 0.03133930638432503, -0.070310577750206, 0.03504563495516777, 0.004394411109387875, -0.029058488085865974, -0.013465593568980694, 0.015570963732898235, -0.009183579124510288, 0.025527607649564743, -0.0007874576258473098, -0.060704827308654785, -0.036624662578105927, -0.01589992828667164, -0.027764564380049706, 0.010400746017694473, -0.020253218710422516, 0.060660965740680695, -0.028268974274396896, -0.011064156889915466, 0.06267861276865005, 0.030242759734392166, -0.011157362721860409, 0.03605445846915245, -0.0346728079020977, 0.02719435840845108, 0.019321152940392494, -0.048160333186388016, 0.028378630056977272, 0.011179294437170029, 0.016513993963599205, -0.023093273863196373, -0.07004740834236145, -0.0346728079020977, 0.05469575151801109, 0.007664861623197794, 0.045484758913517, 0.021634867414832115, 0.07447745651006699, 0.07539855688810349, -0.06456467509269714, -0.036580801010131836, -0.015845101326704025, -0.014682760462164879, -0.03285254165530205, 0.0199790820479393, -0.014759519137442112, 0.04147139936685562, -0.03622990474104881, 0.025330230593681335, -0.047019924968481064, -0.012270358391106129, 0.07513538002967834, 0.016185030341148376, -0.0358351469039917, 0.031997233629226685, -0.028268974274396896, -0.002919555641710758, 0.013860350474715233, 0.004372480325400829, -0.011316362768411636, -0.0191786028444767, -0.01206201408058405, 0.02866373211145401, 0.02131686918437481, 0.008114445954561234, 0.03114192746579647, 0.053906239569187164, -0.02416788972914219, -0.026953119784593582, 0.01441959012299776, 0.040857329964637756, -0.03133930638432503, 0.039716921746730804, 0.026996981352567673, -0.04201967269182205, -0.01913474127650261, -0.0023068601731210947, 0.01112446654587984, 0.0028894005808979273, -0.003794051706790924, 0.016645578667521477, -0.059696003794670105, -0.030155034735798836, -0.014331866055727005, -0.015384551137685776, 0.009304199367761612, -0.01534068863838911, 0.03774314001202583, -0.026119742542505264, 0.02664608508348465, 0.01281863171607256, 0.045046139508485794, -0.020384803414344788, -0.022676587104797363, -0.0033801053650677204, 0.010318504646420479, -0.032260406762361526, -0.054783474653959274, -0.04728309437632561, -0.022040588781237602, -0.03318150341510773, 0.014759519137442112, 0.01155760232359171, -0.05855559557676315, 0.048993706703186035, 0.041142433881759644, 0.0027399961836636066, 0.01548323966562748, -0.06855610013008118, -0.02320292964577675, 0.024935472756624222, -0.04230477288365364, -0.02853214554488659, -0.009518025442957878, 0.015680618584156036, -0.01017595361918211, 0.04355483502149582, -0.05337989702820778, -0.07425814867019653, 0.04881826043128967, -0.013487525284290314, 0.025088990107178688, -0.031448960304260254, 0.044037315994501114, -0.013399801217019558, -0.006338040344417095, 0.01559289451688528, -0.03824755176901817, 0.009260336868464947, -0.03247971460223198, 0.019529497250914574, -0.009364509023725986, -0.040221333503723145, 0.004504065960645676, 0.020165493711829185, -0.10790020227432251, 0.048072610050439835, 0.03206302598118782, 0.023071343079209328, 0.07289842516183853, -0.007582620717585087, -0.005685594864189625, 0.03230426833033562, 0.01879481039941311, -0.009331612847745419, -0.035813216120004654, 0.019617220386862755, -0.01678813062608242, -0.00958930142223835, 0.022479208186268806, -0.020933076739311218, -0.06649459153413773, -0.07667054980993271, -0.008015756495296955, 0.04943232610821724, 0.015263930894434452, -0.028554076328873634, 0.0007819748716428876, -0.006277730222791433, -0.022391485050320625, -0.0016557855997234583, 0.010548779740929604, 0.0025494711007922888, 0.07702144235372543, -0.02198576182126999, 0.02853214554488659, 0.06877541542053223, 0.006294178310781717, 0.047195371240377426, -0.002143748803064227, -0.013432697393000126, 0.029058488085865974, -0.028948834165930748, -0.02991379424929619, 0.05596774443984032, -0.0666261836886406, 0.025571469217538834, -0.04175649955868721, 0.058643318712711334, -0.013882282190024853, -0.07610034197568893, -0.04583565518260002, -0.008931373246014118, -0.03890547901391983, -0.013103733770549297, 0.005323734600096941, 0.026799602434039116, 0.011091570369899273, 0.05596774443984032, 0.02976027876138687, 0.011458913795650005, -0.009101337753236294, -0.02640484645962715, -0.033971019089221954, -0.018783845007419586, 0.0010101937223225832, -0.015121379867196083, 0.0013864462962374091, 0.012259392999112606, 0.08114445954561234, -0.03318150341510773, 0.05522209405899048, 0.0003070331003982574, -0.00034729691105894744, 0.014386693015694618, -0.020461563020944595, 0.07895136624574661, 0.07495993375778198, 0.01947467029094696, -0.0702667161822319, 0.006667003966867924, 0.02429947629570961, -0.021382661536335945, -0.03138316795229912, -0.022018657997250557, -0.04973936080932617, 0.008525650948286057, -0.0009649611311033368, -0.011568567715585232, -0.004734340589493513, 0.013926143757998943, 0.0060748690739274025, -0.024102097377181053, 0.07281070202589035, -0.05320444703102112, 0.0062338681891560555, -0.048905983567237854, 0.07131940126419067, -0.01598765142261982, -0.015220068395137787, -0.022062519565224648, -0.009616714902222157, -0.015395516529679298, 0.01854260452091694, 0.02366347797214985, -0.013904212974011898, -0.0427214615046978, -0.023816995322704315, 0.0555729903280735, -0.02820318192243576, -0.005658181384205818, -0.02489161118865013, 0.01678813062608242, -0.0004910473362542689, 0.07140712440013885, -0.023685408756136894, 0.009726369753479958, 0.0025576953776180744, -0.04291883856058121, -0.010181436315178871, 0.061757512390613556, 0.0771530270576477, -0.04024326428771019, 0.01809302158653736, 0.012555460445582867, 0.06048551946878433, 0.05210790038108826, -0.0670647993683815, 0.044168904423713684, 0.017149990424513817, 0.00047528446884825826, -0.06057324260473251, -0.048993706703186035, 0.03388329595327377, -0.02899269573390484, -0.053993962705135345, 0.01678813062608242, 0.07114395499229431, 0.034935981035232544, -0.005702042952179909, 0.0003892740933224559, 0.017139025032520294, -0.01504462119191885, -0.022007692605257034, 0.016206961125135422, -0.032633230090141296, -0.032589368522167206, -0.003478794591501355, -0.09272399544715881, -0.02156907506287098, 0.0383572056889534, -0.04248021915555, 0.04596723988652229, -0.02853214554488659, 0.017654402181506157, 0.04445400461554527, -0.03414646536111832, -0.0005657495930790901, 0.05180086940526962, -0.0021464901510626078, 0.01525296550244093, 0.02375120297074318, -0.03901513293385506, 0.0012541753239929676, -0.019573358818888664, 0.021963831037282944, 0.02370734140276909, -0.0319095104932785, 0.04982708394527435, 0.048028748482465744, -0.01636047661304474, -0.038927409797906876, -0.018783845007419586, -0.03294026479125023, 0.05140611156821251, -0.07474062591791153, 0.030023450031876564, 0.00955092255026102, 0.08193397521972656, -0.0005852818139828742, -0.06912630796432495, 0.046318136155605316, -0.04109857231378555, -0.025023195892572403, -0.02425561472773552, -0.06684549152851105, -0.03592287003993988, -0.004441014491021633, -0.04098891839385033, -0.030330482870340347, 0.02220507152378559, 0.009682508185505867, -0.030067311599850655, 0.04221704974770546, -0.034979842603206635, 0.04561634361743927, -0.018816741183400154, -0.014682760462164879, -0.03537459671497345, -0.03844492882490158, -0.011678222566843033, 0.011502775363624096, 0.012445805594325066, -0.0025056092999875546, -0.012489667162299156, 0.10053140670061111, 0.04947618767619133, -0.016810061410069466, -0.033510468900203705, 0.008119928650557995, 0.08140762895345688, -0.02513285167515278, -0.08412706851959229, -0.023071343079209328, -0.0684245154261589, -0.023137135431170464, -0.002957934746518731, -0.03179985657334328, 0.04969549924135208, -0.043839938938617706, 0.01235808152705431, -0.022128313779830933, 0.0027550735976547003, -0.00012773055641446263, 0.010609089396893978, 0.008273445069789886, 0.027545254677534103, 0.015603859908878803, -0.029519038274884224, 0.02064797468483448, 0.014189315028488636, -0.01808205619454384, -0.021218178793787956, 0.0006771176122128963, -0.02526443637907505, -0.03155861422419548, -0.008454374969005585, 0.02807159721851349, -0.02480388805270195, -0.02023128792643547, -0.009748300537467003, -0.018739983439445496, 0.04166877642273903, -0.016930682584643364, 0.009567370638251305, 0.023049412295222282, -0.012588356621563435, 0.048993706703186035, -0.03256743773818016, 0.03601059690117836, 0.04833577945828438, -0.04449786618351936, 0.04557248204946518, -0.014266072772443295, 0.02765490859746933, -0.054871197789907455, 0.001897025853395462, -0.049125295132398605, 0.022479208186268806, -0.029475176706910133, 0.07000354677438736, -0.024014374241232872, -0.023049412295222282, 0.007297518663108349, -0.043664492666721344, -0.0024247390683740377, -0.06193295866250992, -0.0323919914662838, -0.03438770771026611, -0.013695868663489819, 0.016755234450101852, 0.01910184510052204, -0.023509962484240532, 0.050879769027233124, 0.06425763666629791, -0.035813216120004654, -0.004366997629404068, 0.010959984734654427, -0.00260703987441957, 0.02148135006427765, -0.0019052500138059258, -0.059739865362644196, 0.03228233754634857, -0.008531133644282818, -0.006497039459645748, 0.023312583565711975, 0.007412656210362911, 0.014770484529435635, 0.02489161118865013, 0.028466353192925453, 0.016316615045070648, -0.008426961489021778, -0.01968301460146904, -0.04930074140429497, -0.011053191497921944, 0.04359870031476021, -0.034431569278240204, -0.0010252712527289987, 0.021547144278883934, 0.00492075365036726, 0.07412655651569366, 0.0643453598022461, -0.04675675183534622, -0.0023657996207475662, 0.08653946965932846, -0.06241543963551521, -0.03625183552503586, 0.03017696551978588, -0.006743762642145157, 0.02001197822391987, -0.012412909418344498, 0.01880577579140663, -0.030440136790275574, -0.022358588874340057, 0.06048551946878433, 0.06925789266824722, 0.04318201169371605, 0.011294431053102016, -0.03851072117686272, -0.01880577579140663, -0.01754474826157093, -0.014134487137198448, -0.02829090505838394, 0.032962195575237274, 0.03335695341229439, 0.007670344319194555, -0.015603859908878803, 0.05066046118736267, -0.03256743773818016, 0.004451979883015156, -0.022764310240745544, 0.024080166593194008, -0.0012377271195873618, -0.006173558067530394, -0.009808610193431377, 0.05364306643605232, 0.04239249601960182, -0.016426270827651024, -0.030374344438314438, -0.003961275331676006, -0.053862374275922775, -0.006815038155764341, -0.04767785221338272, 0.07816185057163239, -0.03412453457713127, 0.025944296270608902, 0.020461563020944595, -0.048204194754362106, -0.0037063281051814556, -0.03780893236398697, 0.05210790038108826, -0.0021601971238851547, 0.009496094658970833, -0.009803127497434616, -0.01808205619454384, 0.01922246441245079, -0.0031882096081972122, -0.0009498836006969213, 0.015614825300872326, 0.010422676801681519, -0.02590043470263481, -0.06184523552656174, 0.06737183034420013, -0.05561685189604759, 0.03160247579216957, 0.014430555514991283, -0.0395195446908474, -0.03901513293385506, -0.022084452211856842, -0.004079153761267662, 0.004956391174346209, 0.004684995859861374, -0.0031388651113957167, 0.02857600897550583, -0.008838166482746601, 0.04011167958378792, 0.02829090505838394, 0.021832246333360672, -0.003338984912261367, 0.006381901912391186, -0.05903807654976845, -0.05136225000023842, -0.03660273179411888, 0.03802824020385742, 0.01341076660901308, 0.02526443637907505, -0.046054963022470474, -0.08421479165554047, 0.03932216763496399, -0.04666902869939804, -0.012237461283802986, 0.008591443300247192, 0.058906491845846176, -0.056801121681928635, 0.024233683943748474, 0.01910184510052204, 0.054783474653959274, -0.045265451073646545, 0.04934460297226906, 0.002498755929991603, 0.03820369020104408, 0.018103986978530884, 0.029519038274884224, 0.00017253478290513158, 0.03267709165811539, 0.10623344779014587, 0.045046139508485794, -0.04745854437351227, -0.06838065385818481, -0.030615584924817085, 0.010170470923185349, 0.0429627001285553, 0.009764748625457287, 0.010406228713691235, -0.014463451690971851, 0.020626043900847435, 0.03269902244210243, 0.05245879665017128, 0.02236955426633358, -0.03068137727677822, -0.0001741624582791701, -0.0011602835729718208, 0.0017750350525602698, 0.0002438103110762313, -0.026799602434039116, 0.005038632079958916, 0.05798539146780968, -0.010959984734654427, 0.03353239968419075, -0.024738093838095665, -0.0027276601176708937, -0.006020041648298502, 0.02581270970404148, 0.02480388805270195, 0.03785279393196106, 0.06105572357773781, 0.04166877642273903, 0.08307438343763351, -0.006639590486884117, -0.0542132705450058, -0.012248426675796509, -0.03587900847196579, 0.04539703577756882, 0.009474163874983788, -0.039300236850976944, -0.03017696551978588, 0.0016612682957202196, 0.00452325539663434, 0.007840309292078018, 0.05140611156821251, 0.008108963258564472, -0.016316615045070648, -0.030023450031876564, -0.04552862048149109, -0.053950101137161255, -0.0059323180466890335, 0.07408269494771957, 0.03818175941705704, -0.06500329077243805, -0.04028712585568428, 0.008443409577012062, 0.018893500789999962, -0.0035034669563174248, -0.05359920486807823, -0.007379759568721056, -0.12500633299350739, -0.04952004924416542, 0.08421479165554047, 0.03276481851935387, 0.08702194690704346, -0.0015516136772930622, 0.0027057291008532047, -0.07241594791412354, 0.05368692800402641, -0.018246537074446678, -0.004018843639642, 0.06403832882642746, 0.017007440328598022, -0.013564283028244972, 0.043664492666721344, 0.0436425618827343, 0.018246537074446678, -0.03868616744875908, -0.040221333503723145, -0.00360489753074944, -0.011776912026107311, -0.01784081570804119, 0.04535317420959473, 0.028268974274396896, 0.06101186200976372, 0.017106128856539726, -0.08000405132770538, 0.04579179361462593, 0.035857077687978745, 0.08118832111358643, 0.0323919914662838, -0.0037063281051814556, -0.0033417262602597475, 0.05259038135409355, -0.01072422694414854, 0.023356445133686066, 0.033137641847133636, 0.006009076256304979, 0.010313021950423717, -0.005691077560186386, 0.003429449861869216, -0.035988662391901016, -0.020132597535848618, -0.04355483502149582, 0.0014227693900465965, -0.005496440455317497, -0.019902324303984642, -0.04851122945547104, 0.0035994146019220352, 0.06781045347452164, -0.058687180280685425, 0.0031470891553908587, 0.004090119153261185, -0.02761104702949524, 0.03366398438811302, 0.0035363631322979927, -0.04142753779888153, -0.032457783818244934, 0.011886566877365112, -0.020077770575881004, -0.017566679045557976, 0.05044114962220192, 0.02517671324312687, 0.0024754542391747236, 0.007626482751220465, 0.018400054425001144, 0.004610978998243809, -0.025001265108585358, 0.06636300683021545, 0.024080166593194008, 0.02925586700439453, 0.012928285636007786, -0.0411205030977726, 0.023531893268227577, 0.003917413298040628, 0.025286367163062096, 0.007259139325469732, 0.03495791181921959, -0.02320292964577675, 0.03890547901391983, 0.032041095197200775, -0.0735124945640564, -0.01137118972837925, 0.008278927765786648, -0.00041428906843066216, 0.00944126769900322, -0.029146213084459305, -0.02723822183907032, 0.03381749987602234, -0.02119624800980091, 0.01162339560687542, -0.01858646795153618, 0.010702296160161495, -0.01286249328404665, -0.055748436599969864, -0.018323296681046486, 0.07640738040208817, 0.01711709424853325, -0.030242759734392166, -0.007045312784612179, -0.06636300683021545, -0.04772171378135681, 0.03772120922803879, 0.00029109889874234796, -0.034935981035232544, 0.020088735967874527, 0.024562647566199303, -0.000012025605428789277, 0.04105471074581146, 0.030615584924817085, -0.001399467815645039, -0.02085631899535656, -0.0300892423838377, -0.0555729903280735, -0.002936003962531686, -0.02366347797214985, -0.004443755839020014, -0.029979588463902473, 0.020845353603363037, -0.03381749987602234, 0.03408067300915718, -0.03614218160510063, -0.06140661612153053, -0.06456467509269714, -0.02783035673201084, 0.012928285636007786, -0.08390775322914124, -0.02609781175851822, -0.045090001076459885, 0.012149738147854805, 0.015538067556917667, -0.006239350885152817, 0.02278624102473259, -0.016349511221051216, 0.028685662895441055, 0.01888253539800644, 0.057897668331861496, -0.022895896807312965, 0.04846736788749695, 0.013937109149992466, 0.009073924273252487, 0.01808205619454384, 0.03629569709300995, 0.044037315994501114, -0.0155051713809371, -0.059608280658721924, 0.021240109577775, -0.045002277940511703, -0.017599575221538544, 0.05232721194624901, 0.04401538521051407, -0.04289690777659416, -0.004693219903856516 ]
37,665
healpy.sphtfunc
beam2bl
Computes a transfer (or window) function b(l) in spherical harmonic space from its circular beam profile b(theta) in real space. Parameters ---------- beam : array Circular beam profile b(theta). theta : array Radius at which the beam profile is given. Has to be given in radians with same size as beam. lmax : integer Maximum multipole moment at which to compute b(l). Returns ------- bl : array Beam window function b(l).
def beam2bl(beam, theta, lmax): """Computes a transfer (or window) function b(l) in spherical harmonic space from its circular beam profile b(theta) in real space. Parameters ---------- beam : array Circular beam profile b(theta). theta : array Radius at which the beam profile is given. Has to be given in radians with same size as beam. lmax : integer Maximum multipole moment at which to compute b(l). Returns ------- bl : array Beam window function b(l). """ nx = len(theta) nb = len(beam) if nb != nx: raise ValueError("Beam and theta must have same size!") x = np.cos(theta) st = np.sin(theta) window = np.zeros(lmax + 1) p0 = np.ones(nx) p1 = np.copy(x) window[0] = trapz(beam * p0 * st, theta) window[1] = trapz(beam * p1 * st, theta) for l in np.arange(2, lmax + 1): p2 = x * p1 * (2 * l - 1) / l - p0 * (l - 1) / l window[l] = trapz(beam * p2 * st, theta) p0 = p1 p1 = p2 window *= 2 * np.pi return window
(beam, theta, lmax)
[ 0.017716553062200546, -0.005096970591694117, -0.08498226851224899, -0.003013064619153738, -0.05067487806081772, -0.0071250381879508495, -0.029036205261945724, 0.01028328388929367, -0.09413091093301773, 0.0014786128886044025, -0.005056766793131828, -0.021978173404932022, -0.0077549004927277565, 0.005838511046022177, -0.06772136688232422, 0.025516124442219734, 0.029536521062254906, 0.021281305700540543, -0.012186272069811821, -0.025248097255825996, 0.05814388394355774, -0.0297688115388155, 0.005297990515828133, 0.06178904324769974, -0.024461885914206505, -0.02617725543677807, -0.02069164626300335, 0.052068617194890976, -0.07883553206920624, 0.023532727733254433, 0.05253319442272186, -0.066756471991539, 0.09706133604049683, -0.07165241986513138, 0.0016695817466825247, 0.006825741846114397, 0.05964483320713043, -0.023318305611610413, -0.12672293186187744, -0.06300409883260727, 0.048816561698913574, -0.039453502744436264, 0.04317013546824455, 0.051139459013938904, 0.005909984465688467, -0.011793166399002075, 0.035879816859960556, 0.0769057422876358, -0.01773442141711712, 0.06068120151758194, -0.037130605429410934, -0.06807873398065567, 0.0409901887178421, -0.025927098467946053, -0.022424884140491486, 0.009666822850704193, -0.01661764271557331, -0.0812656357884407, 0.004954023286700249, -0.004712799564003944, 0.021638672798871994, -0.032216787338256836, 0.03752371296286583, -0.011918245814740658, 0.0457431897521019, -0.02512301877140999, -0.01023861300200224, -0.013856970705091953, -0.023461254313588142, 0.009738296270370483, -0.0036094237584620714, 0.051210932433605194, 0.005918918643146753, 0.021299174055457115, -0.09005691111087799, 0.003622825024649501, 0.021513594314455986, 0.019905434921383858, 0.016849933192133904, 0.012266679666936398, 0.07236716151237488, 0.057965200394392014, -0.001048095291480422, 0.0022748750634491444, 0.015402589924633503, -0.004210249986499548, -0.0059769912622869015, 0.021942436695098877, 0.024586964398622513, -0.05746488273143768, -0.03632652759552002, -0.040025293827056885, 0.036558814346790314, 0.06028809770941734, 0.0047798058949410915, -0.03970365971326828, -0.03446820750832558, 0.06629189103841782, -0.021156225353479385, 0.05285482853651047, -0.004478276241570711, 0.028249993920326233, -0.03620144724845886, 0.05567803978919983, 0.018475960940122604, -0.011668086983263493, -0.030948128551244736, -0.08019353449344635, 0.04434945434331894, 0.023461254313588142, -0.04102592542767525, 0.04113313555717468, -0.030394205823540688, -0.008134604431688786, -0.03977513313293457, 0.06879346817731857, 0.026445282623171806, 0.02471204474568367, 0.03096599690616131, -0.00872872956097126, 0.053819723427295685, -0.024658439680933952, -0.0034240386448800564, -0.04527861252427101, 0.06543420255184174, 0.03680897504091263, 0.04306292533874512, -0.06525552272796631, 0.021728016436100006, -0.0035133808851242065, -0.004578786436468363, 0.014839734882116318, -0.046279244124889374, -0.013088627718389034, 0.014062457717955112, 0.012364956550300121, 0.00619587954133749, -0.006383498199284077, -0.015179234556853771, -0.03984660655260086, 0.004397868178784847, 0.02176375314593315, 0.04413503035902977, 0.019601672887802124, 0.019941171631217003, 0.029518652707338333, 0.05414135381579399, -0.014893339946866035, 0.017350248992443085, 0.023568464443087578, -0.014410892501473427, -0.06525552272796631, 0.01838661916553974, 0.04309866204857826, 0.02224620059132576, 0.009550677612423897, -0.01922643557190895, -0.009756164625287056, -0.02387222833931446, 0.01165021862834692, -0.004672595299780369, 0.02506941370666027, -0.06661352515220642, 0.0033034267835319042, -0.041633449494838715, -0.01130178477615118, 0.028267862275242805, 0.04495697841048241, 0.008067597635090351, -0.008474105037748814, -0.018922671675682068, -0.01488440576940775, -0.022907331585884094, -0.027052808552980423, -0.013928444124758244, 0.05006735026836395, -0.033556919544935226, -0.0006237199995666742, -0.005239918362349272, -0.023461254313588142, 0.007062498480081558, 0.032842181622982025, 0.030751574784517288, -0.023264700546860695, 0.010649587027728558, 0.04817329719662666, -0.009135236963629723, 0.010140336118638515, 0.004239285830408335, 0.010426231659948826, -0.08369574695825577, 0.00855451263487339, 0.07483299821615219, -0.007433268707245588, -0.0529620386660099, 0.02780328318476677, 0.015018418431282043, 0.054605934768915176, -0.038417134433984756, 0.024265334010124207, 0.02548038773238659, 0.010113533586263657, -0.03243120759725571, -0.059037305414676666, 0.01801138184964657, -0.04753003269433975, -0.004210249986499548, 0.02857162617146969, -0.0009738296503201127, -0.04152623936533928, 0.0009447934571653605, -0.01274912804365158, -0.03906039521098137, -0.004239285830408335, 0.017412789165973663, -0.025105150416493416, -0.012168403714895248, 0.009765098802745342, 0.06829315423965454, 0.015000550076365471, -0.017305579036474228, 0.0060082608833909035, 0.004757470451295376, -0.04449240118265152, 0.008929749950766563, 0.017555736005306244, 0.03455755114555359, 0.009827638976275921, 0.020173462107777596, -0.029697338119149208, 0.009211177937686443, -0.0004288424097467214, -0.03130549564957619, -0.020244935527443886, 0.047708719968795776, -0.02851802110671997, -0.022692911326885223, -0.01436622068285942, -0.042062293738126755, 0.007652156986296177, 0.06253951787948608, -0.04195508360862732, -0.020780988037586212, 0.08912774920463562, -0.037273552268743515, 0.010229678824543953, 0.03859581798315048, -0.01978035643696785, -0.05349809303879738, 0.007017827592790127, -0.0761910006403923, 0.008013992570340633, 0.042419660836458206, -0.017198367044329643, 0.038417134433984756, -0.05049619451165199, 0.03380707651376724, -0.010068862698972225, -0.004703865386545658, 0.012713390402495861, 0.005717898719012737, -0.025962835177779198, 0.017135828733444214, -0.003924354910850525, -0.00004170464671915397, 0.037273552268743515, -0.024837123230099678, 0.00876446720212698, 0.038417134433984756, 0.014634247869253159, -0.016144130378961563, -0.03573686629533768, -0.019691014662384987, -0.005003161728382111, 0.0030845385044813156, -0.029339969158172607, 0.060573991388082504, 0.04056134447455406, 0.019959039986133575, -0.019101355224847794, -0.02083459496498108, -0.05038898438215256, -0.02062017284333706, 0.021174093708395958, -0.04399208351969719, 0.014455563388764858, -0.022353410720825195, -0.017761223018169403, 0.033539049327373505, -0.039524976164102554, 0.012454298324882984, -0.03639800101518631, 0.027231493964791298, 0.00772809749469161, 0.06118151918053627, 0.038953185081481934, 0.02097754180431366, -0.06425488740205765, 0.048745088279247284, -0.04513566568493843, 0.07036589086055756, 0.02753525599837303, 0.05996646359562874, 0.010149270296096802, -0.04688677191734314, -0.05482035502791405, 0.001124036149121821, -0.051496826112270355, -0.03906039521098137, -0.047279875725507736, -0.030233390629291534, -0.0010564711410552263, 0.036916185170412064, -0.03625505417585373, -0.006347761023789644, -0.01661764271557331, 0.0321095772087574, 0.020030515268445015, -0.02006625197827816, 0.0015925242332741618, 0.025605466216802597, -0.020673777908086777, 0.031216153874993324, 0.03618358075618744, 0.02028067223727703, -0.056428514420986176, 0.053748250007629395, 0.032842181622982025, 0.018118591979146004, -0.017484262585639954, -0.06203920394182205, 0.07433268427848816, -0.005007628817111254, 0.03069796971976757, -0.029268495738506317, 0.025569729506969452, 0.017832696437835693, 0.022907331585884094, -0.03130549564957619, -0.07990763336420059, 0.012686587870121002, 0.037273552268743515, 0.006718531250953674, 0.0784066915512085, 0.004154410678893328, 0.004730667918920517, 0.0009654538007453084, 0.0275888629257679, 0.026034308597445488, -0.004308525938540697, 0.08605437725782394, -0.02612365037202835, -0.07376089692115784, 0.03491491824388504, -0.02478351816534996, 0.039310555905103683, -0.011882508173584938, -0.061288729310035706, -0.05242598429322243, 0.027481650933623314, -0.006727465428411961, -0.007424334529787302, -0.04856640473008156, 0.034396734088659286, -0.013776562176644802, 0.036147840321063995, -0.03259202465415001, 0.012454298324882984, 0.02238914743065834, 0.05028177425265312, 0.008961020037531853, 0.004815543070435524, 0.028982600197196007, 0.04374192655086517, -0.037988290190696716, 0.07483299821615219, 0.04753003269433975, -0.01239175908267498, 0.028821785002946854, 0.035022132098674774, 0.021317042410373688, -0.032770708203315735, 0.01824367046356201, 0.011230310425162315, 0.0554993562400341, 0.02514088712632656, 0.04288424178957939, -0.08240921795368195, 0.026212992146611214, -0.03246694430708885, 0.04070429131388664, -0.02028067223727703, 0.03293152526021004, -0.0054320041090250015, -0.040025293827056885, 0.014741457998752594, -0.003450841410085559, 0.012713390402495861, 0.023550596088171005, 0.006682794541120529, -0.012123732827603817, 0.026141518726944923, -0.06647057086229324, -0.025605466216802597, -0.09127195924520493, 0.005297990515828133, 0.0018962875474244356, 0.016215603798627853, -0.030501415953040123, 0.0026333604473620653, 0.04116887226700783, -0.006303090136498213, -0.058251094073057175, -0.03568326309323311, 0.07869258522987366, 0.020244935527443886, -0.05714325234293938, -0.06321851909160614, -0.04291997849941254, -0.017689749598503113, 0.02921488881111145, -0.035379499197006226, 0.013106496073305607, -0.01774335466325283, 0.060716938227415085, 0.04134755581617355, -0.03496852517127991, 0.002901386935263872, 0.01003312598913908, -0.009916980750858784, 0.05835830420255661, -0.017636144533753395, -0.05303351208567619, -0.05060340464115143, -0.019047750160098076, 0.04992440342903137, 0.009032493457198143, 0.07576216012239456, 0.03838139772415161, -0.030233390629291534, 0.05049619451165199, 0.009380928240716457, 0.0073037222027778625, 0.02540891245007515, -0.005994859617203474, -0.02555186115205288, 0.00436436478048563, 0.003647394012659788, -0.019405119121074677, 0.04145476594567299, 0.04006103053689003, -0.003149311523884535, 0.052211564034223557, -0.005574951414018869, 0.06182477995753288, -0.03977513313293457, 0.03314594551920891, -0.02885752171278, -0.010712126269936562, -0.002030300907790661, 0.044242244213819504, 0.03395002335309982, 0.07179536670446396, 0.01442876085639, 0.02174588479101658, -0.043956346809864044, 0.03573686629533768, 0.005968057084828615, 0.05314072221517563, -0.018708249554038048, 0.05978778004646301, 0.02583775483071804, 0.03421805053949356, 0.0018750687595456839, 0.08684059232473373, -0.03505786880850792, -0.02224620059132576, 0.016644446179270744, -0.004123141057789326, -0.04996014013886452, -0.06639909744262695, -0.03634439408779144, 0.009523875080049038, 0.009756164625287056, -0.05532067269086838, 0.015125629492104053, -0.045314349234104156, -0.009943783283233643, 0.029518652707338333, -0.010399428196251392, -0.044242244213819504, 0.09198670089244843, 0.006182478275150061, 0.074046790599823, -0.04084724187850952, 0.020780988037586212, 0.03639800101518631, 0.010336888954043388, 0.05775078013539314, 0.019476592540740967, -0.02456909604370594, 0.02724936231970787, -0.03507573530077934, -0.03554031625390053, -0.01942298747599125, -0.029125547036528587, 0.005155043210834265, -0.032216787338256836, -0.03141270577907562, 0.0616818331182003, 0.002483712276443839, -0.0036027231253683567, -0.04817329719662666, 0.00894315168261528, -0.0892706960439682, -0.0529620386660099, -0.01591183990240097, -0.01274912804365158, 0.03827418386936188, -0.025784149765968323, 0.049531299620866776, 0.058465514332056046, -0.048316244035959244, -0.08962806314229965, 0.02648101933300495, -0.0275888629257679, 0.02394370175898075, -0.05975204333662987, 0.0024323405232280493, 0.03602276369929314, 0.013946312479674816, 0.027088545262813568, 0.01915496215224266, 0.02978667989373207, 0.019047750160098076, 0.01137325819581747, -0.07218847423791885, -0.050174564123153687, -0.01309756189584732, -0.07061605155467987, -0.023675674572587013, -0.022085383534431458, 0.01358894445002079, -0.0032833246514201164, 0.0011212442768737674, 0.05099651217460632, -0.008523243479430676, -0.02506941370666027, -0.019869698211550713, 0.03859581798315048, 0.007357327733188868, -0.009711493737995625, -0.07418973743915558, -0.007942519150674343, -0.03738076239824295, 0.004574318882077932, 0.004301825538277626, -0.054034143686294556, -0.021209830418229103, -0.026570361107587814, -0.016144130378961563, -0.004339796025305986, -0.019172830507159233, -0.0011257113656029105, -0.024050911888480186, -0.04006103053689003, 0.04785166680812836, 0.07308189570903778, 0.05131814256310463, 0.024890728294849396, 0.05807241052389145, 0.047136928886175156, -0.013714022934436798, -0.04753003269433975, 0.04760150983929634, 0.005445405375212431, -0.011605547741055489, -0.058965831995010376, 0.004775338806211948, -0.037130605429410934, 0.031001733615994453, 0.0004603913694154471, -0.026087913662195206, -0.04399208351969719, 0.019905434921383858, 0.024765649810433388, -0.03881023824214935, -0.018976276740431786, -0.05003161355853081, -0.01175742968916893, -0.03252055123448372, 0.022478489205241203, -0.0043308618478477, -0.0004550866724457592, -0.020084120333194733, -0.0027874757070094347, -0.04074002802371979, 0.04313439875841141, -0.04291997849941254, 0.026927730068564415, 0.009099500253796577, 0.013964180834591389, -0.00501656299456954, 0.0649338886141777, 0.00674086669459939, -0.006191412452608347, 0.003491045208647847, -0.08555406332015991, -0.006021662149578333, -0.0016997348284348845, -0.05024603754281998, 0.026784783229231834, -0.017287710681557655, 0.011426863260567188, -0.04688677191734314, -0.02224620059132576, -0.012981417588889599, -0.03688044846057892, 0.06118151918053627, 0.027481650933623314, 0.023622069507837296, -0.014920142479240894, -0.008514308370649815, 0.013722957111895084, -0.014661050401628017, -0.04613629728555679, 0.003459775587543845, -0.04113313555717468, 0.0409901887178421, 0.016644446179270744, -0.007486873771995306, -0.013267312198877335, 0.029375705868005753, -0.05975204333662987, -0.046422190964221954, 0.07433268427848816, 0.005159510299563408, 0.0021028912160545588, -0.012087995186448097, 0.027302967384457588, -0.04556450620293617, 0.05074635148048401, -0.009765098802745342, -0.0504247210919857, 0.03666602820158005, 0.0010352523531764746, 0.011569811031222343, 0.04174066334962845, -0.006173544097691774, -0.026802651584148407, -0.018779724836349487, 0.01211479865014553, -0.005364997312426567, 0.04374192655086517, 0.011632350273430347, -0.028678836300969124, 0.05385546013712883, 0.029733074828982353, 0.001113426755182445, -0.03548670932650566, 0.034807708114385605, -0.003678663866594434, -0.023461254313588142, -0.03891744837164879, 0.017135828733444214, -0.03350331261754036, 0.037916816771030426, 0.008121203631162643, -0.013535338453948498, -0.05632130429148674, -0.008268618024885654, -0.0674712061882019, -0.04774445667862892, -0.050782088190317154, -0.03518294543027878, 0.018073920160531998, -0.036076366901397705, 0.03863155469298363, 0.022549964487552643, -0.02590923011302948, 0.018690381199121475, -0.021996041759848595, -0.03384281322360039, 0.04928114265203476, 0.008666190318763256, 0.07104489207267761, 0.010185007005929947, 0.03730928897857666, -0.013320917263627052, 0.0011162187438458204, 0.029268495738506317, 0.024586964398622513, 0.021227698773145676, 0.034664761275053024, 0.030286995694041252, 0.001787960180081427, -0.010640652850270271, 0.008322223089635372, -0.012257745489478111, 0.02569480799138546, 0.0457431897521019, -0.015652747824788094, -0.005950188729912043, 0.0446353480219841, -0.051639772951602936, -0.029590126127004623, 0.033681999891996384, -0.00656218221411109, -0.06915084272623062, 0.01913709193468094, 0.012159469537436962, 0.019941171631217003, 0.004223651252686977, 0.022424884140491486, 0.0340929739177227, -0.01766294613480568, -0.053605303168296814, 0.017332380637526512, -0.06975836306810379, -0.018672512844204903, 0.007942519150674343, 0.02626659721136093, 0.049388352781534195, -0.010068862698972225, -0.02528383396565914, -0.014580641873180866, 0.00845176912844181, 0.05721472576260567, -0.03827418386936188, -0.026105782017111778, -0.004770871717482805, -0.01112310029566288, -0.03645160421729088, 0.050174564123153687, 0.0754762664437294, 0.051997143775224686, -0.020370014011859894, -0.032985128462314606, -0.01590290665626526, -0.024247465655207634, 0.02162080444395542, 0.012239877134561539, 0.0036585619673132896, -0.03168073296546936, -0.04324160888791084, 0.03182367980480194, -0.008058663457632065, -0.043956346809864044, 0.053247932344675064, -0.04506419226527214, 0.037916816771030426, -0.032359734177589417, 0.031019601970911026, -0.00538286566734314, 0.016313880681991577, -0.019601672887802124, 0.00035094720078632236, -0.012793798930943012, -0.05321219563484192, -0.046779561787843704, -0.040454134345054626, 0.04145476594567299, 0.04999587684869766, 0.037487976253032684, 0.005168444477021694, 0.001067638979293406, -0.04041839763522148, -0.01838661916553974 ]
37,666
healpy.sphtfunc
bl2beam
Computes a circular beam profile b(theta) in real space from its transfer (or window) function b(l) in spherical harmonic space. Parameters ---------- bl : array Window function b(l) of the beam. theta : array Radius at which the beam profile will be computed. Has to be given in radians. Returns ------- beam : array (Circular) beam profile b(theta).
def bl2beam(bl, theta): """Computes a circular beam profile b(theta) in real space from its transfer (or window) function b(l) in spherical harmonic space. Parameters ---------- bl : array Window function b(l) of the beam. theta : array Radius at which the beam profile will be computed. Has to be given in radians. Returns ------- beam : array (Circular) beam profile b(theta). """ lmax = len(bl) - 1 nx = len(theta) x = np.cos(theta) p0 = np.zeros(nx) + 1 p1 = x beam = bl[0] * p0 + bl[1] * p1 * 3 for l in np.arange(2, lmax + 1): p2 = x * p1 * (2 * l - 1) / l - p0 * (l - 1) / l p0 = p1 p1 = p2 beam += bl[l] * p2 * (2 * l + 1) beam /= 4 * np.pi return beam
(bl, theta)
[ 0.01928067021071911, 0.007885141298174858, -0.10831044614315033, 0.004368139430880547, -0.05027439445257187, -0.0020727161318063736, -0.011765971779823303, -0.01238337717950344, -0.08855349570512772, 0.008215893991291523, 0.04470010846853256, -0.015876123681664467, 0.022420614957809448, 0.01943943277001381, -0.0827675312757492, 0.01993335597217083, 0.05581339821219444, 0.03817325830459595, -0.03286357596516609, -0.004246863070875406, 0.029035666957497597, -0.019633473828434944, 0.017419636249542236, 0.08975302428007126, -0.058882780373096466, -0.040889840573072433, -0.0035258226562291384, 0.025736961513757706, -0.07825165241956711, 0.024537432938814163, 0.09370441734790802, -0.06484514474868774, 0.05909446254372597, -0.059764787554740906, -0.00315317464992404, 0.0249431561678648, 0.07116031646728516, -0.0019889255054295063, -0.13639354705810547, -0.06361033767461777, 0.02328498288989067, -0.005684534553438425, 0.053484898060560226, 0.0250489953905344, 0.0147559754550457, -0.017428455874323845, 0.02577224187552929, 0.07620539516210556, -0.01585848443210125, 0.05274401232600212, -0.02709525264799595, -0.0673147663474083, 0.034768711775541306, -0.02120344527065754, 0.00022146642731968313, 0.014385532587766647, -0.01384750846773386, -0.07038415223360062, 0.009009700268507004, 0.007942472584545612, 0.0361270047724247, -0.03905526548624039, 0.06410425901412964, -0.006804683245718479, 0.03247549384832382, -0.005089180078357458, 0.0007039517513476312, -0.001777243916876614, -0.02885926514863968, -0.02180321142077446, -0.009790277108550072, 0.012206975370645523, 0.019562913104891777, 0.0001765391934895888, -0.08100351691246033, 0.008458445779979229, -0.006875243969261646, 0.03078204020857811, 0.028206581249833107, 0.008992060087621212, 0.06971382349729538, 0.07768716663122177, -0.025172477588057518, -0.023443743586540222, 0.018151702359318733, 0.017252055928111076, -0.013706387020647526, 0.008952369913458824, 0.021503329277038574, -0.04784005507826805, -0.02510191686451435, -0.04949822649359703, 0.06205800548195839, 0.040713440626859665, 0.04378282278776169, -0.004132202360779047, -0.014041549526154995, 0.06018815189599991, -0.016943352296948433, 0.03979615122079849, -0.018680905923247337, 0.01271853968501091, -0.0052170706912875175, 0.07094863802194595, 0.010734024457633495, -0.027465695515275, -0.02460799179971218, -0.07853389531373978, 0.06727948784828186, 0.015267539769411087, -0.052003126591444016, 0.0627988949418068, -0.03820854052901268, -0.020938843488693237, -0.05733044818043709, 0.06604468077421188, 0.0057374550960958, -0.002780526876449585, 0.01318600308150053, -0.03229909390211105, 0.06445706635713577, 0.011651311069726944, -0.014808895997703075, -0.016696391627192497, 0.07003134489059448, 0.007501468528062105, 0.028382983058691025, -0.056801244616508484, -0.0046525862999260426, -0.0012700899969786406, -0.019950997084379196, 0.0025313599035143852, -0.011633670888841152, -0.0247843936085701, 0.03683260828256607, -0.0005129421479068696, 0.01861034519970417, -0.051615044474601746, 0.0025004895869642496, -0.042477451264858246, -0.014464912936091423, -0.004376959055662155, 0.022861618548631668, -0.022173654288053513, 0.04392394423484802, 0.033057618886232376, 0.03827910125255585, -0.03905526548624039, 0.013230103999376297, 0.036268122494220734, -0.029988234862685204, -0.027430415153503418, 0.04949822649359703, 0.04124264419078827, 0.024131709709763527, 0.002012078184634447, 0.01585848443210125, -0.0012899350840598345, -0.031205404549837112, 0.023443743586540222, -0.005384651944041252, 0.03199921175837517, -0.07945118099451065, 0.010090159252285957, -0.025754602625966072, -0.019668754190206528, 0.008321735076606274, 0.026936490088701248, -0.0037639643996953964, -0.030817320570349693, -0.03221089392900467, -0.04882790148258209, -0.030640920624136925, -0.034715790301561356, -0.015876123681664467, 0.03771461546421051, -0.022208934649825096, 0.024696193635463715, 0.012912580743432045, -0.062587209045887, 0.003481722204014659, 0.04223049059510231, 0.032563693821430206, -0.013997449539601803, 0.014835355803370476, 0.0774049237370491, -0.00036134719266556203, 0.010416501201689243, 0.008070363663136959, -0.011765971779823303, -0.05083887651562691, 0.012136414647102356, 0.06011759117245674, 0.02961779199540615, -0.026848290115594864, 0.011298508383333683, 0.021626809611916542, 0.030429238453507423, -0.03986671194434166, 0.017587218433618546, 0.03143472597002983, -0.011571930721402168, -0.04254801198840141, -0.023937666788697243, 0.0030010284390300512, -0.028224220499396324, -0.034433551132678986, 0.0503096729516983, -0.010090159252285957, -0.03683260828256607, -0.009269892238080502, -0.025860441848635674, -0.02616032399237156, 0.005874165799468756, 0.018037041649222374, -0.017190314829349518, 0.0038587802555412054, -0.006187278311699629, 0.08410818129777908, 0.012198155745863914, -0.007893961854279041, 0.032404933124780655, 0.003552282927557826, -0.05274401232600212, 0.019016068428754807, 0.01938651129603386, 0.018910227343440056, 0.027959618717432022, -0.0064254202879965305, -0.04240689054131508, 0.02642492763698101, -0.020250879228115082, -0.019509993493556976, -0.02758917585015297, 0.0726773664355278, -0.004776067566126585, -0.010989805683493614, -0.008357015438377857, -0.0590239018201828, 0.0002596407721284777, 0.05733044818043709, -0.027271654456853867, -0.03803213685750961, 0.09384553134441376, -0.03028811700642109, -0.007651410065591335, 0.03431006893515587, -0.023690706118941307, -0.038349661976099014, -0.021944331005215645, -0.10111327469348907, 0.021432768553495407, 0.04713444784283638, -0.023302622139453888, 0.033004697412252426, -0.06544490903615952, 0.05743629112839699, 0.02312622033059597, 0.018363384529948235, 0.03325166180729866, 0.0014123135479167104, -0.02790669910609722, 0.03856134042143822, -0.0028136020991951227, 0.014200311154127121, 0.046993326395750046, -0.026407286524772644, 0.023038020357489586, 0.014667774550616741, 0.015055857598781586, 0.024696193635463715, -0.051226962357759476, 0.0028091920539736748, -0.010972165502607822, 0.04092511907219887, -0.011104467324912548, 0.06491570919752121, 0.0687965378165245, 0.03187572956085205, 0.014658954925835133, -0.004705506842583418, -0.049074865877628326, -0.01794883981347084, 0.02515483647584915, -0.03831437975168228, 0.009402194060385227, -0.018857307732105255, 0.00007193868805188686, 0.0496746301651001, -0.028559383004903793, 0.0003514246200211346, -0.05119168013334274, 0.011889453046023846, -0.015364560298621655, 0.0641748234629631, 0.06664444506168365, 0.00029326730873435736, -0.0715131163597107, 0.040713440626859665, -0.04470010846853256, 0.06308113038539886, 0.0640689805150032, 0.044029783457517624, 0.011563110165297985, -0.04681692644953728, -0.01689925231039524, 0.013882788829505444, -0.026883570477366447, -0.022473536431789398, -0.03870246186852455, -0.04230105131864548, -0.00017984672740567476, 0.04911014437675476, 0.01988043636083603, -0.019121909514069557, -0.036373965442180634, 0.02037435956299305, 0.03268717601895332, -0.00334501126781106, -0.010734024457633495, 0.01464131474494934, -0.012489218264818192, 0.031522925943136215, 0.02714817225933075, 0.028665224090218544, -0.03877302259206772, 0.053273215889930725, 0.044029783457517624, 0.035985883325338364, -0.008057133294641972, -0.06671500205993652, 0.055143073201179504, -0.011113286949694157, 0.017719518393278122, -0.02180321142077446, 0.0068796537816524506, 0.0010247817263007164, 0.020603680983185768, -0.029035666957497597, -0.09222264587879181, -0.0007662434945814312, 0.012595058418810368, 0.010839864611625671, 0.07867501676082611, 0.011183847673237324, -0.014606034383177757, -0.0028444721829146147, 0.016652289777994156, 0.013062522746622562, -0.018486864864826202, 0.07952174544334412, -0.00460848631337285, -0.0406428799033165, 0.05796549469232559, -0.00024241408391389996, 0.047593094408512115, -0.02268521673977375, -0.04642884433269501, -0.04724029079079628, 0.03512151539325714, 0.01915718987584114, 0.01745491661131382, -0.03732653334736824, 0.003951390739530325, -0.014526654034852982, 0.03226381167769432, -0.07796940952539444, 0.019174830988049507, 0.04992159083485603, 0.040219515562057495, 0.023443743586540222, 0.0056801242753863335, 0.0035125925205647945, 0.029635431244969368, -0.03545667603611946, 0.07796940952539444, 0.01910427026450634, -0.008167384192347527, 0.013812228105962276, 0.041101522743701935, -0.013926888816058636, -0.04371226206421852, -0.001330727944150567, 0.026513127610087395, 0.02460799179971218, 0.009728536009788513, 0.029758913442492485, -0.0866483598947525, 0.039831433445215225, -0.01365346647799015, 0.022914540022611618, -0.005975596606731415, 0.045617397874593735, -0.02748333476483822, -0.02885926514863968, 0.020250879228115082, -0.001057857065461576, 0.016969813033938408, -0.024378670379519463, -0.008806838653981686, -0.005988826975226402, -0.03330457955598831, -0.03263425454497337, -0.005142100155353546, -0.08290865272283554, -0.01283320039510727, -0.0044894153252244, -0.004895138554275036, -0.012180515564978123, 0.014905916526913643, 0.052391208708286285, -0.042089369148015976, -0.011986473575234413, -0.016255388036370277, 0.040007833391427994, -0.0026349956169724464, -0.034998033195734024, -0.1096510961651802, -0.0500979907810688, 0.010284200310707092, 0.05203840881586075, -0.04470010846853256, -0.004961288999766111, 0.004771657288074493, 0.06653860211372375, 0.05570755526423454, -0.012506857514381409, 0.026742449030280113, 0.012947861105203629, -0.025454718619585037, 0.014244411140680313, 0.012568598613142967, -0.05962366610765457, -0.04251273348927498, -0.020286159589886665, 0.06431594491004944, 0.009411013685166836, 0.07916893810033798, 0.056413162499666214, -0.033551543951034546, 0.03898470476269722, 0.021997252479195595, 0.017058013007044792, -0.003929340746253729, -0.006976674776524305, -0.013450605794787407, 0.005499313119798899, -0.008127694018185139, -0.013459425419569016, 0.02164444886147976, 0.07041943073272705, 0.00029850422288291156, 0.0450529120862484, -0.02434339001774788, 0.07909838110208511, -0.018292823806405067, 0.05129752308130264, -0.049357105046510696, 0.00721481628715992, 0.010936886072158813, 0.0359153226017952, 0.04004311189055443, 0.05496666952967644, 0.008678947575390339, 0.02489023469388485, -0.03803213685750961, 0.04981575161218643, 0.01409447006881237, 0.05352018028497696, -0.0022645527496933937, 0.06893765926361084, 0.02384946681559086, 0.04604076221585274, 0.006848783697932959, 0.09285768866539001, -0.0364445261657238, -0.03330457955598831, 0.012162875384092331, -0.0407487191259861, -0.03429242968559265, -0.05824773758649826, -0.037855736911296844, 0.017146214842796326, 0.04470010846853256, -0.043147776275873184, 0.018751466646790504, -0.018592705950140953, -0.025419438257813454, 0.02979419380426407, -0.024590352550148964, -0.04371226206421852, 0.0683731734752655, 0.013688746839761734, 0.03436299040913582, -0.04724029079079628, 0.01949235238134861, 0.03536847606301308, 0.032016851007938385, 0.02455507218837738, 0.0018103191396221519, -0.0411720834672451, -0.004868678282946348, -0.01431497186422348, -0.05489610880613327, -0.014826536178588867, -0.025119556114077568, -0.01057526282966137, -0.04618187993764877, -0.035880040377378464, 0.07733436673879623, -0.00379924476146698, -0.011563110165297985, -0.05658956244587898, -0.01261269859969616, -0.0675264522433281, -0.0007723072776570916, -0.036797329783439636, -0.0020429485011845827, -0.0007678972906433046, -0.050239112228155136, 0.013979809358716011, 0.035491958260536194, -0.02582516148686409, -0.05962366610765457, 0.016546448692679405, -0.011430809274315834, 0.014085650444030762, -0.0687965378165245, -0.016228927299380302, -0.004335063975304365, -0.008908269926905632, 0.020991764962673187, 0.004881908185780048, 0.03307525813579559, 0.026442566886544228, 0.0024056737311184406, -0.036091722548007965, -0.05616619810461998, 0.01283320039510727, -0.05669540539383888, -0.009366913698613644, -0.012348096817731857, 0.01855742558836937, -0.006491570733487606, 0.01035476103425026, 0.04445314779877663, -0.009322812780737877, -0.04180712625384331, -0.018910227343440056, 0.03789101541042328, -0.004335063975304365, -0.031311243772506714, -0.10760484635829926, -0.022332414984703064, -0.008608387783169746, 0.013750487938523293, -0.0020683060865849257, -0.08382593840360641, -0.015293999575078487, -0.025613481178879738, -0.012154054827988148, -0.02372598648071289, -0.028647584840655327, -0.02296745963394642, -0.048369258642196655, -0.05045079439878464, 0.036091722548007965, 0.04381810501217842, 0.03259897604584694, -0.00015696966147515923, 0.05443746596574783, 0.06195216625928879, -0.011818892322480679, -0.033833783119916916, 0.031364165246486664, -0.012753820046782494, 0.0012689874274656177, -0.03711485117673874, -0.002789346734061837, -0.018310463055968285, 0.043465301394462585, -0.005344961769878864, -0.05366130173206329, -0.05083887651562691, 0.006465110462158918, 0.011889453046023846, -0.02115052565932274, -0.02571932226419449, -0.05394354090094566, -0.03348098322749138, -0.046005479991436005, 0.01905134879052639, 0.009208152070641518, 0.0029877983033657074, -0.046711087226867676, -0.021767931059002876, -0.03651508688926697, 0.0249960757791996, -0.0504155158996582, -0.0035059775691479445, 0.0023064480628818274, 0.003682378912344575, 0.01327420398592949, 0.05352018028497696, 0.027677377685904503, 0.0056272041983902454, 0.0010231280466541648, -0.06593883782625198, 0.002778321737423539, -0.025613481178879738, -0.04487651214003563, 0.01850450411438942, 0.002546794945374131, 0.0295119509100914, -0.01057526282966137, -0.025313599035143852, -0.019792234525084496, -0.05920030549168587, 0.0452645942568779, 0.055248912423849106, -0.012162875384092331, -0.03134652599692345, -0.035156793892383575, 0.027836138382554054, -0.014747155830264091, -0.047875333577394485, 0.008934729732573032, -0.07179535925388336, 0.03415130823850632, 0.017984120175242424, -0.008745098486542702, 0.016828691586852074, 0.0026592507492750883, -0.042759694159030914, -0.03166404739022255, 0.06283417344093323, -0.02660132758319378, 0.01723441481590271, -0.004859858192503452, 0.03448646888136864, -0.04819285869598389, 0.03810269758105278, -0.050627198070287704, -0.04265385493636131, 0.05186200514435768, -0.032457854598760605, -0.00969325564801693, 0.024519791826605797, -0.0033009108155965805, -0.018098780885338783, -0.01816934160888195, 0.03291649743914604, -0.018698547035455704, 0.04773421213030815, 0.00021512700186576694, -0.032228533178567886, 0.04233632981777191, 0.017190314829349518, -0.01740199699997902, -0.02940610982477665, 0.040113672614097595, -0.006138768047094345, -0.02797725982964039, -0.024713832885026932, 0.038349661976099014, -0.03374558314681053, 0.01112210750579834, 0.025454718619585037, -0.013097802177071571, -0.031928651034832, -0.012983141466975212, -0.04858094081282616, -0.021997252479195595, -0.03341042250394821, -0.03062327951192856, 0.039725590497255325, -0.00867012795060873, 0.009305172599852085, 0.032404933124780655, -0.0013439580798149109, 0.013230103999376297, -0.022720497101545334, -0.023479023948311806, 0.02323206141591072, 0.004138817545026541, 0.0591297447681427, 0.05785965174436569, -0.005023029167205095, 0.00020603129814844579, 0.003691199002787471, 0.02197961136698723, 0.025507640093564987, 0.038243819028139114, 0.02984711341559887, 0.049639347940683365, 0.014323792420327663, -0.03803213685750961, 0.0019216726068407297, 0.02372598648071289, 0.023267341777682304, 0.029212068766355515, -0.005309681408107281, -0.026830650866031647, 0.045511554926633835, -0.04307721555233002, -0.023090939968824387, 0.009763816371560097, 0.02439631149172783, -0.05076831579208374, -0.0018511119997128844, -0.006500390823930502, 0.028224220499396324, 0.006641511805355549, 0.033445701003074646, 0.041877686977386475, -0.009022930637001991, -0.02836534194648266, 0.000391941808629781, -0.029035666957497597, -0.00966679584234953, -0.013432965613901615, 0.02702469192445278, 0.08474322408437729, -0.016052525490522385, -0.05962366610765457, -0.03870246186852455, 0.012445117346942425, 0.04191296920180321, -0.019245389848947525, -0.044523708522319794, -0.017578396946191788, -0.016043705865740776, -0.04752253368496895, 0.053555458784103394, 0.041595444083213806, 0.03408074751496315, -0.029035666957497597, -0.04300665855407715, -0.031134843826293945, -0.013283023610711098, 0.0062357890419662, 0.011307328939437866, 0.01695217192173004, -0.016978632658720016, -0.037361811846494675, 0.013759307563304901, -0.01894550770521164, -0.03249313309788704, 0.05824773758649826, -0.052003126591444016, 0.03662092611193657, -0.0011058161035180092, 0.04300665855407715, 0.0227381382137537, 0.013574086129665375, -0.026460207998752594, 0.002685711020603776, -0.0010038340697064996, -0.053590741008520126, -0.04614660143852234, -0.043641701340675354, 0.031205404549837112, 0.04339474067091942, 0.031787529587745667, 0.010954526253044605, -0.00708692567422986, -0.043747544288635254, -0.010813404805958271 ]
37,667
healpy.sphtfunc
blm_gauss
Computes spherical harmonic coefficients of a circular Gaussian beam pointing towards the North Pole See an example of usage `in the documentation <https://healpy.readthedocs.io/en/latest/blm_gauss_plot.html>`_ Parameters ---------- fwhm : float, scalar desired FWHM of the beam, in radians lmax : int, scalar maximum l multipole moment to compute pol : bool, scalar if True, E and B coefficients will also be computed Returns ------- blm : array with dtype numpy.complex128 lmax will be as specified mmax is 0 for pol==False, else 2
def blm_gauss(fwhm, lmax, pol=False): """Computes spherical harmonic coefficients of a circular Gaussian beam pointing towards the North Pole See an example of usage `in the documentation <https://healpy.readthedocs.io/en/latest/blm_gauss_plot.html>`_ Parameters ---------- fwhm : float, scalar desired FWHM of the beam, in radians lmax : int, scalar maximum l multipole moment to compute pol : bool, scalar if True, E and B coefficients will also be computed Returns ------- blm : array with dtype numpy.complex128 lmax will be as specified mmax is 0 for pol==False, else 2 """ fwhm = float(fwhm) lmax = int(lmax) pol = bool(pol) mmax = 2 if pol else 0 ncomp = 3 if pol else 1 nval = Alm.getsize(lmax, mmax) if mmax > lmax: raise ValueError("lmax value too small") blm = np.zeros((ncomp, nval), dtype=np.complex128) sigmasq = fwhm * fwhm / (8 * np.log(2.0)) for l in range(0, lmax + 1): blm[0, Alm.getidx(lmax, l, 0)] = np.sqrt((2 * l + 1) / (4.0 * np.pi)) * np.exp( -0.5 * sigmasq * l * l ) if pol: for l in range(2, lmax + 1): blm[1, Alm.getidx(lmax, l, 2)] = np.sqrt( (2 * l + 1) / (32 * np.pi) ) * np.exp(-0.5 * sigmasq * l * l) blm[2] = 1j * blm[1] return blm
(fwhm, lmax, pol=False)
[ 0.06260813772678375, 0.023436887189745903, -0.016054542735219002, 0.0246261116117239, -0.02111332304775715, -0.02480906993150711, 0.008653901517391205, -0.057009633630514145, -0.0764763355255127, 0.0056168027222156525, -0.011727591045200825, -0.002267532516270876, 0.022028112784028053, 0.027242407202720642, -0.05528983101248741, 0.032017603516578674, -0.011434858664870262, -0.05397253483533859, 0.01243197824805975, -0.013145513832569122, 0.016713188961148262, -0.014792133122682571, -0.010840246453881264, 0.08101368695497513, -0.0018055642722174525, -0.02705945074558258, -0.013081478886306286, 0.05679008364677429, -0.003958748187869787, -0.05075247958302498, -0.0039038609247654676, -0.018734872341156006, 0.0684627890586853, -0.05141112580895424, -0.0011240466265007854, -0.027096042409539223, 0.1266067624092102, -0.012944260612130165, -0.10984782874584198, 0.009038112126290798, 0.08803926408290863, -0.013246140442788601, 0.05964422598481178, 0.04965473338961601, 0.05679008364677429, 0.016420457512140274, 0.01120616216212511, 0.0844532921910286, -0.042519379407167435, 0.027004562318325043, -0.03926273062825203, -0.049032676964998245, -0.011343380436301231, -0.011800774373114109, -0.023985760286450386, 0.04727628082036972, 0.012203281745314598, -0.008731658570468426, 0.03701234981417656, -0.010419443249702454, -0.02832185849547386, -0.038896817713975906, 0.03452412784099579, -0.08313599973917007, 0.01904590055346489, -0.014462810009717941, -0.015578852035105228, 0.004663135390728712, 0.0037140422500669956, 0.028504816815257072, -0.010858542285859585, 0.07947684079408646, 0.004015922546386719, 0.011087239719927311, -0.0014922490809112787, -0.000850753509439528, 0.029803816229104996, 0.04259256273508072, -0.04240960627794266, -0.007450954057276249, 0.049325406551361084, 0.013127218000590801, 0.03349956125020981, 0.009280531667172909, -0.04716650769114494, -0.01470065489411354, 0.013145513832569122, -0.014353035017848015, 0.04998405650258064, -0.004603674169629812, -0.004784345161169767, 0.0003704894334077835, 0.02372961863875389, 0.03156021237373352, 0.022961197420954704, -0.05891239270567894, -0.04592239484190941, 0.03653666004538536, 0.020802294835448265, 0.04705673083662987, -0.016694894060492516, -0.00539267947897315, 0.010044380091130733, 0.008338299579918385, 0.04098253324627876, 0.013209548778831959, 0.02387598529458046, -0.0829896330833435, 0.0440928153693676, -0.00006171250424813479, -0.0030942729208618402, 0.04965473338961601, 0.015304415486752987, -0.00075755943544209, -0.03300557658076286, 0.0412752665579319, -0.016713188961148262, 0.01555140782147646, 0.03240181505680084, 0.018158556893467903, -0.009468062780797482, -0.06853596866130829, -0.03159680217504501, -0.006577331107109785, 0.08189188688993454, 0.03194442018866539, 0.018286626785993576, -0.0985044464468956, -0.001071446342393756, -0.02288801409304142, 0.01746331714093685, 0.034267984330654144, -0.0019565043039619923, -0.06242518126964569, -0.017179731279611588, -0.04076298698782921, 0.020985253155231476, -0.04039707034826279, 0.018167704343795776, -0.024040646851062775, 0.007117056287825108, 0.033609338104724884, 0.014462810009717941, 0.061364028602838516, -0.015816697850823402, 0.06685275584459305, 0.08511194586753845, -0.0049673025496304035, 0.013328471221029758, -0.0066230702213943005, 0.005433844868093729, -0.040836166590452194, 0.03265795856714249, 0.02927323803305626, 0.009422323666512966, -0.010556661523878574, -0.030919859185814857, -0.010044380091130733, -0.05181363224983215, 0.011910549364984035, -0.013804161921143532, 0.016749780625104904, 0.011599521152675152, 0.005356087815016508, -0.02288801409304142, -0.03373740613460541, 0.04471487179398537, -0.013246140442788601, 0.007149073760956526, 0.018551915884017944, -0.025120098143815994, -0.039043180644512177, -0.054338451474905014, -0.016219204291701317, 0.01610942929983139, 0.03897000104188919, -0.06074197217822075, 0.01298999972641468, 0.0040433662943542, -0.021607309579849243, -0.001983948051929474, 0.03218226879835129, 0.06813346594572067, -0.0076705035753548145, -0.00605132756754756, 0.04072639346122742, -0.012697267346084118, -0.035859718918800354, 0.009797386825084686, -0.02963915467262268, -0.05854647606611252, -0.013977971859276295, 0.027699802070856094, -0.002762662013992667, -0.011965436860918999, 0.013813309371471405, 0.021643901243805885, 0.04873994365334511, -0.007377771195024252, 0.031212590634822845, -0.033462971448898315, -0.00611993670463562, -0.03489004075527191, -0.07018259167671204, 0.01470065489411354, -0.014490253292024136, 0.0375063382089138, 0.01826833002269268, 0.04515397176146507, 0.017033366486430168, 0.027315590530633926, 0.03600608557462692, -0.07911092787981033, 0.01826833002269268, 0.0081461938098073, -0.011041499674320221, 0.03882363438606262, -0.00024985166965052485, -0.026766717433929443, 0.015459929592907429, -0.057229183614254, -0.036701321601867676, 0.040543437004089355, -0.016868703067302704, -0.005342366173863411, 0.027498548850417137, 0.047825153917074203, 0.014215816743671894, 0.026053182780742645, -0.012651528231799603, 0.0473860539495945, 0.008333724923431873, 0.0109042814001441, -0.05521664768457413, -0.08525830507278442, 0.07391493022441864, -0.020290013402700424, 0.017499908804893494, -0.03992138057947159, 0.0165302325040102, 0.0440928153693676, -0.06586478650569916, -0.05027678608894348, 0.054192084819078445, -0.041714366525411606, 0.026199549436569214, 0.007396066561341286, 0.05024019628763199, -0.03823816776275635, 0.018076224252581596, -0.08357509970664978, 0.0194667037576437, 0.006010161712765694, 0.008315429091453552, 0.015697773545980453, -0.0483008436858654, 0.0010159872472286224, -0.009326270781457424, 0.024937139824032784, -0.027553435415029526, 0.007062168791890144, -0.05631439387798309, 0.04058002680540085, 0.02541283145546913, -0.0033687094692140818, 0.004521343391388655, -0.011718443594872952, 0.025101803243160248, -0.013383358716964722, 0.07204876095056534, 0.05843670293688774, -0.022357435896992683, -0.017179731279611588, -0.03598778694868088, 0.013301027938723564, 0.055326420813798904, 0.05591188743710518, 0.018881238996982574, 0.036189042031764984, -0.01937522552907467, 0.0052554612047970295, -0.05591188743710518, 0.03576824069023132, 0.05979058891534805, -0.02369302697479725, 0.02588852122426033, -0.03626222535967827, -0.0133650628849864, 0.03174316883087158, -0.028303563594818115, -0.00752871111035347, -0.03834794461727142, -0.0017906989669427276, 0.007181091234087944, 0.09645532071590424, -0.019997281953692436, 0.09374754875898361, -0.02870607003569603, -0.023272225633263588, -0.041385043412446976, 0.06209585815668106, -0.00987057015299797, 0.023601548746228218, -0.009577837772667408, -0.019759437069296837, -0.06586478650569916, -0.00302566378377378, -0.06981667131185532, 0.002316702390089631, -0.018844647333025932, -0.04544670507311821, 0.018725724890828133, 0.03842112794518471, 0.030370986089110374, -0.047861747443675995, 0.02753514051437378, 0.055180054157972336, 0.019009308889508247, 0.012011175975203514, -0.019302042201161385, 0.0024196160957217216, -0.01928374543786049, 0.02072911150753498, 0.037689294666051865, 0.012816189788281918, -0.026528872549533844, 0.0004791205865330994, 0.03441435098648071, 0.030499055981636047, -0.04427577555179596, -0.08013549447059631, 0.06813346594572067, -0.012395387515425682, 0.019356928765773773, 0.0020102481357753277, 0.01041029579937458, 0.0248639564961195, -0.04475146532058716, -0.028962211683392525, -0.12828996777534485, 0.010190746746957302, 0.0010337112471461296, 0.00898322556167841, 0.061986085027456284, -0.032804325222969055, -0.0003184608358424157, -0.012441126629710197, -0.011132978834211826, -0.022028112784028053, -0.021424351260066032, 0.06645025312900543, -0.054997097700834274, -0.0515940822660923, 0.028486520051956177, 0.03338978812098503, 0.01812196522951126, 0.005744873080402613, -0.014215816743671894, -0.01001693680882454, 0.05792442336678505, 0.0375063382089138, -0.04215346276760101, -0.04939858987927437, 0.0016420457977801561, -0.04328780248761177, 0.024589519947767258, -0.015587999485433102, 0.018350660800933838, 0.02555919624865055, -0.005850073881447315, 0.030169731006026268, -0.01127934455871582, -0.016694894060492516, 0.011379972100257874, -0.041714366525411606, 0.0487765334546566, -0.006087918765842915, 0.002822123235091567, -0.03558528050780296, 0.010437739081680775, 0.02453463338315487, -0.030590534210205078, -0.0023281374014914036, -0.006572756916284561, 0.004619683139026165, 0.021790267899632454, 0.008283412083983421, -0.02616295777261257, -0.0013676091330125928, -0.011178717948496342, 0.047861747443675995, -0.029803816229104996, 0.0342496894299984, -0.00047797709703445435, -0.018734872341156006, 0.044019632041454315, 0.05631439387798309, -0.005228017456829548, -0.05214295536279678, 0.015249527990818024, 0.017170583829283714, 0.019997281953692436, -0.04306825250387192, -0.03340808302164078, -0.05013042315840721, -0.05214295536279678, -0.00715364795178175, 0.001778120524249971, 0.009367436170578003, 0.06326679140329361, 0.04423918202519417, 0.02270505577325821, -0.0679870992898941, -0.02124139480292797, 0.005840925965458155, -0.014837873168289661, -0.07867182791233063, -0.07567132264375687, -0.017298653721809387, 0.007085038814693689, 0.03419480100274086, -0.023381998762488365, 0.0017415289767086506, -0.0035493802279233932, -0.01029137335717678, 0.026382505893707275, -0.01964966207742691, -0.012111802585422993, -0.04895949363708496, -0.009385732002556324, 0.040689803659915924, 0.02669353410601616, -0.0218085628002882, -0.010099267587065697, -0.032950688153505325, 0.028614591807127, 0.003846686566248536, 0.06418157368898392, -0.0033595615532249212, -0.08218462020158768, 0.023290520533919334, 0.009586986154317856, -0.033225126564502716, 0.007245126646012068, 0.0050862254574894905, -0.020143646746873856, 0.009925457648932934, -0.03622563183307648, -0.0008719079778529704, 0.009404027834534645, 0.03161509707570076, 0.054411631077528, -0.004304080735892057, 0.017298653721809387, 0.03673791512846947, -0.04387326538562775, 0.015441633760929108, -0.03249329701066017, 0.02321733720600605, 0.03335319831967354, -0.014792133122682571, 0.05214295536279678, 0.03382888808846474, -0.003201760584488511, 0.04156799986958504, -0.011014056392014027, 0.09901673346757889, 0.042848702520132065, -0.02213788777589798, -0.01904590055346489, 0.05726577341556549, 0.010501774027943611, 0.01555140782147646, 0.02030831016600132, 0.016941886395215988, -0.06732845306396484, 0.005982718430459499, 0.07398810982704163, 0.043214619159698486, -0.07106078416109085, 0.02405894361436367, 0.0040090614929795265, 0.0026277306023985147, -0.006348633673042059, 0.01219413336366415, 0.0081461938098073, -0.01913738064467907, -0.062498364597558975, -0.00025256743538193405, -0.01646619662642479, -0.02630932442843914, 0.038494307547807693, -0.009815682657063007, 0.04577602818608284, -0.017801787704229355, -0.030938154086470604, 0.01568862609565258, -0.003373283427208662, 0.04328780248761177, 0.014892760664224625, -0.014032859355211258, -0.029090281575918198, -0.04749583080410957, -0.05997354909777641, -0.03126747906208038, -0.018862944096326828, 0.014773838222026825, -0.00011241895845159888, -0.008287985809147358, 0.054338451474905014, -0.010026084259152412, -0.03242011368274689, 0.0003321826516184956, 0.015542260371148586, -0.0007952944142743945, -0.0076522077433764935, 0.02354666218161583, 0.005740299355238676, -0.0023921725805848837, 0.008951207622885704, 0.03044416941702366, 0.04628830775618553, -0.07815954834222794, -0.02804742194712162, -0.027608323842287064, -0.01800304278731346, -0.03457901254296303, -0.07574450224637985, -0.009431472048163414, 0.013310175389051437, 0.007107908371835947, -0.021515831351280212, 0.0043886988423764706, 0.037122126668691635, -0.014490253292024136, -0.00759732024744153, -0.05148430913686752, -0.05481414124369621, -0.025687268003821373, -0.07581768929958344, -0.05009382963180542, 0.026382505893707275, 0.06549887359142303, 0.00330696115270257, -0.024369971826672554, 0.02499202825129032, 0.027077745646238327, 0.0022480932530015707, 0.012816189788281918, -0.03467049077153206, 0.021314576268196106, -0.024662703275680542, -0.020692521706223488, -0.044861238449811935, -0.011828217655420303, -0.010757915675640106, 0.0197045486420393, -0.07212194055318832, -0.05411890149116516, -0.02129628136754036, -0.05514346435666084, 0.01937522552907467, -0.002595712896436453, 0.03216397017240524, -0.012843634001910686, 0.01427985168993473, 0.030791787430644035, 0.0689384788274765, -0.00655446108430624, -0.0006037605344317853, -0.030370986089110374, 0.03842112794518471, -0.04295847937464714, -0.013429098762571812, 0.05463118106126785, 0.022247660905122757, -0.003448753384873271, -0.059827182441949844, 0.0024676425382494926, -0.01772860623896122, 0.008374890312552452, 0.0008307425305247307, -0.05474095791578293, -0.00016752068768255413, 0.03351785987615585, 0.015368450433015823, -0.03293239325284958, 0.00643553864210844, -0.03128577396273613, 0.02630932442843914, -0.009092999622225761, 0.01880805566906929, -0.01364864781498909, -0.034304577857255936, -0.02336370386183262, 0.012386239133775234, -0.02982211299240589, -0.012404534965753555, -0.06806027889251709, 0.059022169560194016, 0.0070987604558467865, 0.013246140442788601, -0.027644915506243706, 0.009559541940689087, -0.013657795265316963, 0.029657449573278427, 0.013355915434658527, -0.07398810982704163, -0.04380008205771446, 0.003704894334077835, -0.08145278692245483, 0.03446923941373825, -0.05525323748588562, 0.05876602604985237, -0.04072639346122742, -0.016210056841373444, -0.04939858987927437, 0.03263965994119644, 0.09594304114580154, 0.08503875881433487, -0.0134839853271842, 0.022064704447984695, 0.009257662110030651, 0.03999456390738487, -0.028248675167560577, -0.05430185794830322, 0.011114683002233505, -0.03710383176803589, 0.0036614418495446444, 0.09916310012340546, -0.021881746128201485, 0.020802294835448265, 0.0417509563267231, -0.028084013611078262, -0.010135859251022339, 0.020436380058526993, -0.023235633969306946, 0.009879718534648418, 0.03274943679571152, 0.03207249194383621, -0.04742264747619629, 0.00004724026075564325, 0.010300520807504654, -0.071280337870121, 0.04295847937464714, 0.09682124108076096, -0.007313735783100128, 0.008772823959589005, 0.000566883129067719, -0.07874501496553421, 0.027041153982281685, -0.028212083503603935, 0.0018158556194975972, 0.04358053579926491, -0.035530392080545425, -0.060851745307445526, 0.00912044383585453, 0.01041029579937458, -0.02561408467590809, -0.0267301257699728, -0.0032154822256416082, -0.021753676235675812, 0.04090934991836548, -0.03867726773023605, -0.022430619224905968, 0.0020525571890175343, 0.03333489969372749, 0.019539887085556984, -0.01814940758049488, -0.0076476335525512695, 0.031249182298779488, -0.0171248447149992, -0.035859718918800354, -0.04822766035795212, -0.04105571657419205, 0.021040139719843864, -0.007606468163430691, 0.02777298539876938, -0.02016194351017475, 0.0034464665222913027, 0.08408737927675247, 0.029895294457674026, -0.04464168846607208, 0.06784073263406754, 0.04606876149773598, 0.0520697720348835, 0.0134839853271842, 0.004953580908477306, -0.041860733181238174, -0.015697773545980453, 0.021369464695453644, 0.007249700371176004, 0.02387598529458046, 0.0059049613773822784, 0.057485323399305344, -0.0023098415695130825, -0.040689803659915924, -0.010382851585745811, 0.01339250709861517, 0.035146184265613556, 0.07808636128902435, 0.016960183158516884, -0.028449928387999535, 0.045849211513996124, -0.05876602604985237, 0.010090119205415249, 0.046507857739925385, 0.004679144360125065, -0.07918411493301392, -0.00949550699442625, -0.024278491735458374, 0.09572349488735199, -0.0283767469227314, -0.036646436899900436, 0.05547278746962547, -0.04647126793861389, -0.014060302637517452, -0.005799760576337576, -0.0267301257699728, -0.029620857909321785, 0.024132126942276955, 0.017646273598074913, 0.043360985815525055, -0.016475344076752663, 0.01153548527508974, -0.026108069345355034, 0.020107055082917213, 0.00895578134804964, -0.018515324220061302, -0.027333887293934822, -0.007816869765520096, -0.030462464317679405, -0.03137725219130516, 0.054997097700834274, 0.05342366173863411, 0.0068883588537573814, -0.02579704113304615, -0.006984411738812923, -0.05605825409293175, -0.02715092897415161, 0.026528872549533844, -0.02561408467590809, 0.004054801072925329, -0.021442648023366928, -0.03681109845638275, -0.006723697297275066, 0.00538353156298399, -0.001198373269289732, -0.014060302637517452, -0.00623885914683342, -0.014453661628067493, 0.01024563331156969, 0.031175998970866203, 0.07742771506309509, 0.013374211266636848, -0.011352527886629105, -0.01928374543786049, -0.00925308745354414, -0.029584266245365143, -0.05232591554522514, -0.01796645112335682, 0.08240416646003723, 0.020509563386440277, 0.017737753689289093, -0.0340118445456028, 0.01465491484850645, -0.043360985815525055, -0.012944260612130165 ]
37,668
healpy.visufunc
cartview
Plot a healpix map (given as an array) in Cartesian projection. Parameters ---------- map : float, array-like or None An array containing the map, supports masked maps, see the `ma` function. If None, will display a blank map, useful for overplotting. fig : int or None, optional The figure number to use. Default: create a new figure rot : scalar or sequence, optional Describe the rotation to apply. In the form (lon, lat, psi) (unit: degrees) : the point at longitude *lon* and latitude *lat* will be at the center. An additional rotation of angle *psi* around this direction is applied. coord : sequence of character, optional Either one of 'G', 'E' or 'C' to describe the coordinate system of the map, or a sequence of 2 of these to rotate the map from the first to the second coordinate system. unit : str, optional A text describing the unit of the data. Default: '' xsize : int, optional The size of the image. Default: 800 lonra : sequence, optional Range in longitude. Default: [-180,180] latra : sequence, optional Range in latitude. Default: [-90,90] title : str, optional The title of the plot. Default: 'Mollweide view' nest : bool, optional If True, ordering scheme is NESTED. Default: False (RING) min : float, optional The minimum range value max : float, optional The maximum range value flip : {'astro', 'geo'}, optional Defines the convention of projection : 'astro' (default, east towards left, west towards right) or 'geo' (east towards roght, west towards left) remove_dip : bool, optional If :const:`True`, remove the dipole+monopole remove_mono : bool, optional If :const:`True`, remove the monopole gal_cut : float, scalar, optional Symmetric galactic cut for the dipole/monopole fit. Removes points in latitude range [-gal_cut, +gal_cut] format : str, optional The format of the scale label. Default: '%g' cbar : bool, optional Display the colorbar. Default: True notext : bool, optional If True, no text is printed around the map norm : {'hist', 'log', None}, optional Color normalization, hist= histogram equalized color mapping, log= logarithmic color mapping, default: None (linear color mapping) cmap : a color map The colormap to use (see matplotlib.cm) badcolor : str Color to use to plot bad values bgcolor : str Color to use for background hold : bool, optional If True, replace the current Axes by a CartesianAxes. use this if you want to have multiple maps on the same figure. Default: False sub : int, scalar or sequence, optional Use only a zone of the current figure (same syntax as subplot). Default: None reuse_axes : bool, optional If True, reuse the current Axes (should be a CartesianAxes). This is useful if you want to overplot with a partially transparent colormap, such as for plotting a line integral convolution. Default: False margins : None or sequence, optional Either None, or a sequence (left,bottom,right,top) giving the margins on left,bottom,right and top of the axes. Values are relative to figure (0-1). Default: None return_projected_map : bool if True returns the projected map in a 2d numpy array alpha : float, array-like or None An array containing the alpha channel, supports masked maps, see the `ma` function. If None, no transparency will be applied. See Also -------- mollview, gnomview, orthview, azeqview
def cartview( map=None, fig=None, rot=None, zat=None, coord=None, unit="", xsize=800, ysize=None, lonra=None, latra=None, title="Cartesian view", nest=False, remove_dip=False, remove_mono=False, gal_cut=0, min=None, max=None, flip="astro", format="%.3g", cbar=True, cmap=None, badcolor="gray", bgcolor="white", norm=None, aspect=None, hold=False, sub=None, reuse_axes=False, margins=None, notext=False, return_projected_map=False, alpha=None, ): """Plot a healpix map (given as an array) in Cartesian projection. Parameters ---------- map : float, array-like or None An array containing the map, supports masked maps, see the `ma` function. If None, will display a blank map, useful for overplotting. fig : int or None, optional The figure number to use. Default: create a new figure rot : scalar or sequence, optional Describe the rotation to apply. In the form (lon, lat, psi) (unit: degrees) : the point at longitude *lon* and latitude *lat* will be at the center. An additional rotation of angle *psi* around this direction is applied. coord : sequence of character, optional Either one of 'G', 'E' or 'C' to describe the coordinate system of the map, or a sequence of 2 of these to rotate the map from the first to the second coordinate system. unit : str, optional A text describing the unit of the data. Default: '' xsize : int, optional The size of the image. Default: 800 lonra : sequence, optional Range in longitude. Default: [-180,180] latra : sequence, optional Range in latitude. Default: [-90,90] title : str, optional The title of the plot. Default: 'Mollweide view' nest : bool, optional If True, ordering scheme is NESTED. Default: False (RING) min : float, optional The minimum range value max : float, optional The maximum range value flip : {'astro', 'geo'}, optional Defines the convention of projection : 'astro' (default, east towards left, west towards right) or 'geo' (east towards roght, west towards left) remove_dip : bool, optional If :const:`True`, remove the dipole+monopole remove_mono : bool, optional If :const:`True`, remove the monopole gal_cut : float, scalar, optional Symmetric galactic cut for the dipole/monopole fit. Removes points in latitude range [-gal_cut, +gal_cut] format : str, optional The format of the scale label. Default: '%g' cbar : bool, optional Display the colorbar. Default: True notext : bool, optional If True, no text is printed around the map norm : {'hist', 'log', None}, optional Color normalization, hist= histogram equalized color mapping, log= logarithmic color mapping, default: None (linear color mapping) cmap : a color map The colormap to use (see matplotlib.cm) badcolor : str Color to use to plot bad values bgcolor : str Color to use for background hold : bool, optional If True, replace the current Axes by a CartesianAxes. use this if you want to have multiple maps on the same figure. Default: False sub : int, scalar or sequence, optional Use only a zone of the current figure (same syntax as subplot). Default: None reuse_axes : bool, optional If True, reuse the current Axes (should be a CartesianAxes). This is useful if you want to overplot with a partially transparent colormap, such as for plotting a line integral convolution. Default: False margins : None or sequence, optional Either None, or a sequence (left,bottom,right,top) giving the margins on left,bottom,right and top of the axes. Values are relative to figure (0-1). Default: None return_projected_map : bool if True returns the projected map in a 2d numpy array alpha : float, array-like or None An array containing the alpha channel, supports masked maps, see the `ma` function. If None, no transparency will be applied. See Also -------- mollview, gnomview, orthview, azeqview """ import pylab if map is None: map = np.zeros(12) + np.inf cbar = False # Ensure that the nside is valid nside = pixelfunc.get_nside(map) pixelfunc.check_nside(nside, nest=nest) if not (hold or sub or reuse_axes): f = pylab.figure(fig, figsize=(8.5, 5.4)) if not margins: margins = (0.075, 0.05, 0.075, 0.05) extent = (0.0, 0.0, 1.0, 1.0) elif hold: f = pylab.gcf() left, bottom, right, top = np.array(pylab.gca().get_position()).ravel() if not margins: margins = (0.0, 0.0, 0.0, 0.0) extent = (left, bottom, right - left, top - bottom) f.delaxes(pylab.gca()) elif reuse_axes: f = pylab.gcf() else: # using subplot syntax f = pylab.gcf() if hasattr(sub, "__len__"): nrows, ncols, idx = sub else: nrows, ncols, idx = sub // 100, (sub % 100) // 10, (sub % 10) if idx < 1 or idx > ncols * nrows: raise ValueError("Wrong values for sub: %d, %d, %d" % (nrows, ncols, idx)) c, r = (idx - 1) % ncols, (idx - 1) // ncols if not margins: margins = (0.01, 0.0, 0.0, 0.02) extent = ( c * 1.0 / ncols, 1.0 - (r + 1) * 1.0 / nrows, 1.0 / ncols, 1.0 / nrows, ) if not reuse_axes: extent = ( extent[0] + margins[0], extent[1] + margins[1], extent[2] - margins[2] - margins[0], extent[3] - margins[3] - margins[1], ) # f=pylab.figure(fig,figsize=(5.5,6)) # Starting to draw : turn interactive off wasinteractive = pylab.isinteractive() pylab.ioff() try: map = pixelfunc.ma_to_array(map) if zat and rot: raise ValueError("Only give rot or zat, not both") if zat: rot = np.array(zat, dtype=np.float64) rot.resize(3) rot[1] -= 90 if reuse_axes: ax = f.gca() else: ax = PA.HpxCartesianAxes( f, extent, coord=coord, rot=rot, format=format, flipconv=flip ) f.add_axes(ax) if remove_dip: map = pixelfunc.remove_dipole(map, gal_cut=gal_cut, nest=nest, copy=True) elif remove_mono: map = pixelfunc.remove_monopole(map, gal_cut=gal_cut, nest=nest, copy=True) img = ax.projmap( map, nest=nest, coord=coord, vmin=min, vmax=max, xsize=xsize, ysize=ysize, lonra=lonra, latra=latra, cmap=cmap, badcolor=badcolor, bgcolor=bgcolor, norm=norm, aspect=aspect, alpha=alpha, ) if cbar: im = ax.get_images()[0] b = im.norm.inverse(np.linspace(0, 1, im.cmap.N + 1)) v = np.linspace(im.norm.vmin, im.norm.vmax, im.cmap.N) mappable = plt.cm.ScalarMappable( norm=matplotlib.colors.Normalize(vmin=im.norm.vmin, vmax=im.norm.vmax), cmap=cmap, ) if matplotlib.__version__ >= "0.91.0": cb = f.colorbar( mappable, ax=ax, orientation="horizontal", shrink=0.5, aspect=25, ticks=PA.BoundaryLocator(), pad=0.08, fraction=0.1, boundaries=b, values=v, format=format, ) else: cb = f.colorbar( mappable, orientation="horizontal", shrink=0.5, aspect=25, ticks=PA.BoundaryLoc
(map=None, fig=None, rot=None, zat=None, coord=None, unit='', xsize=800, ysize=None, lonra=None, latra=None, title='Cartesian view', nest=False, remove_dip=False, remove_mono=False, gal_cut=0, min=None, max=None, flip='astro', format='%.3g', cbar=True, cmap=None, badcolor='gray', bgcolor='white', norm=None, aspect=None, hold=False, sub=None, reuse_axes=False, margins=None, notext=False, return_projected_map=False, alpha=None)
[ 0.061864983290433884, -0.06104643642902374, 0.029489263892173767, 0.04120742157101631, -0.02541806548833847, -0.02095913328230381, -0.04954368621110916, -0.00556289404630661, -0.03929029777646065, -0.030307810753583908, 0.005002835299819708, 0.02936001867055893, 0.06552691012620926, 0.06716400384902954, -0.007302308455109596, -0.0026064286939799786, -0.0017447993159294128, -0.009704099968075752, -0.0009430802310816944, -0.03976419195532799, 0.045537110418081284, -0.06686243414878845, 0.05596282333135605, 0.013699905946850777, -0.041530534625053406, -0.009924892336130142, 0.01058188546448946, 0.013699905946850777, 0.030458595603704453, -0.008783234283328056, -0.057987652719020844, -0.02929539605975151, -0.015703193843364716, -0.026990538462996483, 0.00008570014324504882, -0.0006886303308419883, 0.06212347373366356, -0.039548784494400024, -0.006004479248076677, 0.05018990859389305, 0.030372433364391327, -0.0009168274700641632, 0.04545094817876816, -0.0432107113301754, 0.030264729633927345, 0.02225157618522644, -0.050405316054821014, 0.032268017530441284, -0.0025620008818805218, 0.028326064348220825, -0.016080157831311226, -0.06681935489177704, -0.03903180733323097, 0.027162864804267883, 0.007727738004177809, 0.04398617520928383, 0.02007596381008625, 0.08047617971897125, 0.06475144624710083, -0.0690595880150795, -0.024728761985898018, -0.018298853188753128, -0.016478661447763443, -0.023500939831137657, 0.04361998289823532, -0.01840655691921711, 0.052990201860666275, -0.04120742157101631, 0.03418514132499695, -0.031212521716952324, -0.00862706359475851, 0.07336773723363876, -0.001417649444192648, -0.031040195375680923, 0.019246645271778107, -0.03577915579080582, 0.018191149458289146, -0.007506945636123419, 0.014604616910219193, -0.017437223345041275, -0.017781874164938927, -0.023220909759402275, 0.022057710215449333, 0.025051873177289963, 0.023867132142186165, 0.04004422202706337, 0.06302818655967712, -0.006435294169932604, -0.04820815846323967, 0.015240068547427654, 0.01854657009243965, -0.004450853914022446, 0.04859589412808418, 0.02612890861928463, -0.06134800612926483, -0.03360354155302048, -0.005360949784517288, 0.032849617302417755, 0.010479566641151905, 0.013646054081618786, 0.024577977135777473, -0.05277479439973831, -0.031190982088446617, -0.02841222658753395, -0.015983223915100098, 0.014841564930975437, -0.012224365957081318, 0.03933337703347206, -0.026387397199869156, 0.01939743012189865, 0.00840088538825512, 0.059969399124383926, -0.012192054651677608, -0.032440342009067535, -0.02599966526031494, 0.019375888630747795, -0.039548784494400024, -0.04713112488389015, -0.04820815846323967, -0.0013839921448379755, -0.06651778519153595, -0.002926846966147423, 0.01591860130429268, -0.04527861997485161, 0.036791570484638214, 0.02729210816323757, 0.0028514545410871506, 0.024577977135777473, -0.017577238380908966, -0.015455476008355618, 0.023802509531378746, -0.0717737227678299, -0.04079814627766609, -0.014884646050632, 0.0280675757676363, -0.024319486692547798, 0.03144947066903114, -0.06005556508898735, -0.07142907381057739, 0.06384672969579697, -0.005848309025168419, 0.024836465716362, -0.024060998111963272, 0.06828412413597107, -0.021239163354039192, -0.008993255905807018, 0.028261441737413406, -0.04648490250110626, -0.010027211159467697, -0.029855456203222275, 0.026408938691020012, -0.010064907371997833, -0.022380821406841278, -0.011082706972956657, 0.010145685635507107, -0.09210817515850067, 0.04129358381032944, 0.03545604646205902, 0.026021204888820648, 0.07500483095645905, -0.005264016799628735, -0.013366024941205978, 0.01928972639143467, 0.023630183190107346, -0.010754210874438286, -0.03733009099960327, 0.021896155551075935, -0.013333713635802269, -0.003344198688864708, 0.03310810774564743, -0.019537445157766342, -0.07155831158161163, -0.037437792867422104, -0.033086564391851425, 0.03657616302371025, 0.035908401012420654, -0.04120742157101631, -0.021303784102201462, -0.01040955912321806, -0.015929371118545532, 0.012310529127717018, 0.0008165283943526447, 0.004213905893266201, 0.08775694668292999, -0.019182022660970688, 0.033323515206575394, 0.06819795817136765, 0.002256391802802682, 0.06483760476112366, 0.0037884763441979885, -0.0057298350147902966, 0.039548784494400024, -0.03323734924197197, -0.030781706795096397, 0.04794967174530029, -0.05600590631365776, 0.036188431084156036, -0.042198296636343, 0.040884312242269516, 0.0007115173502825201, -0.07965762913227081, -0.053291771560907364, -0.007996996864676476, -0.051870085299015045, -0.01790034957230091, 0.014873876236379147, 0.021756140515208244, 0.015046201646327972, 0.06376057118177414, 0.02905844897031784, 0.026107368990778923, 0.004992065019905567, -0.008390115574002266, -0.03347430005669594, 0.01068420335650444, 0.001118771848268807, -0.03881639987230301, 0.005115923937410116, 0.0007074784371070564, 0.06992121785879135, -0.030329352244734764, 0.060270968824625015, -0.01544470526278019, 0.008820930495858192, -0.008309337310492992, -0.02970467135310173, 0.08211327344179153, 0.07065360248088837, 0.035951483994722366, -0.048466648906469345, 0.00192654924467206, 0.0008999987621791661, -0.01687716506421566, -0.017814185470342636, -0.00489782402291894, -0.08978177607059479, 0.00441315770149231, 0.04433082789182663, -0.0091871228069067, 0.01782495714724064, 0.006564538460224867, 0.005032453685998917, -0.017189504578709602, 0.06949040293693542, -0.04041041433811188, 0.026150450110435486, -0.03668386861681938, 0.06152033433318138, -0.018600422888994217, 0.01745876483619213, -0.00691457511857152, -0.018180377781391144, -0.016931015998125076, 0.014076869003474712, 0.032504964619874954, -0.020592940971255302, -0.05535968393087387, -0.0408196896314621, 0.03763166069984436, -0.028498388826847076, -0.014313817024230957, -0.00227523990906775, -0.0051105390302836895, -0.01919279247522354, 0.07866675406694412, -0.025913501158356667, 0.011588914319872856, 0.002762598916888237, -0.04738961160182953, 0.00542826484888792, 0.07810669392347336, 0.07819285988807678, -0.02242390252649784, 0.04301684349775314, 0.0008757653995417058, 0.04273681342601776, 0.025288820266723633, -0.04346919804811478, 0.05600590631365776, 0.008923248387873173, -0.0003093114646617323, -0.052516307681798935, -0.0632866695523262, 0.021120687946677208, -0.04342611879110336, -0.05014682561159134, 0.018428096547722816, 0.07220453768968582, 0.024513354524970055, -0.00006218203634489328, 0.009951818734407425, 0.033840492367744446, 0.001988478936254978, -0.017200274392962456, 0.015735505148768425, -0.03562837094068527, -0.012633639387786388, 0.013366024941205978, -0.09090189635753632, -0.00027178347227163613, 0.03306502476334572, -0.047346532344818115, 0.0459248423576355, -0.01650020107626915, 0.02864917553961277, 0.0605725422501564, -0.01749107427895069, -0.009144040755927563, 0.038127098232507706, 0.020980672910809517, 0.02259622886776924, 0.032612670212984085, -0.04092739149928093, 0.02150842174887657, -0.024341028183698654, 0.023156287148594856, 0.0234793983399868, -0.020269829779863358, 0.0462694950401783, 0.0408196896314621, -0.0018780826358124614, -0.03814863786101341, -0.014141490682959557, -0.0006680992664769292, 0.05794456973671913, -0.03209569305181503, 0.03280653804540634, 0.008783234283328056, 0.08693839609622955, 0.0077438936568796635, -0.06556998938322067, 0.05863387510180473, -0.04777734726667404, -0.02231619879603386, -0.0065322271548211575, -0.051525432616472244, -0.0347021222114563, -0.019074318930506706, -0.036791570484638214, -0.03722238540649414, 0.03153563290834427, -0.011599685065448284, -0.04773426428437233, 0.03804093599319458, -0.04338303580880165, 0.03599456325173378, -0.020862199366092682, -0.01093730702996254, -0.047346532344818115, -0.036490000784397125, -0.0036996209528297186, 0.010382633656263351, 0.015078512951731682, 0.0032284173648804426, -0.017221815884113312, 0.09770876169204712, 0.035671453922986984, -0.032031070441007614, -0.03575761616230011, 0.02388867363333702, 0.08474124222993851, -0.005923701450228691, -0.053808752447366714, -0.018223460763692856, -0.08099315315485, -0.014367668889462948, -0.013872232288122177, -0.039247214794158936, 0.029812375083565712, -0.031018655747175217, 0.021077606827020645, -0.005223627667874098, -0.0019252030178904533, 0.015218527987599373, 0.006273738574236631, 0.003144947113469243, 0.006817642133682966, 0.016155550256371498, -0.03541296347975731, 0.021766910329461098, 0.002090797293931246, -0.0330004021525383, -0.018094215542078018, 0.009941047988831997, -0.008853240869939327, -0.009278670884668827, 0.006833797320723534, 0.020980672910809517, -0.029618507251143456, -0.03685619309544563, -0.01052803359925747, -0.011998188681900501, 0.050577640533447266, -0.019408199936151505, 0.014798483811318874, 0.0012796542141586542, 0.017135653644800186, 0.0503622330725193, -0.02888612262904644, 0.010883455164730549, 0.048121996223926544, -0.041659776121377945, 0.033905114978551865, -0.014755401760339737, 0.01766340062022209, -0.06638853996992111, -0.013839920982718468, -0.04549402743577957, 0.013053684495389462, -0.011578143574297428, 0.06862877309322357, -0.008723996579647064, -0.0268828347325325, -0.01133042573928833, -0.05096537247300148, -0.021239163354039192, -0.07539256662130356, -0.03216031566262245, -0.012730573303997517, 0.00345728755928576, 0.014960039407014847, 0.025267278775572777, 0.005492886994034052, 0.029920078814029694, 0.03476674109697342, -0.04097047448158264, 0.005740605294704437, 0.006370671559125185, -0.0024973787367343903, 0.0312986858189106, -0.02412562072277069, -0.06488068401813507, 0.0401519276201725, 0.005799842532724142, 0.01024261862039566, -0.0019238566746935248, 0.016317104920744896, 0.030393974855542183, 0.0005415474879555404, 0.027636760845780373, 0.022337740287184715, -0.023414775729179382, -0.01850348897278309, -0.0527317151427269, -0.00240717688575387, 0.040496576577425, -0.048811301589012146, -0.011653536930680275, 0.014766172505915165, 0.01875120773911476, 0.06070178374648094, 0.06660394370555878, -0.03048013709485531, -0.017512615770101547, 0.08560287207365036, -0.05320560932159424, -0.04228445887565613, 0.013452188111841679, 0.0036188431549817324, 0.022273117676377296, -0.02061448059976101, 0.007393856532871723, -0.028433768078684807, -0.01350603997707367, 0.04239216074347496, 0.06789638847112656, 0.02324245125055313, 0.020539088174700737, -0.03035089187324047, -0.005498271901160479, -0.00968255940824747, -0.010312626138329506, -0.032677292823791504, 0.008309337310492992, 0.024836465716362, 0.014453832060098648, -0.03851483017206192, 0.05807381495833397, -0.034680578857660294, -0.007533871103078127, -0.04527861997485161, 0.026796672493219376, 0.004208520520478487, -0.02459951676428318, -0.010538803413510323, 0.03627459332346916, 0.056393638253211975, -0.01024261862039566, -0.02595658227801323, 0.0008064311696216464, -0.05337793752551079, 0.010517262853682041, -0.04527861997485161, 0.057212185114622116, -0.026430480182170868, 0.05135310813784599, 0.012105891481041908, -0.052042409777641296, -0.002652202732861042, -0.047346532344818115, 0.0534210167825222, 0.014432291500270367, 0.01588628999888897, 0.005029761232435703, -0.02895074523985386, -0.003438439453020692, 0.00037797255208715796, 0.005452497862279415, 0.024319486692547798, 0.008174708113074303, -0.023328613489866257, -0.06595772504806519, 0.06052945926785469, -0.05665212869644165, 0.015692424029111862, 0.0032822692301124334, -0.04374922811985016, -0.03338813781738281, -0.025870420038700104, -0.0028433767147362232, 0.03088941052556038, 0.01015645544975996, 0.0019063549116253853, 0.03773936256766319, -0.015380083583295345, 0.027141323313117027, 0.03508985415101051, 0.0050001428462564945, 0.0038207874167710543, 0.0047631943598389626, -0.06970581412315369, -0.03493906930088997, -0.04794967174530029, 0.043835390359163284, 0.022940879687666893, 0.00647299038246274, -0.045364782214164734, -0.08741229772567749, 0.03487444669008255, -0.05484270676970482, -0.00639759749174118, 0.004542401991784573, 0.08375036716461182, -0.04855281114578247, 0.002023482695221901, 0.027981411665678024, 0.04562327265739441, -0.050405316054821014, 0.03851483017206192, -0.016134008765220642, 0.02166997641324997, 0.019537445157766342, 0.014216884039342403, -0.02089451067149639, 0.046054087579250336, 0.11003006249666214, 0.0459248423576355, -0.04211213439702988, -0.060615621507167816, -0.018632734194397926, -0.0011504098074510694, 0.039591867476701736, 0.023630183190107346, 0.003179950639605522, 0.00046716464566998184, 0.00358922453597188, 0.018158838152885437, 0.051525432616472244, 0.0212607029825449, -0.03041551448404789, 0.010436485521495342, -0.009305596351623535, -0.010296470485627651, 0.03340967744588852, -0.012655180878937244, 0.0032445727847516537, 0.07026587426662445, -0.007431552745401859, 0.040367335081100464, -0.03347430005669594, -0.01063035149127245, 0.011879714205861092, 0.03412052243947983, 0.041595153510570526, 0.02864917553961277, 0.05531660094857216, 0.028046034276485443, 0.05475654453039169, -0.001615554909221828, -0.06449295580387115, 0.012041269801557064, -0.029166152700781822, 0.043533820658922195, 0.011459670029580593, -0.04342611879110336, -0.020625252276659012, 0.00011746431118808687, 0.02518111653625965, -0.011416587978601456, 0.05561817064881325, -0.0012029153294861317, -0.00848704855889082, -0.01268749125301838, -0.037437792867422104, -0.05488578602671623, -0.029920078814029694, 0.057212185114622116, 0.0455801896750927, -0.04566635191440582, -0.029510803520679474, -0.011071937158703804, 0.01582166738808155, -0.01637095771729946, -0.047001879662275314, -0.03330197185277939, -0.13829150795936584, -0.05337793752551079, 0.08116548508405685, 0.04073352739214897, 0.0622527189552784, -0.00022550455469172448, -0.01461538765579462, -0.07151523232460022, 0.054454971104860306, -0.026732049882411957, 0.013516809791326523, 0.04687263444066048, 0.018051134422421455, 0.007490789983421564, 0.05932317674160004, 0.02500879019498825, 0.01731874980032444, -0.00534210167825222, -0.03627459332346916, 0.0036403839476406574, -0.030264729633927345, -0.02531036175787449, 0.03485290706157684, 0.022466983646154404, 0.07500483095645905, 0.035262178629636765, -0.0670347586274147, 0.04273681342601776, 0.023867132142186165, 0.045364782214164734, 0.022574687376618385, 0.015950912609696388, 0.0006011210498400033, 0.06927499920129776, -0.018094215542078018, 0.00979564804583788, 0.023802509531378746, 0.0068930345587432384, -0.0015226606046780944, -0.011621225625276566, 0.00722153065726161, -0.027378272265195847, -0.023931754752993584, -0.04211213439702988, -0.002599697094410658, 0.02105606719851494, -0.007194604724645615, -0.018858911469578743, -0.013409106060862541, 0.03896718472242355, -0.06324359029531479, 0.0183742456138134, 0.003346891375258565, -0.025784257799386978, 0.027227485552430153, 0.009973359294235706, -0.04239216074347496, -0.047174204140901566, -0.012073581106960773, -0.035132937133312225, -0.022380821406841278, 0.02765830047428608, 0.023824051022529602, 0.005412109196186066, 0.012116662226617336, 0.02378096990287304, 0.008971715345978737, -0.034788284450769424, 0.07328157126903534, 0.02419024333357811, 0.04008730500936508, 0.012978291139006615, -0.04842356592416763, -0.000039989194192457944, -0.005045916885137558, 0.044287748634815216, 0.023974835872650146, 0.04674338921904564, -0.01955898478627205, 0.015046201646327972, 0.04198288917541504, -0.0751771554350853, -0.033151187002658844, 0.0018525030463933945, 0.004728191066533327, -0.02636585757136345, -0.01667252741754055, -0.017135653644800186, 0.054454971104860306, -0.03580069914460182, 0.0010117413476109505, -0.03918259218335152, -0.0006367979221977293, -0.015046201646327972, -0.04357690364122391, -0.011750469915568829, 0.07672809064388275, 0.025267278775572777, -0.03944108262658119, -0.015455476008355618, -0.07328157126903534, -0.05161159485578537, 0.02936001867055893, -0.011491981334984303, -0.026215072721242905, 0.016521742567420006, 0.022294659167528152, -0.012536706402897835, 0.047346532344818115, 0.03463749960064888, -0.004660876002162695, -0.020000571385025978, -0.04346919804811478, -0.0432107113301754, 0.0008932672790251672, -0.026925915852189064, -0.020151356235146523, -0.030932491645216942, 0.010145685635507107, -0.020776037126779556, 0.016629446297883987, -0.0425214059650898, -0.07358314096927643, -0.07853750884532928, -0.03396973758935928, -0.01596168242394924, -0.10158609598875046, -0.029209233820438385, -0.02923077531158924, -0.025913501158356667, 0.025396523997187614, -0.008476278744637966, 0.030393974855542183, -0.025504227727651596, 0.042887598276138306, 0.029812375083565712, 0.046700309962034225, -0.02537498250603676, 0.026624346151947975, -0.006462219636887312, 0.009671788662672043, -0.0031557173933833838, 0.027335189282894135, 0.04187518358230591, -0.020054422318935394, -0.05708294361829758, 0.014163032174110413, -0.057384513318538666, -0.029209233820438385, 0.06229579821228981, 0.03452979400753975, -0.035068314522504807, 0.0003648461715783924 ]
37,669
healpy.sphtfunc
check_max_nside
Checks whether the nside used in a certain operation does not exceed the maximum supported nside. The maximum nside is saved in MAX_NSIDE. Parameters ---------- nside : int nside of the map that is being checked
def check_max_nside(nside): """Checks whether the nside used in a certain operation does not exceed the maximum supported nside. The maximum nside is saved in MAX_NSIDE. Parameters ---------- nside : int nside of the map that is being checked """ if nside > MAX_NSIDE: raise ValueError( "nside {nside} of map cannot be larger than " "MAX_NSIDE {max_nside}".format(nside=nside, max_nside=MAX_NSIDE) ) return 0
(nside)
[ 0.002108999527990818, 0.02408551052212715, 0.010924313217401505, 0.01653386279940605, -0.03507918491959572, 0.03693458437919617, -0.008778465911746025, -0.004057602025568485, 0.01460910215973854, -0.0965501219034195, -0.0017166777979582548, 0.048795267939567566, -0.02595824934542179, -0.038529880344867706, 0.05045992508530617, 0.019611744210124016, 0.01473915297538042, 0.014236288145184517, 0.04400937631726265, 0.016551202163100243, 0.012008074671030045, 0.032044652849435806, -0.003676118329167366, -0.06877115368843079, 0.020634815096855164, 0.04941951483488083, 0.044737666845321655, 0.016117697581648827, 0.04213663935661316, 0.0011466194409877062, -0.09856158494949341, 0.050113119184970856, 0.03759351000189781, 0.023998809978365898, 0.022334152832627296, -0.015077286399900913, 0.024501673877239227, 0.02836853452026844, -0.12151998281478882, -0.005041657481342554, -0.060378506779670715, -0.062285926192998886, 0.012198816984891891, -0.004863920621573925, -0.026946639642119408, -0.041963234543800354, 0.008422992192208767, 0.00547516206279397, -0.03828711807727814, 0.02023599110543728, -0.04751209542155266, -0.08940596878528595, 0.03773223236203194, 0.053927961736917496, -0.04241408035159111, 0.01617838814854622, 0.01969844475388527, 0.053373076021671295, 0.03138572722673416, -0.016282429918646812, -0.021155020222067833, 0.02757088653743267, -0.01571020297706127, -0.07657423615455627, 0.013395288959145546, 0.009224975481629372, -0.03610225394368172, -0.013560021296143532, -0.042830243706703186, 0.053650517016649246, 0.005735264625400305, -0.019282279536128044, -0.0335359089076519, 0.03223539516329765, 0.027189401909708977, -0.010560169816017151, 0.0005286045488901436, 0.034142814576625824, 0.02994649112224579, 0.017366191372275352, -0.0019258437678217888, -0.04810165986418724, 0.05621686577796936, -0.01136648841202259, -0.03703862428665161, 0.057153232395648956, 0.07678231596946716, 0.029929151758551598, 0.057153232395648956, -0.030726799741387367, -0.034160155802965164, 0.05160437524318695, 0.01404554583132267, 0.00485958531498909, -0.04314236715435982, 0.017704324796795845, 0.016048336401581764, -0.015372069552540779, -0.055523257702589035, -0.07102537900209427, 0.01969844475388527, -0.010958993807435036, 0.056078143417835236, -0.047442734241485596, 0.02842055633664131, 0.0036197626031935215, 0.02295839786529541, 0.008609399199485779, -0.08066651970148087, -0.012640991248190403, 0.008609399199485779, -0.002110083121806383, -0.02562878653407097, 0.04591679573059082, 0.024397633969783783, 0.08954469114542007, 0.008167224936187267, -0.014522400684654713, 0.04220600053668022, -0.0017936249496415257, 0.0020829890854656696, 0.0101440055295825, -0.05534985661506653, -0.07525638490915298, 0.02540336363017559, 0.08975277096033096, 0.036622460931539536, 0.034437596797943115, -0.017340179532766342, 0.06270208954811096, 0.042240679264068604, -0.024501673877239227, -0.03620629757642746, 0.016360459849238396, -0.04678380489349365, -0.029859790578484535, 0.0009379953844472766, -0.01671593450009823, 0.0011412006570026278, -0.0470612496137619, -0.018987497314810753, 0.0744934156537056, 0.05264478549361229, 0.008592058904469013, 0.022542234510183334, 0.030414676293730736, -0.03022393397986889, 0.03977837413549423, 0.06322229653596878, 0.016308439895510674, 0.00043242075480520725, 0.0019908694084733725, -0.04074942320585251, -0.03185391053557396, 0.004790224600583315, -0.0014240622986108065, 0.026357073336839676, -0.042795564979314804, -0.0035243916790932417, -0.05788152292370796, 0.007863772101700306, -0.020981617271900177, -0.018033787608146667, -0.036067575216293335, -0.004508446902036667, -0.031749870628118515, -0.002429792657494545, -0.026305053383111954, 0.014929895289242268, 0.11576304584741592, -0.01895281672477722, -0.00608206819742918, -0.07456277310848236, -0.024501673877239227, 0.026148991659283638, -0.021467143669724464, -0.006008372642099857, -0.047685496509075165, -0.021207040175795555, 0.00405109953135252, -0.0017123428406193852, -0.04244876280426979, 0.0025490066036581993, -0.01418426726013422, -0.007139819208532572, 0.029894471168518066, -0.0035504018887877464, 0.0015454435488209128, 0.004109622910618782, -0.008132544346153736, -0.041755154728889465, -0.0021523497998714447, -0.04827506095170975, -0.028281833976507187, 0.0006610943819396198, -0.06506035476922989, 0.019022177904844284, 0.05455220863223076, 0.03689990192651749, -0.003082216950133443, -0.023374563083052635, 0.03842584043741226, 0.012701681815087795, -0.034160155802965164, 0.03220071643590927, 0.014860534109175205, -0.020478753373026848, -0.04400937631726265, 0.03374399244785309, -0.0012593305436894298, 0.00889551267027855, -0.007590664085000753, 0.0036436053924262524, 0.026287714019417763, 0.030900200828909874, -0.001349282800219953, 0.05104948952794075, 0.02673855796456337, -0.06526844203472137, 0.015571481548249722, 0.03436823561787605, 0.022889038547873497, 0.047442734241485596, 0.005444816779345274, 0.005405801348388195, -0.02457103505730629, 0.016620563343167305, 0.07262067496776581, 0.04980099946260452, -0.012701681815087795, -0.020669495686888695, 0.0611414760351181, -0.018293891102075577, 0.0031775881070643663, 0.027189401909708977, 0.010057304985821247, -0.009459068067371845, -0.03350122645497322, 0.015294038690626621, 0.04862186685204506, -0.011990734376013279, -0.020894916728138924, -0.08593793213367462, -0.004842245485633612, -0.006866711191833019, 0.02972106821835041, -0.000185187702300027, 0.013932834379374981, 0.03357058763504028, 0.06693309545516968, -0.010707560926675797, -0.03870328143239021, -0.058713849633932114, -0.015346059575676918, 0.0063204956240952015, 0.029391605406999588, -0.10730103403329849, -0.021397782489657402, 0.004751209169626236, 0.0010615441715344787, 0.014236288145184517, 0.03457631915807724, -0.016871996223926544, 0.013187207281589508, -0.010300067253410816, 0.017981767654418945, 0.032790280878543854, 0.010967664420604706, -0.02814311347901821, -0.02701600082218647, 0.048205699771642685, 0.03357058763504028, -0.02998117171227932, -0.0340907946228981, -0.03859924152493477, -0.05052928626537323, 0.060135744512081146, 0.0024579705204814672, -0.005505507346242666, 0.0253860242664814, 0.019247600808739662, -0.0264957956969738, -0.0383564792573452, 0.04907270893454552, -0.05486433207988739, 0.00971917062997818, 0.015059946104884148, -0.01362938154488802, 0.009849222376942635, 0.014028205536305904, -0.012051424942910671, -0.023547964170575142, 0.013412629254162312, 0.029859790578484535, 0.018762074410915375, -0.028177792206406593, 0.026114311069250107, -0.023443924263119698, -0.016845984384417534, -0.002969505963847041, -0.04536191001534462, -0.04667976498603821, -0.02318382076919079, -0.0426221638917923, 0.12457185238599777, 0.014756493270397186, -0.008344961330294609, -0.04719997197389603, 0.05652898922562599, -0.009519758634269238, 0.013681402429938316, -0.021675225347280502, 0.003353157313540578, -0.022247450426220894, 0.03537396714091301, 0.08267798274755478, -0.0017524419818073511, -0.05489901080727577, -0.014348999597132206, 0.04962759464979172, 0.009242315776646137, 0.03721202537417412, 0.015320049598813057, -0.02082555741071701, -0.051743097603321075, -0.01352534070611, -0.007386916782706976, -0.017418211326003075, 0.017175449058413506, -0.060101065784692764, -0.04383597522974014, -0.03351856768131256, 0.040125176310539246, -0.045292552560567856, 0.01696736551821232, 0.005652898922562599, 0.018796755000948906, -0.031715188175439835, 0.03693458437919617, 0.0259409099817276, 0.0010875543812289834, 0.020894916728138924, 0.003437690669670701, 0.005180378910154104, 0.046575725078582764, 0.0053494456224143505, -0.055835381150245667, -0.0005096387467347085, 0.017773684114217758, -0.0029066477436572313, -0.0583670474588871, 0.008414322510361671, -0.02914884313941002, -0.02295839786529541, -0.015016595833003521, 0.0004744165053125471, 0.07144154608249664, -0.05285286903381348, -0.01230285782366991, 0.0194556824862957, 0.007330561056733131, -0.03533928841352463, -0.01893547736108303, 0.019594402983784676, -0.05854044854640961, 0.013724752701818943, 0.024917839094996452, -0.054413486272096634, 0.0205654539167881, 0.005032987333834171, -0.05611282214522362, -0.07574190944433212, 0.048240382224321365, 0.024640396237373352, 0.016837315633893013, 0.07803080976009369, -0.03738543018698692, 0.013204547576606274, -0.014678462408483028, -0.01969844475388527, -0.006073398049920797, -0.06748798489570618, -0.007673029787838459, -0.005002642050385475, 0.013681402429938316, -0.030449356883764267, 0.0016429821262136102, 0.0037194686010479927, -0.016932686790823936, -0.00547516206279397, 0.017088748514652252, 0.02595824934542179, -0.008167224936187267, -0.013941504992544651, -0.04997440055012703, 0.059546180069446564, -0.004538792185485363, -0.006043052766472101, 0.053615838289260864, -0.015536801889538765, -0.025715487077832222, 0.025281982496380806, -0.0251085814088583, 0.052228622138500214, 0.011123725213110447, 0.006727989763021469, 0.024432314559817314, 0.012060095556080341, -0.0012018912239000201, -0.06017042696475983, -0.01526802871376276, -0.001947519020177424, -0.0009016893454827368, -0.01590961590409279, 0.000988932210020721, -0.00016134495672304183, -0.009693160653114319, 0.02462305687367916, 0.022871697321534157, -0.11167076230049133, 0.01805112697184086, -0.05399732291698456, 0.054725609719753265, -0.025299323722720146, -0.009467738680541515, -0.09946327656507492, -0.021224381402134895, -0.042310040444135666, -0.031108282506465912, 0.07934866845607758, -0.07192707061767578, 0.020114609971642494, -0.01027405634522438, -0.03610225394368172, -0.000006451766239479184, -0.024397633969783783, -0.023322543129324913, -0.010464798659086227, 0.01474782358855009, 0.004495441913604736, 0.030865520238876343, 0.034437596797943115, -0.004081444814801216, 0.03157646954059601, 0.04567403346300125, -0.04758145287632942, -0.011531219817698002, 0.017218798398971558, 0.0805971547961235, -0.027380144223570824, -0.033639948815107346, -0.045292552560567856, -0.011323138140141964, -0.014270968735218048, 0.04296896606683731, -0.02266361564397812, -0.11416774988174438, -0.017504911869764328, 0.012788383290171623, 0.0038776977453380823, -0.03305038437247276, -0.00606906320899725, -0.004397903103381395, 0.026305053383111954, -0.053338393568992615, 0.008197570219635963, -0.05427476391196251, -0.002754921093583107, 0.02866331860423088, -0.027466844767332077, -0.017400870099663734, 0.020149288699030876, -0.0019442676566541195, -0.025490064173936844, 0.03915412724018097, -0.008817481808364391, 0.024692416191101074, 0.016568541526794434, 0.008431662805378437, 0.004135632887482643, 0.0022173754405230284, 0.06599672883749008, -0.023305201902985573, -0.015580152161419392, -0.031767211854457855, -0.07213515043258667, -0.1365712583065033, -0.012849073857069016, -0.024397633969783783, -0.04140834882855415, 0.013022474944591522, -0.05059864744544029, 0.0251085814088583, 0.04612487927079201, 0.041512392461299896, 0.03168050944805145, 0.017739003524184227, -0.02814311347901821, 0.024120191112160683, -0.01512930728495121, -0.003149410244077444, 0.035824812948703766, -0.02921820431947708, -0.02110300026834011, -0.01728815957903862, 0.015588821843266487, -0.03476706147193909, -0.001078342436812818, 0.055003050714731216, 0.014791173860430717, 0.03565141186118126, -0.037697553634643555, 0.06832031160593033, 0.050113119184970856, 0.06325697898864746, 0.04137367010116577, 0.03128168359398842, 0.004421745892614126, 0.036345016211271286, 0.03403877466917038, -0.005180378910154104, -0.05184713751077652, 0.002930490532889962, 0.01335193868726492, -0.0003075172717217356, 0.001861901837401092, 0.007408591918647289, -0.021415121853351593, -0.005249739624559879, 0.026894619688391685, -0.005878320895135403, 0.02921820431947708, 0.046575725078582764, 0.02323584072291851, -0.02136310189962387, -0.012233497574925423, -0.0023799396585673094, 0.030952222645282745, 0.04914207011461258, 0.021224381402134895, -0.030674779787659645, -0.06124551594257355, 0.06981156766414642, 0.027622906491160393, 0.017756344750523567, 0.02377338707447052, 0.019871845841407776, -0.00811086967587471, 0.04033325985074043, -0.037107985466718674, 0.046055518090724945, 0.08697834610939026, 0.05098012834787369, -0.07324492186307907, 0.08725578337907791, 0.029911810532212257, 0.05295690894126892, 0.02023599110543728, 0.012094776146113873, 0.00985789205878973, -0.041997916996479034, -0.030605418607592583, 0.06825094670057297, -0.08531368523836136, -0.0583670474588871, -0.033345166593790054, -0.009701831266283989, -0.040090497583150864, 0.0008409987203776836, 0.04667976498603821, -0.007222184911370277, 0.02947830595076084, 0.031004242599010468, -0.02753620594739914, 0.0061731040477752686, -0.009129605256021023, -0.008409987203776836, -0.011669941246509552, -0.0010886382078751922, -0.044182781130075455, 0.0027267432305961847, 0.037420108914375305, 0.018796755000948906, 0.029617028310894966, 0.017175449058413506, 0.11319669336080551, -0.04407873749732971, -0.0072958809323608875, 0.04976631700992584, 0.060933392494916916, 0.024466995149850845, 0.004434750881046057, 0.0197331253439188, -0.01216413639485836, 0.021120339632034302, 0.07497894018888474, -0.03029329515993595, 0.018224529922008514, 0.026669196784496307, 0.010690221562981606, -0.03296368196606636, 0.04563935473561287, -0.03655309975147247, -0.0024623055942356586, 0.0355820506811142, -0.02892342023551464, 0.024987200275063515, 0.013508000411093235, -0.051430974155664444, 0.005111018195748329, 0.026270372793078423, 0.019334301352500916, 0.01678529381752014, -0.04099218547344208, -0.043662574142217636, -0.01567552238702774, 0.01095032412558794, 0.015363399870693684, -0.023998809978365898, -0.054413486272096634, -0.012805723585188389, 0.037697553634643555, 0.05694515258073807, -0.040367938578128815, 0.031957950443029404, -0.02864597737789154, 0.0037433113902807236, -0.022004688158631325, -0.04962759464979172, -0.0020981617271900177, -0.019403662532567978, -0.049350153654813766, 0.017947087064385414, -0.0670718178153038, -0.058263007551431656, 0.02240351215004921, 0.03974369168281555, -0.03164583072066307, -0.028455235064029694, 0.04033325985074043, -0.029079481959342957, 0.04140834882855415, 0.020894916728138924, 0.041165586560964584, -0.008162889629602432, 0.004790224600583315, 0.019681105390191078, 0.05722259357571602, -0.028975442051887512, -0.012294188141822815, 0.0262183528393507, 0.01836325041949749, 0.02810843288898468, -0.054725609719753265, 0.07352236658334732, -0.011834672652184963, 0.025299323722720146, -0.008340626955032349, -0.0025121585931628942, -0.05639026686549187, 0.01841527223587036, -0.022576915100216866, -0.050633326172828674, -0.040922824293375015, -0.037177346646785736, 0.000060826099797850475, -0.008349296636879444, -0.010551500134170055, 0.000721785007044673, 0.01231152843683958, 0.037697553634643555, -0.013924164697527885, 0.02784832939505577, -0.015276698395609856, 0.017210129648447037, -0.018207188695669174, -0.01839793100953102, -0.004725199192762375, 0.0005351071013137698, -0.012086105532944202, -0.041477710008621216, 0.0197331253439188, -0.02320116199553013, 0.03079616092145443, 0.02569814771413803, 0.03787095472216606, -0.03422951698303223, 0.08142948895692825, -0.03327580541372299, 0.0002559031418059021, 0.007859436795115471, -0.04289960488677025, 0.01039543841034174, 0.050390563905239105, -0.03270357847213745, -0.04882994666695595, 0.013403959572315216, 0.09890838712453842, -0.004586477763950825, 0.022576915100216866, -0.02269829623401165, 0.011149736121296883, 0.0037563166115432978, -0.04369725286960602, -0.026686538010835648, -0.00045219939784146845, -0.0262183528393507, 0.0023842747323215008, 0.005462156608700752, 0.004946286324411631, -0.009970603510737419, 0.002039638813585043, 0.032790280878543854, -0.0346456803381443, -0.07858569920063019, 0.015259359031915665, 0.013273907825350761, 0.0546562485396862, -0.039882414042949677, -0.06561524420976639, -0.02888873964548111, 0.03759351000189781, 0.003296801820397377, -0.05250606685876846, -0.028992781415581703, 0.01919557899236679, 0.046610403805971146, -0.061973802745342255, -0.00022122277005109936, -0.03866860270500183, 0.008826151490211487, 0.008414322510361671, -0.05371987819671631, -0.009554439224302769, 0.002845957176759839, 0.008015498518943787, 0.025767507031559944, 0.03873796388506889, 0.01053415983915329, -0.010750912129878998, 0.06443610787391663, 0.02701600082218647, 0.03752414882183075, -0.0657886415719986, -0.04265684261918068, 0.03275560215115547, -0.03672650083899498, 0.009909912943840027, -0.024137530475854874, 0.002101413207128644, 0.04210195690393448, 0.05996234342455864, 0.03537396714091301, 0.001978948013857007, 0.00880447681993246, 0.01672460325062275, 0.01147052925080061, -0.017947087064385414, 0.006073398049920797, -0.02373870648443699, -0.01860601268708706, 0.026565156877040863, -0.022889038547873497, 0.04567403346300125, -0.022472873330116272, -0.009571779519319534, -0.026079630479216576, -0.04026389867067337 ]
37,671
healpy.visufunc
delgraticules
Delete all graticules previously created on the Axes. See Also -------- graticule
def delgraticules(): """Delete all graticules previously created on the Axes. See Also -------- graticule """ import pylab f = pylab.gcf() wasinteractive = pylab.isinteractive() pylab.ioff() try: for ax in f.get_axes(): if isinstance(ax, PA.SphericalProjAxes): ax.delgraticules() finally: pylab.draw() if wasinteractive: pylab.ion() # pylab.show()
()
[ 0.01238264050334692, 0.003017767798155546, 0.0007978390203788877, 0.025566456839442253, -0.06306155771017075, 0.021720806136727333, -0.06868760287761688, -0.004731397144496441, 0.01783064566552639, 0.03379187732934952, -0.019993824884295464, -0.013842563144862652, 0.023803867399692535, 0.016539860516786575, -0.021613983437418938, -0.07239081710577011, -0.022130297496914864, 0.0191926471889019, 0.038314078003168106, -0.07819490134716034, -0.011154168285429478, -0.047322873026132584, 0.01293456181883812, 0.01227581687271595, 0.0171095859259367, 0.005038514733314514, 0.049886640161275864, 0.020243080332875252, 0.01386926881968975, 0.03521619364619255, -0.040236905217170715, 0.018729744479060173, -0.01548052579164505, 0.016593271866440773, -0.007615635171532631, -0.004953945986926556, 0.054159585386514664, 0.026225203648209572, -0.0020507914014160633, 0.06754814833402634, 0.04653949663043022, 0.0576135478913784, 0.04675314575433731, -0.028486303985118866, 0.022076884284615517, -0.018943391740322113, 0.025067947804927826, 0.06573214381933212, -0.03356042504310608, -0.017412252724170685, 0.020154058933258057, -0.025370614603161812, 0.03163760155439377, 0.06291912496089935, 0.047322873026132584, -0.014207543805241585, -0.014287661761045456, 0.03542983904480934, 0.0812571793794632, -0.10447351634502411, 0.04892522469162941, -0.00677439896389842, -0.055014174431562424, -0.06448587030172348, 0.058610569685697556, -0.045613694936037064, -0.004201729781925678, -0.008808499202132225, 0.017688214778900146, -0.04657510668039322, -0.11864545196294785, 0.023429984226822853, 0.008323341608047485, -0.05569072440266609, 0.02517477050423622, -0.023750456050038338, 0.037673138082027435, -0.003712121397256851, -0.007063712924718857, -0.020421119406819344, -0.02392849512398243, 0.009649734944105148, 0.0025837968569248915, 0.06868760287761688, 0.0005221561877988279, 0.017821744084358215, 0.053091347217559814, 0.0006376035744324327, 0.036391254514455795, -0.06676477193832397, 0.04831989109516144, -0.04874718561768532, 0.007419792003929615, -0.040913455188274384, 0.0014454573392868042, 0.001986251911148429, -0.03753070533275604, -0.0035808172542601824, -0.0066853794269263744, -0.061815276741981506, 0.02923406846821308, -0.026955164968967438, -0.05401715263724327, 0.010415304452180862, 0.018872175365686417, -0.007232850417494774, 0.030266696587204933, -0.07363709807395935, 0.03261681646108627, 0.05259283632040024, -0.07139379531145096, 0.08894848078489304, 0.029127245768904686, 0.027613909915089607, -0.017795037478208542, 0.019513117149472237, -0.06979144364595413, -0.04789259657263756, -0.016522055491805077, -0.04589855670928955, -0.08595742285251617, 0.004319680854678154, -0.023109514266252518, 0.02113327570259571, 0.09920354932546616, 0.06704963743686676, 0.03763752803206444, 0.058646176010370255, 0.011430129408836365, -0.00879959762096405, 0.011999855749309063, -0.01689593866467476, -0.05622484162449837, -0.05483613535761833, 0.006284790579229593, -0.005991025827825069, 0.05323377996683121, -0.06797543913125992, 0.007945007644593716, 0.016174878925085068, 0.004292975179851055, 0.06915049999952316, -0.04782138019800186, 0.046895578503608704, -0.028237048536539078, 0.03453964367508888, 0.01944190263748169, -0.00004242344948579557, -0.10155367106199265, -0.006583006586879492, 0.007188340649008751, 0.03991643339395523, -0.011581462807953358, -0.09749437123537064, -0.013433072715997696, 0.02586912363767624, -0.02202347293496132, 0.006218025926500559, -0.013949386775493622, 0.014314367435872555, -0.052023112773895264, 0.040699806064367294, 0.0004868264659307897, -0.011581462807953358, -0.017349939793348312, -0.03482450544834137, 0.06907928735017776, -0.004976201336830854, -0.05622484162449837, 0.02223712019622326, -0.03097885474562645, -0.030017443001270294, -0.044509850442409515, 0.012453855946660042, 0.018444880843162537, 0.025566456839442253, -0.01238264050334692, 0.030177677050232887, 0.02326974831521511, -0.014207543805241585, -0.023162925615906715, -0.02711540088057518, 0.002063031541183591, 0.0036987685598433018, 0.053447425365448, 0.016869232058525085, -0.01505323126912117, -0.014278759248554707, -0.003300405340269208, -0.0191926471889019, 0.00677439896389842, 0.03505595773458481, 0.005799633450806141, 0.004014788195490837, 0.0426582396030426, -0.018943391740322113, -0.0069524385035037994, -0.010121540166437626, -0.02736465446650982, -0.019388489425182343, -0.07363709807395935, 0.014056210406124592, -0.0030400226823985577, -0.05294891819357872, 0.010317383334040642, 0.020332099869847298, 0.005510319489985704, -0.036854155361652374, 0.00023910134041216224, 0.0640229657292366, 0.03742388263344765, 0.007424242794513702, 0.03615980222821236, -0.0022989336866885424, 0.00948949996381998, 0.025584261864423752, 0.026332026347517967, 0.021222295239567757, 0.012738718651235104, 0.02261100336909294, -0.09371993690729141, -0.006529594771564007, 0.004397572949528694, -0.022700022906064987, -0.05358985811471939, -0.0029242970049381256, 0.050741229206323624, 0.0853876918554306, 0.018320253118872643, -0.09122738987207413, 0.055014174431562424, -0.006493987049907446, 0.03587493672966957, -0.015168956480920315, 0.06434343755245209, -0.030498148873448372, -0.01133220735937357, 0.0213291198015213, -0.004019239451736212, 0.0426582396030426, -0.05252162367105484, -0.03710341081023216, 0.007406438700854778, 0.04543565586209297, -0.011955345049500465, 0.12761864066123962, 0.032171718776226044, 0.005430201534181833, 0.0080206748098135, 0.0015656339237466455, 0.008091890253126621, -0.038100432604551315, 0.014438995160162449, -0.002581571228802204, 0.009177930653095245, -0.05601119250059128, -0.06242061406373978, -0.0005508093745447695, 0.04294310137629509, -0.047963812947273254, 0.02072378620505333, 0.05259283632040024, -0.00309566012583673, 0.0111986780539155, 0.09735193848609924, 0.045186400413513184, 0.06651552021503448, 0.05081244558095932, 0.012863346375524998, 0.012605189345777035, 0.03756631165742874, 0.033204346895217896, -0.002543737879022956, 0.008532538078725338, 0.0019818011205643415, 0.0811147466301918, 0.010281775146722794, 0.021008647978305817, 0.051168523728847504, 0.03199367970228195, 0.039168667048215866, -0.028877990320324898, 0.009560715407133102, 0.04953056201338768, -0.04126953333616257, 0.009614127688109875, 0.020243080332875252, -0.019121430814266205, -0.0018560606986284256, 0.017314331606030464, 0.006289241835474968, -0.009614127688109875, -0.012258012779057026, -0.03464646637439728, 0.03340018913149834, -0.012017658911645412, -0.03176222741603851, -0.031014462932944298, -0.07506141066551208, 0.035358622670173645, 0.030266696587204933, -0.03863454982638359, 0.0111986780539155, 0.011341109871864319, 0.008737283758819103, -0.02795218490064144, 0.03395211324095726, -0.02305610105395317, 0.07207034528255463, 0.006169064901769161, -0.024462612345814705, 0.021667394787073135, -0.006013280712068081, 0.04077102243900299, 0.002139810938388109, 0.02542402595281601, 0.0298928152769804, -0.029536735266447067, 0.018711941316723824, 0.02220151200890541, -0.00919573474675417, -0.043014317750930786, -0.03380968049168587, 0.015605153515934944, -0.024622848257422447, -0.014501309022307396, -0.03268803283572197, 0.007241752464324236, 0.021418139338493347, 0.0036386800929903984, -0.05255722999572754, -0.01505323126912117, -0.01421644538640976, -0.00474474998190999, 0.0038055921904742718, -0.057115036994218826, 0.04896083474159241, -0.03452184051275253, -0.028735559433698654, -0.04098466783761978, -0.011670482344925404, 0.04255141690373421, -0.016513153910636902, 0.017376644536852837, -0.03569689765572548, 0.07434925436973572, -0.0020363256335258484, -0.010210559703409672, 0.008394557982683182, -0.021240100264549255, 0.017216410487890244, 0.03605297952890396, -0.021613983437418938, 0.052450407296419144, 0.02645665407180786, 0.04137635603547096, 0.03144175931811333, 0.03539423272013664, -0.047536518424749374, 0.006440575234591961, 0.06334641575813293, -0.007393085863441229, -0.02946552075445652, 0.01792856678366661, -0.001028177561238408, -0.04671753942966461, 0.011136364191770554, -0.07385074347257614, 0.061637237668037415, -0.03859893977642059, -0.014349975623190403, -0.0032692484091967344, 0.005991025827825069, -0.006627516355365515, -0.003683190094307065, 0.07118014991283417, 0.05850374698638916, 0.03356042504310608, 0.01205326709896326, 0.027204420417547226, 0.0007839297177270055, -0.03738827258348465, 0.003965827636420727, 0.013504288159310818, -0.025904731824994087, 0.005083024967461824, -0.05483613535761833, 0.028575323522090912, 0.023786064237356186, -0.005238809157162905, 0.05056319013237953, -0.06088947504758835, 0.05195189639925957, -0.020332099869847298, 0.018017586320638657, 0.043690867722034454, -0.022806847468018532, 0.031708817929029465, -0.0352339968085289, 0.010566637851297855, -0.02047453075647354, -0.0009536235011182725, -0.02736465446650982, -0.00752216437831521, -0.026652498170733452, -0.019281666725873947, -0.0469311848282814, -0.00741534074768424, 0.008034028112888336, 0.022112492471933365, 0.07203473895788193, 0.009364872239530087, 0.01290785614401102, -0.026367634534835815, 0.03696097806096077, 0.010246166959404945, -0.0076022823341190815, -0.001159481587819755, 0.06234939768910408, 0.05383911356329918, 0.027418067678809166, -0.009338166564702988, -0.027756342664361, 0.03185124695301056, 0.0321183055639267, 0.018622921779751778, -0.04233776777982712, 0.0030511501245200634, -0.057328686118125916, 0.034486230462789536, -0.030854227021336555, -0.04888961836695671, 0.0032581209670752287, -0.0383852943778038, -0.06128115952014923, -0.018204528838396072, -0.021649589762091637, 0.0705748200416565, -0.01903241127729416, 0.051168523728847504, 0.05661652982234955, -0.01205326709896326, -0.01610366255044937, -0.06128115952014923, 0.024427006021142006, 0.05362546816468239, 0.02371484786272049, 0.00871947966516018, -0.005002907011657953, 0.052450407296419144, -0.018925588577985764, 0.04999346286058426, -0.027667323127388954, -0.04629024490714073, 0.04867596924304962, -0.0309610515832901, 0.017100684344768524, -0.07762517780065536, -0.0341479554772377, 0.06523363292217255, 0.056936997920274734, 0.03137054294347763, -0.03137054294347763, 0.03487791866064072, -0.008394557982683182, -0.01835586130619049, 0.0003499586891848594, 0.05042075738310814, 0.0036431311164051294, -0.027489282190799713, -0.028486303985118866, -0.03169101104140282, -0.016130369156599045, -0.03377407416701317, -0.030693991109728813, 0.004279621876776218, -0.024836495518684387, 0.05789841338992119, 0.01197314914315939, -0.010976129211485386, -0.03589274361729622, -0.00025773985544219613, -0.02068817801773548, 0.015329192392528057, -0.0009041063021868467, 0.01684252731502056, -0.03169101104140282, -0.06872320920228958, -0.03263461962342262, -0.03785117715597153, 0.01645084097981453, -0.07231960445642471, -0.01709178276360035, 0.005407946649938822, 0.046468283981084824, 0.016130369156599045, -0.011278796009719372, -0.0618864931166172, 0.025708889588713646, -0.03183344379067421, 0.020136255770921707, 0.003741052933037281, -0.09215319156646729, -0.0034272584598511457, 0.04735847935080528, -0.028521912172436714, 0.0405217669904232, -0.004802612587809563, -0.04251580685377121, -0.018961194902658463, -0.05462248623371124, -0.0811147466301918, 0.006231378763914108, 0.00779367471113801, 0.019352883100509644, -0.030800815671682358, -0.01986919716000557, -0.016575468704104424, -0.0004553913895506412, 0.03457524999976158, -0.02474747598171234, -0.005982123780995607, -0.05163142457604408, 0.04073541238903999, -0.021471550688147545, 0.017679311335086823, -0.05152460187673569, -0.03252779692411423, 0.03591054677963257, -0.02179202251136303, 0.062456220388412476, -0.015649663284420967, -0.014999818988144398, 0.030498148873448372, 0.003941347356885672, 0.012062168680131435, -0.030017443001270294, -0.09742315858602524, 0.07491897791624069, -0.025708889588713646, 0.00791385117918253, 0.001378692570142448, 0.08609985560178757, 0.043655261397361755, -0.0101304417476058, 0.036854155361652374, 0.06252743303775787, -0.042195338755846024, 0.024195553734898567, 0.04543565586209297, -0.01691374182701111, 0.013157111592590809, -0.025886928662657738, -0.02072378620505333, 0.030658384785056114, 0.022308336570858955, 0.028076812624931335, -0.0008417924982495606, -0.018640724942088127, -0.02732904814183712, -0.024017514660954475, -0.019708961248397827, 0.0533406026661396, -0.0022199286613613367, 0.008973185904324055, -0.030907638370990753, 0.012133385054767132, 0.0351983904838562, 0.013166013173758984, -0.004580063279718161, 0.00602663354948163, -0.013539896346628666, 0.049637384712696075, -0.027916576713323593, -0.017661508172750473, -0.019139235839247704, 0.033880896866321564, -0.01837366633117199, -0.044759105890989304, -0.042373377829790115, -0.034486230462789536, -0.016157075762748718, -0.08780903369188309, -0.03692537173628807, 0.047714557498693466, 0.03966717794537544, 0.023002689704298973, 0.01472385786473751, 0.01921045035123825, -0.008572597056627274, 0.0038055921904742718, 0.047109223902225494, 0.028112420812249184, -0.04928130656480789, -0.08382094651460648, 0.01536479964852333, 0.0008629346848465502, -0.0384565107524395, -0.07705545425415039, 0.07805246859788895, -0.03699658811092377, 0.039809610694646835, 0.05252162367105484, 0.00823432207107544, -0.007143830880522728, 0.02905602939426899, 0.013504288159310818, -0.02116888388991356, -0.002655012533068657, -0.027934381738305092, -0.038136038929224014, 0.020438922569155693, 0.00715273292735219, -0.04525761306285858, -0.016032448038458824, -0.041946083307266235, -0.006890124641358852, 0.0022310561034828424, 0.019174842163920403, 0.020973041653633118, -0.024872103706002235, -0.03142395243048668, -0.033453602343797684, -0.002481424016878009, -0.013174915686249733, 0.023020494729280472, 0.0469667911529541, 0.03509156405925751, -0.029198460280895233, 0.007677949033677578, -0.06356006115674973, -0.05593997985124588, -0.04522200673818588, -0.019708961248397827, 0.01261409092694521, -0.014786171726882458, -0.05814766883850098, 0.012605189345777035, 0.0019973795861005783, -0.013495386578142643, -0.014171935617923737, -0.01753688044846058, 0.04034372791647911, -0.0007611184264533222, -0.00485157361254096, 0.0019306147005409002, -0.011456835083663464, -0.031726621091365814, 0.07734031230211258, -0.023999711498618126, -0.011216482147574425, 0.015462721697986126, -0.059287119656801224, -0.029518932104110718, 0.006930183619260788, -0.009854480624198914, -0.04443863406777382, -0.04678875207901001, -0.004611220210790634, -0.04529322311282158, 0.03199367970228195, -0.008897518739104271, 0.018747547641396523, 0.03291948512196541, 0.03500254452228546, -0.041768044233322144, 0.010976129211485386, 0.06174406409263611, -0.01679801754653454, 0.01678021252155304, -0.01983358897268772, -0.047073617577552795, -0.018249038606882095, -0.0008868587319739163, -0.03587493672966957, 0.03229634836316109, 0.0013953837333247066, 0.04319235682487488, -0.0033404640853405, 0.014706053771078587, -0.08346486836671829, 0.034895721822977066, -0.019370686262845993, -0.018008684739470482, -0.016388526186347008, 0.01620158553123474, -0.009222440421581268, 0.009048852138221264, 0.01357550360262394, 0.011697188019752502, -0.07093089818954468, 0.06338202208280563, 0.07833733409643173, -0.003683190094307065, -0.016611075028777122, 0.014127425849437714, 0.0014632613165304065, 0.01302358228713274, 0.03078301250934601, 0.015605153515934944, 0.015605153515934944, -0.026599084958434105, -0.05195189639925957, 0.053483035415410995, 0.005474711302667856, 0.02156057022511959, 0.02585132047533989, -0.00810079276561737, -0.05045636370778084, -0.011795110069215298, -0.035323016345500946, 0.03973839432001114, 0.008732832036912441, 0.024266770109534264, 0.014118524268269539, -0.0321183055639267, -0.008363400585949421, -0.012444953434169292, -0.012783228419721127, -0.04928130656480789, 0.02902042120695114, 0.05277087539434433, 0.044759105890989304, 0.024302378296852112, 0.002481424016878009, -0.005955417640507221, 0.01055773627012968, -0.02713320404291153, -0.013272836804389954, -0.00048126274487003684, -0.028237048536539078, 0.005661652889102697, -0.036818549036979675, 0.041946083307266235, -0.038741372525691986, 0.06174406409263611, 0.02328755334019661, -0.03327556326985359, -0.051382169127464294, -0.028237048536539078, 0.004749200772494078, -0.02711540088057518, -0.016602173447608948, -0.038990627974271774, 0.0011094079818576574, 0.013219425454735756, -0.00360084674321115, 0.06947097182273865, -0.030373521149158478, 0.004611220210790634, 0.055192213505506516, 0.035554468631744385, 0.017527978867292404, 0.04340600594878197, 0.016513153910636902, -0.0016524281818419695, 0.027507087215781212, -0.025975948199629784, -0.021845433861017227, -0.020154058933258057, -0.023572416976094246, 0.01664668321609497, -0.03970278427004814, 0.009266950190067291, 0.04611220210790634, -0.048355501145124435, -0.002757385140284896, -0.04974420741200447 ]
37,672
healpy.utils.deprecation
deprecated
Used to mark a function or class as deprecated. Reuses Astropy's deprecated decorator. Check arguments and usage in `~astropy.utils.decorator.deprecated` Parameters ---------- since : str The release at which this API became deprecated. This is required.
def deprecated(since, **kwargs): """ Used to mark a function or class as deprecated. Reuses Astropy's deprecated decorator. Check arguments and usage in `~astropy.utils.decorator.deprecated` Parameters ---------- since : str The release at which this API became deprecated. This is required. """ from astropy.utils import deprecated kwargs["warning_type"] = HealpyDeprecationWarning return deprecated(since, **kwargs)
(since, **kwargs)
[ -0.006948396563529968, -0.0315779410302639, 0.04883959889411926, -0.04566216841340065, 0.0037241086829453707, -0.040271248668432236, -0.021867144852876663, 0.07775778323411942, 0.024276992306113243, 0.0019390356028452516, -0.019296638667583466, -0.05019625276327133, 0.04469822719693184, -0.00877363421022892, -0.004299794789403677, 0.03848617523908615, -0.07154572755098343, 0.014789329841732979, 0.010639035142958164, -0.058086276054382324, -0.0379149504005909, -0.010299871675670147, -0.003106027143076062, -0.005538188852369785, -0.004775070119649172, 0.10646175593137741, 0.015565836802124977, 0.009889304637908936, 0.020849652588367462, -0.10517650097608566, -0.018261296674609184, 0.004063272383064032, 0.024401947855949402, -0.002172210719436407, 0.012424108572304249, -0.00038853229489177465, -0.0029163630679249763, -0.0019814311526715755, -0.041556499898433685, -0.0020572966895997524, -0.0028271093033254147, -0.0019602333195507526, -0.029935674741864204, -0.043948497623205185, 0.010719363577663898, 0.04444831982254982, 0.006283456925302744, 0.032006360590457916, -0.022866785526275635, 0.03637978807091713, 0.018136341124773026, -0.05251684784889221, 0.024812515825033188, 0.01974290795624256, 0.006984098348766565, 0.040342651307582855, 0.030132032930850983, 0.047554343938827515, 0.028418362140655518, 0.04091387242078781, 0.042627543210983276, 0.04066396504640579, 0.003958399407565594, -0.02108171209692955, 0.013173839077353477, -0.03680820390582085, 0.020599743351340294, -0.020135624334216118, -0.0006125032086856663, 0.04341297596693039, -0.02333090454339981, 0.034380506724119186, 0.02345586009323597, 0.028936034068465233, 0.017850730568170547, -0.011951063759624958, -0.10396265238523483, -0.0020684534683823586, -0.01569971814751625, -0.032113462686538696, 0.01819881983101368, -0.04766144976019859, -0.006399486679583788, 0.027918541803956032, 0.00871115643531084, -0.05240974575281143, -0.02450905181467533, -0.01772577501833439, -0.019350191578269005, 0.03138158470392227, -0.054480429738759995, 0.05887170881032944, -0.02681179717183113, -0.019028877839446068, 0.03496957942843437, -0.012665092945098877, 0.010442676953971386, 0.005480173975229263, 0.055622875690460205, 0.033220209181308746, 0.08118512481451035, -0.034576863050460815, 0.0021164272911846638, 0.02700815536081791, 0.019243087619543076, -0.06194203346967697, -0.01642267219722271, -0.007849859073758125, 0.017850730568170547, -0.008885201066732407, 0.009755424223840237, -0.060371167957782745, 0.004623339045792818, -0.0024076171685010195, -0.009550140239298344, -0.0267046932131052, 0.021688636392354965, -0.04905380681157112, -0.011272735893726349, -0.009567991830408573, -0.06340579688549042, -0.00322651956230402, -0.06340579688549042, -0.011156706139445305, 0.04309166222810745, -0.024062784388661385, -0.025294484570622444, -0.008791484870016575, 0.047304436564445496, -0.02352726273238659, -0.009184200316667557, 0.013629032298922539, -0.007457142695784569, 0.017734700813889503, 0.019528698176145554, -0.018100639805197716, 0.010567632503807545, 0.052266936749219894, 0.014057449996471405, -0.019725056365132332, -0.03780784830451012, 0.013646882958710194, 0.032059911638498306, 0.021456576883792877, 0.02345586009323597, 0.01568186655640602, -0.030703255906701088, -0.021563682705163956, -0.01161190029233694, 0.0017058603698387742, 0.04673321172595024, 0.01854690909385681, 0.028846779838204384, 0.015485508367419243, 0.005895203445106745, -0.05073177441954613, -0.035772863775491714, -0.09446606785058975, 0.04801846295595169, 0.02700815536081791, 0.04005703702569008, -0.029864272102713585, 0.026526184752583504, -0.0013276480603963137, 0.015539060346782207, -0.00002166841659345664, 0.014967837370932102, 0.011531571857631207, 0.027650780975818634, -0.006354860030114651, -0.005658681504428387, 0.025330185890197754, 0.02217060700058937, 0.04787565767765045, -0.015628313645720482, 0.02790069207549095, 0.004531854297965765, -0.005042831413447857, -0.014093151316046715, -0.00033804820850491524, 0.02923949621617794, 0.03197065740823746, -0.06436973065137863, -0.018225595355033875, 0.026722542941570282, -0.004246242344379425, 0.02447335049510002, 0.048446882516145706, -0.03172074630856514, -0.01761867105960846, 0.049910642206668854, 0.042663246393203735, 0.04887529835104942, 0.06990346312522888, 0.01983216218650341, -0.04412700608372688, -0.05026765540242195, -0.011736854910850525, 0.0013432675041258335, 0.045162346214056015, -0.014343061484396458, 0.09825041890144348, 0.0007525198743678629, -0.023955680429935455, 0.02913239225745201, 0.053230877965688705, 0.03859327733516693, -0.0070822774432599545, -0.07775778323411942, -0.04316306486725807, 0.03179214894771576, 0.025294484570622444, -0.0511958934366703, 0.0031885867938399315, -0.021331623196601868, 0.013325570151209831, 0.05240974575281143, 0.03730802610516548, -0.05758645758032799, -0.016199538484215736, 0.032363373786211014, 0.025294484570622444, 0.009068170562386513, -0.030078480020165443, 0.051981326192617416, -0.026044216006994247, 0.05498024821281433, -0.033487968146800995, 0.015467657707631588, -0.07240255922079086, 0.025008872151374817, -0.01226345170289278, 0.022581173107028008, 0.028525466099381447, -0.034630417823791504, 0.012477660551667213, -0.038236264139413834, -0.014450166374444962, 0.005917517002671957, -0.024080635979771614, -0.01888607256114483, -0.01413777843117714, 0.02333090454339981, 0.07782918214797974, 0.04084246978163719, -0.01752941682934761, -0.052052728831768036, 0.051053088158369064, 0.008412156254053116, -0.02211705408990383, -0.023205948993563652, -0.03680820390582085, 0.0028293407522141933, 0.02927519753575325, -0.03489817678928375, 0.012897152453660965, 0.0002341513754799962, -0.0348089225590229, 0.004121287260204554, -0.028614720329642296, -0.09525149315595627, 0.021385174244642258, -0.060121260583400726, 0.036701101809740067, 0.017083149403333664, -0.0559798888862133, 0.03513023629784584, 0.0004914529272355139, -0.04202061891555786, 0.032256267964839935, -0.04787565767765045, 0.010371274314820766, -0.02579430490732193, -0.022813232615590096, 0.02704385668039322, -0.05622979998588562, -0.0041971527971327305, -0.03318450599908829, 0.06290597468614578, 0.02008207142353058, 0.029542958363890648, -0.04123518615961075, -0.04891100153326988, 0.09453746676445007, -0.01513741910457611, -0.0221884585916996, -0.013611181639134884, 0.026526184752583504, 0.007599948439747095, -0.02470541000366211, 0.020760398358106613, -0.02691890113055706, 0.0059621441178023815, -0.000467187084723264, 0.005663143936544657, 0.03998563438653946, -0.032184865325689316, 0.026329826563596725, 0.05894311144948006, -0.028329109773039818, 0.02699030376970768, -0.006359322462230921, -0.052195534110069275, 0.019475147128105164, 0.03477322310209274, -0.04423410817980766, 0.017993535846471786, -0.045233748853206635, -0.07268817722797394, 0.011977840214967728, -0.00859066378325224, -0.028739675879478455, 0.005855039693415165, -0.0791858360171318, -0.0163869708776474, 0.009710797108709812, -0.020474787801504135, 0.02217060700058937, 0.0395929180085659, 0.0846838653087616, -0.003547832602635026, -0.01687786541879177, -0.014949986711144447, -0.0041101304814219475, -0.002619594568386674, -0.021670786663889885, 0.02827555686235428, -0.025044575333595276, 0.03752223402261734, -0.01464652456343174, -0.029614361003041267, -0.034380506724119186, 0.0325954332947731, -0.03643333911895752, -0.06529796868562698, 0.013218466192483902, 0.02575860358774662, -0.009130648337304592, -0.031185226514935493, 0.017377685755491257, -0.007077814545482397, -0.0021052705124020576, -0.00851926114410162, 0.05894311144948006, -0.048518285155296326, -0.016324492171406746, -0.004009720403701067, -0.010219543240964413, 0.04673321172595024, 0.001280789845623076, -0.00451846607029438, 0.013129211962223053, -0.031220927834510803, 0.03770074248313904, 0.08018548041582108, 0.02590140886604786, 0.027740035206079483, 0.04073536768555641, -0.014735777862370014, -0.05626550316810608, -0.04362718388438225, -0.04077106714248657, 0.026419080793857574, 0.0014592971419915557, -0.022563323378562927, 0.021260220557451248, 0.05012485012412071, -0.039378710091114044, -0.008363067172467709, -0.031256627291440964, -0.017913207411766052, 0.0222777109593153, 0.014423389919102192, 0.03270253911614418, -0.024919619783759117, -0.008925365284085274, 0.007863246835768223, 0.025508694350719452, -0.04944652318954468, 0.016128133982419968, -0.01694926805794239, -0.004558630287647247, 0.005756860598921776, -0.011870735324919224, 0.06237045302987099, 0.00823811162263155, -0.04901810362935066, -0.02798994444310665, -0.016110284253954887, -0.01004103571176529, -0.021867144852876663, -0.05033905804157257, -0.01048730406910181, 0.026651140302419662, -0.03179214894771576, 0.020742548629641533, -0.0018921773880720139, -0.024169888347387314, 0.0029476017225533724, -0.021724339574575424, 0.05280245840549469, -0.035594355314970016, -0.041770707815885544, -0.011237034574151039, -0.013611181639134884, 0.042877454310655594, 0.050838880240917206, -0.0017694536363705993, 0.012165272608399391, 0.01718132756650448, 0.011763631366193295, 0.005591741297394037, -0.08261317759752274, 0.024241290986537933, 0.10203477740287781, 0.050838880240917206, -0.004734906367957592, -0.006636009085923433, 0.04591207951307297, -0.02802564576268196, 0.021938547492027283, -0.05762215703725815, 0.026419080793857574, 0.05544436722993851, 0.03427340090274811, -0.018332699313759804, -0.03991423174738884, -0.08282738924026489, 0.01705637201666832, 0.017931059002876282, -0.006591381970793009, -0.006756501272320747, -0.024366246536374092, -0.03364862501621246, 0.0079391123726964, -0.03407704457640648, 0.03557650372385979, -0.024027083069086075, -0.04812556877732277, 0.0221884585916996, 0.029685763642191887, -0.016735060140490532, 0.06633331626653671, 0.007890022359788418, -0.043948497623205185, -0.03623698279261589, -0.013870017603039742, -0.009684021584689617, 0.020599743351340294, -0.06176352500915527, 0.08118512481451035, 0.008126544766128063, -0.028793228790163994, 0.01629771664738655, -0.0145929716527462, -0.04116378352046013, -0.021545831114053726, -0.04794706031680107, 0.00525704026222229, 0.020778249949216843, -0.022563323378562927, 0.06179922819137573, -0.05498024821281433, 0.03373787924647331, 0.027740035206079483, 0.012165272608399391, 0.037879250943660736, -0.0727238729596138, -0.0073187993839383125, 0.031113822013139725, 0.11917147785425186, -0.048803895711898804, 0.0379149504005909, 0.013325570151209831, -0.00872008129954338, 0.02700815536081791, -0.05726514384150505, 0.03179214894771576, 0.04312736541032791, -0.01287037692964077, -0.015512284822762012, -0.0038602203130722046, 0.024241290986537933, 0.015851449221372604, 0.010826467536389828, -0.01586037315428257, -0.029025288298726082, -0.0353444442152977, 0.025169529020786285, 0.05719374120235443, -0.06822548806667328, 0.027436573058366776, 0.0028695049695670605, -0.025490842759609222, 0.016993895173072815, 0.04137799143791199, 0.03866467997431755, -0.020403385162353516, -0.02213490568101406, 0.044983841478824615, 0.002016016747802496, -0.032006360590457916, -0.020403385162353516, -0.03398779034614563, 0.055837083607912064, -0.06290597468614578, 0.0655478835105896, 0.015414105728268623, 0.01516419555991888, 0.029007436707615852, -0.012700794264674187, 0.01714562624692917, 0.0780433937907219, 0.03830766677856445, 0.03270253911614418, -0.022652575746178627, -0.11088873445987701, 0.09125293046236038, 0.024348396807909012, 0.007791843730956316, -0.0003048570069950074, 0.06451253592967987, 0.05894311144948006, -0.07575850188732147, 0.020796101540327072, -0.049553629010915756, 0.019118132069706917, -0.016431597992777824, 0.03127447888255119, 0.028650421649217606, -0.0605853796005249, -0.014807180501520634, 0.007533008232712746, -0.019385892897844315, 0.023116694763302803, 0.00732326228171587, -0.054587531834840775, -0.005529263522475958, -0.020153474062681198, -0.04930371791124344, 0.008898588828742504, -0.017341984435915947, 0.03766503930091858, 0.003940548747777939, -0.025419440120458603, -0.05130299925804138, -0.03998563438653946, 0.015976402908563614, -0.03727232292294502, -0.05398060753941536, -0.046304795891046524, -0.021492280066013336, 0.012129571288824081, -0.006203128956258297, -0.028543317690491676, 0.01712777651846409, -0.011290586553514004, 0.004317645449191332, -0.026044216006994247, 0.02208135277032852, -0.07811479270458221, 0.006671710405498743, 0.07404483109712601, -0.004783995915204287, -0.03538014739751816, 0.05262395367026329, 0.0657263919711113, 0.011870735324919224, -0.060942392796278, -0.032363373786211014, 0.014021748676896095, -0.001021396485157311, 0.025526544079184532, 0.01349515188485384, -0.06540507823228836, 0.04430551081895828, 0.03762933984398842, -0.0027557064313441515, 0.006537829991430044, -0.02445550076663494, -0.0222777109593153, 0.046483300626277924, -0.0769723504781723, -0.00464565260335803, 0.021831443533301353, -0.02450905181467533, 0.010371274314820766, 0.02211705408990383, 0.015048165805637836, 0.024223441258072853, 0.004601025488227606, -0.06733295321464539, 0.022563323378562927, -0.0725453644990921, 0.004913413431495428, -0.017734700813889503, -0.045233748853206635, -0.018511207774281502, 0.028793228790163994, 0.08368422091007233, -0.008546036668121815, 0.05644400790333748, 0.027222363278269768, -0.02574075385928154, 0.06397701799869537, 0.057800665497779846, -0.023116694763302803, -0.019653653725981712, -0.06540507823228836, -0.011576198972761631, -0.03309525549411774, 0.06461964547634125, 0.002514721592888236, 0.03962862119078636, 0.05126729607582092, 0.015119568444788456, 0.017922133207321167, -0.0585503950715065, 0.024776814505457878, -0.017136700451374054, -0.000366497813956812, 0.03268468752503395, 0.013370197266340256, -0.00946088694036007, -0.014387688599526882, -0.05023195594549179, 0.0030747882556170225, -0.08482667058706284, -0.013173839077353477, -0.0025370351504534483, -0.028828930109739304, -0.04466252774000168, 0.07497306913137436, -0.03955721855163574, -0.06583349406719208, 0.003186355344951153, -0.009045857936143875, -0.018939625471830368, 0.025401588529348373, 0.016958193853497505, -0.005368607118725777, 0.05069607496261597, -0.01345052570104599, 0.0069082328118383884, -0.017118850722908974, 0.013129211962223053, -0.03272038698196411, -0.04444831982254982, 0.01471792720258236, -0.03518379107117653, -0.00019789207726716995, 0.03991423174738884, 0.006363785360008478, 0.010344497859477997, 0.00015744901611469686, 0.0023429084103554487, -0.037986353039741516, 0.0267046932131052, 0.059085916727781296, -0.03364862501621246, 0.04069966450333595, -0.03129233047366142, 0.047411538660526276, 0.08889663964509964, 0.040521156042814255, 0.0517314150929451, -0.005408771336078644, -0.013504077680408955, 0.0015318157384172082, -0.0517314150929451, 0.039307307451963425, 0.06476245075464249, 0.024062784388661385, -0.024152038618922234, 0.004025339614599943, -0.03837906941771507, -0.01003211084753275, 0.04601918160915375, -0.01291500311344862, -0.0025682738050818443, 0.0029587585013359785, 0.04316306486725807, -0.045055244117975235, -0.05601559206843376, -0.03659399598836899, 0.06083528697490692, -0.031131673604249954, 0.03637978807091713, -0.0705103874206543, -0.06833259761333466, 0.05726514384150505, -0.0045117721892893314, -0.02461615763604641, 0.06183493137359619, 0.02931089885532856, -0.042663246393203735, -0.01979645900428295, -0.022920338436961174, 0.026204872876405716, 0.00526150269433856, 0.05058896914124489, 0.06194203346967697, -0.020349832251667976, 0.03407704457640648, 0.0093002300709486, -0.006439650896936655, 0.0013834316050633788, -0.045055244117975235, -0.04144939407706261, -0.032184865325689316, 0.0032086686696857214, 0.009478737600147724, 0.028543317690491676, 0.014325210824608803, 0.026222722604870796, -0.07047468423843384, -0.024919619783759117, -0.078828826546669, 0.016395894810557365, 0.02233126387000084, 0.02590140886604786, -0.005145472940057516, 0.02800779603421688, 0.030239136889576912, -0.019635803997516632, 0.0032332134433090687, -0.012584764510393143, -0.013959270901978016, -0.043948497623205185, -0.019403744488954544, 0.04023554548621178, -0.01106745284050703, -0.07136721909046173, 0.014994613826274872, 0.04826837405562401, -0.017913207411766052, -0.04294885694980621, 0.0421634241938591, 0.00939840916544199, -0.0016199537785723805, -0.011888585984706879, 0.059014514088630676, -0.06383421272039413, -0.008550499565899372, -0.020242728292942047, -0.044948138296604156, 0.026544036343693733, 0.01742231287062168, 0.03304170072078705, 0.013548703864216805, 0.006988560780882835, 0.01979645900428295, -0.023973530158400536, 0.01530700083822012, 0.08953925967216492, -0.06265605986118317, 0.021349472925066948, 0.049946341663599014, 0.024169888347387314, -0.03050689771771431, -0.0447339303791523, 0.04091387242078781, 0.030114181339740753, -0.010326647199690342, -0.02711525931954384, 0.006140651181340218, -0.03191710636019707, 0.028971735388040543 ]
37,673
healpy.rotator
dir2vec
Transform a direction theta,phi to a unit vector. Parameters ---------- theta : float, scalar or array-like The angle theta (scalar or shape (N,)) or both angles (scalar or shape (2, N)) if phi is not given. phi : float, scalar or array-like, optionnal The angle phi (scalar or shape (N,)). lonlat : bool If True, input angles are assumed to be longitude and latitude in degree, otherwise, they are co-latitude and longitude in radians. Returns ------- vec : array The vector(s) corresponding to given angles, shape is (3,) or (3, N). See Also -------- :func:`vec2dir`, :func:`pixelfunc.ang2vec`, :func:`pixelfunc.vec2ang`
def dir2vec(theta, phi=None, lonlat=False): """Transform a direction theta,phi to a unit vector. Parameters ---------- theta : float, scalar or array-like The angle theta (scalar or shape (N,)) or both angles (scalar or shape (2, N)) if phi is not given. phi : float, scalar or array-like, optionnal The angle phi (scalar or shape (N,)). lonlat : bool If True, input angles are assumed to be longitude and latitude in degree, otherwise, they are co-latitude and longitude in radians. Returns ------- vec : array The vector(s) corresponding to given angles, shape is (3,) or (3, N). See Also -------- :func:`vec2dir`, :func:`pixelfunc.ang2vec`, :func:`pixelfunc.vec2ang` """ if phi is None: theta, phi = theta if lonlat: lon, lat = theta, phi theta, phi = np.pi / 2.0 - np.radians(lat), np.radians(lon) ct, st, cp, sp = np.cos(theta), np.sin(theta), np.cos(phi), np.sin(phi) vec = np.empty((3, ct.size), np.float64) vec[0, :] = st * cp vec[1, :] = st * sp vec[2, :] = ct return vec.squeeze()
(theta, phi=None, lonlat=False)
[ -0.007590198423713446, 0.0019550169818103313, -0.02199535071849823, -0.07456783950328827, -0.020516972988843918, -0.00799134373664856, -0.0022141835652291775, 0.043053191155195236, -0.027548274025321007, 0.025042247027158737, 0.04709168151021004, -0.0458296537399292, 0.026250187307596207, 0.017262743785977364, -0.043053191155195236, 0.04164693132042885, -0.04085365682840347, -0.019074656069278717, -0.06789711862802505, 0.007820067927241325, 0.013043963350355625, 0.014675585553050041, 0.06829375773668289, 0.028467752039432526, -0.0121064567938447, -0.04590177163481712, 0.03750026971101761, -0.0005298828473314643, -0.01920085772871971, 0.021436451002955437, 0.03923105075955391, 0.06050524115562439, 0.007923734374344349, 0.014342050068080425, -0.019435236230492592, 0.029206939041614532, 0.06288506835699081, -0.03510241582989693, -0.015586049295961857, -0.007500053849071264, -0.06894280016422272, -0.027422070503234863, 0.034002646803855896, 0.016821034252643585, -0.018551815301179886, -0.0358956903219223, -0.04388252645730972, -0.013034949079155922, -0.0472719743847847, 0.05358211323618889, 0.06238025426864624, 0.007171025034040213, 0.033569950610399246, -0.028467752039432526, 0.04730803146958351, 0.007865140214562416, 0.010817385278642178, 0.009208299219608307, -0.030108388513326645, 0.016866106539964676, -0.008040922693908215, 0.001459220191463828, 0.00435625109821558, -0.0007611608016304672, 0.04521666839718819, -0.006742836907505989, 0.05058930441737175, 0.023113146424293518, -0.015522947534918785, 0.020949669182300568, -0.05502443388104439, -0.008707994595170021, 0.015468860976397991, -0.03991615027189255, 0.02277059480547905, 0.029819924384355545, 0.0029815416783094406, -0.0014862637035548687, -0.006580575834959745, 0.02170688658952713, -0.056142229586839676, -0.023599928244948387, 0.0262321587651968, 0.03640050068497658, 0.08048134297132492, 0.07143080234527588, 0.0015268288552761078, -0.005886460188776255, -0.041899338364601135, -0.025438884273171425, -0.04013250023126602, -0.03966374695301056, -0.009402110241353512, 0.00004616403748514131, -0.02309511788189411, 0.0255110003054142, 0.0464065819978714, 0.05625040456652641, -0.06800529360771179, 0.011096834205091, -0.004912895616143942, 0.0011899123201146722, 0.01463051326572895, 0.06991636753082275, 0.022932857275009155, -0.03138844668865204, -0.039303164929151535, -0.054231155663728714, 0.05264460667967796, 0.0007442586356773973, 0.0214725099503994, 0.06760865449905396, 0.07629862427711487, 0.011980254203081131, -0.05113017559051514, -0.007427937816828489, -0.0533297099173069, -0.029044678434729576, -0.08351021260023117, -0.038582008332014084, 0.033371634781360626, 0.010213414207100868, -0.0020282596815377474, 0.013143123127520084, 0.0175151489675045, -0.041610874235630035, 0.017289787530899048, -0.02709754928946495, -0.01523448433727026, 0.06266871839761734, 0.005323054734617472, -0.023275407031178474, 0.025781434029340744, -0.017983902245759964, 0.03452548757195473, -0.007563155144453049, -0.009221821092069149, -0.01588352769613266, 0.036508675664663315, 0.04269261285662651, 0.032812733203172684, 0.049002755433321, -0.013665962964296341, 0.010934573598206043, 0.013891325332224369, 0.07391879707574844, 0.017163584008812904, -0.04013250023126602, -0.025961725041270256, -0.03796902298927307, -0.07103416323661804, -0.06061341613531113, 0.0478488989174366, 0.01983187347650528, -0.016523554921150208, -0.040312789380550385, -0.009537328034639359, -0.023041030392050743, 0.036075979471206665, 0.03234397992491722, 0.016532570123672485, -0.053618174046278, -0.0614066906273365, -0.0023933465126901865, 0.022410016506910324, -0.0026412447914481163, 0.0019955821335315704, -0.0008304596995003521, -0.03640050068497658, 0.006084779277443886, 0.0009859595447778702, 0.04644263908267021, -0.009555356577038765, -0.03409279137849808, -0.020300626754760742, -0.038906529545784, 0.04081759974360466, -0.0062425327487289906, 0.031749024987220764, -0.027025433257222176, 0.024230942130088806, -0.020102307200431824, 0.0054537649266421795, -0.032956965267658234, 0.039771918207407, 0.03908681869506836, -0.0036756573244929314, 0.0018569844542071223, -0.0018603649223223329, -0.03009035997092724, -0.014035557396709919, 0.008230227045714855, 0.016054801642894745, 0.04056519269943237, -0.008406009525060654, 0.033425718545913696, -0.02758433297276497, 0.015540977008640766, -0.037319980561733246, -0.008658415637910366, 0.052211910486221313, -0.022896798327565193, 0.02064317651093006, -0.021147988736629486, -0.04337771609425545, 0.046622928231954575, -0.04211568459868431, -0.043918583542108536, 0.03768055886030197, -0.025492971763014793, 0.08971218019723892, -0.01747007668018341, 0.004651475697755814, 0.011908138170838356, -0.029242997989058495, 0.07557746767997742, 0.004836272448301315, 0.02585355006158352, 0.0214725099503994, 0.015586049295961857, 0.09548145532608032, -0.022518189623951912, -0.021742943674325943, -0.006769880186766386, -0.04932727664709091, -0.05163498595356941, -0.018128134310245514, 0.0435219444334507, -0.0417911633849144, -0.05776483565568924, 0.03438125550746918, -0.046370524913072586, 0.020372742787003517, -0.02165279909968376, 0.024537434801459312, -0.020228510722517967, 0.0446758009493351, -0.0001838110329117626, -0.022355929017066956, 0.04701956734061241, -0.05607011169195175, -0.005277982447296381, -0.009834806434810162, 0.08170731365680695, 0.0011797710321843624, 0.04799313098192215, -0.024970130994915962, 0.0032835272140800953, 0.011754891835153103, -0.009366052225232124, -0.07572169601917267, 0.059567734599113464, 0.02758433297276497, 0.02084149606525898, 0.03840171545743942, -0.03735603764653206, -0.0016214809147641063, 0.03257835656404495, 0.019363120198249817, -0.0027494188398122787, 0.012494079768657684, -0.04186328127980232, 0.018804220482707024, 0.016144948080182076, 0.0533297099173069, -0.015874512493610382, 0.03879835456609726, -0.014675585553050041, -0.03164085000753403, -0.013332427479326725, 0.024861956015229225, -0.01321523915976286, -0.01862393133342266, 0.017884744331240654, 0.06302929669618607, -0.025042247027158737, 0.05336576700210571, -0.016974279657006264, -0.06750048696994781, 0.08545733988285065, -0.045613307505846024, -0.0299821849912405, -0.040457021445035934, 0.060721587389707565, -0.08134673535823822, 0.033101197332143784, -0.008739545941352844, 0.02444729022681713, 0.0435219444334507, 0.010114255361258984, 0.04240414872765541, -0.006395779084414244, -0.03245215490460396, -0.02006625011563301, 0.06162303686141968, 0.050517190247774124, -0.07680343091487885, -0.03378630056977272, 0.07615438848733902, -0.02536676824092865, -0.019381148740649223, 0.06414709240198135, 0.03677910938858986, -0.029062708839774132, -0.018272366374731064, 0.021003756672143936, 0.017704453319311142, -0.06288506835699081, -0.024861956015229225, -0.034056734293699265, -0.017154570668935776, -0.04326954111456871, -0.008275299333035946, -0.01164671778678894, 0.002236719708889723, 0.008996458724141121, -0.03257835656404495, -0.044603683054447174, 0.028215346857905388, 0.007513575255870819, 0.018272366374731064, 0.0657336413860321, -0.013683992438018322, 0.012430978007614613, -0.003024360630661249, 0.009573386050760746, -0.010871471837162971, 0.056286461651325226, 0.07020483165979385, 0.011349240317940712, 0.003067179350182414, -0.01853378675878048, -0.01690216362476349, 0.032956965267658234, 0.02194126322865486, -0.019363120198249817, -0.00646338751539588, -0.028413664549589157, 0.03677910938858986, -0.013900339603424072, 0.0020203720778226852, 0.00005074170621810481, -0.04269261285662651, 0.0356072261929512, 0.0154959037899971, 0.027980970218777657, -0.006765373051166534, -0.027223752811551094, 0.06375045329332352, -0.009753675200045109, 0.044928207993507385, 0.014026543125510216, -0.008991951122879982, 0.007729923352599144, -0.04507243633270264, 0.0027989984955638647, 0.005124736111611128, -0.00042734306771308184, -0.0055484171025455, -0.025186479091644287, -0.03672502189874649, 0.04485609009861946, -0.0048903594724833965, -0.08055346459150314, 0.013900339603424072, -0.06018071994185448, 0.037175748497247696, -0.03750026971101761, -0.028720157220959663, 0.063714399933815, 0.05686338618397713, 0.014882919378578663, 0.05300518870353699, 0.03373221307992935, 0.016685817390680313, 0.058017242699861526, 0.022247755900025368, 0.012665354646742344, -0.05747637152671814, 0.0063146487809717655, -0.048353713005781174, -0.01847969926893711, 0.06894280016422272, 0.018037989735603333, 0.04240414872765541, 0.010330602526664734, 0.03667093440890312, -0.013557788915932178, -0.05567347630858421, 0.007328778505325317, -0.048642173409461975, 0.012647326104342937, 0.02873818576335907, 0.008306850679218769, 0.042584437876939774, -0.04528878629207611, -0.016018744558095932, 0.021634770557284355, -0.01321523915976286, -0.012403935194015503, -0.008243748918175697, -0.027259809896349907, -0.08567368984222412, 0.015153354033827782, -0.09497664123773575, 0.0020012161694467068, -0.0014321766793727875, -0.029423287138342857, 0.006265068892389536, -0.02179703116416931, -0.01063709519803524, -0.00508867809548974, 0.07961595803499222, 0.002634484088048339, 0.02253621816635132, 0.09923148155212402, -0.06569758802652359, -0.022734537720680237, 0.016090860590338707, 0.012881702743470669, -0.024916043505072594, -0.05715185031294823, -0.007599213160574436, 0.030937721952795982, 0.042728669941425323, 0.0022953138686716557, 0.029477374628186226, -0.01603677310049534, 0.043053191155195236, 0.010123269632458687, 0.07564958184957504, -0.003229440189898014, -0.017415989190340042, -0.027548274025321007, 0.011718833819031715, 0.019453264772892, -0.01712752692401409, 0.021526595577597618, -0.04070942476391792, 0.04975997284054756, -0.05322153493762016, 0.0017397961346432567, -0.004360758233815432, 0.05145469680428505, -0.051959507167339325, -0.06793317943811417, -0.024861956015229225, -0.018128134310245514, 0.05808935686945915, -0.024086710065603256, 0.06039706617593765, 0.008239241316914558, -0.004840780049562454, -0.0596759095788002, 0.06876251101493835, -0.01939917728304863, 0.008928850293159485, -0.010006081312894821, -0.058125417679548264, -0.02397853694856167, 0.04078154265880585, -0.013242281973361969, 0.02689923159778118, -0.022662421688437462, 0.009744660928845406, -0.01698329485952854, -0.004063280299305916, -0.020535003393888474, -0.011376283131539822, -0.019597496837377548, 0.025817492976784706, 0.021580683067440987, 0.05538501217961311, -0.009005472995340824, 0.05776483565568924, -0.0002453630731906742, -0.07427937537431717, -0.029675692319869995, -0.0951208770275116, -0.0619836151599884, -0.06926732510328293, -0.002830549143254757, 0.014152745716273785, 0.06162303686141968, -0.044783975929021835, 0.02334752306342125, 0.038149312138557434, 0.03840171545743942, 0.012160543352365494, -0.006404793355613947, 0.0028936504386365414, 0.05113017559051514, 0.0006096047000028193, -0.04683927819132805, 0.0018941692542284727, 0.06778894364833832, 0.013855267316102982, 0.007950778119266033, -0.03623824194073677, 0.0717553198337555, 0.03468775004148483, -0.004360758233815432, 0.07330581545829773, -0.009302951395511627, -0.005539402831345797, -0.02556508779525757, 0.018569843843579292, -0.017154570668935776, -0.04424310475587845, 0.031983401626348495, -0.022644393146038055, 0.0013510463759303093, -0.018858307972550392, -0.03138844668865204, 0.015018136240541935, 0.1086786612868309, -0.08192366361618042, -0.033569950610399246, 0.015486889518797398, 0.0051743160001933575, -0.023527812212705612, 0.0007498926715925336, 0.0023122159764170647, -0.013197209686040878, -0.010357646271586418, 0.0440988726913929, -0.0657336413860321, -0.03070334531366825, 0.036364443600177765, 0.0029657664708793163, -0.050228726118803024, -0.028990592807531357, -0.06162303686141968, -0.01622607745230198, 0.01925494521856308, -0.0014085136353969574, 0.020949669182300568, -0.04947150871157646, 0.01728077232837677, -0.052680667489767075, -0.014810803346335888, -0.012575210072100163, -0.007238633465021849, 0.016135932877659798, -0.007261169608682394, -0.02502421848475933, 0.004315685946494341, -0.04543301835656166, 0.04056519269943237, 0.05484414100646973, -0.03603992238640785, -0.0034638168290257454, -0.0861785039305687, 0.014522339217364788, -0.03537284955382347, -0.016433410346508026, -0.0038379181642085314, 0.004094831179827452, -0.04774072766304016, -0.0018344481941312551, 0.002618708647787571, -0.010763297788798809, -0.05055324733257294, 0.02107587270438671, -0.020715292543172836, 0.046767160296440125, 0.04961574077606201, -0.02879227325320244, 0.06728413701057434, -0.032037489116191864, 0.02527662366628647, -0.005489822942763567, -0.0760822743177414, -0.028359578922390938, -0.0003062108880840242, -0.03326345980167389, 0.0651567131280899, -0.0367610789835453, 0.00747301010414958, -0.027548274025321007, -0.002805759198963642, -0.003833410795778036, -0.05848599597811699, 0.028413664549589157, 0.015667179599404335, 0.016920194029808044, 0.05661098286509514, 0.03710363060235977, 0.06519277393817902, 0.026538651436567307, 0.017677409574389458, -0.011610659770667553, 0.08661119639873505, -0.025060275569558144, -0.036995455622673035, -0.07334186881780624, -0.03384038805961609, 0.03847383335232735, 0.013828223571181297, -0.03571540117263794, -0.014621498994529247, -0.016108889132738113, 0.01592859998345375, 0.001280057244002819, 0.002047415589913726, -0.02430305816233158, -0.019074656069278717, -0.06036100909113884, -0.018948452547192574, -0.01344961579889059, -0.02103981375694275, -0.0446758009493351, 0.012629297561943531, 0.02951343171298504, 0.050228726118803024, 0.0282514039427042, 0.01097063161432743, -0.03721180558204651, -0.021111929789185524, 0.017983902245759964, -0.0804092288017273, -0.06162303686141968, -0.0429450199007988, -0.007022285833954811, -0.034200966358184814, -0.05318547785282135, 0.023113146424293518, -0.0002321230567758903, -0.006418315228074789, -0.0015471114311367273, -0.032794706523418427, -0.02931511402130127, -0.008739545941352844, 0.05704367905855179, -0.024176856502890587, 0.004971489775925875, -0.06594999134540558, -0.01756923645734787, 0.03721180558204651, -0.002918440382927656, 0.033335573971271515, 0.05177921801805496, -0.011421355418860912, 0.013593846932053566, 0.039194993674755096, -0.05848599597811699, -0.013828223571181297, 0.02003019116818905, 0.026069898158311844, -0.04215174540877342, 0.00508867809548974, 0.06302929669618607, 0.008243748918175697, 0.013206223957240582, 0.0013341441517695785, -0.0472719743847847, -0.0588105171918869, 0.014017527922987938, 0.04514455422759056, 0.06569758802652359, 0.06623845547437668, 0.009474226273596287, 0.02879227325320244, -0.019291004166007042, 0.006089286413043737, 0.017677409574389458, -0.02989204041659832, 0.023888392373919487, -0.0026051870081573725, -0.03394855931401253, 0.018010945990681648, 0.00646338751539588, 0.04359406232833862, 0.030108388513326645, 0.01954340934753418, 0.02536676824092865, 0.06010860204696655, -0.06699567288160324, 0.045613307505846024, 0.0674644261598587, -0.07838998734951019, 0.03879835456609726, 0.0426565557718277, 0.0057782866060733795, -0.04939939081668854, 0.04013250023126602, 0.013801180757582188, -0.0020102306734770536, 0.038726240396499634, -0.025348739698529243, 0.019363120198249817, 0.017578251659870148, 0.013566804118454456, 0.013503702357411385, 0.017289787530899048, 0.01838053949177265, 0.021003756672143936, -0.01838053949177265, -0.010880486108362675, 0.009059560485184193, 0.016577642410993576, -0.033624038100242615, -0.04355800524353981, 0.03649064525961876, 0.02661076746881008, -0.0694836676120758, 0.025979753583669662, -0.0367610789835453, 0.004063280299305916, -0.002968020038679242, 0.005940547212958336, -0.02487998642027378, 0.017749525606632233, -0.010168341919779778, 0.044603683054447174, 0.02021048031747341, 0.012674369849264622, -0.005273475311696529, 0.0438104085624218, -0.0016011983389034867, 0.009420139715075493, -0.06912308931350708, 0.011394312605261803, -0.015910571441054344, -0.04280078783631325, -0.037031516432762146, -0.0022062957286834717, 0.03432716801762581, -0.028900448232889175, 0.003229440189898014, -0.05780089646577835, 0.02888241782784462, 0.024086710065603256, 0.02772856317460537, -0.060721587389707565, 0.011998282745480537, -0.09201989322900772, 0.0014659810112789273, -0.058702342212200165, 0.0504450723528862, 0.009104632772505283, 0.042332034558057785, 0.040024325251579285, -0.03966374695301056, -0.0478488989174366, -0.0003414237289689481, -0.0211840458214283, -0.05076959356665611, 0.00573772145435214, -0.010501878336071968, 0.011232051998376846, -0.011817993596196175, -0.0318571999669075, -0.0037748166359961033, -0.0020665712654590607, -0.015757324174046516, -0.024807870388031006, 0.003139295382425189, -0.058738403022289276, -0.030360793694853783, -0.046947453171014786, 0.021724915131926537, -0.001150473952293396, 0.025673260912299156, -0.02603384107351303, 0.03113603964447975, 0.01611790433526039, 0.005210374016314745 ]
37,674
healpy
disable_warnings
.. deprecated:: 1.15.0 The disable_warnings function is deprecated and may be removed in a future version. healpy uses logging now This function has no effect
def disable_warnings(): """healpy uses logging now This function has no effect """ pass
()
[ -0.02140296995639801, -0.013066638261079788, 0.0558309406042099, 0.027998749166727066, 0.005238314624875784, -0.030247312039136887, -0.02999747171998024, 0.06259328126907349, -0.015864847227931023, -0.016514431685209274, -0.033228736370801926, 0.007191231474280357, 0.03907499462366104, -0.019187722355127335, -0.029697662219405174, -0.01105126179754734, -0.04620376601815224, 0.04423835873603821, 0.008448760025203228, -0.03994110971689224, -0.013932750560343266, -0.002837767358869314, 0.011867405846714973, 0.04127359017729759, -0.03319542482495308, 0.05679698660969734, 0.009069196879863739, 0.02326844446361065, 0.009893668815493584, -0.020187081769108772, -0.05130050703883171, -0.019737370312213898, 0.03730946034193039, 0.000100651741377078, -0.022552235051989555, -0.007715895771980286, 0.029331231489777565, 0.0263664610683918, -0.1347804218530655, 0.0023734811693429947, 0.011467661708593369, 0.033978257328271866, 0.014965423382818699, -0.014557351358234882, -0.017738649621605873, -0.022802075371146202, 0.016964145004749298, 0.055864252150058746, -0.04333893209695816, -0.004526270087808371, -0.014399119652807713, 0.04273931682109833, 0.040007732808589935, 0.05663042888045311, -0.005300774704664946, 0.020986570045351982, 0.044804662466049194, -0.026433086022734642, 0.016614368185400963, -0.036376722157001495, 0.021369658410549164, 0.05033445730805397, -0.012250494211912155, -0.01515696756541729, 0.04060734808444977, -0.04413842037320137, -0.03038056008517742, 0.008440432138741016, 0.006695715244859457, 0.029581069946289062, -0.04730306193232536, -0.051700249314308167, 0.00497598247602582, 0.029930846765637398, 0.03236262500286102, -0.06036137416958809, -0.014049342833459377, 0.01424921490252018, -0.006000326946377754, 0.012591942213475704, -0.017838584259152412, -0.006662403233349323, 0.02140296995639801, 0.05146706476807594, 0.019087785854935646, -0.06139404699206352, 0.03987448289990425, 0.0103017408400774, 0.018221672624349594, 0.021019883453845978, -0.018638072535395622, -0.00012056087143719196, -0.02530047670006752, -0.0041306898929178715, -0.0037705039139837027, 0.026566334068775177, 0.009169132448732853, 0.00650000711902976, 0.022485611960291862, -0.008602828718721867, 0.028431806713342667, 0.006828963290899992, 0.04677006974816322, 0.0028481774497777224, 0.03266243264079094, -0.06472525000572205, 0.002971015404909849, -0.022435642778873444, 0.040274228900671005, 0.011184509843587875, -0.008827684447169304, -0.030247312039136887, -0.024201180785894394, -0.015523400157690048, -0.003764257999137044, -0.016431152820587158, -0.035577233880758286, -0.03137991949915886, 0.0018571448745205998, 0.01181743759661913, -0.0032333475537598133, 0.021602842956781387, -0.10586559027433395, -0.0553978830575943, 0.07575152814388275, -0.018171705305576324, -0.02007048949599266, 0.033661793917417526, 0.03764257952570915, -0.012616925872862339, -0.007282839622348547, 0.01777196116745472, -0.005946194753050804, -0.0012575286673381925, -0.0034894337877631187, -0.054998140782117844, 0.04104040563106537, 0.00037267818697728217, 0.08001546561717987, -0.017438840121030807, -0.04916853830218315, -0.03934149071574211, 0.012666894122958183, -0.015248575247824192, 0.048868726938962936, 0.037542641162872314, -0.017055751755833626, 0.005933702923357487, -0.0325624980032444, -0.022002587094902992, 0.0690891221165657, -0.03534404933452606, -0.051966745406389236, -0.010068557225167751, -0.015881504863500595, 0.021636154502630234, -0.00797822792083025, 0.01910444162786007, 0.035677168518304825, -0.03204616159200668, 0.02183602750301361, -0.04553752765059471, 0.044638101011514664, -0.015998095273971558, -0.010868045501410961, -0.020053833723068237, 0.020720073953270912, 0.033178769052028656, 0.05013458430767059, -0.008015704341232777, -0.06179378926753998, 0.006924735382199287, -0.03527742624282837, 0.04433829337358475, 0.043838612735271454, 0.06315958499908447, 0.00976874865591526, 0.05063426494598389, -0.05839596688747406, 0.020137114450335503, -0.008024032227694988, -0.000938461977057159, -0.018671385943889618, 0.009893668815493584, 0.04074059799313545, 0.01078476570546627, 0.02619990147650242, -0.017172344028949738, -0.07421917468309402, 0.01675594411790371, 0.012525318190455437, 0.0531659796833992, 0.014182590879499912, 0.006125247105956078, 0.04903528839349747, -0.014848831109702587, -0.03497761860489845, -0.02450098842382431, 0.013599630445241928, -0.06239340826869011, 0.00042238595779053867, 0.07408592849969864, -0.011301102116703987, -0.03144654259085655, 0.034877680242061615, 0.034344688057899475, 0.0011503056157380342, 0.01553172804415226, -0.07435242086648941, 0.019920585677027702, 0.03118004836142063, 0.03907499462366104, -0.00115446955896914, 0.022402331233024597, -0.00926074106246233, -0.016689321026206017, 0.03031393513083458, 0.03714289888739586, -0.09407313168048859, 0.05116725713014603, -0.015714943408966064, -0.04407179728150368, -0.04333893209695816, -0.016747616231441498, 0.014199246652424335, 0.051800187677145004, 0.05819609388709068, -0.01830495335161686, 0.03917493298649788, -0.07721725106239319, 0.017655368894338608, 0.01611468754708767, -0.039208244532346725, -0.001882128999568522, -0.020153770223259926, 0.02273545227944851, -0.034344688057899475, -0.00676650321111083, -0.00854453258216381, -0.029531102627515793, -0.030497150495648384, -0.027932126075029373, 0.008049015887081623, 0.09986942261457443, 0.019204378128051758, 0.016689321026206017, -0.012850110419094563, 0.061194173991680145, 0.009901996701955795, 0.02573353238403797, 0.01671430468559265, -0.0487687923014164, 0.0026941094547510147, 0.012866766192018986, -0.004418006166815758, -0.06152729317545891, 0.012991686351597309, -0.01401603128761053, 0.003441547742113471, -0.06036137416958809, -0.04623707756400108, 0.011684189550578594, -0.05529794842004776, 0.014657286927103996, 0.0237015001475811, -0.00541736651211977, 0.007615959737449884, -0.0068456195294857025, -0.015298543497920036, 0.021203098818659782, 0.05786297470331192, -0.006624927278608084, -0.021153131499886513, -0.0215029064565897, 0.0026691253297030926, 0.029114702716469765, 0.022618860006332397, 0.04810255393385887, 0.04960159212350845, 0.10693157464265823, 0.10826405137777328, 0.006549975369125605, 0.015281887724995613, 0.059961628168821335, 0.010934669524431229, -0.033711761236190796, -0.042939189821481705, 0.01659771241247654, -0.02604999765753746, -0.02418452501296997, 0.01718899980187416, 0.021536218002438545, 0.01788855344057083, 0.027515726163983345, 0.05706348642706871, 0.05912882834672928, 0.03447793796658516, -0.020953258499503136, 0.02156953141093254, -0.017755305394530296, 0.02263551577925682, -0.005558942910283804, -0.004751126281917095, 0.0007719018612988293, 0.018871257081627846, -0.03497761860489845, -0.017272280529141426, -0.029314573854207993, -0.00040390819776803255, -0.002721175318583846, -0.00351649965159595, -0.005517302546650171, 0.08501226454973221, -0.007262019440531731, 0.017472153529524803, -0.0064750234596431255, 0.04280593991279602, 0.003866276005282998, 0.00685811135917902, 0.05133381858468056, -0.05333253741264343, 0.0018654728773981333, 0.04094046726822853, 0.007228707429021597, -0.02363487519323826, -0.06399238109588623, 0.07861635833978653, -0.02450098842382431, 0.034244753420352936, -0.05253304913640022, -0.08201418817043304, -0.05080082640051842, 0.010926341637969017, -0.07748375087976456, -0.008432104252278805, 0.008248887956142426, -0.000039460424886783585, -0.05319929122924805, 0.009060868993401527, -0.034944307059049606, -0.023301756009459496, 0.03236262500286102, -0.026033341884613037, 0.07841648906469345, 0.020670106634497643, 0.017921864986419678, -0.01534851174801588, -0.013616287149488926, 0.027199260890483856, -0.0003781434497795999, 0.08980919420719147, -0.00048718825564719737, -0.09800395369529724, 0.06732358783483505, 0.07122109085321426, -0.032695744186639786, -0.02055351436138153, 0.015781568363308907, -0.01830495335161686, 0.0162812490016222, -0.0465368889272213, -0.021436283364892006, 0.002099697943776846, 0.04173995554447174, 0.013383102603256702, -0.005267462693154812, 0.04733637720346451, -0.03282899409532547, 0.0327790230512619, -0.015814879909157753, -0.028048718348145485, -0.0210365392267704, -0.02220245823264122, 0.004796930588781834, -0.05246642604470253, 0.038508690893650055, 0.048535607755184174, 0.04700325429439545, -0.05373228341341019, 0.06675728410482407, 0.03697633743286133, 0.01915440894663334, -0.02418452501296997, -0.019504185765981674, 0.025167228654026985, -0.002321431180462241, 0.00257543521001935, 0.008411284536123276, -0.0017311838455498219, -0.013849470764398575, 0.06792320311069489, -0.04100709408521652, 0.005500646773725748, 0.04047410190105438, -0.014332495629787445, 0.022802075371146202, -0.035210803151130676, 0.0210365392267704, -0.02689945325255394, 0.006075278855860233, -0.002206921111792326, -0.04190651699900627, -0.03694302588701248, -0.027315853163599968, -0.029647694900631905, 0.029797598719596863, 0.025600284337997437, 0.00824472401291132, 0.03507755324244499, 0.029531102627515793, 0.008477908559143543, -0.027765566483139992, -0.033761728554964066, -0.028998110443353653, 0.07321981340646744, 0.024301115423440933, 0.038242194801568985, 0.00026441412046551704, -0.005384054500609636, -0.030597086995840073, 0.02331841178238392, -0.06982198357582092, 0.04140683636069298, 0.04307243600487709, 0.030447183176875114, -0.025117261335253716, -0.07142096012830734, -0.00659161526709795, -0.01927100121974945, 0.00923575647175312, -0.04756955802440643, -0.005400710739195347, -0.005167526658624411, -0.05493151396512985, 0.0005316910101100802, -0.03137991949915886, 0.00010091198782902211, 0.0210365392267704, -0.03987448289990425, 0.008044851943850517, 0.01937093771994114, 0.009652156382799149, 0.059062205255031586, -0.04127359017729759, 0.053565721958875656, 0.01900450512766838, -0.03106345608830452, 0.016997456550598145, 0.025966716930270195, -0.006033638957887888, 0.008636140264570713, 0.048002615571022034, 0.017971832305192947, -0.00915247667580843, 0.007745043840259314, -0.04007435590028763, -0.04217301309108734, -0.0094189727678895, 0.008057343773543835, -0.02365153096616268, -0.030197342857718468, 0.04520440846681595, -0.04537096619606018, 0.006383415311574936, 0.06032806262373924, 0.01654774509370327, 0.05226655304431915, -0.009227428585290909, -0.024800796061754227, -0.015331855975091457, 0.06828963756561279, -0.03372841700911522, 0.028365181758999825, -0.023335067555308342, 0.0069497195072472095, -0.0416400209069252, -0.049068599939346313, 0.015714943408966064, 0.03794238716363907, 0.02689945325255394, -0.04793599247932434, -0.04637032747268677, 0.013766190968453884, -0.004851062316447496, -0.0028044553473591805, -0.06179378926753998, -0.022868700325489044, -0.0806150808930397, 0.01745549589395523, -0.00017124458099715412, -0.026383116841316223, -0.016947489231824875, -0.010609877295792103, -0.0690891221165657, -0.002102821134030819, -0.00950225256383419, 0.01873800903558731, -0.032595809549093246, -0.009019228629767895, -0.002725339261814952, -0.019304312765598297, -0.04457147791981697, -0.047469623386859894, -0.056763675063848495, 0.06169385462999344, -0.056763675063848495, 0.04487128555774689, 0.031313296407461166, -0.009710452519357204, 0.03336198627948761, -0.018671385943889618, 0.033661793917417526, 0.01563166454434395, 0.03537736088037491, 0.01963743381202221, -0.0014313757419586182, -0.02689945325255394, 0.04217301309108734, 0.04450485482811928, -0.00827803649008274, -0.01542346365749836, 0.05033445730805397, 0.011725829914212227, -0.046403639018535614, 0.023718155920505524, -0.03507755324244499, 0.01702244020998478, 0.013832814991474152, -0.006883095484226942, 0.05386552959680557, -0.010351709090173244, -0.020470233634114265, -0.003279151627793908, -0.022718794643878937, 0.0008806864498183131, 0.04573740065097809, -0.035677168518304825, -0.053665660321712494, -0.04687000811100006, -0.015598352067172527, 0.0003172449069097638, -0.031846288591623306, 0.026866141706705093, -0.0744190439581871, -0.00926074106246233, -0.004089049994945526, -0.09600523114204407, 0.07361955940723419, -0.017921864986419678, 0.01344972662627697, 0.06372588872909546, -0.003870439948514104, -0.02156953141093254, -0.05086744949221611, 0.013782846741378307, -0.030230654403567314, 0.038142260164022446, 0.004463810008019209, -0.011167853139340878, 0.019354281947016716, -0.05946195125579834, -0.06249334290623665, -0.002296447055414319, -0.03481105715036392, -0.055164698511362076, 0.035144176334142685, 0.0285650547593832, 0.05026783421635628, -0.08121469616889954, -0.04726975038647652, -0.014757223427295685, -0.03331201523542404, -0.003004327416419983, -0.03106345608830452, -0.0762178972363472, 0.055431194603443146, 0.04147345945239067, -0.012133901938796043, 0.011067917570471764, 0.000312820659019053, -0.03607691451907158, 0.030130719766020775, -0.05299941822886467, -0.00025595599436201155, 0.010901357047259808, -0.00422854395583272, 0.05459839478135109, -0.006375086959451437, 0.04706988111138344, 0.04700325429439545, -0.011459333822131157, -0.027232574298977852, 0.025167228654026985, -0.0806817039847374, -0.043438870459795, 0.06529155373573303, 0.000591808813624084, 0.007507695816457272, 0.043205685913562775, 0.06772332638502121, -0.0438719242811203, 0.049068599939346313, 0.016689321026206017, -0.006562467198818922, 0.03527742624282837, 0.019137753173708916, 0.03447793796658516, -0.02311853878200054, -0.027798878028988838, 0.027782222256064415, -0.1125279888510704, 0.00976874865591526, 0.023235131055116653, -0.0028252755291759968, 0.025500347837805748, -0.04193982854485512, 0.042572759091854095, 0.013158246874809265, 0.029914190992712975, 0.017955176532268524, -0.03747601807117462, 0.042139701545238495, -0.015923144295811653, -0.023868059739470482, 0.007066311314702034, 0.013624615035951138, -0.01131775788962841, -0.08094820380210876, -0.03607691451907158, 0.02166946604847908, -0.05766310170292854, -0.0290314219892025, -0.016780927777290344, -0.059595197439193726, -0.051700249314308167, 0.021602842956781387, 0.008827684447169304, -0.029231294989585876, 0.04706988111138344, -0.0006599943153560162, 0.03484436869621277, -0.001440744730643928, -0.010918013751506805, -0.0294644795358181, -0.04633701592683792, 0.04173995554447174, -0.040640659630298615, -0.018604760989546776, 0.024401051923632622, -0.05966182053089142, -0.008257215842604637, 0.03331201523542404, -0.009618844836950302, 0.06745683401823044, -0.002196511020883918, 0.03907499462366104, -0.0527329221367836, 0.010360036976635456, 0.02716594934463501, -0.05346578732132912, 0.03011406399309635, -0.0518668107688427, -0.007828324101865292, 0.08228068053722382, 0.058262716978788376, 0.015723271295428276, -0.00238180928863585, 0.003870439948514104, 0.029114702716469765, -0.032112784683704376, 0.016081376001238823, -0.001648944802582264, -0.006674895528703928, -0.0013179066590964794, 0.028848206624388695, -0.002018500119447708, -0.00957720447331667, 0.022868700325489044, -0.025916749611496925, -0.030447183176875114, -0.02566690929234028, 0.03421144187450409, -0.04460478946566582, -0.04690331965684891, -0.023135196417570114, 0.11112888902425766, -0.012017309665679932, 0.021469594910740852, -0.008215576410293579, -0.06102761626243591, -0.03384500741958618, 0.0013918176991865039, 0.0003810061898548156, 0.05999494343996048, 0.04893535375595093, -0.018671385943889618, -0.02230239473283291, -0.030130719766020775, 0.040274228900671005, -0.04147345945239067, 0.04260607063770294, 0.01561500784009695, -0.03404488041996956, 0.06435881555080414, 0.00650000711902976, -0.01968740113079548, 0.010934669524431229, -0.059961628168821335, -0.041606709361076355, -0.04220632463693619, -0.008686108514666557, 0.044271670281887054, 0.034677810966968536, -0.033178769052028656, -0.012933390215039253, -0.09080855548381805, -0.04756955802440643, -0.07162083685398102, 0.009868685156106949, -0.0036372558679431677, -0.022535579279065132, 0.013649598695337772, 0.0024109571240842342, 0.03038056008517742, 0.016322888433933258, 0.02518388442695141, -0.032645776867866516, -0.05759647861123085, 0.038875121623277664, -0.01011019665747881, 0.007611795794218779, -0.046936631202697754, -0.059428635984659195, 0.05173356086015701, 0.04097377881407738, 0.012516990303993225, -0.027732253074645996, 0.03152982518076897, 0.019254345446825027, -0.028698302805423737, 0.03137991949915886, -0.0461038313806057, -0.04307243600487709, 0.012583614327013493, -0.016730960458517075, -0.00021665822714567184, 0.025916749611496925, 0.06625760346651077, -0.03202950581908226, 0.002102821134030819, 0.036809779703617096, 0.008569516241550446, -0.004784438293427229, 0.07315319031476974, 0.039741236716508865, -0.048535607755184174, 0.05812947079539299, 0.006562467198818922, -0.006595779210329056, -0.043905239552259445, -0.008482072502374649, 0.07148759067058563, 0.016347872093319893, 0.024784140288829803, -0.0080323601141572, 0.02956441417336464, -0.016189640387892723, 0.019337626174092293 ]
37,675
healpy
enable_warnings
.. deprecated:: 1.15.0 The enable_warnings function is deprecated and may be removed in a future version. healpy uses logging now This function has no effect
def disable_warnings(): """healpy uses logging now This function has no effect """ pass
()
[ -0.02140296995639801, -0.013066638261079788, 0.0558309406042099, 0.027998749166727066, 0.005238314624875784, -0.030247312039136887, -0.02999747171998024, 0.06259328126907349, -0.015864847227931023, -0.016514431685209274, -0.033228736370801926, 0.007191231474280357, 0.03907499462366104, -0.019187722355127335, -0.029697662219405174, -0.01105126179754734, -0.04620376601815224, 0.04423835873603821, 0.008448760025203228, -0.03994110971689224, -0.013932750560343266, -0.002837767358869314, 0.011867405846714973, 0.04127359017729759, -0.03319542482495308, 0.05679698660969734, 0.009069196879863739, 0.02326844446361065, 0.009893668815493584, -0.020187081769108772, -0.05130050703883171, -0.019737370312213898, 0.03730946034193039, 0.000100651741377078, -0.022552235051989555, -0.007715895771980286, 0.029331231489777565, 0.0263664610683918, -0.1347804218530655, 0.0023734811693429947, 0.011467661708593369, 0.033978257328271866, 0.014965423382818699, -0.014557351358234882, -0.017738649621605873, -0.022802075371146202, 0.016964145004749298, 0.055864252150058746, -0.04333893209695816, -0.004526270087808371, -0.014399119652807713, 0.04273931682109833, 0.040007732808589935, 0.05663042888045311, -0.005300774704664946, 0.020986570045351982, 0.044804662466049194, -0.026433086022734642, 0.016614368185400963, -0.036376722157001495, 0.021369658410549164, 0.05033445730805397, -0.012250494211912155, -0.01515696756541729, 0.04060734808444977, -0.04413842037320137, -0.03038056008517742, 0.008440432138741016, 0.006695715244859457, 0.029581069946289062, -0.04730306193232536, -0.051700249314308167, 0.00497598247602582, 0.029930846765637398, 0.03236262500286102, -0.06036137416958809, -0.014049342833459377, 0.01424921490252018, -0.006000326946377754, 0.012591942213475704, -0.017838584259152412, -0.006662403233349323, 0.02140296995639801, 0.05146706476807594, 0.019087785854935646, -0.06139404699206352, 0.03987448289990425, 0.0103017408400774, 0.018221672624349594, 0.021019883453845978, -0.018638072535395622, -0.00012056087143719196, -0.02530047670006752, -0.0041306898929178715, -0.0037705039139837027, 0.026566334068775177, 0.009169132448732853, 0.00650000711902976, 0.022485611960291862, -0.008602828718721867, 0.028431806713342667, 0.006828963290899992, 0.04677006974816322, 0.0028481774497777224, 0.03266243264079094, -0.06472525000572205, 0.002971015404909849, -0.022435642778873444, 0.040274228900671005, 0.011184509843587875, -0.008827684447169304, -0.030247312039136887, -0.024201180785894394, -0.015523400157690048, -0.003764257999137044, -0.016431152820587158, -0.035577233880758286, -0.03137991949915886, 0.0018571448745205998, 0.01181743759661913, -0.0032333475537598133, 0.021602842956781387, -0.10586559027433395, -0.0553978830575943, 0.07575152814388275, -0.018171705305576324, -0.02007048949599266, 0.033661793917417526, 0.03764257952570915, -0.012616925872862339, -0.007282839622348547, 0.01777196116745472, -0.005946194753050804, -0.0012575286673381925, -0.0034894337877631187, -0.054998140782117844, 0.04104040563106537, 0.00037267818697728217, 0.08001546561717987, -0.017438840121030807, -0.04916853830218315, -0.03934149071574211, 0.012666894122958183, -0.015248575247824192, 0.048868726938962936, 0.037542641162872314, -0.017055751755833626, 0.005933702923357487, -0.0325624980032444, -0.022002587094902992, 0.0690891221165657, -0.03534404933452606, -0.051966745406389236, -0.010068557225167751, -0.015881504863500595, 0.021636154502630234, -0.00797822792083025, 0.01910444162786007, 0.035677168518304825, -0.03204616159200668, 0.02183602750301361, -0.04553752765059471, 0.044638101011514664, -0.015998095273971558, -0.010868045501410961, -0.020053833723068237, 0.020720073953270912, 0.033178769052028656, 0.05013458430767059, -0.008015704341232777, -0.06179378926753998, 0.006924735382199287, -0.03527742624282837, 0.04433829337358475, 0.043838612735271454, 0.06315958499908447, 0.00976874865591526, 0.05063426494598389, -0.05839596688747406, 0.020137114450335503, -0.008024032227694988, -0.000938461977057159, -0.018671385943889618, 0.009893668815493584, 0.04074059799313545, 0.01078476570546627, 0.02619990147650242, -0.017172344028949738, -0.07421917468309402, 0.01675594411790371, 0.012525318190455437, 0.0531659796833992, 0.014182590879499912, 0.006125247105956078, 0.04903528839349747, -0.014848831109702587, -0.03497761860489845, -0.02450098842382431, 0.013599630445241928, -0.06239340826869011, 0.00042238595779053867, 0.07408592849969864, -0.011301102116703987, -0.03144654259085655, 0.034877680242061615, 0.034344688057899475, 0.0011503056157380342, 0.01553172804415226, -0.07435242086648941, 0.019920585677027702, 0.03118004836142063, 0.03907499462366104, -0.00115446955896914, 0.022402331233024597, -0.00926074106246233, -0.016689321026206017, 0.03031393513083458, 0.03714289888739586, -0.09407313168048859, 0.05116725713014603, -0.015714943408966064, -0.04407179728150368, -0.04333893209695816, -0.016747616231441498, 0.014199246652424335, 0.051800187677145004, 0.05819609388709068, -0.01830495335161686, 0.03917493298649788, -0.07721725106239319, 0.017655368894338608, 0.01611468754708767, -0.039208244532346725, -0.001882128999568522, -0.020153770223259926, 0.02273545227944851, -0.034344688057899475, -0.00676650321111083, -0.00854453258216381, -0.029531102627515793, -0.030497150495648384, -0.027932126075029373, 0.008049015887081623, 0.09986942261457443, 0.019204378128051758, 0.016689321026206017, -0.012850110419094563, 0.061194173991680145, 0.009901996701955795, 0.02573353238403797, 0.01671430468559265, -0.0487687923014164, 0.0026941094547510147, 0.012866766192018986, -0.004418006166815758, -0.06152729317545891, 0.012991686351597309, -0.01401603128761053, 0.003441547742113471, -0.06036137416958809, -0.04623707756400108, 0.011684189550578594, -0.05529794842004776, 0.014657286927103996, 0.0237015001475811, -0.00541736651211977, 0.007615959737449884, -0.0068456195294857025, -0.015298543497920036, 0.021203098818659782, 0.05786297470331192, -0.006624927278608084, -0.021153131499886513, -0.0215029064565897, 0.0026691253297030926, 0.029114702716469765, 0.022618860006332397, 0.04810255393385887, 0.04960159212350845, 0.10693157464265823, 0.10826405137777328, 0.006549975369125605, 0.015281887724995613, 0.059961628168821335, 0.010934669524431229, -0.033711761236190796, -0.042939189821481705, 0.01659771241247654, -0.02604999765753746, -0.02418452501296997, 0.01718899980187416, 0.021536218002438545, 0.01788855344057083, 0.027515726163983345, 0.05706348642706871, 0.05912882834672928, 0.03447793796658516, -0.020953258499503136, 0.02156953141093254, -0.017755305394530296, 0.02263551577925682, -0.005558942910283804, -0.004751126281917095, 0.0007719018612988293, 0.018871257081627846, -0.03497761860489845, -0.017272280529141426, -0.029314573854207993, -0.00040390819776803255, -0.002721175318583846, -0.00351649965159595, -0.005517302546650171, 0.08501226454973221, -0.007262019440531731, 0.017472153529524803, -0.0064750234596431255, 0.04280593991279602, 0.003866276005282998, 0.00685811135917902, 0.05133381858468056, -0.05333253741264343, 0.0018654728773981333, 0.04094046726822853, 0.007228707429021597, -0.02363487519323826, -0.06399238109588623, 0.07861635833978653, -0.02450098842382431, 0.034244753420352936, -0.05253304913640022, -0.08201418817043304, -0.05080082640051842, 0.010926341637969017, -0.07748375087976456, -0.008432104252278805, 0.008248887956142426, -0.000039460424886783585, -0.05319929122924805, 0.009060868993401527, -0.034944307059049606, -0.023301756009459496, 0.03236262500286102, -0.026033341884613037, 0.07841648906469345, 0.020670106634497643, 0.017921864986419678, -0.01534851174801588, -0.013616287149488926, 0.027199260890483856, -0.0003781434497795999, 0.08980919420719147, -0.00048718825564719737, -0.09800395369529724, 0.06732358783483505, 0.07122109085321426, -0.032695744186639786, -0.02055351436138153, 0.015781568363308907, -0.01830495335161686, 0.0162812490016222, -0.0465368889272213, -0.021436283364892006, 0.002099697943776846, 0.04173995554447174, 0.013383102603256702, -0.005267462693154812, 0.04733637720346451, -0.03282899409532547, 0.0327790230512619, -0.015814879909157753, -0.028048718348145485, -0.0210365392267704, -0.02220245823264122, 0.004796930588781834, -0.05246642604470253, 0.038508690893650055, 0.048535607755184174, 0.04700325429439545, -0.05373228341341019, 0.06675728410482407, 0.03697633743286133, 0.01915440894663334, -0.02418452501296997, -0.019504185765981674, 0.025167228654026985, -0.002321431180462241, 0.00257543521001935, 0.008411284536123276, -0.0017311838455498219, -0.013849470764398575, 0.06792320311069489, -0.04100709408521652, 0.005500646773725748, 0.04047410190105438, -0.014332495629787445, 0.022802075371146202, -0.035210803151130676, 0.0210365392267704, -0.02689945325255394, 0.006075278855860233, -0.002206921111792326, -0.04190651699900627, -0.03694302588701248, -0.027315853163599968, -0.029647694900631905, 0.029797598719596863, 0.025600284337997437, 0.00824472401291132, 0.03507755324244499, 0.029531102627515793, 0.008477908559143543, -0.027765566483139992, -0.033761728554964066, -0.028998110443353653, 0.07321981340646744, 0.024301115423440933, 0.038242194801568985, 0.00026441412046551704, -0.005384054500609636, -0.030597086995840073, 0.02331841178238392, -0.06982198357582092, 0.04140683636069298, 0.04307243600487709, 0.030447183176875114, -0.025117261335253716, -0.07142096012830734, -0.00659161526709795, -0.01927100121974945, 0.00923575647175312, -0.04756955802440643, -0.005400710739195347, -0.005167526658624411, -0.05493151396512985, 0.0005316910101100802, -0.03137991949915886, 0.00010091198782902211, 0.0210365392267704, -0.03987448289990425, 0.008044851943850517, 0.01937093771994114, 0.009652156382799149, 0.059062205255031586, -0.04127359017729759, 0.053565721958875656, 0.01900450512766838, -0.03106345608830452, 0.016997456550598145, 0.025966716930270195, -0.006033638957887888, 0.008636140264570713, 0.048002615571022034, 0.017971832305192947, -0.00915247667580843, 0.007745043840259314, -0.04007435590028763, -0.04217301309108734, -0.0094189727678895, 0.008057343773543835, -0.02365153096616268, -0.030197342857718468, 0.04520440846681595, -0.04537096619606018, 0.006383415311574936, 0.06032806262373924, 0.01654774509370327, 0.05226655304431915, -0.009227428585290909, -0.024800796061754227, -0.015331855975091457, 0.06828963756561279, -0.03372841700911522, 0.028365181758999825, -0.023335067555308342, 0.0069497195072472095, -0.0416400209069252, -0.049068599939346313, 0.015714943408966064, 0.03794238716363907, 0.02689945325255394, -0.04793599247932434, -0.04637032747268677, 0.013766190968453884, -0.004851062316447496, -0.0028044553473591805, -0.06179378926753998, -0.022868700325489044, -0.0806150808930397, 0.01745549589395523, -0.00017124458099715412, -0.026383116841316223, -0.016947489231824875, -0.010609877295792103, -0.0690891221165657, -0.002102821134030819, -0.00950225256383419, 0.01873800903558731, -0.032595809549093246, -0.009019228629767895, -0.002725339261814952, -0.019304312765598297, -0.04457147791981697, -0.047469623386859894, -0.056763675063848495, 0.06169385462999344, -0.056763675063848495, 0.04487128555774689, 0.031313296407461166, -0.009710452519357204, 0.03336198627948761, -0.018671385943889618, 0.033661793917417526, 0.01563166454434395, 0.03537736088037491, 0.01963743381202221, -0.0014313757419586182, -0.02689945325255394, 0.04217301309108734, 0.04450485482811928, -0.00827803649008274, -0.01542346365749836, 0.05033445730805397, 0.011725829914212227, -0.046403639018535614, 0.023718155920505524, -0.03507755324244499, 0.01702244020998478, 0.013832814991474152, -0.006883095484226942, 0.05386552959680557, -0.010351709090173244, -0.020470233634114265, -0.003279151627793908, -0.022718794643878937, 0.0008806864498183131, 0.04573740065097809, -0.035677168518304825, -0.053665660321712494, -0.04687000811100006, -0.015598352067172527, 0.0003172449069097638, -0.031846288591623306, 0.026866141706705093, -0.0744190439581871, -0.00926074106246233, -0.004089049994945526, -0.09600523114204407, 0.07361955940723419, -0.017921864986419678, 0.01344972662627697, 0.06372588872909546, -0.003870439948514104, -0.02156953141093254, -0.05086744949221611, 0.013782846741378307, -0.030230654403567314, 0.038142260164022446, 0.004463810008019209, -0.011167853139340878, 0.019354281947016716, -0.05946195125579834, -0.06249334290623665, -0.002296447055414319, -0.03481105715036392, -0.055164698511362076, 0.035144176334142685, 0.0285650547593832, 0.05026783421635628, -0.08121469616889954, -0.04726975038647652, -0.014757223427295685, -0.03331201523542404, -0.003004327416419983, -0.03106345608830452, -0.0762178972363472, 0.055431194603443146, 0.04147345945239067, -0.012133901938796043, 0.011067917570471764, 0.000312820659019053, -0.03607691451907158, 0.030130719766020775, -0.05299941822886467, -0.00025595599436201155, 0.010901357047259808, -0.00422854395583272, 0.05459839478135109, -0.006375086959451437, 0.04706988111138344, 0.04700325429439545, -0.011459333822131157, -0.027232574298977852, 0.025167228654026985, -0.0806817039847374, -0.043438870459795, 0.06529155373573303, 0.000591808813624084, 0.007507695816457272, 0.043205685913562775, 0.06772332638502121, -0.0438719242811203, 0.049068599939346313, 0.016689321026206017, -0.006562467198818922, 0.03527742624282837, 0.019137753173708916, 0.03447793796658516, -0.02311853878200054, -0.027798878028988838, 0.027782222256064415, -0.1125279888510704, 0.00976874865591526, 0.023235131055116653, -0.0028252755291759968, 0.025500347837805748, -0.04193982854485512, 0.042572759091854095, 0.013158246874809265, 0.029914190992712975, 0.017955176532268524, -0.03747601807117462, 0.042139701545238495, -0.015923144295811653, -0.023868059739470482, 0.007066311314702034, 0.013624615035951138, -0.01131775788962841, -0.08094820380210876, -0.03607691451907158, 0.02166946604847908, -0.05766310170292854, -0.0290314219892025, -0.016780927777290344, -0.059595197439193726, -0.051700249314308167, 0.021602842956781387, 0.008827684447169304, -0.029231294989585876, 0.04706988111138344, -0.0006599943153560162, 0.03484436869621277, -0.001440744730643928, -0.010918013751506805, -0.0294644795358181, -0.04633701592683792, 0.04173995554447174, -0.040640659630298615, -0.018604760989546776, 0.024401051923632622, -0.05966182053089142, -0.008257215842604637, 0.03331201523542404, -0.009618844836950302, 0.06745683401823044, -0.002196511020883918, 0.03907499462366104, -0.0527329221367836, 0.010360036976635456, 0.02716594934463501, -0.05346578732132912, 0.03011406399309635, -0.0518668107688427, -0.007828324101865292, 0.08228068053722382, 0.058262716978788376, 0.015723271295428276, -0.00238180928863585, 0.003870439948514104, 0.029114702716469765, -0.032112784683704376, 0.016081376001238823, -0.001648944802582264, -0.006674895528703928, -0.0013179066590964794, 0.028848206624388695, -0.002018500119447708, -0.00957720447331667, 0.022868700325489044, -0.025916749611496925, -0.030447183176875114, -0.02566690929234028, 0.03421144187450409, -0.04460478946566582, -0.04690331965684891, -0.023135196417570114, 0.11112888902425766, -0.012017309665679932, 0.021469594910740852, -0.008215576410293579, -0.06102761626243591, -0.03384500741958618, 0.0013918176991865039, 0.0003810061898548156, 0.05999494343996048, 0.04893535375595093, -0.018671385943889618, -0.02230239473283291, -0.030130719766020775, 0.040274228900671005, -0.04147345945239067, 0.04260607063770294, 0.01561500784009695, -0.03404488041996956, 0.06435881555080414, 0.00650000711902976, -0.01968740113079548, 0.010934669524431229, -0.059961628168821335, -0.041606709361076355, -0.04220632463693619, -0.008686108514666557, 0.044271670281887054, 0.034677810966968536, -0.033178769052028656, -0.012933390215039253, -0.09080855548381805, -0.04756955802440643, -0.07162083685398102, 0.009868685156106949, -0.0036372558679431677, -0.022535579279065132, 0.013649598695337772, 0.0024109571240842342, 0.03038056008517742, 0.016322888433933258, 0.02518388442695141, -0.032645776867866516, -0.05759647861123085, 0.038875121623277664, -0.01011019665747881, 0.007611795794218779, -0.046936631202697754, -0.059428635984659195, 0.05173356086015701, 0.04097377881407738, 0.012516990303993225, -0.027732253074645996, 0.03152982518076897, 0.019254345446825027, -0.028698302805423737, 0.03137991949915886, -0.0461038313806057, -0.04307243600487709, 0.012583614327013493, -0.016730960458517075, -0.00021665822714567184, 0.025916749611496925, 0.06625760346651077, -0.03202950581908226, 0.002102821134030819, 0.036809779703617096, 0.008569516241550446, -0.004784438293427229, 0.07315319031476974, 0.039741236716508865, -0.048535607755184174, 0.05812947079539299, 0.006562467198818922, -0.006595779210329056, -0.043905239552259445, -0.008482072502374649, 0.07148759067058563, 0.016347872093319893, 0.024784140288829803, -0.0080323601141572, 0.02956441417336464, -0.016189640387892723, 0.019337626174092293 ]
37,676
healpy.pixelfunc
fit_dipole
Fit a dipole and a monopole to the map, excluding bad pixels. Parameters ---------- m : float, array-like the map to which a dipole is fitted and subtracted, accepts masked maps nest : bool if ``False`` m is assumed in RING scheme, otherwise map is NESTED bad : float bad values of pixel, default to :const:`UNSEEN`. gal_cut : float [degrees] pixels at latitude in [-gal_cut;+gal_cut] degrees are not taken into account Returns ------- res : tuple of length 2 the monopole value in res[0] and the dipole vector (as array) in res[1] See Also -------- remove_dipole, fit_monopole, remove_monopole
def fit_dipole(m, nest=False, bad=UNSEEN, gal_cut=0): """Fit a dipole and a monopole to the map, excluding bad pixels. Parameters ---------- m : float, array-like the map to which a dipole is fitted and subtracted, accepts masked maps nest : bool if ``False`` m is assumed in RING scheme, otherwise map is NESTED bad : float bad values of pixel, default to :const:`UNSEEN`. gal_cut : float [degrees] pixels at latitude in [-gal_cut;+gal_cut] degrees are not taken into account Returns ------- res : tuple of length 2 the monopole value in res[0] and the dipole vector (as array) in res[1] See Also -------- remove_dipole, fit_monopole, remove_monopole """ m = ma_to_array(m) m = np.asarray(m) npix = m.size nside = npix2nside(npix) if nside > 128: bunchsize = npix // 24 else: bunchsize = npix aa = np.zeros((4, 4), dtype=np.float64) v = np.zeros(4, dtype=np.float64) for ibunch in range(npix // bunchsize): ipix = np.arange(ibunch * bunchsize, (ibunch + 1) * bunchsize) ipix = ipix[(m.flat[ipix] != bad) & (np.isfinite(m.flat[ipix]))] x, y, z = pix2vec(nside, ipix, nest) if gal_cut > 0: w = np.abs(z) >= np.sin(gal_cut * np.pi / 180) ipix = ipix[w] x = x[w] y = y[w] z = z[w] del w aa[0, 0] += ipix.size aa[1, 0] += x.sum() aa[2, 0] += y.sum() aa[3, 0] += z.sum() aa[1, 1] += (x ** 2).sum() aa[2, 1] += (x * y).sum() aa[3, 1] += (x * z).sum() aa[2, 2] += (y ** 2).sum() aa[3, 2] += (y * z).sum() aa[3, 3] += (z ** 2).sum() v[0] += m.flat[ipix].sum() v[1] += (m.flat[ipix] * x).sum() v[2] += (m.flat[ipix] * y).sum() v[3] += (m.flat[ipix] * z).sum() aa[0, 1] = aa[1, 0] aa[0, 2] = aa[2, 0] aa[0, 3] = aa[3, 0] aa[1, 2] = aa[2, 1] aa[1, 3] = aa[3, 1] aa[2, 3] = aa[3, 2] res = np.dot(np.linalg.inv(aa), v) mono = res[0] dipole = res[1:4] return mono, dipole
(m, nest=False, bad=-1.6375e+30, gal_cut=0)
[ 0.05436523258686066, 0.013591308146715164, 0.062023431062698364, 0.02060135267674923, 0.010589852929115295, -0.038211219012737274, 0.015017248690128326, -0.07367027550935745, -0.03745337948203087, 0.025946136564016342, -0.029914839193224907, 0.052809663116931915, -0.03795195743441582, 0.03984656557440758, -0.0043127224780619144, 0.04738510400056839, -0.015326368622481823, 0.028558699414134026, -0.03561859950423241, 0.014488753862679005, 0.037772469222545624, -0.03161001205444336, 0.03087211400270462, 0.04423407465219498, -0.04929965361952782, -0.037074457854032516, 0.01124797947704792, -0.013481620699167252, -0.014458838850259781, -0.058313991874456406, -0.01604432426393032, -0.017779385671019554, -0.009901811368763447, -0.02391192689538002, -0.010250817984342575, -0.01349159236997366, 0.06258184462785721, 0.08033131062984467, -0.0899040624499321, -0.027840742841362953, -0.011706673540174961, -0.0006138774333521724, 0.0169916283339262, 0.017849186435341835, 0.061584681272506714, -0.03880951553583145, -0.009268614463508129, 0.0028294450603425503, -0.07550505548715591, 0.0392482690513134, -0.04319702833890915, -0.04367566481232643, 0.001377328997477889, 0.026664093136787415, 0.02867835946381092, 0.020172573626041412, 0.01611412689089775, 0.06290093064308167, 0.05448489263653755, -0.02289482392370701, -0.036795251071453094, -0.04973840340971947, 0.019703907892107964, -0.017410436645150185, -0.00962759181857109, -0.0029341471381485462, -0.0161739569157362, 0.009099096991121769, -0.009682436473667622, 0.053248412907123566, 0.0024118837900459766, 0.07554493844509125, 0.034501779824495316, -0.009836995974183083, -0.0018946063937619328, -0.004619349725544453, 0.11750548332929611, -0.05380682274699211, 0.030792340636253357, -0.02478943020105362, 0.010709512047469616, -0.01648307591676712, 0.01040039211511612, 0.04894067719578743, -0.05464443936944008, 0.10346545279026031, 0.03258723020553589, -0.03366416320204735, -0.06222286447882652, 0.002147636143490672, 0.02806011773645878, 0.03278666362166405, 0.010510079562664032, 0.017250889912247658, -0.03033364564180374, 0.0017699613235890865, -0.020082827657461166, 0.03512002155184746, 0.014079917222261429, -0.025587158277630806, 0.008954508230090141, -0.0036446244921535254, 0.000330932904034853, 0.0036720463540405035, 0.01750018075108528, -0.016263701021671295, 0.007094802334904671, 0.007428851444274187, 0.003185930196195841, -0.0015817470848560333, -0.024171190336346626, 0.07630278170108795, -0.047504764050245285, 0.03117126226425171, -0.04323691502213478, 0.03555877134203911, -0.02873818762600422, -0.019404757767915726, -0.005718720145523548, 0.036456216126680374, 0.008485842496156693, 0.008406070061028004, 0.007837687619030476, -0.06736821681261063, 0.019035808742046356, 0.022336412221193314, 0.03073251061141491, 0.023732438683509827, -0.016124097630381584, 0.01931501366198063, -0.011008660309016705, -0.014718100428581238, 0.04116281867027283, 0.005444500595331192, -0.04782385379076004, -0.01594460941851139, 0.03972690552473068, -0.03994628041982651, -0.03958730399608612, -0.006461604963988066, -0.004382523708045483, 0.04168134182691574, -0.02371249534189701, 0.0550433024764061, 0.023513063788414, 0.010260789655148983, 0.032746776938438416, 0.01166678685694933, 0.11646843701601028, 0.0024255947209894657, -0.0314704105257988, -0.041801001876592636, -0.04678680747747421, 0.07666175812482834, 0.005245068576186895, -0.014428923837840557, 0.05440511927008629, 0.0037692696787416935, 0.011467354372143745, -0.0017213496612384915, -0.03543911129236221, -0.06665026396512985, 0.007822730578482151, 0.05731683224439621, 0.028040174394845963, 0.004083375446498394, 0.02205720730125904, -0.0073141781613230705, 0.0383109375834465, 0.027840742841362953, -0.008281424641609192, -0.032607175409793854, -0.045749761164188385, -0.0009772180346772075, 0.07008049637079239, -0.0036894967779517174, -0.0322880819439888, 0.0196241345256567, -0.0045021832920610905, -0.05711739882826805, 0.01276366412639618, 0.011068490333855152, 0.09277588874101639, 0.012304970063269138, -0.03968701884150505, 0.06609185039997101, 0.07227425277233124, -0.03402314335107803, 0.019773708656430244, -0.027541594579815865, -0.007997233420610428, -0.012813522480428219, 0.015087050385773182, 0.046188510954380035, -0.021020159125328064, -0.013571364805102348, 0.03170973062515259, 0.02478943020105362, 0.015545744448900223, -0.008256494998931885, -0.10115204006433487, 0.004714080132544041, 0.0056688617914915085, -0.004701615311205387, 0.008515757508575916, -0.0011523445136845112, -0.03928815573453903, 0.016463132575154305, 0.08116892725229263, 0.03157012537121773, 0.046587374061346054, 0.0036471174098551273, 0.03964713215827942, 0.011407525278627872, 0.0584336519241333, 0.01661270670592785, 0.047903627157211304, 0.011267922818660736, -0.022416185587644577, 0.029097165912389755, -0.06956197321414948, -0.025746705010533333, 0.021458910778164864, 0.055681485682725906, -0.020381975919008255, -0.0014944954309612513, 0.025407670065760612, 0.011517212726175785, 0.035080134868621826, 0.0007198257953859866, 0.019135525450110435, -0.05093500018119812, 0.002844402566552162, -0.039706964045763016, -0.04168134182691574, 0.0157352052628994, -0.03384365513920784, -0.03551888465881348, 0.03033364564180374, -0.005898208823055029, -0.017569981515407562, -0.03996622562408447, -0.08164756745100021, 0.08822882920503616, 0.034362178295850754, 0.03117126226425171, -0.052769776433706284, 0.018597057089209557, 0.03468126803636551, 0.036835137754678726, -0.022854937240481377, 0.045311007648706436, -0.0017151173669844866, 0.011686730198562145, 0.009238699451088905, -0.07163606584072113, -0.027601424604654312, 0.03276671841740608, 0.019534390419721603, 0.019005894660949707, 0.01492750458419323, -0.0619436576962471, 0.06014876812696457, -0.018786517903208733, -0.01813836395740509, 0.00035461547668091953, 0.0010794270783662796, -0.01073942705988884, -0.006012882571667433, -0.038490425795316696, 0.018397625535726547, 0.048860903829336166, 0.02323385700583458, -0.006217300426214933, -0.022376298904418945, 0.06058751791715622, 0.0783768743276596, 0.02780085615813732, 0.02191760577261448, -0.01972384937107563, -0.04754465073347092, -0.0029815123416483402, -0.0322880819439888, 0.059630244970321655, -0.06872435659170151, -0.001362371607683599, 0.049060333520174026, 0.054325345903635025, 0.012504402548074722, -0.03218836709856987, 0.04082378372550011, 0.0031285935547202826, 0.029256712645292282, 0.008231566287577152, 0.0662115067243576, -0.010166059248149395, -0.03898900747299194, -0.017978817224502563, -0.05097488313913345, -0.08543677628040314, 0.045749761164188385, -0.038051676005125046, 0.042877934873104095, -0.008530714549124241, 0.06322002410888672, 0.06585253030061722, 0.012085595168173313, -0.05971001833677292, 0.021319307386875153, 0.0038465496618300676, 0.020581409335136414, -0.03920838236808777, -0.01107846200466156, 0.03292626515030861, -0.012504402548074722, 0.00657627871260047, 0.003941279835999012, -0.009866910986602306, 0.028498869389295578, 0.009941698051989079, 0.036117181181907654, -0.014359122142195702, 0.03847048059105873, -0.0002302819339092821, 0.03892917558550835, -0.0009747251751832664, 0.0550433024764061, 0.028319381177425385, 0.07131697237491608, 0.010081300511956215, -0.013092727400362492, 0.024470338597893715, -0.055242735892534256, 0.005643933080136776, -0.0005898832459934056, -0.001450869720429182, 0.012873352505266666, -0.0714765191078186, -0.02377232536673546, -0.04279816150665283, 0.033823709934949875, 0.020661182701587677, 0.0015692826127633452, 0.0016976670594885945, 0.00638183206319809, 0.03390348330140114, -0.006182400044053793, 0.03587786480784416, -0.007289248984307051, 0.07111754268407822, 0.07315175235271454, 0.049937836825847626, 0.013192444108426571, -0.0019457109738141298, 0.000025104314772761427, 0.07538539171218872, 0.0010544980177655816, -0.00418807752430439, 0.015765119343996048, -0.04914010688662529, -0.01344173401594162, -0.02289482392370701, 0.01779932901263237, -0.00003022645068995189, -0.008091963827610016, -0.03731377422809601, -0.08583564311265945, -0.0314105786383152, 0.007543525192886591, -0.04447339475154877, -0.0032008877024054527, -0.022974595427513123, -0.028937621042132378, -0.04335657134652138, 0.05647921562194824, -0.016124097630381584, -0.045510441064834595, -0.008171736262738705, -0.00509050814434886, 0.0975622609257698, -0.04738510400056839, 0.0049309623427689075, 0.0005780419451184571, 0.049937836825847626, 0.05265011638402939, 0.02195749059319496, 0.03920838236808777, 0.0030313702300190926, -0.03715423122048378, -0.007473723962903023, -0.012524345889687538, 0.02634500153362751, 0.08384132385253906, 0.018936092033982277, -0.013511535711586475, 0.0037368619814515114, 0.006641094107180834, -0.0011473586782813072, -0.04391498118638992, 0.0200329702347517, 0.018258024007081985, 0.001277612871490419, 0.03968701884150505, -0.006990100722759962, -0.02449028193950653, -0.04491214454174042, -0.06980129331350327, -0.023951813578605652, 0.0080720204859972, -0.04076395183801651, -0.02084067091345787, 0.02941625751554966, 0.08439972996711731, -0.001492002629674971, -0.01102860365062952, 0.009637563489377499, -0.048142947256565094, 0.0002450835600029677, -0.02259567379951477, -0.0037817342672497034, 0.04630817100405693, -0.12947142124176025, 0.009153940714895725, 0.01914549618959427, -0.053248412907123566, -0.08061052113771439, -0.006690951995551586, -0.013122642412781715, -0.012444572523236275, 0.013421790674328804, -0.006835540756583214, -0.04630817100405693, 0.03968701884150505, -0.06517446041107178, -0.02786068618297577, 0.0010819199960678816, -0.006162456702440977, -0.0392482690513134, 0.03731377422809601, -0.03851036727428436, 0.016393331810832024, 0.0314105786383152, 0.005534245166927576, -0.04371555149555206, -0.0436357781291008, 0.0032008877024054527, -0.03292626515030861, 0.06066729128360748, 0.013581336475908756, -0.0566786490380764, 0.08950519561767578, -0.02371249534189701, 0.015834921970963478, 0.003986152354627848, 0.03671547770500183, -0.04208020493388176, -0.06333968788385391, -0.023114198818802834, -0.023513063788414, 0.06234252452850342, 0.02897750772535801, -0.009163912385702133, -0.033823709934949875, 0.02999461069703102, 0.01205568015575409, -0.012135452590882778, 0.02999461069703102, -0.037573035806417465, -0.007698085159063339, -0.0064915199764072895, 0.023353517055511475, -0.06333968788385391, 0.03681519627571106, -0.03833087906241417, 0.05077545344829559, 0.02026231773197651, 0.0007846413063816726, 0.017270833253860474, 0.01931501366198063, 0.02020248770713806, 0.007558482699096203, -0.006561321206390858, -0.0274618212133646, -0.06102627143263817, -0.05560171231627464, 0.036735422909259796, -0.05396636947989464, 0.035419169813394547, 0.05009738355875015, -0.01928509958088398, -0.019803622737526894, 0.030572965741157532, -0.0018609522376209497, -0.04267850145697594, -0.04076395183801651, 0.0427582748234272, -0.007648227270692587, -0.010450250469148159, 0.02303442545235157, -0.064456507563591, -0.009662493132054806, -0.038490425795316696, -0.0196241345256567, -0.0252680666744709, -0.046387944370508194, 0.01166678685694933, -0.01871671713888645, -0.006222286261618137, 0.0374334342777729, -0.0009541587205603719, -0.011467354372143745, -0.0566786490380764, 0.027441877871751785, 0.025048691779375076, 0.049060333520174026, 0.0039637163281440735, -0.01722097583115101, -0.009971613064408302, 0.017689641565084457, -0.07745949178934097, 0.02658431977033615, -0.02074095420539379, -0.03029375895857811, 0.06413741409778595, -0.04786374047398567, 0.009163912385702133, 0.011716645210981369, -0.0341029167175293, -0.04846203699707985, -0.04124259203672409, -0.019205326214432716, -0.0024417988024652004, -0.007508624345064163, -0.01263403333723545, 0.04475259780883789, -0.053487733006477356, 0.013601279817521572, -0.10625750571489334, 0.005703762639313936, 0.013790740631520748, 0.007977290078997612, -0.012973068282008171, 0.019903339445590973, 0.015286482870578766, 0.02630511485040188, 0.04064429551362991, -0.010948831215500832, -0.06868446618318558, 0.040883611887693405, -0.048821017146110535, 0.008595529943704605, 0.04291782155632973, -0.0699608325958252, 0.010166059248149395, 0.05887240171432495, 0.051932159811258316, -0.05352761596441269, -0.05332818627357483, -0.08559632301330566, 0.01411980390548706, -0.06437673419713974, 0.025387726724147797, 0.027162672951817513, -0.04798340052366257, 0.009288557805120945, -0.023632721975445747, -0.017909016460180283, -0.008725161664187908, -0.04586941748857498, -0.0322880819439888, -0.028478926047682762, 0.0033379974775016308, 0.012404686771333218, 0.019225269556045532, -0.0005845858249813318, 0.055442165583372116, 0.018058590590953827, -0.07394947856664658, 0.018726689741015434, -0.015505857765674591, -0.017918989062309265, -0.020421862602233887, -0.008809920400381088, 0.03697473928332329, 0.0322880819439888, 0.051932159811258316, -0.013132614083588123, 0.030074384063482285, 0.008171736262738705, -0.027441877871751785, 0.023752382025122643, -0.021698229014873505, 0.04694635421037674, -0.011267922818660736, -0.05596069246530533, -0.02421107515692711, -0.02191760577261448, 0.018666859716176987, 0.02303442545235157, -0.0018459948478266597, -0.0030114271212369204, -0.01884634792804718, -0.03827105090022087, -0.0195942185819149, -0.06306047737598419, 0.033045925199985504, 0.0059630246832966805, -0.04423407465219498, -0.03394336998462677, -0.005614018067717552, -0.029874952509999275, -0.004796345718204975, -0.01543605700135231, -0.017789356410503387, -0.02995472587645054, -0.02911710925400257, -0.0480232872068882, 0.03306586667895317, 0.022316468879580498, 0.021020159125328064, -0.010599824599921703, -0.02732221968472004, -0.024968918412923813, -0.046826694160699844, 0.00045557806151919067, -0.011008660309016705, -0.006192371714860201, 0.037533149123191833, -0.0006107612862251699, 0.03793201595544815, -0.049259766936302185, 0.04850192368030548, -0.01901586540043354, 0.03210859373211861, -0.01911558210849762, 0.020282261073589325, 0.02951597422361374, -0.049060333520174026, -0.025387726724147797, 0.0810093805193901, 0.016971684992313385, 0.0019407251384109259, 0.046387944370508194, 0.045271120965480804, 0.019235240295529366, 0.01762981154024601, 0.012673920020461082, 0.013172500766813755, 0.019853482022881508, -0.00047957224887795746, -0.023054368793964386, 0.06561321020126343, -0.009966626763343811, 0.0015431070933118463, 0.009682436473667622, -0.034601498395204544, -0.01166678685694933, 0.010081300511956215, -0.03705451264977455, -0.00663610827177763, -0.004257878754287958, 0.0055691455490887165, -0.0558011457324028, -0.08862769603729248, -0.053926482796669006, -0.007718028500676155, 0.03320547193288803, -0.037234000861644745, 0.019464587792754173, -0.010450250469148159, -0.007448794785887003, 0.013710967265069485, -0.018108448013663292, -0.022575732320547104, -0.04742499068379402, -0.01188616268336773, 0.009483003988862038, -0.0056738476268947124, -0.016692480072379112, 0.04586941748857498, 0.003360433503985405, 0.015037192031741142, 0.04806317389011383, 0.06525423377752304, 0.007698085159063339, 0.04834238067269325, 0.018447482958436012, -0.04499191790819168, 0.0024143767077475786, 0.007862616330385208, -0.00003883475801558234, -0.04782385379076004, 0.03583797812461853, 0.015416113659739494, 0.0296555757522583, -0.023732438683509827, -0.018626973032951355, 0.016163984313607216, -0.03033364564180374, 0.01662267930805683, 0.01453861128538847, -0.029795179143548012, -0.020013026893138885, 0.013591308146715164, -0.055202849209308624, -0.016393331810832024, -0.0050306785851716995, 0.01651298999786377, 0.026364944875240326, 0.01268389169126749, -0.014817817136645317, 0.05799490213394165, 0.009363344870507717, -0.06449639052152634, -0.000683055492118001, -0.04742499068379402, -0.0053198556415736675, -0.009363344870507717, 0.031629957258701324, -0.027780912816524506, 0.017430379986763, -0.009064195677638054, 0.013970229774713516, 0.02492903172969818, -0.031669843941926956, -0.0014159689890220761, -0.038729745894670486, -0.02634500153362751, -0.0619436576962471, -0.03464138135313988, -0.017589924857020378, 0.028917677700519562, -0.012275055050849915, 0.08575586974620819, -0.017739498987793922, 0.061584681272506714, 0.004098332952708006, 0.0070349727757275105, -0.05001761019229889, -0.04096338525414467, -0.030353588983416557, -0.02157857082784176, 0.003981166519224644, 0.004065925255417824, -0.1072147786617279, 0.02167828567326069, 0.040684182196855545, -0.006237243767827749, 0.0045445626601576805, 0.015087050385773182, 0.039367929100990295, 0.03866991400718689, -0.02377232536673546, 0.05288943275809288, -0.011277894489467144, 0.03478098660707474, 0.010589852929115295, -0.039028894156217575, 0.02600596658885479, -0.0391884371638298, -0.04447339475154877, 0.040684182196855545, -0.04271838814020157, 0.008485842496156693, -0.0038315921556204557, 0.06238241121172905, -0.01897597871720791, 0.015894750133156776 ]
37,677
healpy.pixelfunc
fit_monopole
Fit a monopole to the map, excluding unseen pixels. Parameters ---------- m : float, array-like the map to which a dipole is fitted and subtracted, accepts masked arrays nest : bool if ``False`` m is assumed in RING scheme, otherwise map is NESTED bad : float bad values of pixel, default to :const:`UNSEEN`. gal_cut : float [degrees] pixels at latitude in [-gal_cut;+gal_cut] degrees are not taken into account Returns ------- res: float fitted monopole value See Also -------- fit_dipole, remove_monopole, remove_monopole
def fit_monopole(m, nest=False, bad=UNSEEN, gal_cut=0): """Fit a monopole to the map, excluding unseen pixels. Parameters ---------- m : float, array-like the map to which a dipole is fitted and subtracted, accepts masked arrays nest : bool if ``False`` m is assumed in RING scheme, otherwise map is NESTED bad : float bad values of pixel, default to :const:`UNSEEN`. gal_cut : float [degrees] pixels at latitude in [-gal_cut;+gal_cut] degrees are not taken into account Returns ------- res: float fitted monopole value See Also -------- fit_dipole, remove_monopole, remove_monopole """ m = ma_to_array(m) m = np.asarray(m) npix = m.size nside = npix2nside(npix) if nside > 128: bunchsize = npix // 24 else: bunchsize = npix aa = v = 0.0 for ibunch in range(npix // bunchsize): ipix = np.arange(ibunch * bunchsize, (ibunch + 1) * bunchsize) ipix = ipix[(m.flat[ipix] != bad) & (np.isfinite(m.flat[ipix]))] x, y, z = pix2vec(nside, ipix, nest) if gal_cut > 0: w = np.abs(z) >= np.sin(gal_cut * np.pi / 180) ipix = ipix[w] x = x[w] y = y[w] z = z[w] del w aa += ipix.size v += m.flat[ipix].sum() mono = v / aa return mono
(m, nest=False, bad=-1.6375e+30, gal_cut=0)
[ 0.055054157972335815, 0.03695009648799896, 0.05872691050171852, 0.03149661794304848, 0.00838425848633051, -0.03301765397191048, -0.014032503589987755, -0.053013741970062256, -0.038137245923280716, 0.009246798232197762, -0.0210348442196846, 0.05497996136546135, -0.027786768972873688, 0.030272366479039192, 0.00923752412199974, 0.013930482789874077, -0.04681829363107681, 0.016861263662576675, -0.01975494623184204, 0.026098787784576416, 0.03921310231089592, -0.02129453234374523, 0.06466266512870789, 0.045816633850336075, -0.049044203013181686, -0.05264275521039963, -0.00589866004884243, -0.0011581684229895473, -0.02702624909579754, -0.0900009348988533, -0.007354775443673134, -0.012140480801463127, 0.005425653886049986, -0.005926483776420355, 0.009886747226119041, -0.010229908861219883, 0.04726347699761391, 0.081987664103508, -0.10513711720705032, -0.051455605775117874, -0.009390555322170258, -0.01345747709274292, 0.0012230908032506704, 0.04088253527879715, 0.0691886842250824, -0.03502097353339195, 0.03448304533958435, 0.04500046744942665, -0.026043139398097992, 0.03533631190657616, -0.055684830993413925, -0.03251682594418526, -0.020088832825422287, 0.017018932849168777, -0.002548202406615019, 0.028380343690514565, 0.021109040826559067, 0.051455605775117874, 0.06540463864803314, -0.008750606328248978, -0.022630078718066216, -0.0366533063352108, 0.008820165880024433, -0.023390596732497215, 0.01551644317805767, -0.03446449711918831, -0.019699297845363617, 0.021201787516474724, -0.024522101506590843, 0.03720978647470474, 0.01524747908115387, 0.05023135617375374, 0.016119293868541718, 0.013939757831394672, -0.03164501115679741, 0.0022432992700487375, 0.08213605731725693, -0.038619525730609894, -0.0015477025881409645, 0.012854626402258873, 0.028027908876538277, -0.009144777432084084, -0.005105679389089346, 0.04804254323244095, -0.07215656340122223, 0.05705747753381729, 0.03936149552464485, -0.011973537504673004, -0.043145544826984406, -0.023891426622867584, 0.028640033677220345, 0.06369810551404953, 0.01655520126223564, -0.004681365564465523, -0.022481685504317284, -0.00035881195799447596, -0.040066368877887726, 0.06351261585950851, -0.007280578371137381, -0.041995491832494736, 0.015794681385159492, -0.01650882698595524, -0.0017436289926990867, 0.019068622961640358, 0.03316605091094971, 0.007929801940917969, 0.0123630715534091, -0.002055488293990493, -0.027768218889832497, 0.013197788037359715, -0.038137245923280716, 0.053273431956768036, -0.06392069905996323, 0.032739415764808655, -0.0005698096356354654, 0.049415189772844315, -0.018224632367491722, -0.010396851226687431, 0.020163029432296753, 0.039917975664138794, 0.014078876934945583, 0.010359752923250198, 0.012789703905582428, -0.0843619629740715, 0.037117037922143936, 0.027990810573101044, 0.051084619015455246, -0.0004217054811306298, -0.010860582813620567, 0.0023592321667820215, 0.006867857649922371, 0.009654881432652473, 0.05446058139204979, 0.00455152103677392, -0.05457187816500664, -0.02270427532494068, -0.0016763879684731364, -0.03227568417787552, -0.03012397326529026, -0.034538693726062775, 0.0026339928153902292, 0.0366533063352108, -0.036968644708395004, 0.05739136412739754, 0.010146437212824821, -0.00002510669219191186, 0.015256754122674465, 0.0050361198373138905, 0.12413154542446136, 0.005560135934501886, -0.019142821431159973, -0.08584590256214142, -0.027323037385940552, 0.054275091737508774, -0.0008793501183390617, 0.01588742807507515, 0.058133333921432495, 0.005425653886049986, -0.003837374970316887, 0.015544267371296883, -0.012891724705696106, -0.051084619015455246, 0.016972558572888374, 0.03600408509373665, 0.002457774942740798, -0.009372006170451641, 0.02615443430840969, 0.0007153052720241249, 0.025041479617357254, 0.042514868080616, -0.0005686502554453909, -0.022129248827695847, -0.014431312680244446, -0.014459135942161083, 0.1075856164097786, 0.0023789405822753906, -0.04125352203845978, 0.006589618977159262, -0.03756222128868103, -0.023409146815538406, 0.004479642491787672, 0.02116468735039234, 0.08666206896305084, 0.0045190597884356976, -0.04225517809391022, 0.06473686546087265, 0.04540855064988136, -0.02253733202815056, -0.013309082947671413, -0.03450159355998039, 0.04103092849254608, 0.00001916513792821206, 0.01984769105911255, 0.044666580855846405, -0.031459517776966095, -0.00458166329190135, 0.052383068948984146, 0.0211461391299963, 0.0016404488123953342, 0.01779800094664097, -0.10179825872182846, 0.02641412429511547, 0.02600604109466076, -0.007521718740463257, 0.000706610269844532, -0.013605871237814426, -0.015126909129321575, 0.04166160523891449, 0.08592010289430618, -0.0023035842459648848, 0.03733963146805763, 0.004122569691389799, 0.020311422646045685, 0.03995507210493088, 0.0676676481962204, 0.008815528824925423, 0.007915889844298363, 0.0024809613823890686, -0.013763539493083954, 0.016082195565104485, -0.10202084481716156, -0.0063392044976353645, 0.027360135689377785, 0.07412277907133102, -0.004308062139898539, 0.008662497624754906, 0.0169169120490551, -0.008208041079342365, 0.05527674779295921, 0.00389302265830338, 0.0022502553183585405, -0.04192129150032997, 0.0048830886371433735, -0.061991576105356216, -0.05449768155813217, -0.006367028225213289, -0.01071218866854906, -0.034149158746004105, 0.026618165895342827, -0.004398489836603403, -0.002210838021710515, -0.06188027933239937, -0.0934881940484047, 0.05664939433336258, 0.04362782463431358, 0.03309185430407524, -0.04014056548476219, 0.024039821699261665, 0.03498387709259987, 0.06251095235347748, -0.014978514984250069, 0.06188027933239937, 0.007948351092636585, 0.02498583309352398, 0.045705340802669525, -0.06651759147644043, -0.05101042240858078, 0.023130908608436584, -0.004718464333564043, 0.022463135421276093, -0.01250219065696001, -0.04574243724346161, 0.08822020888328552, -0.006932780146598816, -0.037246882915496826, -0.016564475372433662, -0.03173775598406792, 0.003482620697468519, 0.020700957626104355, -0.03973248228430748, 0.015395873226225376, 0.007062625139951706, 0.04652150720357895, -0.015312401577830315, -0.020404169335961342, 0.027619825676083565, 0.07104361057281494, 0.011500531807541847, 0.04718928039073944, -0.013744990341365337, -0.06369810551404953, -0.010693639516830444, -0.018020590767264366, 0.019198467954993248, -0.07108070701360703, 0.018039140850305557, 0.041476111859083176, 0.055944520980119705, -0.0061212508007884026, -0.03064335137605667, 0.0008544246084056795, -0.015321675688028336, 0.035317763686180115, 0.03001267835497856, 0.03422335535287857, -0.040697041898965836, -0.00010252805077470839, -0.017269346863031387, -0.04344233125448227, -0.08732984215021133, 0.054275091737508774, -0.03333299234509468, -0.011231567710638046, -0.011825143359601498, 0.07998434454202652, 0.06566432863473892, 0.02474469318985939, -0.06325292587280273, 0.020329972729086876, 0.010211358778178692, 0.023501893505454063, -0.01466317754238844, -0.02563505619764328, 0.024948734790086746, -0.017974218353629112, 0.030865943059325218, 0.026339927688241005, -0.012724782340228558, 0.013939757831394672, 0.0008579025743529201, 0.04592793062329292, -0.026358475908637047, 0.05127011239528656, -0.031719207763671875, 0.032368432730436325, -0.029697339981794357, 0.07208236306905746, 0.038767922669649124, 0.04459238424897194, -0.010072239674627781, 0.0014746650122106075, -0.0032808976247906685, -0.017000382766127586, -0.018094787374138832, -0.009061305783689022, -0.0024160391185432673, 0.01625841297209263, -0.06514494866132736, -0.025839097797870636, -0.04893290624022484, 0.022017953917384148, -0.007521718740463257, 0.013411103747785091, -0.004157349467277527, -0.030606253072619438, 0.044295597821474075, -0.0024369070306420326, 0.051195915788412094, -0.0006428472697734833, 0.042106784880161285, 0.07453086227178574, 0.08725564926862717, 0.018938777968287468, -0.01665722206234932, 0.0007703733281232417, 0.040697041898965836, 0.012353797443211079, 0.021739715710282326, 0.012010635808110237, -0.04897000640630722, -0.01792784593999386, -0.018938777968287468, 0.003049032064154744, -0.00806892104446888, -0.024132566526532173, -0.014783748425543308, -0.06622080504894257, 0.004386896267533302, 0.006649904418736696, -0.045185960829257965, -0.025468112900853157, -0.04807964339852333, -0.04277455806732178, -0.03433465212583542, 0.04726347699761391, -0.00290295691229403, -0.056983280926942825, -0.030216719955205917, 0.005977494176477194, 0.08473294973373413, -0.025152776390314102, 0.00960850901901722, -0.00007463172369170934, 0.00004593836274580099, 0.055833227932453156, 0.033648330718278885, 0.03695009648799896, -0.007586641237139702, -0.01505271252244711, -0.022722825407981873, -0.017733078449964523, 0.03424190729856491, 0.07041293382644653, 0.05605581775307655, -0.042626164853572845, 0.04180999845266342, 0.023130908608436584, -0.01506198663264513, -0.0464102104306221, 0.02372448332607746, 0.05446058139204979, 0.0038582428824156523, 0.027731120586395264, -0.009409104473888874, -0.023019611835479736, -0.015043437480926514, -0.07556962221860886, -0.05420089140534401, 0.0031278664246201515, -0.023038161918520927, -0.02437370829284191, 0.03676460310816765, 0.06243675947189331, 0.0049480111338198185, -0.02370593510568142, 0.016063645482063293, -0.04214388504624367, -0.03498387709259987, -0.005179876461625099, -0.011574728414416313, 0.03433465212583542, -0.12554128468036652, 0.03585569187998772, 0.028102105483412743, -0.03337009251117706, -0.08629108965396881, 0.017120953649282455, -0.059802763164043427, -0.019068622961640358, 0.02550521120429039, -0.04040025547146797, -0.05331052839756012, 0.02088644914329052, -0.06544173508882523, -0.007006977219134569, -0.01753831095993519, -0.029511848464608192, -0.04781995341181755, 0.019532354548573494, -0.028510188683867455, 0.009089129976928234, 0.03797030448913574, 0.016184216365218163, -0.03012397326529026, -0.018243182450532913, 0.00017650765948928893, -0.016304785385727882, 0.06477396190166473, -0.007966900244355202, -0.027489980682730675, 0.05865271016955376, -0.03103288635611534, 0.019829142838716507, 0.01860489323735237, 0.04767156019806862, -0.04767156019806862, -0.08836860209703445, -0.00020534593204502016, 0.0059403954073786736, 0.04455528408288956, 0.02112758904695511, -0.007735034916549921, -0.010721463710069656, 0.029957029968500137, 0.016694320365786552, -0.017083853483200073, 0.036449264734983444, -0.02036707103252411, 0.005509125534445047, 0.007846330292522907, 0.022500233724713326, -0.04989746958017349, 0.03578149154782295, -0.03485403209924698, 0.0348169319331646, 0.004201403819024563, -0.014941416680812836, 0.027211742475628853, 0.05123301222920418, 0.009283896535634995, 0.012242501601576805, 0.0108976811170578, 0.004943373613059521, -0.056983280926942825, -0.048265133053064346, 0.020719505846500397, -0.05164109915494919, -0.014245820231735706, 0.0639948919415474, -0.021739715710282326, -0.033759623765945435, 0.048784513026475906, 0.00947866402566433, -0.026636715978384018, -0.04507466405630112, 0.04833933338522911, -0.026210082694888115, 0.03277651593089104, 0.03144096955657005, -0.05843012034893036, -0.015720484778285027, 0.0021470750216394663, -0.026729460805654526, -0.023242203518748283, -0.04563114047050476, 0.015664836391806602, -0.03489112854003906, -0.023242203518748283, 0.026618165895342827, 0.007586641237139702, -0.010127888061106205, -0.05256855860352516, 0.010322654619812965, 0.05242016538977623, 0.025950392708182335, -0.007642288692295551, -0.0050361198373138905, 0.0001054988315445371, 0.015395873226225376, -0.08005853742361069, 0.0353548601269722, -0.0325353741645813, -0.03114418126642704, 0.04841352999210358, -0.046706996858119965, -0.014542607590556145, 0.0169169120490551, -0.022017953917384148, -0.042885854840278625, -0.008217315189540386, 0.018243182450532913, -0.009052031673491001, -0.018530694767832756, -0.018484322354197502, 0.0323127843439579, -0.07493894547224045, 0.013225611299276352, -0.07879719138145447, 0.033889468759298325, 0.014329291880130768, -0.027378685772418976, -0.00441703898832202, 0.05549934133887291, 0.019680747762322426, 0.025226972997188568, 0.045185960829257965, 0.010285556316375732, -0.052234672009944916, 0.017733078449964523, -0.04730057343840599, 0.010202084667980671, 0.05063943937420845, -0.07119200378656387, 0.02433660998940468, 0.037117037922143936, 0.009390555322170258, -0.03346283733844757, -0.04871031641960144, -0.07556962221860886, 0.0047810678370296955, -0.05590742453932762, 0.03333299234509468, 0.04362782463431358, 0.005198425613343716, -0.010304105468094349, -0.010489597916603088, -0.04845062643289566, 0.0033458201214671135, -0.06866930425167084, -0.0026896405033767223, 0.004732375964522362, 0.008374984376132488, 0.033388640731573105, 0.0015477025881409645, 0.03036511316895485, 0.06366100907325745, 0.02177681401371956, -0.048784513026475906, -0.011917890049517155, -0.014533333480358124, -0.030958689749240875, -0.027007700875401497, -0.0029075942002236843, 0.031236927956342697, 0.041216421872377396, 0.04451818764209747, -0.0407712385058403, 0.006770474370568991, -0.019773494452238083, -0.0025968942791223526, 0.0438133142888546, -0.0006138640455901623, 0.0461876206099987, -0.008996383287012577, -0.035317763686180115, -0.03077319636940956, -0.0320901945233345, 0.015266028232872486, 0.06239965930581093, 0.02908521518111229, 0.008537289686501026, -0.02550521120429039, -0.0633271187543869, -0.0464102104306221, -0.07204526662826538, 0.012520739808678627, 0.006881769746541977, -0.03424190729856491, 0.0021876515820622444, -0.010137162171304226, -0.04882161319255829, 0.007197106722742319, -0.032609570771455765, -0.014644628390669823, -0.03116273134946823, -0.011175920255482197, -0.03598553314805031, 0.02411401830613613, 0.046076323837041855, -0.02923361025750637, -0.0029168687760829926, -0.04436979442834854, -0.009056668728590012, -0.050676535815000534, 0.012325973249971867, -0.02860293537378311, -0.03129257634282112, 0.025968942791223526, -0.02127598412334919, 0.01651810295879841, -0.06455136835575104, 0.0392502024769783, -0.007456796243786812, 0.0092978086322546, -0.015497894026339054, 0.013735715299844742, 0.0030165708158165216, -0.08710725605487823, -0.039287298917770386, 0.08851699531078339, -0.013726441189646721, -0.0010410763788968325, 0.06481105834245682, 0.025208422914147377, -0.010489597916603088, 0.04062284529209137, 0.02422531321644783, 0.03201599791646004, 0.010526696220040321, -0.005986768752336502, -0.017760902643203735, 0.05282824859023094, 0.020496916025877, 0.021442927420139313, 0.038025952875614166, -0.040288958698511124, 0.026952052488923073, -0.02563505619764328, -0.030717549845576286, -0.026358475908637047, 0.00357304816134274, 0.008110657334327698, -0.025152776390314102, -0.06551593542098999, -0.04329393804073334, -0.014672452583909035, 0.03222003951668739, -0.06488525867462158, 0.01538659818470478, -0.006464411970227957, 0.005569410510361195, 0.005407104734331369, -0.017723802477121353, -0.040548648685216904, -0.03598553314805031, 0.0022050414700061083, -0.010869857855141163, 0.012984471395611763, -0.04474077746272087, 0.041068028658628464, 0.013689342886209488, 0.028788426890969276, 0.037117037922143936, 0.07605190575122833, 0.01616566628217697, 0.08384258300065994, -0.01600799895823002, -0.023501893505454063, 0.00746143376454711, 0.0030722187366336584, 0.008769155479967594, -0.04047445207834244, 0.015201105736196041, 0.043776217848062515, -0.009265347383916378, 0.01601727306842804, -0.03190470114350319, 0.011185194365680218, -0.043145544826984406, 0.007721123285591602, 0.006677728146314621, 0.009070580825209618, -0.023372048512101173, 0.0016068283002823591, -0.02205505222082138, -0.023520441725850105, -0.00251574139110744, 0.01653665117919445, 0.011546905152499676, 0.0025899382308125496, -0.016731418669223785, 0.07427117228507996, 0.012511465698480606, -0.05598162114620209, -0.0015071261441335082, -0.05282824859023094, -0.010545245371758938, -0.013105041347444057, 0.014561156742274761, -0.028139203786849976, 0.01844722405076027, -0.025950392708182335, -0.000206650176551193, 0.04629891365766525, 0.010359752923250198, -0.015850329771637917, -0.041587404906749725, -0.03958408907055855, -0.05316213518381119, -0.029511848464608192, -0.0018885449972003698, 0.0049480111338198185, -0.020997745916247368, 0.06748215109109879, 0.006149074528366327, 0.0481538400053978, 0.011509805917739868, 0.02140582911670208, -0.02691495418548584, -0.03244262933731079, -0.03485403209924698, -0.020478365942835808, 0.006037779152393341, 0.010628717020154, -0.09200425446033478, 0.011259391903877258, 0.027118995785713196, -0.004910912364721298, 0.013865560293197632, 0.038137245923280716, 0.020033184438943863, 0.0016346521442756057, -0.026748010888695717, 0.04040025547146797, -0.01575758308172226, 0.06021085008978844, -0.050824929028749466, -0.002224750118330121, 0.015303126536309719, -0.017380641773343086, -0.0348169319331646, 0.02357609011232853, -0.02858438529074192, -0.009970218874514103, -0.023390596732497215, 0.05253146216273308, 0.0019383960170671344, -0.012483641505241394 ]
37,679
healpy.sphtfunc
gauss_beam
Gaussian beam window function Computes the spherical transform of an axisimmetric gaussian beam For a sky of underlying power spectrum C(l) observed with beam of given FWHM, the measured power spectrum will be C(l)_meas = C(l) B(l)^2 where B(l) is given by gaussbeam(Fwhm,Lmax). The polarization beam is also provided (when pol = True ) assuming a perfectly co-polarized beam (e.g., Challinor et al 2000, astro-ph/0008228) Parameters ---------- fwhm : float full width half max in radians lmax : integer ell max pol : bool if False, output has size (lmax+1) and is temperature beam if True output has size (lmax+1, 4) with components: * temperature beam * grad/electric polarization beam * curl/magnetic polarization beam * temperature * grad beam Returns ------- beam : array beam window function [0, lmax] if dim not specified otherwise (lmax+1, 4) contains polarized beam
def gauss_beam(fwhm, lmax=512, pol=False): """Gaussian beam window function Computes the spherical transform of an axisimmetric gaussian beam For a sky of underlying power spectrum C(l) observed with beam of given FWHM, the measured power spectrum will be C(l)_meas = C(l) B(l)^2 where B(l) is given by gaussbeam(Fwhm,Lmax). The polarization beam is also provided (when pol = True ) assuming a perfectly co-polarized beam (e.g., Challinor et al 2000, astro-ph/0008228) Parameters ---------- fwhm : float full width half max in radians lmax : integer ell max pol : bool if False, output has size (lmax+1) and is temperature beam if True output has size (lmax+1, 4) with components: * temperature beam * grad/electric polarization beam * curl/magnetic polarization beam * temperature * grad beam Returns ------- beam : array beam window function [0, lmax] if dim not specified otherwise (lmax+1, 4) contains polarized beam """ sigma = fwhm / np.sqrt(8.0 * np.log(2.0)) ell = np.arange(lmax + 1) sigma2 = sigma ** 2 g = np.exp(-0.5 * ell * (ell + 1) * sigma2) if not pol: # temperature-only beam return g else: # polarization beam # polarization factors [1, 2 sigma^2, 2 sigma^2, sigma^2] pol_factor = np.exp([0.0, 2 * sigma2, 2 * sigma2, sigma2]) return g[:, np.newaxis] * pol_factor
(fwhm, lmax=512, pol=False)
[ 0.1016879752278328, 0.03314629942178726, -0.043359339237213135, -0.007162034045904875, -0.023689094930887222, -0.011088709346950054, -0.009641554206609726, -0.03281446546316147, -0.07303984463214874, 0.049590401351451874, -0.013005958870053291, -0.04523972049355507, 0.013918495737016201, 0.049332309514284134, -0.05029093474149704, 0.04136835038661957, -0.009309722110629082, -0.01301517616957426, 0.011641762219369411, -0.033883702009916306, 0.043875522911548615, -0.06345359236001968, -0.005544354673475027, 0.04417048394680023, 0.015586871653795242, 0.009540161117911339, 0.00023389524722006172, 0.04896361008286476, -0.031948018819093704, -0.05077024921774864, 0.005871577188372612, -0.046567048877477646, 0.09696859121322632, -0.050217196345329285, 0.023560049012303352, -0.009438768029212952, 0.05950848385691643, -0.04409674555063248, -0.10353148728609085, -0.011512716300785542, 0.0663294643163681, 0.004523511044681072, 0.042326975613832474, 0.031136874109506607, 0.027781685814261436, 0.03132122382521629, 0.04947979375720024, 0.08760356903076172, -0.042179495096206665, 0.06234748661518097, -0.0500328429043293, -0.04107338935136795, 0.014287197962403297, -0.006493761669844389, -0.023670660331845284, 0.02940397523343563, -0.02239863947033882, -0.08701363950967789, 0.02555103972554207, -0.0409996472299099, 0.015531566925346851, -0.02940397523343563, 0.043728042393922806, -0.048373688012361526, 0.029127448797225952, -0.0032215325627475977, -0.005668791476637125, -0.008484751917421818, -0.03475015237927437, 0.03445519134402275, -0.017679255455732346, 0.06072520092129707, -0.02230646274983883, -0.021679669618606567, -0.035450685769319534, 0.02580913156270981, 0.0013365442864596844, 0.04365430399775505, -0.01554078422486782, -0.01107027381658554, 0.07322419434785843, 0.051138948649168015, -0.006535240914672613, 0.0005570854991674423, -0.026270009577274323, 0.03327534347772598, -0.019467459991574287, 0.007019162178039551, 0.0474519319832325, -0.07573136687278748, 0.05375673249363899, 0.006719591561704874, 0.03878743574023247, 0.026859931647777557, 0.02839004434645176, -0.0547153577208519, -0.05246627703309059, 0.024020927026867867, -0.01754099130630493, 0.0409996472299099, -0.020149556919932365, 0.006728809326887131, -0.01730133593082428, 0.0021649713162332773, 0.042290106415748596, 0.007761174347251654, -0.009650771506130695, -0.07547327131032944, 0.05405169352889061, 0.04590338468551636, -0.00628636684268713, 0.0445391871035099, -0.04310125112533569, 0.015743570402264595, -0.029182754456996918, 0.05183948576450348, 0.004714775364845991, 0.02862970158457756, 0.04251132532954216, 0.009761381894350052, 0.018435094505548477, -0.03174523264169693, -0.011918287724256516, -0.038050033152103424, 0.09468264132738113, 0.02059200033545494, 0.007185077760368586, -0.10640735924243927, 0.019688680768013, 0.013780232518911362, -0.008927194401621819, 0.037515416741371155, -0.012167162261903286, -0.050069715827703476, -0.0016533974558115005, -0.019006581977009773, 0.04144209250807762, -0.018895970657467842, -0.005853142123669386, -0.030878782272338867, -0.006622807588428259, 0.030805042013525963, 0.0040211547166109085, 0.05998779460787773, -0.017181508243083954, 0.04144209250807762, 0.07683747261762619, 0.012498993426561356, 0.037128280848264694, 0.01906188763678074, 0.0094018978998065, -0.03406805172562599, 0.02682306244969368, 0.032187674194574356, 0.031818971037864685, -0.014591377228498459, -0.014112064614892006, -0.02746829017996788, -0.018001869320869446, 0.004152504727244377, -0.028187258169054985, 0.009825904853641987, -0.02214054763317108, 0.05183948576450348, -0.010120866820216179, -0.006037493236362934, 0.048521168529987335, 0.017292117699980736, 0.03993041440844536, 0.005581224802881479, 0.008457099087536335, -0.01743038184940815, -0.046567048877477646, -0.03526633605360985, 0.02252768538892269, 0.0721549540758133, -0.07727991044521332, 0.025219207629561424, 0.0039428058080375195, -0.01509834174066782, -0.034547366201877594, 0.015273475088179111, 0.03834499418735504, -0.009706077165901661, -0.017034025862812996, 0.05065963789820671, -0.013485271483659744, -0.010508003644645214, -0.016886545345187187, -0.02525607869029045, -0.07374037802219391, -0.01741194538772106, 0.05088086053729057, -0.004055720753967762, -0.027523595839738846, 0.027652639895677567, -0.007198904175311327, 0.03250107169151306, 0.005678008776158094, 0.04881612956523895, -0.02966206520795822, -0.008945629000663757, -0.032187674194574356, -0.0505121573805809, -0.015642177313566208, -0.02020486257970333, 0.03329377993941307, -0.005687226541340351, 0.031026262789964676, 0.024905811995267868, -0.022509248927235603, -0.010544873774051666, -0.051507651805877686, 0.001792812836356461, 0.01886831782758236, -0.002223733114078641, 0.006931595504283905, -0.00023202293959911913, -0.024924246594309807, 0.02499798685312271, -0.04759941250085831, -0.002972658956423402, 0.034787021577358246, -0.038418736308813095, 0.04719384014606476, 0.0049313874915242195, 0.05187635496258736, 0.008341879583895206, -0.017116984352469444, -0.034916069358587265, 0.05287184938788414, 0.026601839810609818, -0.005360003560781479, -0.024057798087596893, -0.03578251600265503, 0.017181508243083954, -0.015024601481854916, -0.04501849785447121, -0.00677489722147584, -0.004032676573842764, 0.06961091607809067, -0.045792773365974426, -0.035708777606487274, 0.06935282051563263, -0.03922988101840019, 0.04029911383986473, 0.003995806444436312, 0.057591233402490616, -0.024039361625909805, 0.010286781936883926, -0.06577641516923904, 0.016416450962424278, -0.013936931267380714, 0.01554078422486782, 0.03148714080452919, -0.007300297264009714, 0.0015831136843189597, 0.013752579689025879, 0.016195230185985565, -0.01179846003651619, 0.008337271399796009, -0.01886831782758236, 0.01062783133238554, 0.023615354672074318, 0.03329377993941307, -0.008724408224225044, -0.014877120964229107, 0.012259337119758129, -0.015024601481854916, 0.05276123806834221, 0.08244173973798752, -0.0004487793194130063, -0.017660818994045258, -0.027800122275948524, 0.003882891731336713, 0.03327534347772598, 0.05394108593463898, 0.024279018864035606, 0.047636281698942184, -0.033385954797267914, -0.007991612888872623, -0.043211858719587326, 0.025606345385313034, 0.07809105515480042, -0.028611265122890472, 0.023523179814219475, -0.02473989687860012, 0.012074986472725868, 0.08008204400539398, -0.03257481008768082, -0.01741194538772106, -0.034934502094984055, 0.01715385541319847, -0.043211858719587326, 0.04767315089702606, 0.010360523127019405, 0.06194191426038742, -0.04649330675601959, -0.034916069358587265, -0.034916069358587265, 0.12381009012460709, 0.029348669573664665, -0.0013849363895133138, 0.017762212082743645, -0.002244472736492753, -0.01749490387737751, -0.015522348694503307, -0.06249496713280678, 0.020831655710935593, -0.05781245604157448, -0.06669817119836807, -0.024260584264993668, -0.029975462704896927, 0.0007719695568084717, -0.041663311421871185, 0.009696858935058117, 0.04925857111811638, 0.027652639895677567, 0.013347008265554905, 0.00004954431642545387, 0.029846416786313057, -0.0014125891029834747, 0.07506769895553589, 0.02927492931485176, 0.002659262390807271, -0.042548198252916336, 0.020002076402306557, 0.01432406809180975, 0.02525607869029045, -0.02450023964047432, -0.05947161093354225, 0.0706801488995552, 0.001315804780460894, 0.04265880584716797, -0.019983641803264618, 0.00040643621468916535, 0.016416450962424278, -0.003578712698072195, -0.023117607459425926, -0.1112004891037941, -0.02619626745581627, 0.016296623274683952, 0.006042101886123419, 0.03633556887507439, -0.008166746236383915, 0.010268347337841988, -0.026214703917503357, -0.008258922025561333, 0.0018089435761794448, -0.045829642564058304, 0.102646604180336, -0.05364612489938736, -0.026546536013484, 0.0018412050558254123, 0.009120762348175049, 0.046050865203142166, 0.005710270255804062, 0.004528119694441557, -0.039340488612651825, 0.06905785948038101, 0.03640931099653244, -0.02577226050198078, -0.06076207011938095, 0.005258610472083092, -0.037902552634477615, 0.03200332447886467, -0.013669622130692005, 0.003795325057581067, 0.031542446464300156, 0.028187258169054985, 0.031929582357406616, -0.023689094930887222, -0.016259752213954926, 0.006659677717834711, -0.0343814492225647, 0.07403533905744553, 0.003919761627912521, -0.007853349670767784, 0.025219207629561424, -0.009129980579018593, 0.04417048394680023, -0.0167851522564888, 0.014600594528019428, -0.009157632477581501, 0.03172679618000984, 0.026380619034171104, -0.0014840250369161367, -0.04199514538049698, 0.013835538178682327, -0.03430771082639694, 0.025495734065771103, -0.008664494380354881, 0.040889039635658264, 0.013135004788637161, 0.0019230106845498085, 0.04306437820196152, -0.013393095694482327, 0.002196080517023802, -0.06802549958229065, 0.020794786512851715, 0.013042828999459743, 0.04383865371346474, -0.10043439269065857, -0.01852726936340332, -0.033607177436351776, -0.051138948649168015, -0.019891466945409775, -0.024186844006180763, 0.009494073688983917, 0.04328560084104538, 0.07816480100154877, 0.007185077760368586, -0.0905531793832779, -0.0361512191593647, 0.037644460797309875, -0.007867176085710526, -0.08819349110126495, -0.05128643289208412, 0.011097926646471024, 0.0032146195881068707, 0.013061263598501682, -0.010074778459966183, -0.008397185243666172, 0.0101669542491436, 0.017651602625846863, 0.008143702521920204, -0.05921352282166481, -0.023523179814219475, -0.004857647232711315, 0.018803795799613, 0.03963545337319374, 0.0016476365271955729, -0.03629869967699051, -0.005770184565335512, -0.02049982361495495, 0.017614731565117836, 0.01893284171819687, 0.08399029076099396, -0.0071666426956653595, -0.05821802467107773, 0.04409674555063248, -0.028076648712158203, -0.02226959355175495, 0.01994677074253559, 0.03768132999539375, -0.005369220860302448, 0.006369324866682291, 0.0005625584162771702, -0.025348253548145294, 0.03316473215818405, 0.08856219053268433, 0.035045113414525986, -0.01859179139137268, -0.010775312781333923, 0.06780427694320679, -0.038934919983148575, 0.03878743574023247, -0.01612148992717266, 0.0010139301884919405, 0.023910317569971085, 0.016296623274683952, 0.03812377527356148, 0.011088709346950054, -0.004737819079309702, 0.019504329189658165, 0.02411310188472271, 0.03666740283370018, 0.037902552634477615, 0.02437119372189045, -0.04103652015328407, 0.06404351443052292, 0.025716956704854965, -0.004963648971170187, 0.004429031163454056, 0.019780855625867844, -0.049442920833826065, -0.022601425647735596, 0.07307671010494232, 0.056816957890987396, -0.04328560084104538, -0.016020096838474274, -0.010148518718779087, 0.031966451555490494, 0.014923208393156528, -0.023117607459425926, 0.00985355768352747, -0.027173329144716263, -0.06500214338302612, -0.011632543988525867, 0.010010255500674248, -0.010406610555946827, 0.04339621216058731, 0.020389214158058167, 0.045350331813097, -0.06835732609033585, -0.03618808835744858, 0.02955145575106144, 0.021587494760751724, 0.033902138471603394, 0.018103262409567833, 0.0008359162602573633, 0.016370363533496857, -0.06806236505508423, -0.03626183047890663, -0.028943097218871117, -0.040225375443696976, 0.022896386682987213, -0.016342710703611374, 0.0020831655710935593, 0.05950848385691643, 0.019356848672032356, -0.040114764124155045, -0.026804625988006592, -0.0007748500211164355, -0.005714878905564547, -0.05725940316915512, 0.03165305778384209, 0.011872200295329094, -0.014923208393156528, 0.012010463513433933, 0.0406678169965744, 0.04601399600505829, -0.07433030009269714, -0.024813637137413025, -0.03734949976205826, -0.018748490139842033, 0.0019621853716671467, -0.031192177906632423, 0.012185596860945225, 0.014563724398612976, 0.008387967944145203, 0.0056964438408613205, 0.013678839430212975, 0.02669401653110981, 0.003746932838112116, -0.009936515241861343, -0.055895205587148666, -0.05950848385691643, -0.019412154331803322, -0.0577755831182003, -0.06935282051563263, 0.0021880152635276318, 0.03677801042795181, -0.004385247826576233, -0.004770080558955669, 0.012628039345145226, 0.01708933152258396, -0.035321637988090515, 0.014536071568727493, -0.030141377821564674, -0.016149142757058144, -0.029514584690332413, 0.0011510411277413368, -0.005461396649479866, -0.011328364722430706, 0.03305412456393242, 0.03782881423830986, -0.06142573431134224, -0.06621886044740677, -0.055895205587148666, -0.045829642564058304, 0.013669622130692005, 0.00680715823546052, 0.010240694507956505, -0.020020511001348495, -0.029109012335538864, 0.0025302167050540447, 0.06544458121061325, 0.0021396230440586805, -0.001692572026513517, -0.013300919905304909, 0.051765743643045425, -0.013752579689025879, -0.03344126045703888, 0.06496527045965195, 0.0361512191593647, 0.00531391566619277, -0.047120098024606705, 0.019080322235822678, -0.047894373536109924, 0.016342710703611374, -0.008871888741850853, -0.04741506278514862, -0.025661651045084, -0.026675580069422722, -0.008415620774030685, -0.02201150171458721, -0.01919093355536461, -0.06238435581326485, 0.01405675895512104, -0.001702941837720573, 0.015872616320848465, -0.01341153122484684, 0.008157528936862946, -0.03989354148507118, -0.019909901544451714, 0.0033044905867427588, 0.016388798132538795, -0.07337167114019394, 0.017485685646533966, -0.016453322023153305, 0.03132122382521629, 0.0094018978998065, -0.005332350730895996, -0.0031846624333411455, 0.012148726731538773, 0.014720422215759754, -0.03589312732219696, -0.015660611912608147, 0.01770690828561783, -0.07580510526895523, 0.0012662605149671435, -0.05888168886303902, 0.03563503548502922, -0.027836991474032402, 0.003924370743334293, -0.060983289033174515, 0.029496150091290474, 0.106186144053936, 0.01541173830628395, -0.004816168453544378, 0.010406610555946827, -0.030805042013525963, 0.01741194538772106, 0.0004119091317988932, -0.06540771573781967, 0.037404805421829224, -0.06385916471481323, 0.0098443403840065, 0.0676199272274971, -0.010406610555946827, 0.01741194538772106, 0.05172887444496155, -0.06231061741709709, -0.03793942183256149, 0.042843159288167953, -0.07510457187891006, 0.03746011108160019, -0.023560049012303352, 0.004014241509139538, -0.049332309514284134, 0.04911109060049057, 0.008166746236383915, -0.08266296237707138, 0.04829994589090347, 0.05482596904039383, -0.005046606995165348, 0.029717370867729187, 0.003009529085829854, -0.08126189559698105, 0.016941851004958153, -0.04029911383986473, 0.013042828999459743, 0.029109012335538864, -0.016351928934454918, -0.04759941250085831, 0.014821815304458141, -0.01153115089982748, -0.03257481008768082, -0.025864437222480774, 0.029330234974622726, -0.009696858935058117, 0.010987316258251667, -0.033514998853206635, 0.009899645112454891, -0.009825904853641987, 0.03204019367694855, 0.021200357005000114, -0.04184766486287117, -0.009945733472704887, 0.01859179139137268, -0.06802549958229065, 0.0006544458447024226, -0.055784594267606735, -0.03200332447886467, 0.004161722492426634, 0.02862970158457756, 0.02980954758822918, -0.047230709344148636, -0.002405779669061303, 0.04085216671228409, -0.0066089811734855175, -0.04966414347290993, 0.07587884366512299, 0.006632024887949228, 0.028187258169054985, -0.006074363365769386, -0.001676441403105855, -0.047488801181316376, -0.03124748356640339, 0.039598580449819565, -0.014112064614892006, 0.008019265718758106, 0.006834811065346003, 0.018969710916280746, -0.02641749009490013, 0.018665531650185585, 0.003970458172261715, 0.018149349838495255, 0.0492217019200325, 0.031966451555490494, 0.01031443476676941, 0.007963960990309715, 0.012038116343319416, -0.04221636429429054, -0.009706077165901661, 0.02813195250928402, 0.03989354148507118, -0.06894724816083908, -0.001973707228899002, -0.029588324949145317, 0.03886117786169052, -0.02204837277531624, 0.02226959355175495, 0.06950030475854874, -0.047636281698942184, -0.012388383038341999, 0.02851909026503563, -0.03489763289690018, -0.04483414813876152, 0.048373688012361526, 0.02590130642056465, -0.026859931647777557, -0.0295330211520195, -0.011780024506151676, -0.023891881108283997, -0.01628740504384041, 0.045165978372097015, -0.004092590883374214, -0.032445766031742096, 0.01329170260578394, -0.0361512191593647, -0.02357848547399044, 0.03640931099653244, 0.06360107660293579, 0.029846416786313057, -0.0292933639138937, -0.03878743574023247, -0.06061458960175514, -0.025569474324584007, 0.018232308328151703, 0.014812598004937172, -0.02499798685312271, -0.08266296237707138, -0.029717370867729187, -0.023891881108283997, 0.028316304087638855, -0.03698079660534859, 0.00023663170577492565, 0.000994918984360993, 0.0016027010278776288, 0.008632232435047626, 0.05025406554341316, 0.04210575297474861, 0.011254624463617802, -0.003143183421343565, -0.02722863294184208, -0.017522556707262993, -0.037791941314935684, -0.03084191121160984, -0.049959104508161545, 0.056153297424316406, 0.012056550942361355, 0.027781685814261436, -0.013061263598501682, 0.0009119610767811537, -0.029772676527500153, -0.016093837097287178 ]
37,680
healpy.pixelfunc
get_all_neighbours
Return the 8 nearest pixels. Parameters ---------- nside : int the nside to work with theta, phi : scalar or array-like if phi is not given or None, theta is interpreted as pixel number, otherwise, theta[rad],phi[rad] are angular coordinates nest : bool if ``True``, pixel number will be NESTED ordering, otherwise RING ordering. lonlat : bool If True, input angles are assumed to be longitude and latitude in degree, otherwise, they are co-latitude and longitude in radians. Returns ------- ipix : int, array pixel number of the SW, W, NW, N, NE, E, SE and S neighbours, shape is (8,) if input is scalar, otherwise shape is (8, N) if input is of length N. If a neighbor does not exist (it can be the case for W, N, E and S) the corresponding pixel number will be -1. See Also -------- get_interp_weights, get_interp_val Examples -------- >>> import healpy as hp >>> print(hp.get_all_neighbours(1, 4)) [11 7 3 -1 0 5 8 -1] >>> print(hp.get_all_neighbours(1, np.pi/2, np.pi/2)) [ 8 4 0 -1 1 6 9 -1] >>> print(hp.get_all_neighbours(1, 90, 0, lonlat=True)) [ 8 4 0 -1 1 6 9 -1]
def get_all_neighbours(nside, theta, phi=None, nest=False, lonlat=False): """Return the 8 nearest pixels. Parameters ---------- nside : int the nside to work with theta, phi : scalar or array-like if phi is not given or None, theta is interpreted as pixel number, otherwise, theta[rad],phi[rad] are angular coordinates nest : bool if ``True``, pixel number will be NESTED ordering, otherwise RING ordering. lonlat : bool If True, input angles are assumed to be longitude and latitude in degree, otherwise, they are co-latitude and longitude in radians. Returns ------- ipix : int, array pixel number of the SW, W, NW, N, NE, E, SE and S neighbours, shape is (8,) if input is scalar, otherwise shape is (8, N) if input is of length N. If a neighbor does not exist (it can be the case for W, N, E and S) the corresponding pixel number will be -1. See Also -------- get_interp_weights, get_interp_val Examples -------- >>> import healpy as hp >>> print(hp.get_all_neighbours(1, 4)) [11 7 3 -1 0 5 8 -1] >>> print(hp.get_all_neighbours(1, np.pi/2, np.pi/2)) [ 8 4 0 -1 1 6 9 -1] >>> print(hp.get_all_neighbours(1, 90, 0, lonlat=True)) [ 8 4 0 -1 1 6 9 -1] """ check_nside(nside, nest=nest) if phi is not None: theta = ang2pix(nside, theta, phi, nest=nest, lonlat=lonlat) if nest: r = pixlib._get_neighbors_nest(nside, theta) else: r = pixlib._get_neighbors_ring(nside, theta) res = np.array(r[0:8]) return res
(nside, theta, phi=None, nest=False, lonlat=False)
[ 0.007422431372106075, -0.0796671211719513, -0.016949662938714027, -0.06983853876590729, -0.07781267166137695, 0.015901898965239525, -0.019768424332141876, 0.010987609624862671, 0.024330368265509605, -0.02887376770377159, 0.011757205240428448, -0.039165958762168884, 0.014167988672852516, -0.016115160658955574, 0.03061695024371147, 0.022086484357714653, -0.011859199963510036, -0.004102968145161867, -0.038795068860054016, -0.01783052459359169, -0.04439550265669823, -0.029782447963953018, 0.04198472201824188, -0.02679678611457348, -0.018563032150268555, 0.021289072930812836, 0.04328283667564392, 0.00038276982377283275, -0.01467796228826046, 0.024664169177412987, -0.05259216949343681, -0.025072148069739342, 0.0006258764769881964, -0.011747932992875576, -0.01082070916891098, 0.006407120730727911, 0.04294903576374054, 0.06835498660802841, -0.05333394929766655, 0.0484011135995388, -0.022550096735358238, -0.07384414970874786, 0.013083136640489101, -0.03707043081521988, -0.006861460395157337, -0.017645079642534256, 0.009425235912203789, -0.043690815567970276, -0.024497268721461296, 0.028131987899541855, -0.005183184519410133, -0.05021847411990166, 0.02614772878587246, 0.010023295879364014, 0.03616175055503845, -0.02670406363904476, 0.004167873878031969, -0.008048308081924915, 0.03796056658029556, -0.010635264217853546, -0.01848885416984558, -0.05452079325914383, 0.054928772151470184, 0.05867476016283035, 0.03247139975428581, -0.010885614901781082, -0.03675517439842224, -0.01930481195449829, -0.04261523485183716, 0.014919040724635124, 0.023143520578742027, 0.016244972124695778, 0.04910580441355705, -0.0002694745780900121, -0.05214710161089897, 0.010292191058397293, 0.03028314933180809, 0.04903162643313408, 0.03104347363114357, 0.03946267068386078, -0.04969922825694084, 0.005595799069851637, 0.0012505939230322838, 0.01144194882363081, 0.0439133495092392, 0.047696422785520554, 0.019323356449604034, 0.03452983498573303, 0.010607447475194931, 0.015206480398774147, -0.038350000977516174, -0.039722293615341187, -0.0043000029399991035, -0.022735541686415672, 0.018349770456552505, 0.03187797591090202, 0.03610611706972122, 0.008117849938571453, 0.05096025392413139, -0.06765029579401016, -0.026184817776083946, -0.05778462439775467, 0.015855537727475166, 0.012489712797105312, 0.018618665635585785, -0.039981916546821594, -0.036940619349479675, 0.019490256905555725, -0.044543858617544174, -0.009763672947883606, -0.0031479268800467253, 0.01386200450360775, -0.04013027250766754, 0.005229545757174492, 0.04001900553703308, 0.002105958526954055, -0.016708584502339363, 0.026833875104784966, 0.027482930570840836, -0.023310421034693718, 0.008349656127393246, 0.03942558169364929, -0.06765029579401016, -0.016986751928925514, -0.004151647444814444, 0.060640476644039154, 0.060529209673404694, 0.008873537182807922, -0.028447244316339493, 0.033899325877428055, 0.03707043081521988, -0.007723779417574406, -0.03148854151368141, 0.06535077840089798, -0.035586871206760406, 0.0008078442770056427, 0.012684429995715618, -0.04491474851965904, -0.010486908257007599, -0.06664889305830002, -0.007705234922468662, 0.005739518906921148, 0.03287937864661217, 0.04758515581488609, 0.021493062376976013, 0.02533177100121975, 0.01967570185661316, -0.006866096518933773, 0.05915691703557968, -0.04691755399107933, 0.011108147911727428, -0.012619524262845516, -0.024107834324240685, 0.04828984662890434, -0.034121859818696976, -0.01565154828131199, 0.05789589136838913, 0.0017373866867274046, -0.009550411254167557, -0.003894342575222254, -0.017691440880298615, -0.014974674209952354, -0.03707043081521988, -0.06679724901914597, -0.028632689267396927, 0.013379848562180996, -0.02375548891723156, -0.02386675588786602, 0.060380853712558746, 0.050811897963285446, -0.06323670595884323, -0.03831291198730469, -0.021270528435707092, -0.01805305853486061, 0.01718146726489067, -0.005846149753779173, 0.017200011759996414, -0.03790493309497833, 0.0047705695033073425, 0.0048354752361774445, 0.036884985864162445, -0.07692253589630127, 0.02180831879377365, -0.041242942214012146, 0.01418653316795826, 0.08671402931213379, 0.06479444354772568, -0.01647677831351757, -0.040204450488090515, -0.004670892842113972, 0.0022531552240252495, 0.022049395367503166, -0.01592971570789814, 0.056078530848026276, -0.0033982773311436176, -0.022364651784300804, 0.022197751328349113, 0.07165589928627014, -0.06687142699956894, 0.01680130697786808, -0.01204464491456747, 0.03464110195636749, 0.004726526327431202, -0.0574137344956398, 0.02065856009721756, 0.01902664452791214, -0.044877659529447556, -0.013787826523184776, -0.004026472102850676, -0.005294451490044594, 0.05192456766963005, 0.0014789229026064277, 0.005929599981755018, -0.012971869669854641, 0.012091006152331829, 0.0444696806371212, -0.006370031740516424, 0.03842417895793915, -0.04001900553703308, -0.00798803847283125, -0.004413587972521782, -0.0005253306007944047, -0.007083994336426258, 0.017951063811779022, -0.026945140212774277, -0.010561086237430573, -0.016430417075753212, 0.004371862858533859, 0.021622873842716217, -0.08871682733297348, 0.012906963936984539, 0.014047449454665184, 0.016105888411402702, -0.016050254926085472, 0.04450676962733269, 0.042763590812683105, -0.03187797591090202, 0.0010286396136507392, 0.04283776879310608, 0.05696866661310196, -0.04680628702044487, -0.049995940178632736, -0.06420101970434189, -0.011043242178857327, 0.015252841636538506, 0.010088201612234116, -0.03126600757241249, -0.024775436148047447, 0.05648650974035263, -0.00453876331448555, -0.026333173736929893, -0.06141934543848038, 0.014594512060284615, -0.04491474851965904, 0.01722782850265503, -0.032805200666189194, -0.07781267166137695, 0.010987609624862671, 0.03543851524591446, 0.005034828558564186, -0.0001393734128214419, 0.0121002783998847, -0.006736285053193569, -0.01684766821563244, 0.005285179242491722, 0.05155367776751518, -0.023829666897654533, 0.014316344633698463, -0.024923792108893394, -0.018767021596431732, 0.025572849437594414, 0.044284235686063766, 0.0010309576755389571, 0.024163467809557915, 0.007890679873526096, -0.061456434428691864, 0.04283776879310608, 0.03953684866428375, -0.011590304784476757, -0.03299064561724663, 0.001408222015015781, 0.006207767408341169, -0.04291194677352905, 0.013871276751160622, -0.006008414085954428, -0.02533177100121975, 0.01335203181952238, 0.0296897254884243, 0.021567240357398987, -0.057376645505428314, 0.042170166969299316, -0.01707020215690136, -0.03860962390899658, -0.024182012304663658, 0.04725135490298271, 0.015410469844937325, -0.06616673618555069, -0.009258335456252098, 0.006875368766486645, -0.013491114601492882, 0.004128466825932264, -0.020973816514015198, -0.004561943933367729, -0.013324215076863766, 0.05871184915304184, 0.08760416507720947, 0.02375548891723156, 0.023885300382971764, 0.0281505323946476, -0.03269393369555473, 0.04213307797908783, -0.06564749032258987, 0.048512380570173264, -0.04354245960712433, 0.011098875664174557, -0.08767834305763245, 0.004905017092823982, -0.008229116909205914, -0.0024965517222881317, 0.04765933379530907, 0.011358498595654964, 0.062494926154613495, -0.022902442142367363, 0.03924013674259186, 0.026870964094996452, 0.044877659529447556, 0.020751282572746277, 0.015299202874302864, 0.0015507828211411834, -0.03006061539053917, 0.04421005770564079, -0.03946267068386078, -0.026555707678198814, 0.013046047650277615, 0.016170794144272804, 0.004513264633715153, 0.02510923705995083, 0.030524227768182755, -0.014381250366568565, -0.021233439445495605, 0.0215301513671875, 0.03163689747452736, -0.019768424332141876, -0.004914289340376854, 0.007918496616184711, -0.018572304397821426, -0.02375548891723156, -0.0004867928219027817, -0.031952153891325, 0.03174816444516182, 0.05867476016283035, 0.04747388884425163, -0.03529015928506851, -0.015577370300889015, 0.013036775402724743, 0.04309739172458649, 0.0077608684077858925, -0.015697909519076347, 0.00569315766915679, 0.019861146807670593, -0.016003893688321114, 0.05329686030745506, -0.004170191939920187, -0.024311823770403862, -0.03714460879564285, -0.012193000875413418, 0.02642589621245861, 0.04843820258975029, -0.02429327927529812, 0.030023526400327682, -0.04339410364627838, -0.005850785877555609, -0.05470623821020126, 0.003541997168213129, 0.039870649576187134, -0.021122172474861145, 0.028094898909330368, 0.015234297141432762, -0.032211776822805405, 0.00402183597907424, -0.051887478679418564, -0.013732193037867546, 0.03256412222981453, 0.04057534039020538, 0.06598129123449326, -0.004049652721732855, 0.07729342579841614, 0.05437243729829788, 0.0002236928849015385, -0.039388492703437805, -0.07677417993545532, 0.0048354752361774445, 0.021771229803562164, 0.007019088603556156, 0.013324215076863766, -0.0018057695124298334, 0.05196165665984154, 0.061345167458057404, -0.023792577907443047, -0.03679226338863373, 0.014965401962399483, -0.02457144670188427, 0.02766837552189827, 0.013231492601335049, -0.027538564056158066, -0.00667601590976119, 0.005911055486649275, -0.04810440167784691, 0.01930481195449829, -0.1134180873632431, -0.04365372657775879, -0.00206655147485435, 0.0349007248878479, 0.018794838339090347, 0.03651409596204758, 0.06149352341890335, 0.03909178078174591, 0.09079381078481674, -0.017589446157217026, -0.03017188236117363, -0.015836993232369423, -0.12091006338596344, 0.04706590995192528, 0.0226613637059927, 0.04910580441355705, -0.01435343362390995, 0.02479398064315319, -0.04758515581488609, -0.02310643158853054, 0.06368177384138107, -0.04001900553703308, -0.05311141535639763, -0.00510900653898716, -0.007746960036456585, -0.005623615812510252, -0.033083368092775345, 0.02397802285850048, -0.00331019121222198, -0.019267722964286804, 0.0215301513671875, -0.022086484357714653, 0.01734836772084236, 0.02065856009721756, 0.002932347124442458, -0.031080562621355057, -0.023514410480856895, 0.018498126417398453, 0.014455428346991539, 0.0768483579158783, -0.046732109040021896, 0.015104485675692558, -0.10562940686941147, 0.025313226506114006, -0.012035372667014599, -0.004355636425316334, -0.03441856801509857, -0.07020942866802216, 0.009912028908729553, -0.03569813817739487, 0.025257593020796776, 0.042986124753952026, 0.02175268530845642, -0.009596772491931915, 0.005739518906921148, -0.026036461815238, -0.08597224950790405, 0.012647341005504131, -0.06127098947763443, -0.007672782056033611, -0.05133114382624626, 0.02679678611457348, 0.029003579169511795, -0.021400339901447296, -0.027575653046369553, 0.08374691009521484, 0.0011538148391991854, -0.03521598130464554, -0.013500386849045753, -0.054224081337451935, -0.055967263877391815, -0.06828080862760544, 0.0186464823782444, -0.001135270344093442, -0.060974277555942535, -0.03499344736337662, -0.07988965511322021, -0.021938130259513855, -0.004288412630558014, -0.003314827335998416, -0.06371886283159256, 0.014687234535813332, 0.04202181100845337, -0.020269125699996948, -0.0367366299033165, 0.04027862846851349, 0.06282872706651688, 0.030246060341596603, 0.005563346203416586, 0.0644606426358223, 0.012934780679643154, 0.0076032401993870735, -0.030598405748605728, 0.06279163807630539, 0.0182199589908123, -0.030134793370962143, 0.016374783590435982, 0.0666859820485115, 0.013342759571969509, 0.05385319143533707, 0.062012769281864166, 0.0478447787463665, 0.004269868601113558, 0.014047449454665184, 0.007770140655338764, 0.022364651784300804, 0.0022195433266460896, -0.009717311710119247, 0.0024131014943122864, 0.05055227503180504, 0.0226613637059927, 0.006606474053114653, 0.05073771998286247, 0.05715411156415939, 0.08619478344917297, 0.0023470367304980755, 0.06928220391273499, 0.026073550805449486, -0.033361535519361496, -0.02853996679186821, 0.008539737202227116, 0.00191008229739964, 0.007626420818269253, -0.01318513136357069, -0.004789113998413086, -0.016680767759680748, -0.019341900944709778, 0.04676919803023338, 0.00695881899446249, 0.08248588442802429, 0.0019888964015990496, -0.03371388092637062, -0.03376951441168785, -0.05915691703557968, 0.0018289501313120127, 0.008655639365315437, 0.003069112775847316, -0.0003566916275303811, -0.005878602620214224, -0.0195644348859787, -0.036180295050144196, 0.03898051381111145, 0.004652348347008228, 0.00497455894947052, -0.04013027250766754, 0.04984758421778679, 0.06650053709745407, -0.017190739512443542, -0.016384055837988853, -0.05767335742712021, 0.042429789900779724, -0.024979425594210625, -0.049254160374403, -0.017116563394665718, -0.04365372657775879, -0.032601211220026016, -0.004900380969047546, 0.026407351717352867, -0.018284864723682404, -0.023180609568953514, 0.022958075627684593, -0.0410945862531662, 0.05229545757174492, 0.022253384813666344, -0.06850333511829376, -0.002457144670188427, 0.013287126086652279, -0.020899638533592224, -0.08701074123382568, 0.006161406170576811, -0.05225836858153343, 0.008980168029665947, -0.05185038968920708, 0.011126692406833172, 0.00043434667168185115, 0.019119367003440857, 0.10399749130010605, -0.04506310448050499, 0.012211545370519161, 0.012888419441878796, 0.02206793986260891, 0.07707089185714722, -0.01950880140066147, 0.060380853712558746, 0.03473382443189621, -0.03551269322633743, 0.0025104600936174393, -0.06842916458845139, 0.005540165584534407, 0.03788638859987259, -0.041947633028030396, -0.007515153847634792, 0.046509575098752975, -0.011775749735534191, -0.030783850699663162, 0.0484011135995388, 0.00864173099398613, 0.027056407183408737, -0.05474332720041275, -0.02130761742591858, -0.04383917152881622, 0.004849383607506752, 0.005753427278250456, 0.047807689756155014, -0.06824371963739395, -0.0548916831612587, 0.0095689557492733, 0.011460493318736553, 0.05389028042554855, -0.06650053709745407, -0.013120225630700588, -0.011618121527135372, -0.036606818437576294, 0.049550872296094894, -0.02701931819319725, -0.005878602620214224, -0.010987609624862671, -0.015466103330254555, -0.00856291688978672, 0.00828938651829958, 0.09539284557104111, -0.019805513322353363, -0.002147683408111334, -0.0272974856197834, 0.00331019121222198, -0.04543399438261986, -0.023903844878077507, 0.03512325882911682, -0.080483078956604, -0.04636121913790703, 0.04105749726295471, -0.023792577907443047, 0.08456286787986755, 0.052703436464071274, 0.03154417499899864, 0.03206342086195946, -0.02572120539844036, 0.02251300774514675, 0.003604584839195013, -0.03562396019697189, -0.05418699234724045, 0.015920443460345268, 0.03875797986984253, -0.02609209530055523, 0.0010338552528992295, -0.014251438900828362, 0.014065993949770927, -0.04120585322380066, 0.018498126417398453, 0.024997970089316368, -0.016170794144272804, 0.0742892175912857, 0.04866073653101921, -0.026221906766295433, -0.002781673101708293, -0.06431228667497635, 0.05722828954458237, 0.0014812409644946456, -0.0059527806006371975, 0.015781359747052193, -0.03571668267250061, 0.00612895330414176, 0.03469673544168472, 0.006444209720939398, 0.004965286701917648, -0.01821068674325943, 0.03731150925159454, -0.07491973042488098, -0.014631601050496101, -0.04969922825694084, 0.017209284007549286, -0.023514410480856895, 0.014594512060284615, 0.02718621864914894, 0.029671180993318558, 0.006574021186679602, 0.05707993358373642, 0.029059212654829025, 0.028688322752714157, 0.03809037804603577, -0.007881407625973225, 0.011126692406833172, 0.016560228541493416, 0.07380706071853638, 0.03731150925159454, 0.04929124936461449, 0.003539679106324911, -0.009596772491931915, -0.02902212366461754, -0.012183728627860546, -0.03538288176059723, -0.0045851245522499084, 0.01408453844487667, -0.057821713387966156, -0.011358498595654964, 0.016513867303729057, 0.0017130470369011164, -0.004158601630479097, -0.020695649087429047, -0.002331969328224659, 0.09776654094457626, -0.040909141302108765, -0.048734914511442184, -0.023885300382971764, -0.07113665342330933, -0.08315348625183105, 0.041131675243377686, 0.06475735455751419, -0.017904702574014664, -0.02358858846127987, 0.027482930570840836, 0.03217468783259392, -0.018933922052383423, 0.01973133534193039, 0.005628251936286688, -0.06438646465539932, 0.04239270091056824, 0.020139314234256744, -0.030598405748605728, -0.04992176219820976, -0.0002752697328105569, -0.01897101104259491, -0.01380637101829052, 0.0008008900913409889, 0.0540386363863945, -0.01745036244392395, -0.007686690427362919, 0.052072923630476, -0.0016075753374025226, -0.03953684866428375, -0.03087657317519188, 0.02392238937318325, -0.004536445252597332, -0.0002587535709608346, 0.00994911789894104, -0.026073550805449486, 0.014214349910616875, 0.023199154064059258, -0.004867928102612495, 0.01214663963764906, 0.012869874946773052, 0.003757576923817396, 0.039722293615341187, 0.058192603290081024, -0.029485736042261124, -0.014455428346991539, 0.012489712797105312, 0.020918183028697968, -0.024441635236144066, -0.034047681838274, 0.017209284007549286, -0.029875170439481735, 0.03527161478996277, -0.07310236990451813, 0.03213759884238243, -0.0574137344956398, 0.021270528435707092, 0.006499843206256628, 0.0072601670399308205 ]
37,681
healpy.pixelfunc
get_interp_val
Return the bi-linear interpolation value of map(s) using 4 nearest neighbours. Parameters ---------- m : array-like, shape (npix,) or (nmaps, npix) a healpix map or sequence thereof, accepts masked arrays theta, phi : float, scalar or array-like angular coordinates of point at which to interpolate the map nest : bool if True, the is assumed to be in NESTED ordering. lonlat : bool If True, input angles are assumed to be longitude and latitude in degree, otherwise, they are co-latitude and longitude in radians. Returns ------- val : float, scalar or array-like the interpolated value(s), usual numpy broadcasting rules apply. See Also -------- get_interp_weights, get_all_neighbours Examples -------- >>> import healpy as hp >>> hp.get_interp_val(np.arange(12.), np.pi/2, 0) 4.0 >>> hp.get_interp_val(np.arange(12.), np.pi/2, np.pi/2) 5.0 >>> hp.get_interp_val(np.arange(12.), np.pi/2, np.pi/2 + 2*np.pi) 5.0 >>> hp.get_interp_val(np.arange(12.), np.linspace(0, np.pi, 10), 0) array([ 1.5 , 1.5 , 1.5 , 2.20618428, 3.40206143, 5.31546486, 7.94639458, 9.5 , 9.5 , 9.5 ]) >>> hp.get_interp_val(np.arange(12.), 0, np.linspace(90, -90, 10), lonlat=True) array([ 1.5 , 1.5 , 1.5 , 2.20618428, 3.40206143, 5.31546486, 7.94639458, 9.5 , 9.5 , 9.5 ]) >>> hp.get_interp_val( ... [np.arange(12.), 2 * np.arange(12.)], np.linspace(0, np.pi, 10), 0 ... ) array([[ 1.5 , 1.5 , 1.5 , 2.20618428, 3.40206143, 5.31546486, 7.94639458, 9.5 , 9.5 , 9.5 ], [ 3. , 3. , 3. , 4.41236857, 6.80412286, 10.63092972, 15.89278916, 19. , 19. , 19. ]])
def get_interp_val(m, theta, phi, nest=False, lonlat=False): """Return the bi-linear interpolation value of map(s) using 4 nearest neighbours. Parameters ---------- m : array-like, shape (npix,) or (nmaps, npix) a healpix map or sequence thereof, accepts masked arrays theta, phi : float, scalar or array-like angular coordinates of point at which to interpolate the map nest : bool if True, the is assumed to be in NESTED ordering. lonlat : bool If True, input angles are assumed to be longitude and latitude in degree, otherwise, they are co-latitude and longitude in radians. Returns ------- val : float, scalar or array-like the interpolated value(s), usual numpy broadcasting rules apply. See Also -------- get_interp_weights, get_all_neighbours Examples -------- >>> import healpy as hp >>> hp.get_interp_val(np.arange(12.), np.pi/2, 0) 4.0 >>> hp.get_interp_val(np.arange(12.), np.pi/2, np.pi/2) 5.0 >>> hp.get_interp_val(np.arange(12.), np.pi/2, np.pi/2 + 2*np.pi) 5.0 >>> hp.get_interp_val(np.arange(12.), np.linspace(0, np.pi, 10), 0) array([ 1.5 , 1.5 , 1.5 , 2.20618428, 3.40206143, 5.31546486, 7.94639458, 9.5 , 9.5 , 9.5 ]) >>> hp.get_interp_val(np.arange(12.), 0, np.linspace(90, -90, 10), lonlat=True) array([ 1.5 , 1.5 , 1.5 , 2.20618428, 3.40206143, 5.31546486, 7.94639458, 9.5 , 9.5 , 9.5 ]) >>> hp.get_interp_val( ... [np.arange(12.), 2 * np.arange(12.)], np.linspace(0, np.pi, 10), 0 ... ) array([[ 1.5 , 1.5 , 1.5 , 2.20618428, 3.40206143, 5.31546486, 7.94639458, 9.5 , 9.5 , 9.5 ], [ 3. , 3. , 3. , 4.41236857, 6.80412286, 10.63092972, 15.89278916, 19. , 19. , 19. ]]) """ m = np.atleast_2d(m) nmaps, npix = m.shape nside = npix2nside(npix) if lonlat: theta, phi = lonlat2thetaphi(theta, phi) if nest: r = pixlib._get_interpol_nest(nside, theta, phi) else: r = pixlib._get_interpol_ring(nside, theta, phi) p = np.array(r[0:4]) w = np.array(r[4:8]) del r # NOTE: the [()] syntax converts a 0d array from np.squeeze to a Python scalar return np.squeeze(np.sum(m[:, p] * w, axis=1))[()]
(m, theta, phi, nest=False, lonlat=False)
[ 0.0820687934756279, -0.0766054019331932, 0.00121538364328444, -0.0006681845989078283, 0.00531599810346961, 0.0318763367831707, 0.022266270592808723, -0.06387058645486832, -0.04649778828024864, 0.014503536745905876, 0.018227683380246162, 0.03521725907921791, 0.014297185465693474, 0.011467226780951023, -0.013304734602570534, 0.05184326693415642, -0.02674703672528267, 0.02896776795387268, -0.03193529322743416, -0.00372905982658267, -0.011496705934405327, -0.08820036798715591, 0.04107370227575302, 0.022895149886608124, -0.024251170456409454, -0.11052559316158295, 0.04582960531115532, -0.01732366904616356, 0.0026088678278028965, 0.004203176125884056, -0.07432571053504944, -0.04182049632072449, 0.0010286848992109299, -0.017618456855416298, 0.0268452987074852, -0.0464191772043705, 0.033546797931194305, 0.01053373422473669, -0.10030630230903625, 0.0008475135546177626, -0.006755542941391468, -0.06504973769187927, 0.03154224529862404, -0.01799185387790203, 0.03431324660778046, 0.03305548429489136, -0.0003307145379949361, -0.002911024959757924, -0.0015488617355003953, 0.05400503799319267, -0.031208151951432228, -0.03794895485043526, 0.00724194198846817, 0.006436190102249384, -0.02126399241387844, 0.08254045248031616, 0.023268546909093857, 0.006436190102249384, 0.017805155366659164, -0.07149575650691986, -0.01187010295689106, -0.07617304474115372, 0.04060204327106476, 0.026629121974110603, -0.005429000128060579, 0.018699342384934425, -0.01433649007230997, -0.01385500468313694, -0.05015315115451813, 0.019318396225571632, 0.011152787134051323, 0.020969204604625702, 0.007168245036154985, -0.04791276901960373, 0.003925584722310305, 0.04252798482775688, 0.058878857642412186, 0.0027660878840833902, 0.018895868211984634, 0.01607573591172695, -0.032485563308000565, -0.01746123656630516, 0.06756525486707687, -0.021932177245616913, -0.029203597456216812, 0.022777235135436058, 0.0017036250792443752, 0.02315063215792179, -0.009497065097093582, -0.023484723642468452, -0.0025253447238355875, -0.005468305200338364, -0.0007768874638713896, 0.04288173094391823, -0.011516358703374863, 0.0038985623978078365, 0.030598925426602364, 0.0318763367831707, 0.019564053043723106, -0.02489970251917839, 0.04429670795798302, -0.041741885244846344, -0.05294380336999893, -0.00932510569691658, 0.044493235647678375, -0.0317387692630291, 0.001681516063399613, 0.02403499372303486, 0.02281653881072998, -0.008219653740525246, -0.0006178251351229846, 0.07542625069618225, -0.052197009325027466, 0.02175530418753624, -0.03714320436120033, 0.039560459554195404, -0.02774931490421295, 0.03390054404735565, 0.03091336414217949, 0.04960288107395172, -0.013294908218085766, 0.0343918539583683, -0.04142744466662407, -0.018031157553195953, 0.019623009487986565, 0.00417369743809104, 0.028456803411245346, -0.029576996341347694, -0.027395568788051605, -0.024388737976551056, 0.035295870155096054, -0.021637389436364174, 0.028810547664761543, 0.022659320384263992, -0.013727263547480106, -0.016969924792647362, -0.018227683380246162, -0.039796289056539536, -0.010818694718182087, -0.0188762154430151, 0.025725107640028, 0.036985982209444046, -0.039560459554195404, 0.0394228920340538, 0.04693014174699783, 0.0003010822692885995, 0.08741427212953568, 0.06689707189798355, 0.0655607059597969, -0.03230869024991989, -0.02820132113993168, -0.04288173094391823, 0.005104734096676111, 0.09024422615766525, 0.01570233888924122, -0.055537931621074677, 0.10156406462192535, 0.006485321093350649, -0.014582146890461445, -0.047165971249341965, 0.0003718619409482926, -0.021814262494444847, -0.0038076697383075953, -0.03144398331642151, -0.018296467140316963, 0.03244625777006149, 0.022541403770446777, 0.005817136727273464, 0.031856685876846313, 0.029046379029750824, -0.055302102118730545, -0.057385265827178955, -0.08497735857963562, -0.028456803411245346, 0.03179772570729256, 0.01516189519315958, -0.010710606351494789, -0.0009826244786381721, -0.013933614827692509, 0.03641606122255325, -0.01673409342765808, -0.020517198368906975, 0.049917321652173996, -0.045318640768527985, -0.01821785792708397, 0.12082350254058838, 0.09676885604858398, -0.030559619888663292, 0.004109826870262623, 0.010307730175554752, 0.004303894937038422, -0.016242781654000282, 0.027926186099648476, 0.03431324660778046, -0.014454405754804611, -0.00224406854249537, 0.04685153439640999, 0.052825890481472015, -0.00464535690844059, 0.048620257526636124, -0.05207909643650055, -0.06017592176795006, -0.028692632913589478, 0.0047829244285821915, -0.023602638393640518, -0.008868185803294182, -0.007964171469211578, -0.00019867437367793173, 0.04036621004343033, 0.045947518199682236, -0.0035865791141986847, -0.019632836803793907, -0.033704016357660294, -0.009664111770689487, 0.014238228090107441, 0.049288440495729446, 0.016419654712080956, -0.003296704962849617, 0.00745811965316534, -0.0017208210192620754, 0.0022133614402264357, -0.036592934280633926, 0.10376513749361038, 0.043864354491233826, -0.016547394916415215, -0.02368124946951866, -0.014228401705622673, -0.011575316078960896, 0.04834512248635292, -0.013815699145197868, 0.06886231899261475, 0.0023681249003857374, 0.017873939126729965, -0.05325824394822121, 0.019121872261166573, -0.024939008057117462, -0.001128789852373302, -0.042999643832445145, 0.003527621738612652, 0.056166812777519226, -0.017549673095345497, -0.00982133112847805, -0.08175435662269592, 0.05585237219929695, -0.04626195877790451, -0.018247336149215698, -0.005831875838339329, 0.004910665564239025, 0.036651890724897385, 0.03431324660778046, -0.009870462119579315, 0.02886950597167015, 0.029478732496500015, 0.012440025806427002, 0.010130858048796654, -0.03488316759467125, 0.03545308858156204, 0.0401303805410862, 0.04315686598420143, -0.022796886041760445, -0.004335830453783274, -0.07782385498285294, 0.01726471073925495, -0.033212706446647644, -0.03881366550922394, 0.005050689447671175, -0.026412945240736008, -0.005404434632509947, -0.02397603541612625, 0.01307873148471117, -0.023130979388952255, 0.04225284978747368, -0.013992572203278542, -0.007585860788822174, 0.0057385265827178955, 0.021480171009898186, 0.10266460478305817, -0.00882888026535511, 0.02122468873858452, -0.02291480265557766, -0.017235232517123222, -0.019750751554965973, -0.07196741551160812, 0.015653207898139954, -0.009275974705815315, 0.027100782841444016, -0.002177741378545761, 0.0268452987074852, 0.06768316775560379, -0.054712530225515366, 0.03596405312418938, -0.05247214436531067, -0.05109646916389465, -0.014228401705622673, 0.06497112661600113, -0.019397007301449776, -0.0634775385260582, -0.00012206038081785664, -0.015830079093575478, -0.07943535596132278, 0.018660038709640503, -0.034509770572185516, 0.015947993844747543, 0.0006626573740504682, 0.05148952081799507, 0.038007915019989014, 0.006706411950290203, -0.013864831067621708, 0.017382625490427017, -0.020969204604625702, 0.02417256124317646, -0.02883020043373108, -0.022502100095152855, -0.0476769357919693, -0.018728822469711304, -0.05168604478240013, -0.0008174207177944481, 0.022502100095152855, 0.033939849585294724, -0.00045292844879440963, 0.024781787768006325, 0.01152618508785963, 0.011781667359173298, -0.015083285048604012, 0.040759261697530746, 0.0188762154430151, 0.039855245500802994, 0.025882327929139137, 0.035295870155096054, -0.01828664168715477, 0.013363691978156567, 0.008706052787601948, 0.00724194198846817, 0.013363691978156567, 0.06701498478651047, -0.011084003373980522, 0.04520072415471077, 0.013599522411823273, -0.02727765403687954, -0.050113845616579056, 0.011811145581305027, -0.020988857373595238, -0.022030439227819443, 0.017677413299679756, -0.011064351536333561, 0.009364411234855652, -0.016822529956698418, 0.025076575577259064, -0.009634632617235184, -0.002982265083119273, 0.0404055155813694, 0.0067899348214268684, -0.02969491109251976, 0.014120313338935375, -0.0185224711894989, 0.0597042590379715, -0.01630173996090889, 0.0008254045387730002, 0.027886882424354553, 0.028614023700356483, 0.001128175645135343, -0.0027046736795455217, -0.015152068808674812, -0.03502073511481285, -0.00034852459793910384, -0.0016594070475548506, -0.026923909783363342, 0.055970288813114166, 0.0041147395968437195, -0.0020450870506465435, 0.015358420088887215, -0.06646471470594406, -0.018994130194187164, 0.021008510142564774, 0.012096107006072998, -0.022305574268102646, 0.010376513935625553, 0.008951708674430847, -0.030166570097208023, 0.007124027237296104, -0.012312283739447594, -0.005502696614712477, 0.01806063763797283, 0.008352307602763176, 0.04618334770202637, 0.013088557869195938, 0.09873410314321518, -0.024388737976551056, -0.04185980185866356, -0.022010786458849907, -0.03128676116466522, 0.010405993089079857, 0.028712285682559013, -0.008042780682444572, -0.014110486954450607, 0.017176276072859764, 0.02883020043373108, 0.014503536745905876, -0.0252337958663702, -0.010238946415483952, -0.0005106576136313379, -0.0454365536570549, 0.02883020043373108, -0.03861714154481888, -0.016321392729878426, -0.0996774211525917, 0.020124148577451706, -0.017539845779538155, 0.04170257970690727, -0.0760551318526268, -0.02519449032843113, 0.027926186099648476, 0.031365372240543365, -0.0454365536570549, -0.019878491759300232, 0.03814547881484032, -0.0788457840681076, 0.017677413299679756, -0.047637633979320526, -0.037575557827949524, -0.004431636072695255, -0.11233362555503845, -0.00820000097155571, -0.012007670477032661, 0.0011404585093259811, -0.08882924914360046, -0.05086063966155052, -0.033114444464445114, -0.00144445791374892, 0.05003523454070091, 0.017402278259396553, -0.06693637371063232, -0.010337209329009056, -0.03902984410524368, -0.01597747392952442, 0.017775675281882286, 0.02271827682852745, 0.018424207344651222, 0.03787034749984741, -0.0554986298084259, 0.002257579704746604, 0.027827924117445946, 0.022502100095152855, -0.021381907165050507, -0.05722804740071297, -0.05766040086746216, -0.012970642186701298, 0.02344541996717453, -0.02189287170767784, -0.03653397783637047, 0.039304979145526886, -0.067958302795887, 0.028692632913589478, 0.0031173760071396828, 0.06630750000476837, -0.038007915019989014, -0.03303583338856697, -0.005232475232332945, -0.007934692315757275, 0.03372367098927498, 0.022364532575011253, 0.029911087825894356, 0.05003523454070091, -0.06901954114437103, -0.00947249960154295, -0.007811864372342825, 0.03763451427221298, -0.0549483597278595, -0.0005911100306548178, -0.033743321895599365, 0.009919594042003155, 0.011152787134051323, -0.019691793248057365, -0.019829360768198967, 0.04850234091281891, 0.020890595391392708, -0.021047815680503845, 0.03600335866212845, 0.001370761077851057, -0.03753625229001045, -0.0517253503203392, -0.01378622092306614, 0.0342542864382267, -0.04433601349592209, -0.003463751170784235, 0.008991013281047344, -0.0032549435272812843, -0.006102097686380148, 0.031561896204948425, -0.024526305496692657, -0.0033433795906603336, 0.05286519601941109, 0.025646498426795006, 0.022541403770446777, -0.08505596965551376, 0.021499821916222572, 0.0574638769030571, -0.007178071420639753, 0.08309072256088257, -0.01472953986376524, 0.006372319534420967, -0.018306292593479156, 0.046537093818187714, 0.008853445760905743, -0.022168006747961044, -0.033212706446647644, 0.018335772678256035, 0.025725107640028, 0.026766689494252205, 0.05133230239152908, 0.008155782707035542, -0.021381907165050507, -0.0131769934669137, 0.03794895485043526, -0.000003065903456445085, -0.0037216900382190943, -0.01848316565155983, -0.025253448635339737, -0.001201258390210569, -0.03971767798066139, 0.041584666818380356, 0.03525656461715698, -0.032682087272405624, 0.030933016911149025, -0.039796289056539536, 0.026137810200452805, 0.00901066605001688, -0.028496108949184418, -0.05184326693415642, 0.005556741263717413, -0.053454767912626266, -0.03608196973800659, -0.06390989571809769, -0.028928464278578758, 0.00035067409044131637, 0.00004552314931061119, -0.0018866389291360974, -0.10840313136577606, -0.03899053856730461, -0.0067408038303256035, -0.029439428821206093, 0.00929071381688118, 0.012675855308771133, -0.04618334770202637, 0.058643028140068054, -0.004370222333818674, -0.045122113078832626, 0.0021384365390986204, 0.047637633979320526, -0.01924961246550083, 0.0700414702296257, 0.0011097515234723687, 0.023072021082043648, -0.028083406388759613, 0.025076575577259064, 0.01491623930633068, -0.0426459014415741, -0.054240867495536804, -0.10407958179712296, 0.010985741391777992, -0.001853475347161293, 0.0033261836506426334, 0.02936081774532795, -0.0038224090822041035, -0.04673361778259277, 0.02185356803238392, -0.0059006595984101295, -0.0010698323603719473, -0.03586579114198685, -0.01124122366309166, -0.037772081792354584, 0.03521725907921791, -0.006170881446450949, -0.03372367098927498, 0.04272450879216194, 0.04496489465236664, 0.01300994772464037, -0.08772870898246765, 0.03256417438387871, -0.041152309626340866, 0.016311565414071083, 0.0018399643013253808, 0.04622265323996544, 0.036553628742694855, 0.04645848274230957, 0.09260252863168716, -0.061119239777326584, 0.07137783616781235, -0.014464232139289379, 0.009644459001719952, 0.02126399241387844, -0.020222410559654236, -0.008288437500596046, 0.022128703072667122, 0.011860276572406292, 0.003539904486387968, -0.06449946761131287, 0.05526279658079147, 0.02985212951898575, -0.027493832632899284, -0.022600362077355385, -0.012459677644073963, -0.047165971249341965, -0.03580683469772339, -0.013196646235883236, -0.02436908520758152, 0.05357268452644348, -0.033645059913396835, -0.006834153085947037, -0.020055364817380905, 0.004063152242451906, -0.023661596700549126, 0.0014088377356529236, -0.05483044311404228, -0.023032717406749725, -0.0064509292133152485, -0.02985212951898575, 0.11728605628013611, -0.022246617823839188, -0.02185356803238392, -0.005797483958303928, -0.0006141402991488576, -0.0015058720018714666, -0.008062433451414108, 0.04130953177809715, 0.007418814580887556, 0.033252011984586716, -0.0010864140931516886, -0.006156141869723797, 0.03680911287665367, -0.01798202656209469, 0.004360395949333906, 0.005984182935208082, 0.002815219108015299, -0.02271827682852745, 0.004468484781682491, 0.07947466522455215, -0.028790896758437157, -0.03570857271552086, 0.0597042590379715, -0.016920791938900948, 0.0001546865823911503, 0.010366687551140785, 0.042370766401290894, 0.07491528987884521, 0.004355482757091522, -0.0033310968428850174, 0.0342542864382267, 0.026963215321302414, -0.017667587846517563, 0.014749192632734776, 0.030795449391007423, -0.03154224529862404, 0.01749071478843689, -0.0040336730889976025, -0.04288173094391823, 0.009958898648619652, 0.005964530166238546, -0.05003523454070091, 0.03794895485043526, -0.027022171765565872, 0.046576399356126785, -0.08254045248031616, -0.04936705157160759, 0.015751469880342484, 0.012135411612689495, -0.004657639656215906, 0.01271515991538763, 0.02059580758213997, -0.007998563349246979, 0.02985212951898575, -0.04011072963476181, -0.01683235727250576, 0.037811387330293655, 0.03918706253170967, 0.0030191135592758656, -0.01218454260379076, -0.04015003517270088, -0.039010189473629, 0.04582960531115532, 0.07750941812992096, 0.007433553691953421, 0.012960816733539104, 0.11846520006656647, 0.002250209916383028, 0.02993074059486389, 0.03372367098927498, 0.017343321815133095, 0.020163454115390778, 0.016488438472151756, 0.025371363386511803, -0.026963215321302414, 0.018797606229782104, 0.0045249853283166885, 0.05569515377283096, 0.030068308115005493, -0.028260279446840286, -0.007015938404947519, -0.006504973862320185, 0.008249131962656975, 0.012076454237103462, -0.021499821916222572, -0.04020899161696434, -0.023818816989660263, -0.005885920487344265, 0.020281368866562843, 0.033645059913396835, 0.008539006114006042, -0.01017016265541315, 0.01613469235599041, -0.04429670795798302, 0.01743175834417343, 0.021873220801353455, -0.060333140194416046, -0.018787778913974762, 0.008539006114006042, -0.008892751298844814, -0.01762828230857849, -0.030697187408804893, 0.0464191772043705, 0.0011730078840628266, -0.03606231510639191, 0.006559018045663834, 0.008710965514183044, -0.05455530807375908, 0.049288440495729446, 0.03633745014667511, -0.008136129938066006, -0.07279282063245773, 0.04983871057629585, -0.028594370931386948, 0.03191564232110977, 0.0017134513473138213, 0.05514488369226456, -0.014257880859076977, 0.0464191772043705, 0.027592094615101814, 0.005537088494747877, -0.04582960531115532, -0.005296345800161362, 0.04044482111930847, -0.03961941599845886, 0.017805155366659164, -0.04252798482775688, -0.06225908547639847, 0.047637633979320526, -0.015043980441987514, 0.010720432735979557, -0.01606591045856476, 0.02529275231063366, 0.005094907712191343, 0.10069935023784637, 0.003606231650337577, 0.007556382101029158, -0.003387597855180502, -0.027867229655385017, 0.001984901260584593, -0.04728388786315918, -0.026864951476454735, 0.022246617823839188, -0.0527079738676548, 0.05097855627536774, -0.04681222885847092, 0.04130953177809715, -0.05542001873254776, 0.048423733562231064, -0.026530859991908073, 0.02030102163553238 ]
37,682
healpy.pixelfunc
get_interp_weights
Return the 4 closest pixels on the two rings above and below the location and corresponding weights. Weights are provided for bilinear interpolation along latitude and longitude Parameters ---------- nside : int the healpix nside theta, phi : float, scalar or array-like if phi is not given, theta is interpreted as pixel number, otherwise theta[rad],phi[rad] are angular coordinates nest : bool if ``True``, NESTED ordering, otherwise RING ordering. lonlat : bool If True, input angles are assumed to be longitude and latitude in degree, otherwise, they are co-latitude and longitude in radians. Returns ------- res : tuple of length 2 contains pixel numbers in res[0] and weights in res[1]. Usual numpy broadcasting rules apply. See Also -------- get_interp_val, get_all_neighbours Examples -------- Note that some of the test inputs below that are on pixel boundaries such as theta=pi/2, phi=pi/2, have a tiny value of 1e-15 added to them to make them reproducible on i386 machines using x87 floating point instruction set (see https://github.com/healpy/healpy/issues/528). >>> import healpy as hp >>> pix, weights = hp.get_interp_weights(1, 0) >>> print(pix) [0 1 4 5] >>> weights array([ 1., 0., 0., 0.]) >>> pix, weights = hp.get_interp_weights(1, 0, 0) >>> print(pix) [1 2 3 0] >>> weights array([ 0.25, 0.25, 0.25, 0.25]) >>> pix, weights = hp.get_interp_weights(1, 0, 90, lonlat=True) >>> print(pix) [1 2 3 0] >>> weights array([ 0.25, 0.25, 0.25, 0.25]) >>> pix, weights = hp.get_interp_weights(1, [0, np.pi/2 + 1e-15], 0) >>> print(pix) [[ 1 4] [ 2 5] [ 3 11] [ 0 8]] >>> np.testing.assert_allclose( ... weights, ... np.array([[ 0.25, 1. ], ... [ 0.25, 0. ], ... [ 0.25, 0. ], ... [ 0.25, 0. ]]), rtol=0, atol=1e-14)
def get_interp_weights(nside, theta, phi=None, nest=False, lonlat=False): """Return the 4 closest pixels on the two rings above and below the location and corresponding weights. Weights are provided for bilinear interpolation along latitude and longitude Parameters ---------- nside : int the healpix nside theta, phi : float, scalar or array-like if phi is not given, theta is interpreted as pixel number, otherwise theta[rad],phi[rad] are angular coordinates nest : bool if ``True``, NESTED ordering, otherwise RING ordering. lonlat : bool If True, input angles are assumed to be longitude and latitude in degree, otherwise, they are co-latitude and longitude in radians. Returns ------- res : tuple of length 2 contains pixel numbers in res[0] and weights in res[1]. Usual numpy broadcasting rules apply. See Also -------- get_interp_val, get_all_neighbours Examples -------- Note that some of the test inputs below that are on pixel boundaries such as theta=pi/2, phi=pi/2, have a tiny value of 1e-15 added to them to make them reproducible on i386 machines using x87 floating point instruction set (see https://github.com/healpy/healpy/issues/528). >>> import healpy as hp >>> pix, weights = hp.get_interp_weights(1, 0) >>> print(pix) [0 1 4 5] >>> weights array([ 1., 0., 0., 0.]) >>> pix, weights = hp.get_interp_weights(1, 0, 0) >>> print(pix) [1 2 3 0] >>> weights array([ 0.25, 0.25, 0.25, 0.25]) >>> pix, weights = hp.get_interp_weights(1, 0, 90, lonlat=True) >>> print(pix) [1 2 3 0] >>> weights array([ 0.25, 0.25, 0.25, 0.25]) >>> pix, weights = hp.get_interp_weights(1, [0, np.pi/2 + 1e-15], 0) >>> print(pix) [[ 1 4] [ 2 5] [ 3 11] [ 0 8]] >>> np.testing.assert_allclose( ... weights, ... np.array([[ 0.25, 1. ], ... [ 0.25, 0. ], ... [ 0.25, 0. ], ... [ 0.25, 0. ]]), rtol=0, atol=1e-14) """ check_nside(nside, nest=nest) if phi is None: theta, phi = pix2ang(nside, theta, nest=nest) elif lonlat: theta, phi = lonlat2thetaphi(theta, phi) if nest: r = pixlib._get_interpol_nest(nside, theta, phi) else: r = pixlib._get_interpol_ring(nside, theta, phi) p = np.array(r[0:4]) w = np.array(r[4:8]) return (p, w)
(nside, theta, phi=None, nest=False, lonlat=False)
[ 0.043303705751895905, -0.07547106593847275, 0.009943166747689247, -0.06767173856496811, -0.00009928009967552498, 0.008114594034850597, 0.003717774525284767, -0.009186516515910625, 0.018644651398062706, 0.03139130771160126, 0.02178766205906868, 0.00781872496008873, 0.014415167272090912, 0.01593816839158535, -0.047183964401483536, 0.03455371782183647, -0.03872499614953995, 0.03635803982615471, -0.06480034440755844, -0.027142420411109924, -0.02560971863567829, -0.07570388168096542, 0.04147998243570328, 0.05071500316262245, -0.027026012539863586, -0.05079260841012001, 0.008100043050944805, -0.030886871740221977, 0.007246386259794235, 0.018276026472449303, -0.030867470428347588, -0.04679593816399574, 0.028888538479804993, -0.030013812705874443, 0.006989318877458572, -0.026502177119255066, 0.023766594007611275, 0.026463374495506287, -0.05703982710838318, -0.0023414946626871824, -0.0029708242509514093, -0.06445112079381943, 0.047145161777734756, -0.028287097811698914, -0.01113634742796421, 0.04035470634698868, -0.022447306662797928, -0.06833138316869736, -0.017034342512488365, 0.045437850058078766, 0.021069813519716263, -0.026385769248008728, 0.027278229594230652, 0.023359166458249092, -0.016646316275000572, 0.002061388222500682, -0.007445249706506729, -0.018237223848700523, 0.05141345039010048, -0.059484392404556274, 0.02411581762135029, -0.04768839851021767, 0.024232225492596626, 0.03517455980181694, -0.039481647312641144, -0.000041151979530695826, 0.002192347077652812, -0.015249422751367092, -0.025415705516934395, 0.020002741366624832, 0.029800400137901306, 0.0391906276345253, 0.0037226248532533646, -0.018062612041831017, -0.031468912959098816, 0.047261569648981094, 0.06755533069372177, -0.01063191331923008, 0.04450658708810806, 0.013804025948047638, -0.03133310377597809, 0.02283533290028572, 0.01599637232720852, -0.01891626976430416, 0.018722256645560265, 0.028655722737312317, -0.019411001354455948, 0.0038487331476062536, 0.046097490936517715, -0.03238077089190483, -0.07019390910863876, 0.010564008727669716, 0.04679593816399574, 0.03445671126246452, 0.03860859200358391, -0.010340893641114235, -0.001527852495200932, -0.014376364648342133, 0.05405202507972717, -0.030886871740221977, -0.007265787571668625, -0.07927371561527252, -0.050559792667627335, 0.038298171013593674, 0.04082033783197403, -0.028170689940452576, -0.006717700511217117, 0.02848111093044281, 0.012659349478781223, -0.028907939791679382, 0.028713926672935486, -0.02236970141530037, -0.03583420440554619, 0.014133848249912262, 0.013765223324298859, 0.01512331422418356, -0.008439566008746624, 0.05866953730583191, 0.05863073468208313, 0.02178766205906868, 0.030091417953372, 0.026346968486905098, -0.0626274049282074, -0.011330360546708107, 0.031468912959098816, 0.019100582227110863, 0.028810933232307434, -0.029742196202278137, 0.01364881545305252, 0.023650186136364937, 0.011795991100370884, 0.005713683553040028, -0.057272642850875854, 0.02842290699481964, -0.04260525852441788, 0.02343677170574665, 0.0025439956225454807, 0.025435106828808784, 0.03298221156001091, -0.018644651398062706, 0.036610256880521774, 0.0002710119297262281, 0.03179873153567314, 0.03876379877328873, 0.014104746282100677, 0.011068442836403847, 0.029354169964790344, 0.02857811748981476, 0.09009964764118195, -0.02233089879155159, -0.02394120581448078, -0.0358148030936718, 0.016248589381575584, 0.059484392404556274, 0.009147713892161846, -0.07609190791845322, 0.02240850403904915, 0.03226436302065849, -0.00531595665961504, -0.023242758587002754, 0.028034880757331848, -0.03414629027247429, 0.019905734807252884, -0.01756787858903408, -0.010622212663292885, 0.06297662854194641, 0.002343919826671481, 0.009535740129649639, 0.05960080027580261, 0.006184164900332689, -0.04318729788064957, -0.07155200093984604, -0.06611963361501694, -0.027258828282356262, 0.02687080204486847, 0.015773259103298187, 0.020545978099107742, -0.021050412207841873, -0.022466707974672318, 0.008036988787353039, 0.048270437866449356, -0.06689568608999252, 0.020022142678499222, -0.01937219873070717, -0.027045413851737976, 0.10073155909776688, 0.1004987433552742, -0.01281455997377634, -0.00258279824629426, 0.00795938353985548, -0.0009749153978191316, -0.0006041686865501106, -0.00991891510784626, 0.027181223034858704, 0.016927635297179222, 0.029198959469795227, 0.03928763419389725, 0.042178429663181305, -0.06736131757497787, 0.0261529553681612, -0.014483071863651276, -0.03950104862451553, -0.013309292495250702, 0.013765223324298859, 0.013435401022434235, -0.009569692425429821, -0.0012271322775632143, -0.008075791411101818, -0.040005482733249664, 0.02560971863567829, 0.05995002016425133, -0.019304296001791954, -0.0011658970033749938, -0.028810933232307434, 0.007226984947919846, 0.051685068756341934, -0.009729752317070961, 0.024891870096325874, -0.002500342670828104, -0.036047618836164474, -0.012639948166906834, -0.02120562270283699, 0.05424603819847107, 0.02910195291042328, 0.019362498074769974, -0.023359166458249092, 0.0018382733687758446, -0.026443973183631897, 0.009244720451533794, -0.04516623169183731, 0.04085914045572281, 0.007168781012296677, 0.03928763419389725, -0.0493181087076664, -0.004908529110252857, -0.03127489984035492, -0.03688187524676323, -0.028209492564201355, 0.059445589780807495, 0.0246590543538332, 0.010796824470162392, -0.025318698957562447, -0.07302650064229965, -0.010670715942978859, -0.037619125097990036, -0.006213266868144274, 0.014987505041062832, -0.07232805341482162, 0.03523276373744011, -0.02299054153263569, -0.024348633363842964, 0.03424329683184624, 0.018537944182753563, -0.013018273748457432, 0.010011071339249611, -0.0007912093424238265, -0.012261622585356236, 0.00014770757115911692, -0.001315650762990117, -0.03575659915804863, 0.015598646365106106, -0.0603768490254879, -0.027258828282356262, -0.020507175475358963, -0.013939835131168365, 0.024271028116345406, -0.00044622994028031826, 0.00897310208529234, -0.0667404755949974, 0.004229483660310507, -0.06309303641319275, 0.052693936973810196, 0.0033515747636556625, -0.018120815977454185, 0.008303756825625896, 0.0037929543759673834, 0.10189563781023026, 0.04085914045572281, 0.02405761368572712, 0.010690117254853249, -0.0130764776840806, 0.007416147738695145, -0.026987209916114807, 0.04078153520822525, -0.0004313758108764887, 0.022563714534044266, 0.02068178728222847, 0.06887461990118027, 0.0570010244846344, -0.04357532411813736, 0.03853098675608635, 0.0008524446748197079, -0.04345891624689102, -0.03016902320086956, 0.051607463508844376, 0.029722794890403748, -0.029955608770251274, -0.0523059107363224, 0.0350581519305706, -0.05471166968345642, 0.006969917565584183, -0.012019106186926365, 0.03851158544421196, -0.001235014060512185, 0.03977266699075699, 0.03985027223825455, 0.036649059504270554, -0.014735288918018341, -0.01174748782068491, -0.04023829847574234, -0.002982950070872903, -0.06026044115424156, 0.018382733687758446, -0.04633030667901039, 0.02229209616780281, -0.07535465806722641, 0.015511340461671352, 0.038201164454221725, -0.012746655382215977, 0.05626377463340759, 0.01036999560892582, 0.03517455980181694, -0.00098886014893651, 0.032652389258146286, 0.006969917565584183, 0.006358776707202196, 0.030867470428347588, 0.0328075997531414, 0.01963411644101143, 0.0012598719913512468, -0.01279515866190195, 0.03139130771160126, 0.009763704612851143, -0.021341431885957718, 0.013493604958057404, 0.03802655264735222, 0.05548772215843201, 0.02855871617794037, -0.02679319679737091, -0.033932875841856, 0.009914064779877663, -0.03531036898493767, -0.007086325436830521, 0.06251099705696106, -0.009943166747689247, -0.028636321425437927, -0.009724901989102364, 0.014483071863651276, 0.024271028116345406, 0.010001370683312416, 0.014822594821453094, 0.0211862213909626, -0.02848111093044281, 0.017111947759985924, -0.0007311865338124335, 0.02019675448536873, -0.04559306055307388, -0.0019207288278266788, 0.030343635007739067, 0.03957865387201309, -0.08257193863391876, 0.02073999121785164, -0.02673499286174774, 0.01093263365328312, -0.0065285381861031055, -0.004200381692498922, 0.04582587257027626, 0.06522717326879501, -0.07671274989843369, 0.0047678700648248196, -0.004632060881704092, -0.04986134544014931, -0.07306530326604843, 0.017917102202773094, 0.020235557109117508, -0.0356207899749279, 0.015618047676980495, 0.00007639262184966356, -0.023087548092007637, -0.014298759400844574, -0.01685973070561886, 0.02690960466861725, 0.005078290589153767, 0.04260525852441788, 0.03612522408366203, -0.033253829926252365, 0.04136357456445694, -0.012319826520979404, -0.035970013588666916, -0.026385769248008728, -0.02855871617794037, -0.0032933710608631372, 0.02394120581448078, 0.007319141179323196, -0.02462025173008442, 0.013270489871501923, 0.02114741876721382, 0.026579782366752625, -0.030886871740221977, -0.020992208272218704, -0.00531595665961504, -0.09351427108049393, -0.008827592246234417, -0.026443973183631897, -0.030052615329623222, -0.026424571871757507, 0.021477241069078445, 0.03195394203066826, 0.041596390306949615, -0.12191777676343918, -0.0684477910399437, 0.028287097811698914, 0.02454264648258686, -0.013483904302120209, 0.0006138692842796445, 0.05583694577217102, -0.04085914045572281, 0.08466728031635284, -0.061696138232946396, -0.009933466091752052, 0.0016163709806278348, -0.10476703196763992, 0.05405202507972717, 0.001829785294830799, 0.04373053461313248, -0.07228925079107285, -0.03338963910937309, -0.050559792667627335, 0.02912135422229767, 0.06728371232748032, -0.017994707450270653, -0.04768839851021767, -0.0014769240515306592, -0.04229483753442764, -0.000025388422727701254, -0.0056409286335110664, 0.05766066908836365, 0.024387435987591743, 0.02004154399037361, -0.0502493716776371, 0.0290631502866745, 0.02516348846256733, 0.024348633363842964, -0.027045413851737976, -0.09436792880296707, -0.061152901500463486, -0.02068178728222847, 0.018004408106207848, -0.014434568583965302, -0.039966680109500885, 0.06635244935750961, -0.07578148692846298, 0.08171828091144562, 0.019944537431001663, 0.01010807789862156, -0.01085502840578556, -0.031682323664426804, -0.0030751063022762537, -0.030498845502734184, 0.008036988787353039, 0.039345838129520416, 0.03362245485186577, 0.03125549852848053, -0.05021056905388832, -0.018567046150565147, -0.04652431979775429, 0.002250551013275981, -0.08280475437641144, 0.023184554651379585, -0.016054576262831688, 0.04796001687645912, 0.02797667682170868, -0.025318698957562447, -0.0240964163094759, 0.09754974395036697, 0.02848111093044281, -0.04373053461313248, 0.014104746282100677, 0.00215839478187263, -0.07263847440481186, -0.05641898512840271, -0.007222134619951248, 0.012523540295660496, -0.029955608770251274, -0.03294340893626213, -0.05063739791512489, -0.04536024481058121, 0.016471704468131065, 0.00738704577088356, -0.046640727669000626, 0.007241535931825638, 0.04710635915398598, 0.04147998243570328, 0.007430698722600937, -0.06545998901128769, 0.03721169754862785, 0.05517730116844177, -0.027045413851737976, 0.0613081119954586, 0.012407132424414158, 0.037075888365507126, -0.04361412674188614, 0.052887946367263794, 0.015394932590425014, -0.018276026472449303, -0.016917934641242027, 0.014356963336467743, 0.011301258578896523, 0.05083141103386879, 0.034941744059324265, -0.0002490338811185211, 0.013600312173366547, 0.013765223324298859, 0.038201164454221725, 0.006800156086683273, -0.0035601388663053513, -0.018867766484618187, 0.04310969263315201, 0.046640727669000626, -0.019420702010393143, 0.026036547496914864, 0.06790455430746078, 0.02236970141530037, 0.03785194084048271, 0.040548719465732574, 0.0070135705173015594, 0.006780754774808884, -0.057777076959609985, -0.011010238900780678, 0.017461171373724937, -0.014444269239902496, -0.013823427259922028, -0.02801547944545746, -0.03963685780763626, 0.025997744873166084, -0.005723383743315935, -0.020332563668489456, -0.057272642850875854, -0.004845474846661091, -0.002716182265430689, -0.007702316623181105, -0.007299739867448807, -0.036513250321149826, -0.04924050346016884, 0.08777149021625519, 0.025357501581311226, -0.0470675565302372, 0.016306793317198753, -0.012378030456602573, -0.04140237718820572, 0.04842564836144447, -0.037677329033613205, 0.003555288538336754, -0.003603791818022728, 0.04896888509392738, 0.0011040553217753768, -0.06189015135169029, -0.013183184899389744, -0.0892459899187088, 0.05878594517707825, -0.01336749643087387, -0.07519944757223129, -0.010661015287041664, 0.002263889415189624, -0.035387974232435226, 0.0046029589138925076, 0.023824797943234444, 0.023824797943234444, -0.05087021365761757, -0.011534073390066624, -0.03352544829249382, 0.06879701465368271, 0.046640727669000626, -0.028034880757331848, 0.001058583497069776, 0.0017449045553803444, 0.007319141179323196, -0.10965615510940552, -0.00009048888023244217, -0.052228305488824844, 0.041053153574466705, -0.006921414285898209, 0.036649059504270554, -0.0033685509115457535, 0.03391347452998161, 0.07166840881109238, -0.019711721688508987, 0.06611963361501694, -0.0017897700890898705, 0.04861966148018837, 0.013474203646183014, -0.05917397141456604, 0.07131918519735336, 0.031100286170840263, 0.02617235668003559, 0.021341431885957718, -0.0644899234175682, 0.002006822032853961, 0.03575659915804863, -0.03758032247424126, -0.01141766645014286, -0.006741952151060104, -0.02462025173008442, -0.03230316564440727, 0.01285336259752512, -0.00011731724225683138, 0.04741678014397621, -0.061152901500463486, -0.028810933232307434, -0.05758306384086609, 0.023106949403882027, -0.02124442532658577, 0.04450658708810806, -0.04861966148018837, -0.008861544542014599, 0.012659349478781223, -0.005907696206122637, 0.034301500767469406, -0.013677917420864105, -0.01837303303182125, -0.015705354511737823, -0.01089383102953434, 0.0502493716776371, -0.01762608252465725, 0.03305981680750847, -0.0024882168509066105, 0.041130758821964264, -0.01901327632367611, 0.003106633434072137, 0.005388711579144001, -0.002558546606451273, -0.041053153574466705, 0.033176224678754807, -0.04695114865899086, -0.03794894739985466, 0.05300435423851013, 0.0725608691573143, -0.08365841209888458, -0.03288520500063896, 0.038298171013593674, 0.012746655382215977, 0.025958942249417305, 0.025376902893185616, 0.011204252019524574, 0.05459526181221008, -0.036513250321149826, 0.014201752841472626, 0.0024360758252441883, -0.03624163195490837, -0.021128017455339432, -0.028054282069206238, 0.02013855054974556, -0.03666846081614494, -0.020448971539735794, -0.013522706925868988, 0.00783812627196312, -0.021108616143465042, -0.006058056373149157, -0.016568711027503014, 0.012698152102530003, 0.009462985210120678, 0.04252765327692032, -0.023824797943234444, 0.023883001878857613, -0.03238077089190483, 0.02506648190319538, -0.019905734807252884, -0.014744989573955536, 0.02848111093044281, -0.05436244606971741, 0.013639114797115326, 0.010399097576737404, 0.037056487053632736, 0.03461192175745964, 0.0010713156079873443, 0.04869726672768593, -0.03841457888484001, -0.04419616609811783, -0.050559792667627335, 0.00514619518071413, 0.03802655264735222, -0.013755522668361664, 0.020390767604112625, 0.032788198441267014, 0.05482807755470276, 0.055604130029678345, -0.00684380903840065, 0.00048078849795274436, 0.044428981840610504, 0.029936207458376884, 0.016937335953116417, -0.03309861943125725, 0.02733643352985382, 0.012281023897230625, 0.07228925079107285, -0.047261569648981094, -0.015472537837922573, -0.0025876485742628574, 0.0273752361536026, -0.05544891953468323, 0.020390767604112625, -0.01085502840578556, -0.023029344156384468, -0.034320902079343796, -0.005476017482578754, -0.020992208272218704, 0.008880945853888988, -0.010040173307061195, 0.011165449395775795, 0.043226100504398346, -0.07760520279407501, -0.037075888365507126, 0.006960216909646988, -0.06856419891119003, -0.02617235668003559, 0.02347557432949543, -0.0020213730167597532, 0.008793639950454235, -0.023126350715756416, 0.007702316623181105, -0.015181518159806728, -0.020410168915987015, -0.00938537996262312, -0.014085344970226288, -0.06557639688253403, 0.016229188069701195, 0.048852477222681046, -0.035465579479932785, -0.1063191294670105, 0.009914064779877663, -0.03410748764872551, -0.0038002298679202795, -0.01591876707971096, 0.041130758821964264, 0.03746391460299492, 0.056108564138412476, 0.03907421976327896, 0.02126382663846016, 0.0010046235984191298, 0.006518837530165911, 0.042721666395664215, 0.023281561210751534, -0.02130262926220894, -0.01595756970345974, -0.03183753415942192, 0.020565379410982132, 0.019886333495378494, -0.032225560396909714, -0.010175982490181923, -0.001634559710510075, 0.03985027223825455, 0.07062073796987534, 0.031488314270973206, -0.030634654685854912, 0.020022142678499222, -0.021671254187822342, 0.025920139625668526, -0.03616402670741081, -0.0389966145157814, 0.007508303504437208, -0.03620282933115959, 0.05238351598381996, -0.027200624346733093, 0.05428484082221985, -0.043769337236881256, 0.05374160408973694, -0.018867766484618187, 0.03162412345409393 ]
37,683
healpy.pixelfunc
get_map_size
Returns the npix of a given map (implicit or explicit pixelization). If map is a dict type, assumes explicit pixelization: use nside key if present, or use nside attribute if present, otherwise use the smallest valid npix given the maximum key value. otherwise assumes implicit pixelization and returns len(m). Parameters ---------- m : array-like or dict-like a map with implicit (array-like) or explicit (dict-like) pixellization Returns ------- npix : int a valid number of pixel Notes ----- In implicit pixellization, raise a ValueError exception if the size of the input is not a valid pixel number. Examples -------- >>> import healpy as hp >>> m = {0: 1, 1: 1, 2: 1, 'nside': 1} >>> print(hp.get_map_size(m)) 12 >>> m = {0: 1, 767: 1} >>> print(hp.get_map_size(m)) 768 >>> print(hp.get_map_size(np.zeros(12 * 8 ** 2))) 768
def get_map_size(m): """Returns the npix of a given map (implicit or explicit pixelization). If map is a dict type, assumes explicit pixelization: use nside key if present, or use nside attribute if present, otherwise use the smallest valid npix given the maximum key value. otherwise assumes implicit pixelization and returns len(m). Parameters ---------- m : array-like or dict-like a map with implicit (array-like) or explicit (dict-like) pixellization Returns ------- npix : int a valid number of pixel Notes ----- In implicit pixellization, raise a ValueError exception if the size of the input is not a valid pixel number. Examples -------- >>> import healpy as hp >>> m = {0: 1, 1: 1, 2: 1, 'nside': 1} >>> print(hp.get_map_size(m)) 12 >>> m = {0: 1, 767: 1} >>> print(hp.get_map_size(m)) 768 >>> print(hp.get_map_size(np.zeros(12 * 8 ** 2))) 768 """ if isinstance(m, dict): if "nside" in m: return nside2npix(m["nside"]) elif hasattr(ma, "nside"): return nside2npix(m.nside) else: nside = get_min_valid_nside(max(m.keys()) + 1) return nside2npix(nside) else: if isnpixok(len(m)): return len(m) else: raise ValueError("Wrong pixel number (it is not 12*nside**2)")
(m)
[ 0.04891207069158554, -0.022136608138680458, 0.01561438012868166, 0.014640221372246742, 0.051732491701841354, 0.04119301587343216, 0.01873168908059597, -0.006127925124019384, -0.030152546241879463, -0.0025397720746695995, 0.01840697042644024, 0.03004121407866478, -0.013146510347723961, 0.0006807517493143678, 0.02566213719546795, 0.034680068492889404, 0.0320080891251564, -0.00018743866530712694, 0.026200244203209877, -0.03211941942572594, 0.039226144552230835, 0.03362241014838219, 0.08401890844106674, -0.005538790952414274, -0.0367768295109272, -0.04019102454185486, 0.04267745092511177, -0.006693865172564983, 0.062012191861867905, -0.04568342864513397, -0.09285128861665726, 0.026794016361236572, 0.01920485310256481, 0.06193796917796135, -0.0026302298065274954, -0.02228505164384842, 0.061492640525102615, 0.04338255524635315, -0.0953005999326706, -0.022396383807063103, -0.018360581248998642, -0.050693389028310776, 0.07240322232246399, 0.007960272021591663, 0.01924196444451809, 0.01771114207804203, -0.021895388141274452, -0.03423473611474037, -0.051027387380599976, 0.009129263460636139, -0.020132623612880707, -0.04490410163998604, 0.004703797399997711, 0.04776163399219513, -0.037203602492809296, 0.04516387730836868, -0.0157164353877306, 0.0052233487367630005, -0.012292961589992046, -0.0158834345638752, -0.03562639281153679, -0.004061316139996052, 0.028074340894818306, -0.09834369271993637, 0.013452674262225628, -0.030820541083812714, -0.0004482291988097131, 0.010520919226109982, -0.036517053842544556, 0.007046418264508247, 0.006851586513221264, 0.03356674313545227, -0.0019459989853203297, 0.03406773880124092, 0.054441582411527634, 0.004126260057091713, 0.08053049445152283, 0.003179933875799179, 0.060973089188337326, 0.005362514406442642, -0.004525201395153999, -0.004119301680475473, 0.07039923965930939, -0.004645811393857002, -0.007445359602570534, 0.0549982450902462, 0.1273643523454666, 0.03690671548247337, -0.03881792351603508, -0.024326147511601448, -0.012747569009661674, 0.0394488088786602, 0.010001367889344692, 0.04037657752633095, -0.059117548167705536, 0.003933747764676809, -0.007269083056598902, 0.012738291174173355, 0.004460257478058338, -0.06019376218318939, 0.004917184356600046, -0.0261631328612566, 0.030300989747047424, -0.012292961589992046, -0.022823158651590347, 0.005297570489346981, 0.0244931448251009, 0.0036623748019337654, -0.07433298230171204, 0.02243349514901638, -0.004179606679826975, 0.018861576914787292, -0.04319700226187706, 0.013795949518680573, 0.042417675256729126, 0.01292384508997202, 0.002593118930235505, -0.010029200464487076, 0.05752178281545639, 0.023992149159312248, -0.07110434025526047, 0.03091331757605076, -0.024585923179984093, -0.06305129081010818, 0.03725926950573921, 0.013137232512235641, 0.027443455532193184, 0.011662077158689499, -0.027035236358642578, 0.029929881915450096, 0.05113871768116951, -0.044458769261837006, 0.01802658475935459, 0.07559475302696228, 0.02145005762577057, -0.000563330773729831, 0.02954021841287613, -0.035849057137966156, 0.005209432449191809, 0.010771417059004307, 0.03456873446702957, 0.04538654163479805, -0.009333373047411442, 0.0526602640748024, 0.0019854293204844, 0.0037319574039429426, 0.05369936674833298, 0.01652359589934349, 0.059674207121133804, -0.017683308571577072, -0.028259893879294395, -0.03848392888903618, -0.00986220221966505, 0.0036484580487012863, -0.021023282781243324, -0.03605316951870918, 0.057113561779260635, -0.05841244012117386, 0.00969520304352045, -0.06913746893405914, -0.03221219778060913, 0.012543459422886372, -0.0031915311701595783, -0.08669088780879974, -0.028241338208317757, -0.015827767550945282, 0.03390074148774147, -0.018499746918678284, 0.051027387380599976, 0.049691397696733475, -0.01390728261321783, -0.029929881915450096, -0.036869607865810394, -0.03900348022580147, 0.09218329191207886, 0.013703173026442528, -0.042937226593494415, -0.04753896966576576, -0.02935466356575489, 0.02326848730444908, 0.05496113374829292, -0.014389722608029842, -0.008966903202235699, 0.01390728261321783, -0.03575628250837326, 0.07314544171094894, 0.034865621477365494, 0.021134614944458008, -0.012357905507087708, 0.02731356769800186, -0.00048591988161206245, -0.00006668351852567866, -0.0030129351653158665, 0.04215789958834648, 0.0049542952328920364, -0.038224149495363235, 0.030245322734117508, 0.025272473692893982, -0.028575336560606956, 0.003912872634828091, -0.04958006367087364, -0.013953670859336853, -0.024678699672222137, 0.03963436186313629, -0.02731356769800186, -0.03002265840768814, -0.008196854032576084, -0.0014113711658865213, 0.015187605284154415, 0.030115434899926186, -0.0003789363254327327, -0.050507836043834686, -0.00261863274499774, -0.021969608962535858, 0.06023086979985237, -0.0005198415019549429, 0.04382788762450218, 0.04434743896126747, -0.060490645468235016, -0.00836385227739811, 0.03657272085547447, 0.09248018264770508, 0.06809836626052856, 0.05295715108513832, 0.015670046210289, -0.049691397696733475, -0.025606470182538033, 0.043122779577970505, 0.0516582690179348, 0.008994736708700657, 0.009013292379677296, 0.012376460246741772, 0.011068304069340229, -0.005487763322889805, 0.026608463376760483, -0.03174831345677376, 0.0013058371841907501, -0.06557483226060867, 0.034494511783123016, 0.014565999619662762, -0.023249933496117592, 0.0411187969148159, -0.034179072827100754, 0.03852103650569916, -0.0563342347741127, -0.0023368224501609802, -0.05028517171740532, 0.021171726286411285, -0.027443455532193184, 0.04705652967095375, -0.004179606679826975, -0.07295988500118256, -0.023398377001285553, 0.0050099617801606655, 0.04958006367087364, 0.02395503781735897, -0.06516661494970322, 0.026385797187685966, -0.01292384508997202, -0.003875761991366744, 0.00590062141418457, -0.020021291449666023, 0.04787296801805496, -0.038224149495363235, 0.014974218793213367, -0.014204168692231178, 0.0314328707754612, 0.040079694241285324, -0.026422908529639244, 0.017841029912233353, 0.01635659672319889, 0.034494511783123016, 0.008155103772878647, -0.04946873337030411, -0.02748056687414646, -0.04308566823601723, 0.08320247381925583, 0.0034211543388664722, 0.021876832470297813, 0.023992149159312248, -0.04156412556767464, -0.05637134611606598, -0.07143834233283997, 0.03800148516893387, -0.04846673831343651, 0.019965624436736107, 0.013860893435776234, -0.007296916097402573, 0.025996133685112, -0.005394986364990473, 0.010576585307717323, 0.0014565999154001474, -0.09938279539346695, -0.007004668470472097, -0.03542228415608406, -0.05113871768116951, -0.028909333050251007, 0.005325403530150652, -0.011615688912570477, 0.007375776767730713, 0.006090814247727394, -0.036183055490255356, -0.025903357192873955, -0.001937880995683372, 0.05128716304898262, 0.054404471069574356, 0.023732373490929604, -0.032972969114780426, 0.02918766438961029, 0.006717059761285782, -0.009750870056450367, 0.005733622703701258, -0.04668541997671127, -0.02059650793671608, 0.024845698848366737, 0.02059650793671608, -0.011161081492900848, 0.024919919669628143, 0.013601117767393589, 0.0712156742811203, 0.046462755650281906, 0.03336263447999954, -0.013359897769987583, -0.01451033353805542, 0.005469208117574453, -0.008298908360302448, 0.008994736708700657, -0.03664693981409073, 0.08038204908370972, -0.05789288878440857, -0.033177077770233154, -0.01180124282836914, -0.017423532903194427, -0.013341342099010944, 0.01486288569867611, -0.05496113374829292, 0.001959915505722165, 0.03660982847213745, -0.05202937871217728, 0.01113324798643589, 0.00582639966160059, -0.03896636888384819, -0.011996074579656124, -0.004406910855323076, 0.0013151149032637477, -0.011773409321904182, -0.02937321923673153, -0.037723153829574585, -0.03456873446702957, 0.035199619829654694, 0.0053996252827346325, 0.024029260501265526, 0.012144518084824085, -0.015447381883859634, 0.008646822534501553, 0.04304855689406395, 0.03798292949795723, -0.009440066292881966, 0.003936067223548889, 0.0822375938296318, 0.0334368534386158, -0.002753159496933222, -0.019112074747681618, -0.08572600781917572, -0.03191531077027321, -0.039411697536706924, 0.020485175773501396, -0.025959022343158722, 0.01560510229319334, -0.009732314385473728, -0.02801867388188839, -0.04958006367087364, -0.060639090836048126, -0.017674030736088753, 0.03560783714056015, 0.05807844176888466, -0.028241338208317757, 0.03497695550322533, -0.06524083018302917, -0.012506348080933094, -0.014593832194805145, -0.012664069421589375, 0.004643491934984922, 0.045646317303180695, -0.014807219617068768, -0.0039151920937001705, -0.0059655653312802315, 0.0006500193267129362, -0.06331107020378113, -0.020503731444478035, -0.025346694514155388, 0.01224657241255045, -0.010502363555133343, -0.018611079081892967, 0.010530197061598301, 0.03750048950314522, 0.0029619077686220407, 0.009235956706106663, 0.012283683754503727, 0.016783371567726135, 0.03395640477538109, -0.026255909353494644, 0.010084867477416992, 0.016263820230960846, -0.01224657241255045, -0.038075707852840424, -0.03794582188129425, 0.0018358262022957206, 0.000607689784374088, -0.039931248873472214, 0.036368608474731445, 0.03202664479613304, 0.0051305717788636684, -0.04609164595603943, -0.04019102454185486, -0.04842962697148323, -0.042232122272253036, -0.011495078913867474, -0.03763037919998169, -0.04687097296118736, 0.008920514956116676, -0.0411187969148159, 0.014027892611920834, 0.035366617143154144, 0.027072347700595856, -0.0570022277534008, -0.009852924384176731, -0.036350052803754807, -0.022730380296707153, 0.13011056184768677, -0.04534943029284477, -0.01249707117676735, 0.01425983477383852, -0.03707371652126312, -0.0032843081280589104, 0.00046968390233814716, 0.012933122925460339, -0.008340658619999886, -0.002122275298461318, -0.0072087780572474, 0.00860043428838253, 0.04842962697148323, 0.017989473417401314, 0.05514668673276901, 0.05061916634440422, -0.032972969114780426, -0.02497558668255806, -0.0007729489589110017, 0.04661119729280472, -0.015280382707715034, -0.010789972729980946, -0.08624555915594101, 0.029447440057992935, -0.04071057587862015, 0.08483535051345825, -0.03967147320508957, -0.08260869979858398, 0.026775460690259933, -0.010984804481267929, -0.001419489155523479, -0.015651490539312363, -0.013109399005770683, 0.020485175773501396, -0.04961717501282692, 0.018304914236068726, 0.04449588060379028, -0.01554015837609768, 0.00519551569595933, 0.0007648309110663831, -0.020522287115454674, 0.03126586973667145, 0.03881792351603508, 0.0167184267193079, -0.036535609513521194, 0.04523809626698494, -0.002009783172979951, -0.001692021731287241, 0.05136138200759888, -0.002702132100239396, -0.009611704386770725, 0.03848392888903618, 0.0509902760386467, 0.012450681999325752, -0.03362241014838219, -0.0143340565264225, -0.008243242278695107, -0.06071331351995468, -0.008628266863524914, -0.022878823801875114, -0.00834993552416563, -0.015790656208992004, 0.008929792791604996, 0.010261143557727337, -0.02061506360769272, 0.03217508643865585, 0.010075589641928673, 0.08631978183984756, -0.027462011203169823, 0.016634928062558174, -0.0276661217212677, -0.01772041991353035, -0.0035510421730577946, 0.05106449872255325, -0.0034141959622502327, -0.07459276169538498, 0.04148990288376808, -0.0129145672544837, 0.018499746918678284, 0.05488691106438637, 0.020819174125790596, -0.025402361527085304, -0.029837103560566902, 0.0246601440012455, 0.007352582644671202, 0.06011953949928284, 0.03781593218445778, 0.004949656315147877, -0.01173629891127348, 0.002208094112575054, -0.006661393214017153, 0.03236063942313194, -0.028779445216059685, -0.01871313340961933, 0.029094887897372246, -0.04386499524116516, 0.027907341718673706, 0.026942459866404533, -0.01888013258576393, 0.006076897960156202, 0.016941092908382416, -0.01820285990834236, 0.008966903202235699, 0.0037945820949971676, 0.0261631328612566, 0.03156275674700737, -0.025365250185132027, 0.020299622789025307, -0.08824954181909561, 0.03712938353419304, 0.04290011525154114, 0.004884712398052216, -0.035886168479919434, 0.05073050037026405, 0.0012710457667708397, 0.028760891407728195, 0.04590609297156334, 0.0005233206320554018, -0.03493984416127205, 0.013898004777729511, -0.04653697460889816, -0.019501740112900734, 0.023565374314785004, 0.040079694241285324, -0.03881792351603508, 0.04787296801805496, 0.06349662691354752, 0.04386499524116516, -0.07444431632757187, -0.03647994250059128, -0.007533497642725706, -0.03455017879605293, -0.04319700226187706, 0.04661119729280472, -0.012116684578359127, -0.08602289855480194, -0.006104731000959873, -0.040896132588386536, -0.00828499160706997, -0.019019298255443573, 0.033306967467069626, -0.010799250565469265, 0.054256029427051544, 0.022860269993543625, -0.011467245407402515, -0.00860043428838253, -0.018351303413510323, -0.002052692696452141, -0.05488691106438637, 0.07333099097013474, -0.03397496044635773, -0.027035236358642578, 0.04880073666572571, 0.04123012721538544, 0.06843236088752747, 0.00860971212387085, 0.062197744846343994, -0.05919176712632179, -0.0000856738188304007, -0.0037760266568511724, -0.0005728983669541776, -0.04687097296118736, -0.0715496763586998, 0.026274465024471283, 0.0037365963216871023, -0.03185964375734329, 0.004119301680475473, 0.004110023844987154, 0.001600404386408627, 0.00526973744854331, -0.011420857161283493, 0.02516113966703415, 0.013935115188360214, -0.025736358016729355, 0.03833548352122307, 0.04271456226706505, -0.056594010442495346, 0.06594593822956085, 0.030653541907668114, -0.032676082104444504, -0.037222158163785934, -0.03022676892578602, -0.025235362350940704, 0.009463260881602764, -0.05551779642701149, -0.04995117336511612, -0.046165868639945984, -0.005738261621445417, 0.06828392297029495, 0.03224930912256241, -0.021802609786391258, -0.03506973013281822, -0.01114252582192421, -0.00455767335370183, -0.029762882739305496, 0.046796754002571106, 0.017302922904491425, 0.02566213719546795, 0.035348061472177505, -0.02376948483288288, -0.025996133685112, 0.013471229933202267, 0.019817180931568146, 0.019353296607732773, -0.05529513210058212, -0.01365678384900093, 0.010437419638037682, 0.002136192051693797, 0.00056478037731722, -0.07359077036380768, 0.10235165804624557, 0.023546818643808365, 0.03558928146958351, 0.025569358840584755, 0.023862261325120926, 0.05885777249932289, 0.010520919226109982, 0.03159986808896065, 0.026033245027065277, 0.04137857258319855, -0.0068840584717690945, -0.006225340999662876, -0.045312318950891495, 0.02701668255031109, -0.018648190423846245, 0.03709227219223976, -0.022229384630918503, -0.013526896014809608, -0.047687411308288574, -0.10019923001527786, -0.06279151886701584, -0.03750048950314522, 0.01053947489708662, -0.08550334721803665, -0.042603228241205215, 0.009129263460636139, -0.03967147320508957, 0.0351068414747715, -0.013610395602881908, -0.0026232716627418995, -0.047984298318624496, 0.055072467774152756, 0.032323528081178665, -0.012116684578359127, -0.0628657415509224, 0.01501132920384407, 0.02532813884317875, -0.00074337626574561, 0.015632934868335724, 0.026422908529639244, 0.02601468935608864, 0.01604115404188633, 0.006169674918055534, -0.022396383807063103, 0.08401890844106674, 0.026627017185091972, -0.008233964443206787, 0.016254542395472527, -0.03506973013281822, -0.023695262148976326, 0.0509902760386467, 0.012181628495454788, -0.053922031074762344, 0.06802414357662201, 0.02770323120057583, 0.0032124058343470097, -0.022489160299301147, -0.02395503781735897, 0.07373921573162079, 0.023082934319972992, 0.016161764040589333, 0.0019262838177382946, -0.024715811014175415, -0.027443455532193184, -0.008864848874509335, -0.06483261287212372, 0.01173629891127348, -0.03421618044376373, 0.01292384508997202, 0.002348419511690736, 0.027536233887076378, -0.056111570447683334, 0.01804513856768608, 0.05804133415222168, -0.07366499304771423, -0.05841244012117386, 0.026441464200615883, -0.01502060703933239, 0.03288019075989723, -0.04653697460889816, -0.018156472593545914, 0.001018808106891811, -0.008702488616108894, -0.0030245324596762657, 0.049876950681209564, -0.06449861824512482, 0.03605316951870918, 0.024511700496077538, -0.040042582899332047, -0.04846673831343651, 0.002368134679272771, -0.04494120925664902, -0.03709227219223976, -0.04642564430832863, -0.003864164697006345, -0.021320169791579247, 0.03429040312767029, -0.010029200464487076, -0.04742763563990593, -0.013350619934499264, -0.04505254328250885, 0.034179072827100754, 0.026589907705783844, 0.00531148724257946, -0.007352582644671202, 0.022693270817399025, 0.0015261827502399683, 0.018666746094822884, 0.02141294628381729, 0.0016062029171735048, 0.019705848768353462, 0.046499866992235184, 0.0560002364218235, -0.02428903616964817, -0.03269463777542114, -0.02145005762577057, -0.006805197801440954, 0.006911891512572765, -0.05715067312121391, 0.035515062510967255, 0.01702459156513214, -0.019483184441924095, -0.026126021519303322, -0.07192078232765198, 0.025365250185132027, -0.010734306648373604, -0.0006332034827210009, -0.014167058281600475, -0.026088910177350044 ]
37,684
healpy.pixelfunc
get_nside
Return the nside of the given map. Parameters ---------- m : sequence the map to get the nside from. Returns ------- nside : int the healpix nside parameter of the map (or sequence of maps) Notes ----- If the input is a sequence of maps, all of them must have same size. If the input is not a valid map (not a sequence, unvalid number of pixels), a TypeError exception is raised.
def get_nside(m): """Return the nside of the given map. Parameters ---------- m : sequence the map to get the nside from. Returns ------- nside : int the healpix nside parameter of the map (or sequence of maps) Notes ----- If the input is a sequence of maps, all of them must have same size. If the input is not a valid map (not a sequence, unvalid number of pixels), a TypeError exception is raised. """ typ = maptype(m) if typ == 0: return npix2nside(len(m)) else: return npix2nside(len(m[0]))
(m)
[ 0.008730600588023663, 0.01655515469610691, 0.05450357869267464, 0.028659241273999214, 0.029063884168863297, 0.040217939764261246, 0.020918255671858788, 0.02049602009356022, -0.022413672879338264, 0.012060103937983513, -0.0027379340026527643, 0.022096997126936913, -0.032265838235616684, -0.0024190580006688833, 0.053729478269815445, 0.011488326825201511, 0.018261689692735672, 0.02243126556277275, 0.02816663309931755, -0.03495758771896362, 0.02756846509873867, 0.056368451565504074, 0.06016857177019119, -0.06509465724229813, -0.06351127475500107, -0.0597815215587616, 0.0313509926199913, -0.00790812075138092, -0.0008527179597876966, -0.06136490777134895, -0.0836026519536972, 0.018120944499969482, 0.0050976150669157505, 0.009192421101033688, 0.019282091408967972, 0.006399508100003004, 0.04074573516845703, 0.049049701541662216, -0.10520703345537186, -0.003628587117418647, -0.038599371910095215, -0.07783209532499313, 0.06213900446891785, 0.025932302698493004, 0.003146974602714181, -0.00032107497099786997, 0.013265235349535942, -0.0684373527765274, -0.048029299825429916, 0.032864004373550415, -0.030875977128744125, -0.05323687195777893, 0.023856312036514282, 0.04468660056591034, -0.014980566687881947, 0.057705532759428024, 0.0003771531628444791, -0.02387390471994877, 0.016106529161334038, 0.025140611454844475, -0.014575924724340439, -0.004015636630356312, 0.035045552998781204, -0.04187169671058655, 0.03821232169866562, 0.010582279413938522, -0.015024550259113312, 0.039197538048028946, -0.03863455727696419, 0.018771890550851822, 0.02095344103872776, 0.031210247427225113, -0.010274399071931839, 0.061400093138217926, 0.05953522026538849, 0.005933289881795645, 0.06340571492910385, 0.029063884168863297, 0.06481316685676575, 0.0166958998888731, -0.016484782099723816, -0.011928156018257141, 0.06604468822479248, 0.025281356647610664, -0.029767610132694244, 0.04732557386159897, 0.08831761032342911, 0.031016722321510315, -0.07719874382019043, -0.0678040012717247, -0.028149040415883064, 0.031526923179626465, 0.005255953408777714, 0.033602915704250336, -0.07012629508972168, 0.024155395105481148, -0.019211718812584877, -0.011180446483194828, -0.02183309942483902, -0.07740985602140427, 0.02132289856672287, -0.011417954228818417, 0.045812562108039856, -0.017417218536138535, -0.0123943742364645, -0.011162853799760342, 0.009174827486276627, 0.011514716781675816, -0.09345481544733047, 0.017689911648631096, -0.0012491135857999325, 0.024911900982260704, -0.01330042164772749, 0.026618435978889465, 0.028043480589985847, 0.017557963728904724, 0.023187771439552307, -0.005075623746961355, 0.03835306689143181, 0.04236430674791336, -0.0556999109685421, 0.022871095687150955, -0.05619252100586891, -0.09106214344501495, 0.029574085026979446, 0.013326810672879219, 0.014602314680814743, -0.007063649594783783, -0.02501745894551277, 0.012737440876662731, 0.06995036453008652, -0.03972533345222473, 0.002931458642706275, 0.04655147343873978, -0.009931333363056183, 0.005994865670800209, 0.02535172924399376, -0.05731848254799843, 0.015050939284265041, -0.00087580899707973, -0.009359555318951607, 0.03282881900668144, 0.016722289845347404, 0.061822328716516495, 0.008800973184406757, 0.030277810990810394, 0.009931333363056183, 0.03574927896261215, 0.0964808315038681, -0.008616245351731777, -0.021252525970339775, -0.04046424478292465, 0.012297611683607101, 0.012341594323515892, -0.029767610132694244, -0.03796601668000221, 0.02881757915019989, -0.03944384306669235, -0.0007064749370329082, -0.04127353057265282, -0.010696635581552982, -0.03655856475234032, 0.021639574319124222, -0.034764062613248825, -0.02821941301226616, -0.032441768795251846, 0.03768452629446983, -0.014408789575099945, 0.04718482866883278, 0.04028831422328949, -0.014065722934901714, -0.01205130759626627, -0.06650210916996002, -0.05102013424038887, 0.06368720531463623, 0.0027907134499400854, -0.014329620636999607, 0.006843735463917255, -0.04451067000627518, 0.0008791076834313571, 0.037403035908937454, 0.009456317871809006, 0.0013293824158608913, -0.014839821495115757, -0.04292728751897812, 0.05499618500471115, 0.030189845710992813, 0.010388755239546299, 0.016616730019450188, 0.006254364736378193, 0.017012575641274452, 0.0313509926199913, -0.012420764192938805, 0.01933487132191658, 0.01882467046380043, -0.04510883614420891, 0.026987891644239426, 0.02229052037000656, 0.008172018453478813, -0.026248980313539505, -0.04750150442123413, 0.026723993942141533, -0.05056271329522133, 0.04088648036122322, -0.013766639865934849, 0.022325707599520683, -0.023838717490434647, 0.017012575641274452, 0.023891497403383255, 0.022835908457636833, 0.033286239951848984, -0.02237848751246929, 0.00404642429202795, -0.031755637377500534, 0.07065408676862717, -0.030172251164913177, 0.014514348469674587, 0.051407184451818466, -0.026671215891838074, 0.015992173925042152, -0.02382112480700016, 0.06622061878442764, 0.06527058780193329, 0.05179423466324806, 0.002588392235338688, -0.02040805295109749, -0.021287711337208748, 0.023662786930799484, 0.0354326032102108, 0.013916181400418282, -0.031333401799201965, 0.037262290716171265, 0.0003460902371443808, -0.011892969720065594, 0.02890554443001747, -0.03821232169866562, -0.04236430674791336, -0.08873984962701797, -0.009210013784468174, 0.016951000317931175, -0.046692218631505966, 0.009421131573617458, -0.051407184451818466, 0.04866265133023262, -0.01840243488550186, 0.04088648036122322, -0.04046424478292465, 0.018472807481884956, -0.012631881982088089, 0.11196280270814896, -0.007859739474952221, -0.07881730794906616, -0.01154110673815012, 0.0010000605834648013, 0.0391271635890007, 0.004877700936049223, -0.07318750023841858, 0.03157970309257507, -0.02492949366569519, -0.004371897783130407, -0.0060872300527989864, -0.038282692432403564, 0.015781056135892868, -0.031949158757925034, -0.0022255333606153727, 0.02552765980362892, -0.003672569990158081, 0.010599873028695583, 0.0321778729557991, -0.023803532123565674, 0.039197538048028946, 0.03157970309257507, 0.012455950491130352, -0.05137199908494949, -0.0007059251656755805, -0.02575637213885784, 0.06340571492910385, 0.006768964231014252, -0.005686985794454813, 0.010309585370123386, 0.0013513738522306085, -0.04539032652974129, -0.07740985602140427, 0.0546795092523098, -0.04813485965132713, 0.03384922072291374, 0.036699309945106506, -0.013757843524217606, 0.01794501207768917, -0.0028984714299440384, 0.024014649912714958, 0.006984480656683445, -0.03807157650589943, 0.0030282209627330303, -0.002876480109989643, -0.0505978986620903, -0.032582513988018036, 0.015719478949904442, -0.03824750706553459, 0.00017057108925655484, 0.02450725808739662, -0.03548538312315941, -0.011611479334533215, -0.010019298642873764, 0.05443320423364639, 0.030594486743211746, 0.016722289845347404, -0.02174513414502144, 0.025738777592778206, -0.03203712776303291, -0.028659241273999214, 0.003718751948326826, -0.05457394942641258, -0.014980566687881947, -0.004068416077643633, 0.04866265133023262, -0.03427145630121231, 0.030418556183576584, 0.022536825388669968, 0.0762135237455368, 0.03231861814856529, 0.01970432698726654, 0.011980934999883175, -0.0018802678678184748, 0.01125961635261774, 0.01047672051936388, 0.0016075740568339825, -0.04612923786044121, 0.09106214344501495, -0.030700046569108963, -0.010230416432023048, -0.01586022414267063, -0.030277810990810394, -0.0298907607793808, -0.011690648272633553, -0.06238530948758125, 0.038458626717329025, 0.005141598172485828, -0.028747206553816795, -0.0042949276976287365, 0.006694193463772535, -0.03347976505756378, 0.013098100200295448, 0.014769448898732662, 0.011637868359684944, 0.02132289856672287, -0.04176613688468933, -0.021111780777573586, -0.0030216234736144543, 0.07396160066127777, 0.033092714846134186, 0.04011237993836403, 0.009218810126185417, -0.02234330028295517, 0.013098100200295448, 0.08128035068511963, 0.02044324018061161, 0.016951000317931175, -0.04704408347606659, 0.05295538157224655, 0.02350444905459881, -0.01371385995298624, -0.01989785209298134, -0.020513612776994705, -0.03954939916729927, -0.023047026246786118, 0.008893337100744247, -0.048451535403728485, 0.023522041738033295, 0.014725466258823872, -0.07262451946735382, -0.04187169671058655, -0.03268807381391525, -0.001191935851238668, 0.01581624150276184, 0.050773829221725464, -0.015525954775512218, 0.019669141620397568, -0.027498092502355576, -0.008229196071624756, -0.053131312131881714, -0.03492240235209465, 0.006496270652860403, 0.031051909551024437, -0.02489430643618107, 0.00012356438674032688, -0.0003768782480619848, -0.005836527328938246, -0.07002073526382446, -0.03534463793039322, -0.015086125582456589, 0.012974947690963745, -0.007938909344375134, -0.007591444067656994, -0.007213191594928503, 0.007617834024131298, -0.05703699216246605, -0.008334754966199398, 0.027023078873753548, -0.000647098058834672, 0.04943675175309181, -0.015253260731697083, 0.0190533809363842, 0.008981303311884403, -0.03527426719665527, -0.02002100460231304, -0.04985898733139038, 0.008066459558904171, 0.020320087671279907, -0.09936611354351044, 0.01984507218003273, 0.051090508699417114, -0.015534751117229462, -0.037543781101703644, 0.010116061195731163, -0.03311030939221382, -0.016220884397625923, 0.02225533500313759, -0.025914710015058517, -0.03986607864499092, 0.020619170740246773, -0.04658666253089905, 0.046375542879104614, -0.01047672051936388, 0.04869784042239189, -0.0714985579252243, -0.014787042513489723, -0.03705117478966713, -0.03265288472175598, 0.11104796081781387, -0.044018059968948364, -0.007938909344375134, 0.023240551352500916, -0.06396869570016861, -0.017874639481306076, 0.03986607864499092, 0.019510803744196892, -0.007582647725939751, 0.028799986466765404, -0.009535486809909344, 0.0012491135857999325, 0.08205445110797882, -0.02441929280757904, 0.011162853799760342, 0.057424042373895645, -0.06016857177019119, -0.013502742163836956, -0.009632249362766743, 0.09162512421607971, -0.04148464649915695, -0.023240551352500916, -0.05689624696969986, 0.010828583501279354, -0.034676097333431244, 0.09106214344501495, -0.04408843442797661, -0.07375048100948334, 0.01864873804152012, -0.007833350449800491, -0.00638191495090723, -0.0014404391404241323, -0.02197384461760521, 0.008981303311884403, 0.001874770037829876, 0.031896382570266724, -0.006557846441864967, 0.0020430046133697033, 0.0024916299153119326, 0.002375075127929449, -0.015226870775222778, 0.04454585537314415, 0.028500903397798538, 0.04890895634889603, -0.04039387032389641, 0.049612682312726974, -0.01128600537776947, 0.008264382369816303, 0.011857783421874046, 0.022272927686572075, -0.018244097009301186, -0.02169235423207283, 0.039056792855262756, -0.013617098331451416, -0.03986607864499092, -0.027955515310168266, -0.0051943776197731495, -0.1161147877573967, -0.04176613688468933, -0.004497249145060778, -0.030312996357679367, 0.012966151349246502, 0.006346728652715683, 0.018120944499969482, -0.034394606947898865, 0.053307242691516876, 0.04686815291643143, 0.0563332661986351, -0.04239949211478233, 0.020091377198696136, -0.009737808257341385, -0.0016262667486444116, 0.0013667677994817495, 0.04940156638622284, -0.023979462683200836, -0.06748732179403305, 0.017777878791093826, -0.010116061195731163, -0.012702254578471184, 0.03560853376984596, 0.04732557386159897, 0.037262290716171265, -0.03282881900668144, 0.05119606480002403, 0.02839534357190132, 0.04788855463266373, 0.03501036763191223, -0.0063159409910440445, 0.012957355007529259, 0.03532704338431358, 0.021639574319124222, 0.01301893126219511, -0.07804321497678757, -0.03432423621416092, 0.04546070098876953, -0.05601659044623375, 0.02183309942483902, 0.029345374554395676, -0.02382112480700016, -0.010441534221172333, 0.015112515538930893, -0.012658271007239819, 0.01461990736424923, -0.004035428632050753, 0.01156749576330185, -0.01015124749392271, -0.013986553996801376, -0.004539032466709614, -0.03620670363306999, 0.041414275765419006, 0.03715673089027405, -0.007279165554791689, -0.05935928598046303, 0.04296247288584709, 0.025826744735240936, 0.03768452629446983, 0.03585483878850937, -0.018719110637903214, -0.025457287207245827, 0.022695163264870644, -0.009755401872098446, -0.023891497403383255, 0.03172044828534126, 0.010160043835639954, -0.07368011027574539, 0.06688915938138962, 0.05555916577577591, 0.03501036763191223, -0.04370138421654701, -0.03546778857707977, -0.0029578483663499355, -0.03715673089027405, -0.04088648036122322, 0.06667803972959518, -0.032864004373550415, -0.04134390130639076, 0.011074887588620186, 0.015525954775512218, -0.04173095151782036, -0.0323713943362236, 0.02807866781949997, -0.009095658548176289, 0.02821941301226616, 0.031949158757925034, -0.00016204940038733184, -0.03793083131313324, 0.029767610132694244, 0.023434076458215714, -0.040077194571495056, 0.02677677385509014, -0.04324396327137947, -0.015182888135313988, 0.0276564322412014, 0.028659241273999214, 0.07945066690444946, -0.0029886362608522177, 0.06822623312473297, -0.04046424478292465, -0.008638236671686172, -0.01720610074698925, 0.02938055992126465, -0.023768344894051552, -0.09964760392904282, 0.03648819401860237, 0.007455097045749426, -0.00490409042686224, 0.010942939668893814, 0.003870493033900857, -0.005792544689029455, 0.019968224689364433, 0.01673988252878189, 0.05425727367401123, 0.03172044828534126, -0.015737073495984077, 0.02368037961423397, 0.07121706753969193, -0.028289785608649254, 0.05383503809571266, -0.01334440428763628, -0.0802951380610466, -0.015464378520846367, -0.027304569259285927, 0.02327573671936989, 0.002946852706372738, -0.06702990084886551, -0.03662893921136856, -0.017320455983281136, 0.0016504573868587613, 0.03768452629446983, -0.0063159409910440445, -0.024999866262078285, -0.006074035074561834, -0.008774583227932453, 0.0013480751076713204, -0.06185751408338547, 0.05482025444507599, 0.01191056240350008, 0.007824553176760674, 0.032635293900966644, -0.0026015869807451963, -0.018895043060183525, -0.013467555865645409, 0.015807446092367172, 0.008946117013692856, -0.05964077636599541, -0.032265838235616684, 0.054925814270973206, -0.014127299189567566, -0.017135728150606155, -0.07930991798639297, 0.09866238385438919, 0.005836527328938246, 0.036523379385471344, 0.020003411918878555, 0.02280072309076786, 0.041836511343717575, -0.010124857537448406, 0.005211970768868923, 0.05763515830039978, -0.003573608584702015, -0.02016174979507923, -0.005405495408922434, -0.011884172447025776, 0.021797912195324898, 0.0066106258891522884, 0.024225767701864243, -0.03527426719665527, 0.009887349791824818, -0.03444738686084747, -0.07093557715415955, -0.07248377799987793, 0.002066095592454076, -0.00029853376327082515, -0.07846544682979584, -0.039021607488393784, -0.022906281054019928, -0.034764062613248825, 0.04303284361958504, -0.03736785054206848, 0.0004807877994608134, -0.06611505895853043, 0.03418349102139473, 0.016475984826683998, -0.012596695683896542, -0.057283297181129456, 0.014910194091498852, -0.0020891865715384483, 0.019633954390883446, -0.012623084709048271, 0.047431133687496185, 0.04074573516845703, -0.0418013259768486, 0.00913964118808508, -0.009869757108390331, 0.039021607488393784, 0.00001898479604278691, 0.026442503556609154, 0.015605123713612556, 0.005546240601688623, -0.04496809095144272, 0.03296956419944763, -0.014180079102516174, -0.031808413565158844, 0.05239240080118179, 0.0462699830532074, 0.03501036763191223, -0.00604764511808753, -0.0025532059371471405, 0.031386177986860275, -0.01158508937805891, 0.03835306689143181, 0.010485517792403698, -0.039338283240795135, -0.003749540075659752, -0.007811358664184809, -0.04120315611362457, 0.0005426387069746852, 0.031192654743790627, 0.011224430054426193, -0.017179710790514946, 0.042575422674417496, -0.059324100613594055, 0.00019627358415164053, 0.047853369265794754, -0.01320365909487009, -0.050210848450660706, -0.0019440430914983153, -0.03838825225830078, 0.03376125544309616, -0.0556999109685421, -0.038880862295627594, -0.02691751904785633, -0.04852190613746643, 0.014224061742424965, 0.036980800330638885, -0.04936637729406357, 0.03603076934814453, 0.029538897797465324, -0.014813432469964027, -0.07065408676862717, -0.021657167002558708, -0.06632617861032486, -0.04081610590219498, -0.01608893647789955, -0.0031117883045226336, -0.02756846509873867, 0.06111860275268555, 0.0021364681888371706, 0.019370058551430702, -0.04468660056591034, -0.06277235597372055, 0.042856913059949875, 0.03597799316048622, 0.023011840879917145, -0.0088581508025527, 0.011761020869016647, 0.003373486455529928, -0.007024065125733614, 0.012297611683607101, 0.005242758896201849, -0.023240551352500916, 0.06315940618515015, 0.05935928598046303, -0.0165991373360157, -0.015561141073703766, -0.05489062890410423, 0.0027973109390586615, 0.029996320605278015, -0.03866974264383316, 0.023838717490434647, -0.020390460267663002, -0.009271590039134026, 0.0166958998888731, -0.033514950424432755, 0.015420395880937576, -0.029028696939349174, 0.020232122391462326, -0.0072043947875499725, -0.036241888999938965 ]
37,685
healpy.visufunc
gnomview
Plot a healpix map (given as an array) in Gnomonic projection. Parameters ---------- map : array-like The map to project, supports masked maps, see the `ma` function. If None, use a blank map, useful for overplotting. fig : None or int, optional A figure number. Default: None= create a new figure rot : scalar or sequence, optional Describe the rotation to apply. In the form (lon, lat, psi) (unit: degrees) : the point at longitude *lon* and latitude *lat* will be at the center. An additional rotation of angle *psi* around this direction is applied. coord : sequence of character, optional Either one of 'G', 'E' or 'C' to describe the coordinate system of the map, or a sequence of 2 of these to rotate the map from the first to the second coordinate system. unit : str, optional A text describing the unit of the data. Default: '' xsize : int, optional The size of the image. Default: 200 ysize : None or int, optional The size of the image. Default: None= xsize reso : float, optional Resolution (in arcmin). Default: 1.5 arcmin title : str, optional The title of the plot. Default: 'Gnomonic view' nest : bool, optional If True, ordering scheme is NESTED. Default: False (RING) min : float, scalar, optional The minimum range value max : float, scalar, optional The maximum range value flip : {'astro', 'geo'}, optional Defines the convention of projection : 'astro' (default, east towards left, west towards right) or 'geo' (east towards roght, west towards left) remove_dip : bool, optional If :const:`True`, remove the dipole+monopole remove_mono : bool, optional If :const:`True`, remove the monopole gal_cut : float, scalar, optional Symmetric galactic cut for the dipole/monopole fit. Removes points in latitude range [-gal_cut, +gal_cut] format : str, optional The format of the scale label. Default: '%g' cmap : a color map The colormap to use (see matplotlib.cm) badcolor : str Color to use to plot bad values bgcolor : str Color to use for background hold : bool, optional If True, replace the current Axes by a GnomonicAxes. use this if you want to have multiple maps on the same figure. Default: False sub : int or sequence, optional Use only a zone of the current figure (same syntax as subplot). Default: None reuse_axes : bool, optional If True, reuse the current Axes (should be a GnomonicAxes). This is useful if you want to overplot with a partially transparent colormap, such as for plotting a line integral convolution. Default: False margins : None or sequence, optional Either None, or a sequence (left,bottom,right,top) giving the margins on left,bottom,right and top of the axes. Values are relative to figure (0-1). Default: None notext: bool, optional If True: do not add resolution info text. Default=False return_projected_map : bool, optional if True returns the projected map in a 2d numpy array no_plot : bool, optional if True no figure will be created alpha : float, array-like or None An array containing the alpha channel, supports masked maps, see the `ma` function. If None, no transparency will be applied. See an example usage of the alpha channel transparency in the documentation under "Other tutorials" See Also -------- mollview, cartview, orthview, azeqview
def gnomview( map=None, fig=None, rot=None, coord=None, unit="", xsize=200, ysize=None, reso=1.5, title="Gnomonic view", nest=False, remove_dip=False, remove_mono=False, gal_cut=0, min=None, max=None, flip="astro", format="%.3g", cbar=True, cmap=None, badcolor="gray", bgcolor="white", norm=None, hold=False, sub=None, reuse_axes=False, margins=None, notext=False, return_projected_map=False, no_plot=False, alpha=None, ): """Plot a healpix map (given as an array) in Gnomonic projection. Parameters ---------- map : array-like The map to project, supports masked maps, see the `ma` function. If None, use a blank map, useful for overplotting. fig : None or int, optional A figure number. Default: None= create a new figure rot : scalar or sequence, optional Describe the rotation to apply. In the form (lon, lat, psi) (unit: degrees) : the point at longitude *lon* and latitude *lat* will be at the center. An additional rotation of angle *psi* around this direction is applied. coord : sequence of character, optional Either one of 'G', 'E' or 'C' to describe the coordinate system of the map, or a sequence of 2 of these to rotate the map from the first to the second coordinate system. unit : str, optional A text describing the unit of the data. Default: '' xsize : int, optional The size of the image. Default: 200 ysize : None or int, optional The size of the image. Default: None= xsize reso : float, optional Resolution (in arcmin). Default: 1.5 arcmin title : str, optional The title of the plot. Default: 'Gnomonic view' nest : bool, optional If True, ordering scheme is NESTED. Default: False (RING) min : float, scalar, optional The minimum range value max : float, scalar, optional The maximum range value flip : {'astro', 'geo'}, optional Defines the convention of projection : 'astro' (default, east towards left, west towards right) or 'geo' (east towards roght, west towards left) remove_dip : bool, optional If :const:`True`, remove the dipole+monopole remove_mono : bool, optional If :const:`True`, remove the monopole gal_cut : float, scalar, optional Symmetric galactic cut for the dipole/monopole fit. Removes points in latitude range [-gal_cut, +gal_cut] format : str, optional The format of the scale label. Default: '%g' cmap : a color map The colormap to use (see matplotlib.cm) badcolor : str Color to use to plot bad values bgcolor : str Color to use for background hold : bool, optional If True, replace the current Axes by a GnomonicAxes. use this if you want to have multiple maps on the same figure. Default: False sub : int or sequence, optional Use only a zone of the current figure (same syntax as subplot). Default: None reuse_axes : bool, optional If True, reuse the current Axes (should be a GnomonicAxes). This is useful if you want to overplot with a partially transparent colormap, such as for plotting a line integral convolution. Default: False margins : None or sequence, optional Either None, or a sequence (left,bottom,right,top) giving the margins on left,bottom,right and top of the axes. Values are relative to figure (0-1). Default: None notext: bool, optional If True: do not add resolution info text. Default=False return_projected_map : bool, optional if True returns the projected map in a 2d numpy array no_plot : bool, optional if True no figure will be created alpha : float, array-like or None An array containing the alpha channel, supports masked maps, see the `ma` function. If None, no transparency will be applied. See an example usage of the alpha channel transparency in the documentation under "Other tutorials" See Also -------- mollview, cartview, orthview, azeqview """ import pylab if map is None: map = np.zeros(12) + np.inf cbar = False # Ensure that the nside is valid nside = pixelfunc.get_nside(map) pixelfunc.check_nside(nside, nest=nest) if not (hold or sub or reuse_axes): f = pylab.figure(fig, figsize=(5.8, 6.4)) if not margins: margins = (0.075, 0.05, 0.075, 0.05) extent = (0.0, 0.0, 1.0, 1.0) elif hold: f = pylab.gcf() left, bottom, right, top = np.array(pylab.gca().get_position()).ravel() if not margins: margins = (0.0, 0.0, 0.0, 0.0) extent = (left, bottom, right - left, top - bottom) f.delaxes(pylab.gca()) elif reuse_axes: f = pylab.gcf() else: # using subplot syntax f = pylab.gcf() if hasattr(sub, "__len__"): nrows, ncols, idx = sub else: nrows, ncols, idx = sub // 100, (sub % 100) // 10, (sub % 10) if idx < 1 or idx > ncols * nrows: raise ValueError("Wrong values for sub: %d, %d, %d" % (nrows, ncols, idx)) c, r = (idx - 1) % ncols, (idx - 1) // ncols if not margins: margins = (0.01, 0.0, 0.0, 0.02) extent = ( c * 1.0 / ncols, 1.0 - (r + 1) * 1.0 / nrows, 1.0 / ncols, 1.0 / nrows, ) if not reuse_axes: extent = ( extent[0] + margins[0], extent[1] + margins[1], extent[2] - margins[2] - margins[0], extent[3] - margins[3] - margins[1], ) # f=pylab.figure(fig,figsize=(5.5,6)) # Starting to draw : turn interactive off wasinteractive = pylab.isinteractive() pylab.ioff() try: map = pixelfunc.ma_to_array(map) if reuse_axes: ax = f.gca() else: ax = PA.HpxGnomonicAxes( f, extent, coord=coord, rot=rot, format=format, flipconv=flip ) f.add_axes(ax) if remove_dip: map = pixelfunc.remove_dipole(map, gal_cut=gal_cut, nest=nest, copy=True) elif remove_mono: map = pixelfunc.remove_monopole(map, gal_cut=gal_cut, nest=nest, copy=True) img = ax.projmap( map, nest=nest, coord=coord, vmin=min, vmax=max, xsize=xsize, ysize=ysize, reso=reso, cmap=cmap, norm=norm, badcolor=badcolor, bgcolor=bgcolor, alpha=alpha, ) if cbar: im = ax.get_images()[0] b = im.norm.inverse(np.linspace(0, 1, im.cmap.N + 1)) v = np.linspace(im.norm.vmin, im.norm.vmax, im.cmap.N) mappable = plt.cm.ScalarMappable( norm=matplotlib.colors.Normalize(vmin=im.norm.vmin, vmax=im.norm.vmax), cmap=cmap, ) if matplotlib.__version__ >= "0.91.0": cb = f.colorbar( mappable, ax=ax, orientation="horizontal", shrink=0.5, aspect=25, ticks=PA.BoundaryLocator(), pad=0.08, fraction=0.1, boundaries=b, values=v, format=format, ) else: cb = f.colorbar( mappable, orientation="horizontal", shrink=0.5, aspect=25, ticks=PA.BoundaryLocator(), pad=0.08, fraction=0.1, boundaries=b, values=v, format=format, ) cb.solids.set_rasterized(True) ax.set_title(title) if not notext: ax.text( -0.07, 0.02,
(map=None, fig=None, rot=None, coord=None, unit='', xsize=200, ysize=None, reso=1.5, title='Gnomonic view', nest=False, remove_dip=False, remove_mono=False, gal_cut=0, min=None, max=None, flip='astro', format='%.3g', cbar=True, cmap=None, badcolor='gray', bgcolor='white', norm=None, hold=False, sub=None, reuse_axes=False, margins=None, notext=False, return_projected_map=False, no_plot=False, alpha=None)
[ 0.05381139740347862, -0.029012905433773994, 0.03941585123538971, 0.028436195105314255, -0.026506438851356506, 0.0018826224841177464, -0.03997037932276726, -0.004505539778620005, -0.023645073175430298, -0.03801843896508217, 0.0031746728345751762, 0.03043249621987343, 0.05594078451395035, 0.04733451083302498, -0.0005961175775155425, -0.0076358504593372345, -0.008024020120501518, -0.0007645554724149406, -0.010275403968989849, -0.047157060354948044, 0.030543401837348938, -0.06583356112241745, 0.04711269959807396, -0.00953233614563942, -0.03262842819094658, -0.028791094198822975, 0.018654322251677513, -0.005653413012623787, 0.01190017070621252, -0.007524944841861725, -0.04491676762700081, -0.05731601268053055, -0.01471717283129692, -0.033493489027023315, 0.007624759804457426, -0.0003512588154990226, 0.05021805688738823, -0.01734563522040844, -0.040036920458078384, 0.037419550120830536, 0.0019422343466430902, -0.036133043467998505, 0.025419563055038452, -0.03848424181342125, 0.045338209718465805, 0.012487970292568207, -0.02484285458922386, 0.045227304100990295, -0.010258767753839493, 0.034868720918893814, -0.019397389143705368, -0.06272820383310318, -0.07133448123931885, 0.031097929924726486, -0.012543423101305962, 0.06991489231586456, 0.04680216312408447, 0.09413667023181915, 0.08628455549478531, -0.092362180352211, -0.020362267270684242, -0.00867281761020422, -0.027282778173685074, -0.04172268509864807, 0.03458036482334137, 0.00873936153948307, 0.06587792932987213, -0.045914918184280396, 0.016713473945856094, -0.025597011670470238, -0.03136410191655159, 0.0676080510020256, -0.00033358324435539544, -0.012377064675092697, 0.04658035188913345, -0.011500910855829716, 0.00464971736073494, 0.0008761542267166078, 0.0317411832511425, 0.007768937386572361, -0.0036293857265263796, -0.0061940778978168964, 0.0393049456179142, -0.008462097495794296, -0.0036432489287108183, 0.012998135760426521, 0.047733768820762634, -0.011611816473305225, -0.02355634979903698, -0.015027708373963833, 0.003540661185979843, -0.007763391826301813, 0.05114966258406639, 0.02652861922979355, -0.06680953502655029, -0.014850259758532047, -0.016258761286735535, 0.02021809108555317, -0.006543430499732494, -0.016635838896036148, 0.01630312390625477, -0.03746391087770462, -0.03493526205420494, -0.028879817575216293, -0.011755993589758873, 0.01136782392859459, -0.0025660782121121883, 0.04857665300369263, -0.027970392256975174, 0.034314192831516266, -0.027748581022024155, 0.03551197424530983, -0.004186686128377914, -0.019253211095929146, 0.007303133606910706, 0.016458390280604362, -0.04185577481985092, -0.04662471264600754, -0.04402952268719673, 0.010258767753839493, -0.07563761621713638, 0.001759240054525435, -0.0026853017043322325, -0.05048422887921333, 0.0376635417342186, 0.045914918184280396, 0.016935285180807114, 0.024621043354272842, -0.0035073894541710615, -0.027371501550078392, 0.022314205765724182, -0.06326055526733398, -0.04354153946042061, 0.000762476003728807, 0.034757815301418304, -0.033027686178684235, 0.015304972417652607, -0.04538257047533989, -0.04542693495750427, 0.055009178817272186, -0.029123811051249504, 0.011051743291318417, -0.02814784087240696, 0.06712006777524948, -0.010996290482580662, -0.004067462868988514, 0.036354854702949524, -0.019597020000219345, -0.01085211243480444, -0.044295694679021835, 0.014450999908149242, -0.003970420453697443, -0.01598149724304676, -0.018576687201857567, -0.002736595692113042, -0.0744841992855072, 0.03921622037887573, 0.013242128305137157, 0.02976706251502037, 0.07980766892433167, -0.005567461252212524, -0.010552668012678623, 0.04857665300369263, 0.014761535450816154, 0.003718110267072916, -0.02159331925213337, 0.030388133600354195, -0.0186210498213768, -0.005162655841559172, 0.064325250685215, -0.015526783652603626, -0.05767090991139412, -0.030499039217829704, -0.030876118689775467, 0.04125688225030899, 0.04666907712817192, -0.033937111496925354, -0.0009406181052327156, -0.028214383870363235, 0.017378907650709152, 0.0309204813092947, -0.0012851186329498887, -0.00042248101090081036, 0.06605537235736847, -0.01747872307896614, 0.06410343945026398, 0.06219585984945297, -0.0036903838627040386, 0.05075040087103844, -0.002035117708146572, 0.01986319199204445, 0.04298701137304306, -0.036487940698862076, -0.04227721318602562, 0.07661359012126923, -0.03977074846625328, 0.02127169445157051, -0.04906463623046875, 0.05376703292131424, -0.004089644178748131, -0.05456555634737015, -0.028924180194735527, -0.029101628810167313, -0.05381139740347862, -0.04019219055771828, 0.025219934061169624, 0.021426960825920105, 0.044628411531448364, 0.06778550148010254, 0.026861336082220078, 0.022225482389330864, 0.0005590335349552333, -0.009992594830691814, -0.023179270327091217, 0.011229191906750202, -0.04252120479941368, -0.04582619294524193, 0.0188317708671093, -0.001603972166776657, 0.04884282499551773, -0.04296482726931572, 0.050972212105989456, 0.007325314916670322, 0.003851196961477399, -0.022225482389330864, -0.02732713893055916, 0.07097958028316498, 0.060022108256816864, 0.05585205927491188, -0.0629500150680542, 0.0089001739397645, 0.018188517540693283, -0.01839923858642578, -0.02721623331308365, 0.0035489790607243776, -0.07417366653680801, 0.024088695645332336, 0.03546760976314545, 0.0034325283486396074, 0.017146006226539612, -0.012266159057617188, -0.007136775180697441, -0.050040606409311295, 0.06490195542573929, -0.020861342549324036, 0.021304965019226074, -0.04209976643323898, 0.058425068855285645, -0.002969497349113226, 0.028813274577260017, -0.02262474223971367, -0.040857624262571335, -0.03788535296916962, 0.02193712815642357, 0.033049870282411575, -0.01895376667380333, -0.10283166915178299, -0.025330839678645134, 0.040746718645095825, -0.03231789171695709, -0.014550814405083656, -0.008290193974971771, -0.023378899320960045, 0.008545276708900928, 0.07253225892782211, -0.018476873636245728, 0.013186675496399403, 0.013253219425678253, -0.017800347879529, -0.01929757371544838, 0.1030978411436081, 0.1124139130115509, -0.04524948447942734, 0.002301291096955538, 0.004134006332606077, 0.03398147597908974, 0.04001474007964134, -0.05323468893766403, 0.07359695434570312, 0.011844717897474766, 0.0022624742705374956, -0.06042136996984482, -0.032340072095394135, 0.01407392043620348, -0.04374116659164429, -0.013475030660629272, 0.01678001694381237, 0.07275407016277313, 0.008816994726657867, 0.008933446370065212, 0.013641389086842537, 0.05123838782310486, -0.010408490896224976, 0.003221807535737753, -0.001371070509776473, -0.057981446385383606, -0.010602574795484543, 0.02848055772483349, -0.12084273993968964, -0.0006553827552124858, 0.0491977222263813, -0.049463897943496704, 0.018587779253721237, -0.036133043467998505, 0.03677629679441452, 0.048798464238643646, 0.012454698793590069, -0.013253219425678253, 0.04600364342331886, 0.015670960769057274, -0.0018909404752776027, 0.009521245956420898, -0.03713119402527809, 0.04294264689087868, -0.020207000896334648, 0.02943434566259384, 0.039349306374788284, -0.011390005238354206, 0.04746759682893753, 0.0274824071675539, 0.0007541580707766116, -0.020262453705072403, -0.014694991521537304, -0.020872434601187706, 0.03220698609948158, -0.05549716204404831, 0.03296114504337311, 0.023822521790862083, 0.08118289709091187, 0.02539738267660141, -0.04312009736895561, 0.03220698609948158, -0.05594078451395035, -0.02930125966668129, -0.008401098661124706, -0.04999624565243721, -0.010375218465924263, -0.030365953221917152, -0.02652861922979355, -0.06033264473080635, 0.014683901332318783, 0.0009121985640376806, -0.05088349059224129, 0.04391861706972122, -0.022547109052538872, 0.03460254520177841, -0.019674653187394142, -0.005548052489757538, -0.020495355129241943, -0.04666907712817192, -0.0342254675924778, 0.030255047604441643, -0.00781329907476902, 0.001976892352104187, -0.00351848010905087, 0.08881320059299469, 0.05287978798151016, -0.014694991521537304, -0.03129756078124046, 0.00983178149908781, 0.04950825870037079, 0.005667276214808226, -0.06849529594182968, -0.020828071981668472, -0.0549648143351078, -0.01712382398545742, -0.005695002619177103, -0.02839183248579502, 0.04813303053379059, -0.03788535296916962, 0.00832901056855917, -0.004835484083741903, -0.01826615259051323, 0.01063030119985342, 0.01419591624289751, 0.0033576670102775097, 0.009726420976221561, 0.00866727251559496, -0.045094218105077744, -0.0055785514414310455, -0.014916802756488323, -0.03702028840780258, -0.01955265738070011, -0.005647867452353239, -0.01860995963215828, -0.008301284164190292, 0.030654307454824448, 0.038084983825683594, -0.040946345776319504, -0.058779966086149216, -0.01085211243480444, -0.039238400757312775, 0.03506835177540779, 0.021449143067002296, 0.011157102882862091, 0.010669118724763393, 0.00833455566316843, 0.03906095027923584, -0.026462076231837273, 0.020550807937979698, 0.04161177948117256, -0.0376635417342186, 0.005961176007986069, 0.0063659814186394215, 0.02273564785718918, -0.05483172833919525, -0.0162143986672163, -0.046358540654182434, 0.009726420976221561, -0.028591463342308998, 0.06694261729717255, -0.009227345697581768, -0.040258731693029404, 0.0009440839057788253, -0.02907944843173027, -0.017534175887703896, -0.08051746338605881, -0.024865034967660904, -0.00993714202195406, -0.004785576369613409, -0.011500910855829716, 0.025197751820087433, 0.02366725541651249, 0.03506835177540779, 0.03881695866584778, -0.033049870282411575, -0.0005832941387780011, 0.0037652449682354927, -0.015338243916630745, 0.04161177948117256, -0.03207390010356903, -0.026950061321258545, 0.04551565647125244, -0.018210699781775475, -0.012776324525475502, -0.016591478139162064, 0.011578544974327087, 0.023378899320960045, 0.010414035990834236, 0.026728250086307526, 0.005456555634737015, -0.0015859500272199512, -0.0041201431304216385, -0.05203690752387047, 0.013940833508968353, 0.03535670414566994, -0.040946345776319504, -0.0007059834315441549, 0.010669118724763393, -0.009726420976221561, 0.029922330752015114, 0.055896420031785965, -0.023578530177474022, 0.009499064646661282, 0.08721616119146347, -0.06388162821531296, -0.07275407016277313, 0.017323454841971397, 0.01516079530119896, 0.030144141986966133, -0.028547100722789764, 0.0317411832511425, -0.04675779864192009, 0.010314220562577248, 0.03708683326840401, 0.06068754196166992, 0.06365981698036194, 0.01190017070621252, -0.051903821527957916, -0.013109041377902031, -0.004680216312408447, -0.015903862193226814, -0.017489813268184662, -0.01528279110789299, 0.0012899707071483135, 0.01361920777708292, -0.009144166484475136, 0.06374853849411011, 0.001425136928446591, -0.015770776197314262, 0.006055445875972509, 0.02482067234814167, 0.005620141047984362, -0.016136765480041504, -0.02402215264737606, 0.029678339138627052, 0.04207758232951164, -0.02182622253894806, -0.03726428002119064, -0.01430682186037302, -0.051992543041706085, -0.018110884353518486, -0.04285392165184021, 0.037042468786239624, -0.007957477122545242, 0.0723104476928711, -0.0007215795340016484, -0.063482366502285, 0.005542507395148277, -0.05456555634737015, 0.03983728960156441, 0.014994436874985695, -0.01534933503717184, 0.005442692432552576, -0.024177420884370804, 0.0063327099196612835, 0.005392784718424082, 0.030853938311338425, 0.0015194066800177097, 0.01333085261285305, -0.04287610575556755, -0.06694261729717255, 0.08508677780628204, -0.0335378535091877, 0.01223288755863905, -0.01396301481872797, -0.03262842819094658, -0.047511957585811615, -0.04101289063692093, -0.004095189273357391, 0.025574831292033195, -0.001445931731723249, -0.0002642672334332019, 0.028325289487838745, -0.011988895013928413, 0.01896485686302185, 0.012277250178158283, 0.014406637288630009, 0.0042282757349312305, 0.0037458366714417934, -0.03265060856938362, -0.03151937201619148, -0.006216258741915226, 0.03615522384643555, 0.03375966474413872, 0.004122915677726269, -0.022669104859232903, -0.08277993649244308, 0.03127538040280342, -0.031208835542201996, -0.01895376667380333, -0.015615507960319519, 0.08371154963970184, -0.016491662710905075, 0.027060966938734055, 0.03619958832859993, 0.07164501398801804, -0.0416339635848999, 0.06086499243974686, -0.020395539700984955, 0.004946389701217413, 0.023157089948654175, 0.0065378849394619465, -0.020273543894290924, 0.04542693495750427, 0.11409968137741089, 0.0309204813092947, -0.033493489027023315, -0.03375966474413872, -0.022314205765724182, -0.015415878035128117, 0.01966356299817562, 0.014406637288630009, 0.027548950165510178, -0.030499039217829704, 0.017977798357605934, 0.0026894607581198215, 0.0645914226770401, 0.01630312390625477, -0.028347471728920937, 0.009593334048986435, -0.011345642618834972, -0.012565604411065578, 0.01746763102710247, -0.031319741159677505, 0.02965615689754486, 0.0684509351849556, -0.002150182379409671, 0.011134922504425049, -0.03149719163775444, -0.022225482389330864, 0.015526783652603626, 0.04631417989730835, 0.053145963698625565, 0.021548958495259285, 0.06978180259466171, 0.02322363294661045, 0.057271651923656464, -0.0003996067389380187, -0.06450269371271133, 0.02380034141242504, -0.012887230142951012, 0.05966721102595329, 0.0016261533601209521, -0.030787393450737, -0.014085010625422001, -0.019219940528273582, -0.0014736581360921264, -0.001189462491311133, 0.059001777321100235, 0.01028649415820837, -0.0162143986672163, -0.03504616767168045, -0.052436165511608124, -0.042698655277490616, -0.03207390010356903, 0.06858402490615845, 0.042809560894966125, -0.02919035404920578, -0.03937148675322533, -0.017024008557200432, 0.014972255565226078, -0.03553415462374687, -0.03733082488179207, -0.05225871875882149, -0.11809228360652924, -0.039815109223127365, 0.07129012048244476, 0.03391493111848831, 0.05793708562850952, 0.006465796381235123, 0.008761541917920113, -0.04345281422138214, 0.022225482389330864, -0.009454702027142048, -0.024643223732709885, 0.029012905433773994, -0.00809610914438963, -0.013475030660629272, 0.0530572384595871, 0.009327161125838757, 0.01385210920125246, -0.04910900071263313, -0.03932712599635124, 0.004031418357044458, -0.03708683326840401, -0.04192231595516205, 0.022935278713703156, 0.021227331832051277, 0.08149343729019165, 0.008822540752589703, -0.06308310478925705, 0.04416260868310928, 0.026484256610274315, 0.03367093950510025, 0.02965615689754486, 0.005636777263134718, 0.010746752843260765, 0.06902764737606049, -0.025530468672513962, 0.015482421964406967, 0.03939366713166237, 0.013142313808202744, -0.001741217914968729, -0.003426983021199703, 0.003651566803455353, -0.04915336146950722, -0.039482392370700836, -0.05385575816035271, -0.0010841022012755275, 0.010147862136363983, 0.0032523067202419043, 0.0014154326636344194, -0.0018743046093732119, 0.010785569436848164, -0.05043986812233925, 0.018798498436808586, -0.025907548144459724, -0.013497211039066315, 0.0003853969683405012, -0.005165428388863802, -0.045227304100990295, -0.029478708282113075, -0.0033465763553977013, -0.019031399860978127, -0.01885395124554634, 0.055674608796834946, 0.047511957585811615, -0.015194066800177097, 0.028103478252887726, 0.04434005916118622, 0.023933427408337593, -0.022591469809412956, 0.032717153429985046, 0.02424396388232708, 0.030277227982878685, 0.005337331909686327, -0.05390012264251709, 0.01384101901203394, 0.020306814461946487, 0.02470976673066616, 0.03994819521903992, 0.05696111544966698, -0.010885384865105152, 0.026683887466788292, 0.04467277601361275, -0.0728427991271019, -0.015881681814789772, -0.03209608048200607, 0.013563754968345165, -0.01344175823032856, -0.033382583409547806, -0.024865034967660904, 0.043962977826595306, -0.032694969326257706, 0.013685750775039196, -0.030521221458911896, 0.002639553276821971, -0.03921622037887573, -0.03067648783326149, -0.006088717374950647, 0.07151193171739578, 0.03134192153811455, -0.042565569281578064, -0.024177420884370804, -0.0706246867775917, -0.036266129463911057, 0.03171900287270546, -0.02342326194047928, -0.039704203605651855, 0.03134192153811455, 0.01459517702460289, 0.01309795118868351, 0.05279106646776199, 0.03593341261148453, 0.0014972256030887365, -0.00022302422439679503, -0.07736774533987045, -0.04402952268719673, -0.016846559941768646, -0.02333453856408596, -0.01608131267130375, -0.057049840688705444, -0.012310521677136421, -0.03939366713166237, 0.021105336025357246, -0.018787408247590065, -0.04551565647125244, -0.07989639043807983, -0.02839183248579502, -0.015804048627614975, -0.08504240959882736, -0.01619221828877926, -0.03433637320995331, -0.015105342492461205, 0.015083161182701588, -0.01584840938448906, 0.019164487719535828, -0.03688720241189003, 0.06578920036554337, 0.05846943333745003, 0.037619177252054214, -0.0016289260238409042, 0.02035117708146572, -0.00041381650953553617, 0.01908685266971588, 0.0073197693563997746, 0.048665378242731094, 0.05287978798151016, -0.009105349890887737, -0.04817739129066467, 0.0220591239631176, -0.05917922779917717, -0.04103507101535797, 0.04449532553553581, 0.04323100298643112, -0.04915336146950722, -0.012842868454754353 ]
37,686
healpy.visufunc
graticule
Draw a graticule on the current Axes. Parameters ---------- dpar, dmer : float, scalars Interval in degrees between meridians and between parallels coord : {'E', 'G', 'C'} The coordinate system of the graticule (make rotation if needed, using coordinate system of the map if it is defined). local : bool If True, draw a local graticule (no rotation is performed, useful for a gnomonic view, for example) Notes ----- Other keyword parameters will be transmitted to the projplot function. See Also -------- delgraticules
def graticule(dpar=None, dmer=None, coord=None, local=None, **kwds): """Draw a graticule on the current Axes. Parameters ---------- dpar, dmer : float, scalars Interval in degrees between meridians and between parallels coord : {'E', 'G', 'C'} The coordinate system of the graticule (make rotation if needed, using coordinate system of the map if it is defined). local : bool If True, draw a local graticule (no rotation is performed, useful for a gnomonic view, for example) Notes ----- Other keyword parameters will be transmitted to the projplot function. See Also -------- delgraticules """ import pylab f = pylab.gcf() wasinteractive = pylab.isinteractive() pylab.ioff() try: if len(f.get_axes()) == 0: ax = PA.HpxMollweideAxes(f, (0.02, 0.05, 0.96, 0.9), coord=coord) f.add_axes(ax) ax.text( 0.86, 0.05, ax.proj.coordsysstr, fontsize=14, fontweight="bold", transform=ax.transAxes, ) for ax in f.get_axes(): if isinstance(ax, PA.SphericalProjAxes): ax.graticule(dpar=dpar, dmer=dmer, coord=coord, local=local, **kwds) finally: pylab.draw() if wasinteractive: pylab.ion()
(dpar=None, dmer=None, coord=None, local=None, **kwds)
[ 0.06807004660367966, 0.031525012105703354, 0.031674861907958984, 0.06368689239025116, -0.009730982594192028, -0.017054975032806396, -0.03025127202272415, -0.06106448918581009, -0.07477590441703796, 0.009843370877206326, -0.005226071458309889, 0.0006474053370766342, 0.031037993729114532, 0.06323733180761337, -0.02122271992266178, -0.0310567244887352, -0.07091722637414932, -0.003533217590302229, -0.05694357305765152, -0.022533919662237167, 0.03729429468512535, -0.04885159060359001, 0.0975533276796341, 0.056868646293878555, -0.03485920652747154, -0.06162643060088158, 0.010695651173591614, 0.033454347401857376, -0.03467189148068428, 0.004448716528713703, 0.02242153137922287, -0.0029736158903688192, -0.06526032835245132, -0.022402800619602203, -0.007623695302754641, 0.040797073394060135, 0.024987738579511642, 0.014029847458004951, -0.024725498631596565, 0.032911136746406555, 0.028790220618247986, 0.09425659477710724, 0.08346728980541229, -0.015209928154945374, 0.017223557457327843, -0.007103898096829653, 0.0804702565073967, 0.05728073790669441, -0.05499550327658653, 0.016305716708302498, 0.05267280340194702, -0.02347049117088318, -0.03731302544474602, -0.010751845315098763, 0.03517764061689377, 0.010779942385852337, 0.0226275771856308, 0.02862163819372654, 0.08279296010732651, -0.06076478585600853, 0.01733594574034214, -0.016296351328492165, -0.023676538839936256, -0.013580292463302612, 0.04105931147933006, -0.028284471482038498, 0.015284853987395763, -0.00631249463185668, 0.052110861986875534, -0.011444908566772938, -0.027516482397913933, 0.04132155328989029, 0.00802173838019371, -0.06042762100696564, 0.06567241996526718, 0.010452142916619778, 0.017748037353157997, -0.02272123470902443, 0.019237186759710312, 0.006485760677605867, 0.0002585816546343267, 0.009965125471353531, 0.018188226968050003, 0.060240305960178375, -0.014245258644223213, 0.02272123470902443, 0.015565825626254082, -0.03746287524700165, 0.03572085127234459, -0.051661305129528046, 0.043232157826423645, 0.007178823929280043, 0.013879995793104172, 0.022440262138843536, -0.02967059798538685, -0.025530951097607613, -0.038361985236406326, 0.0632748007774353, -0.020229952409863472, -0.006612197495996952, -0.009693519212305546, -0.037275563925504684, -0.033754050731658936, -0.012709280475974083, 0.026017967611551285, -0.013280590064823627, 0.027966037392616272, -0.004343352280557156, 0.03596436232328415, 0.048289649188518524, -0.025868115946650505, 0.02712312340736389, -0.055932074785232544, 0.012653086334466934, -0.05510789155960083, 0.08721357583999634, -0.0592288076877594, -0.054096393287181854, -0.011501102708280087, -0.0026364498771727085, -0.06762049347162247, -0.004422960802912712, -0.023695269599556923, 0.019761666655540466, 0.05683118477463722, 0.012980886735022068, 0.017167363315820694, -0.006982143502682447, 0.01366458460688591, 0.01808520406484604, 0.04450589790940285, 0.04686605930328369, -0.012671818025410175, -0.08399176597595215, -0.004415936768054962, -0.009627959690988064, 0.006134545896202326, -0.0005171633092686534, -0.007890618406236172, 0.026917077600955963, 0.03585197404026985, 0.045067839324474335, -0.03279874846339226, 0.054283708333969116, 0.015631385147571564, 0.035046521574258804, -0.026373865082859993, 0.03274255245923996, -0.019312113523483276, 0.05053741857409477, 0.025137590244412422, -0.04180857166647911, 0.02122271992266178, -0.04038498178124428, -0.021316377446055412, -0.007600280921906233, -0.01679273508489132, 0.06481077522039413, 0.027066927403211594, 0.015406607650220394, -0.009009821340441704, -0.05372176319360733, 0.07867204397916794, 0.060839712619781494, 0.012952789664268494, -0.03126277029514313, 0.03500905632972717, -0.0070336549542844296, -0.017719941213726997, 0.0011613491224125028, -0.011894463561475277, -0.07807263731956482, -0.07230335474014282, 0.010639457032084465, 0.016951952129602432, -0.027366630733013153, -0.04060975834727287, 0.05267280340194702, -0.010274194180965424, -0.04975070059299469, 0.05094951018691063, -0.0030766387935727835, 0.07777293026447296, -0.019218456000089645, -0.00020150930504314601, 0.028003500774502754, -0.01577187143266201, -0.04244543984532356, 0.020716970786452293, -0.002819081535562873, 0.0061064488254487514, 0.009918296709656715, -0.04023512825369835, -0.013851898722350597, 0.010470873676240444, 0.012690549716353416, 0.025924310088157654, -0.02757267653942108, -0.008803775534033775, 0.01083613745868206, -0.021747199818491936, 0.007249066606163979, -0.042932458221912384, 0.0010518872877582908, -0.021297644823789597, 0.01983659341931343, -0.019237186759710312, 0.01597791723906994, 0.029820449650287628, 0.03830579295754433, 0.059004031121730804, 0.004022576380521059, -0.04244543984532356, 0.05566983297467232, 0.007726718205958605, -0.034091219305992126, -0.05338459834456444, 0.040459904819726944, 0.009028553031384945, 0.021541154012084007, 0.007028972264379263, -0.04694098234176636, 0.07091722637414932, -0.008775678463280201, -0.00550704263150692, -0.045217692852020264, 0.025568412616848946, -0.010470873676240444, -0.03274255245923996, -0.03487793728709221, 0.04270767793059349, -0.011070280335843563, 0.025268709287047386, 0.0015792943304404616, 0.041733644902706146, -0.04072214663028717, -0.033304497599601746, 0.035102713853120804, 0.011744611896574497, 0.06908154487609863, -0.03691966459155083, 0.01817886158823967, -0.00525885121896863, 0.02530617266893387, 0.026373865082859993, 0.10302291065454483, 0.0013580293161794543, 0.0660470500588417, -0.006153277587145567, 0.021466229110956192, -0.07485082745552063, 0.04300738126039505, -0.02678595669567585, 0.009187770076096058, 0.03070082701742649, 0.032611433416604996, -0.04975070059299469, 0.0049450998194515705, 0.03124403953552246, -0.01944323256611824, 0.02217802219092846, -0.0004516032640822232, 0.026205282658338547, 0.024837886914610863, 0.07822248339653015, 0.021915782243013382, -0.006120497360825539, 0.028134619817137718, -0.018497295677661896, 0.004273109138011932, -0.009618593379855156, 0.043232157826423645, 0.028003500774502754, -0.019255919381976128, 0.022140560671687126, 0.02826574072241783, -0.0054461658000946045, 0.012194165959954262, 0.06619690358638763, 0.028340665623545647, -0.044168733060359955, -0.03738795220851898, -0.001903582364320755, 0.05443355813622475, -0.10234858095645905, 0.03223680332303047, 0.028134619817137718, 0.005624114535748959, 0.003907846286892891, 0.005675625987350941, -0.04120916500687599, -0.016446202993392944, -0.04394395276904106, 0.01110774278640747, 0.05844208598136902, -0.01964927837252617, 0.005525774322450161, -0.007918715476989746, -0.02940835803747177, -0.02663610503077507, 0.06690869480371475, -0.049488458782434464, 0.023526687175035477, -0.04255782812833786, -0.06739571690559387, 0.0028518615290522575, -0.008269930258393288, -0.06293763220310211, 0.04855188727378845, 0.00785315502434969, -0.02558714523911476, 0.032611433416604996, -0.0009365719160996377, 0.0267297625541687, 0.0036034605000168085, 0.00972161628305912, 0.0069119008257985115, -0.023938778787851334, 0.023545417934656143, -0.012531331740319729, 0.003870383370667696, -0.020229952409863472, -0.004828028380870819, 0.03339815512299538, 0.015444071032106876, -0.015097538940608501, -0.00777354696765542, 0.06162643060088158, 0.06990572810173035, 0.05450848489999771, -0.0648857057094574, -0.022702503949403763, -0.05154891684651375, -0.015902990475296974, -0.0064810775220394135, -0.01586552895605564, 0.04165871813893318, -0.06537272036075592, -0.008180955424904823, -0.09013567864894867, 0.05338459834456444, -0.03785623610019684, -0.02762887068092823, 0.04735307767987251, -0.02991410717368126, 0.05214832350611687, 0.01029292494058609, -0.007146043702960014, 0.03862422704696655, -0.017167363315820694, -0.014095406979322433, 0.027010733261704445, -0.0310567244887352, -0.017719941213726997, -0.021709736436605453, 0.030569707974791527, 0.027160584926605225, 0.0027043514419347048, -0.021147793158888817, 0.011969389393925667, 0.014779104851186275, -0.06702108681201935, -0.013683315366506577, 0.06263793259859085, -0.06297509372234344, -0.02946455217897892, -0.049975477159023285, -0.019012410193681717, 0.08069503307342529, -0.012765475548803806, 0.025137590244412422, -0.008508755825459957, -0.011744611896574497, 0.03525256738066673, -0.010161804966628551, 0.08114459365606308, 0.062075987458229065, 0.032311730086803436, -0.02841559238731861, -0.029033729806542397, -0.007707986980676651, -0.026373865082859993, 0.05709342285990715, 0.017748037353157997, -0.003987454809248447, 0.03253650665283203, 0.011566663160920143, -0.002484257100149989, -0.05743059143424034, -0.018862558528780937, 0.019911518320441246, -0.005872305948287249, 0.084291473031044, 0.00007119409565348178, -0.06720840185880661, -0.007338040973991156, 0.05132414028048515, 0.026224013417959213, -0.04978816211223602, 0.02275869809091091, 0.029576940461993217, -0.04192095994949341, -0.052747730165719986, -0.025212515145540237, -0.031525012105703354, -0.06964349001646042, -0.02122271992266178, -0.029539478942751884, 0.01024609711021185, -0.012746743857860565, 0.06263793259859085, -0.030532244592905045, -0.03706951439380646, -0.006326543167233467, -0.002118994016200304, -0.006733952090144157, -0.01537851057946682, -0.02172846905887127, 0.05713088810443878, 0.043382011353969574, 0.008190321736037731, -0.04458082467317581, 0.0011303252540528774, 0.05877925455570221, 0.023770194500684738, -0.023788927122950554, -0.03536495566368103, -0.020623313263058662, -0.04547993093729019, 0.004708615131676197, -0.010030684992671013, -0.03343561664223671, 0.020229952409863472, -0.0075721838511526585, -0.001816949457861483, -0.05128667876124382, 0.006438931915909052, 0.11193907260894775, 0.02380765788257122, -0.04068468511104584, 0.0717039480805397, -0.028396859765052795, -0.04102184996008873, -0.04596694931387901, 0.004996611271053553, 0.013926824554800987, -0.03540241718292236, 0.0027628871612250805, -0.02524997852742672, 0.04345693811774254, 0.043569326400756836, 0.06675884872674942, 0.0016390008386224508, 0.020398536697030067, 0.006050254683941603, -0.05941612273454666, 0.029127387329936028, -0.06140165403485298, 0.01715799793601036, 0.06166389584541321, 0.023994972929358482, -0.021410033106803894, 0.04596694931387901, 0.06818243861198425, -0.03594563156366348, -0.03695712611079216, -0.01321502961218357, 0.007722035516053438, -0.022046903148293495, -0.04855188727378845, -0.012137971818447113, 0.03208695352077484, -0.04244543984532356, -0.02811588905751705, 0.0025123541709035635, 0.00038575055077672005, -0.01160412561148405, 0.029108654707670212, -0.00798895861953497, -0.02440706454217434, -0.057018496096134186, 0.019480695948004723, 0.03195583447813988, 0.005174560006707907, -0.017026877030730247, 0.017897889018058777, -0.01227845810353756, -0.019274650141596794, -0.03607675060629845, 0.011276326142251492, -0.03437218815088272, -0.03184344619512558, -0.0025966456159949303, 0.024238480255007744, -0.018497295677661896, 0.050462495535612106, 0.01718609407544136, -0.08916164934635162, -0.01835680939257145, 0.0004120916419196874, 0.03899885341525078, 0.021934514865279198, -0.007651792373508215, 0.032817479223012924, 0.036582499742507935, -0.032667629420757294, 0.010199268348515034, 0.026224013417959213, -0.01983659341931343, 0.025025201961398125, -0.04990055039525032, -0.04285753145813942, 0.02976425550878048, 0.020098833367228508, -0.01811330020427704, -0.04222066327929497, -0.024631841108202934, 0.02569953352212906, -0.02907119132578373, -0.019068604335188866, 0.03472808748483658, 0.03755653277039528, 0.01167905144393444, 0.031974565237760544, -0.04289499297738075, 0.04147140309214592, -0.04694098234176636, -0.04870174080133438, -0.018038375303149223, 0.020698240026831627, 0.007581549696624279, 0.01757945492863655, -0.020323609933257103, 0.042482901364564896, 0.004879539832472801, 0.04963831230998039, -0.03918616846203804, -0.05053741857409477, 0.006813560612499714, -0.08459117263555527, 0.0008218418806791306, 0.0021412374917417765, 0.07545023411512375, 0.0058207944966852665, 0.02052965573966503, -0.012175435200333595, 0.04772770404815674, -0.025474755093455315, 0.032124415040016174, -0.0338851734995842, 0.001972654601559043, -0.008714801631867886, -0.05750551447272301, -0.0037369218189269304, 0.03873661532998085, 0.05323474854230881, 0.00016360740119125694, 0.04090946167707443, -0.019134163856506348, 0.009028553031384945, -0.03208695352077484, 0.030775753781199455, 0.002657522913068533, 0.055932074785232544, 0.05683118477463722, -0.06012791767716408, 0.02079189568758011, 0.002375380601733923, 0.03622660040855408, -0.03452204167842865, 0.003228831570595503, 0.002203285461291671, 0.026074161753058434, -0.010264827869832516, 0.0022067974787205458, -0.0017584137385711074, 0.01522865891456604, -0.02064204402267933, -0.060689859092235565, -0.03040112368762493, -0.05282265692949295, 0.0033482445869594812, -0.05525774136185646, -0.007136677857488394, 0.02699200250208378, 0.04727815091609955, -0.018216323107481003, 0.028396859765052795, 0.017054975032806396, 0.0011941292323172092, 0.016689712181687355, -0.010985988192260265, 0.04068468511104584, 0.022983474656939507, -0.04016020521521568, 0.008686704561114311, 0.0003043858741875738, 0.005956597160547972, 0.0070008751936256886, 0.05117429047822952, -0.07301514595746994, 0.01775740273296833, 0.004233304876834154, -0.00866797287017107, -0.001828656648285687, -0.0013112006708979607, 0.023077132180333138, -0.0028401543386280537, -0.03731302544474602, -0.033754050731658936, -0.059940602630376816, -0.01658668927848339, -0.02356414869427681, 0.028584174811840057, -0.00907538179308176, -0.05585714802145958, -0.04480560123920441, 0.007473843637853861, 0.06312494724988937, 0.01321502961218357, 0.011051548644900322, 0.024444526061415672, -0.03416614234447479, -0.014966418966650963, -0.007754815276712179, -0.007951495237648487, 0.026280207559466362, -0.0721535012125969, 0.05214832350611687, 0.0001279005955439061, -0.0691564679145813, 0.017719941213726997, -0.03234919533133507, -0.05398400500416756, 0.018319346010684967, -0.018103934824466705, -0.009656056761741638, 0.0005853574257344007, 0.004109209403395653, -0.04057229682803154, -0.05555744469165802, 0.023770194500684738, 0.020866822451353073, -0.03862422704696655, 0.038961391896009445, 0.03154374286532402, 0.016062207520008087, 0.013636486604809761, 0.06717094033956528, -0.03993542492389679, -0.010770577006042004, 0.030344929546117783, -0.006874437909573317, -0.01917162723839283, 0.03596436232328415, -0.012212897650897503, -0.045854561030864716, -0.05596953630447388, -0.03729429468512535, 0.01872207224369049, 0.010620725341141224, -0.016727173700928688, 0.005174560006707907, -0.027347899973392487, -0.010395947843790054, -0.032761286944150925, -0.029989032074809074, 0.02008010260760784, -0.047915019094944, -0.03298606351017952, -0.020005175843834877, -0.05862940102815628, 0.03294859826564789, -0.04341947287321091, -0.043232157826423645, -0.024837886914610863, 0.038474373519420624, -0.02657991088926792, -0.019087335094809532, -0.0024748912546783686, -0.029745524749159813, -0.004605592228472233, -0.03918616846203804, 0.032555241137742996, 0.03903631865978241, 0.044318582862615585, -0.020923016592860222, -0.06702108681201935, 0.011997486464679241, 0.01998644508421421, 0.043869029730558395, 0.028434323146939278, 0.03485920652747154, -0.022046903148293495, -0.00964669045060873, -0.018431734293699265, -0.042295586317777634, 0.056381627917289734, -0.017289116978645325, 0.019405769184231758, 0.0059425486251711845, 0.018216323107481003, 0.011210765689611435, 0.10961637645959854, -0.019874056801199913, -0.025830652564764023, 0.03184344619512558, 0.04147140309214592, -0.003245221683755517, -0.04188349470496178, 0.00206162896938622, 0.02832193486392498, 0.03219934180378914, -0.0010700334096327424, 0.011585394851863384, -0.08803775906562805, 0.01847856305539608, 0.03632025793194771, 0.002994688693434, -0.06589719653129578, -0.023152057081460953, -0.019855324178934097, 0.008644558489322662, -0.038961391896009445, 0.04334454983472824, -0.020923016592860222, 0.05271026864647865, -0.05286011844873428, -0.024688035249710083, 0.0072865295223891735, -0.07009304314851761, 0.03982303664088249, -0.013926824554800987, 0.047915019094944, 0.028996266424655914, 0.029389627277851105, -0.021915782243013382, 0.028340665623545647, -0.06267539411783218, -0.02217802219092846, -0.011070280335843563, -0.019874056801199913, -0.017794866114854813, -0.10429664701223373, -0.035739585757255554, 0.02669229917228222, -0.03055097535252571, 0.062038522213697433, -0.056868646293878555, 0.027347899973392487, 0.02401370368897915, 0.0012175434967502952, 0.032667629420757294, 0.04862681403756142, -0.03680727630853653, -0.05064981058239937, 0.02064204402267933, -0.012409578077495098, 0.017111169174313545, -0.045405007898807526, -0.04480560123920441, 0.010648822411894798, -0.011126474477350712, -0.016877025365829468, 0.007890618406236172, 0.013542830012738705, -0.00251001282595098, -0.008864653296768665 ]
37,687
healpy.pixelfunc
isnpixok
Return :const:`True` if npix is a valid value for healpix map size, :const:`False` otherwise. Parameters ---------- npix : int, scalar or array-like integer value to be tested Returns ------- ok : bool, scalar or array-like :const:`True` if given value is a valid number of pixel, :const:`False` otherwise Examples -------- >>> import healpy as hp >>> hp.isnpixok(12) True >>> hp.isnpixok(768) True >>> hp.isnpixok([12, 768, 1002]) array([ True, True, False], dtype=bool)
def isnpixok(npix): """Return :const:`True` if npix is a valid value for healpix map size, :const:`False` otherwise. Parameters ---------- npix : int, scalar or array-like integer value to be tested Returns ------- ok : bool, scalar or array-like :const:`True` if given value is a valid number of pixel, :const:`False` otherwise Examples -------- >>> import healpy as hp >>> hp.isnpixok(12) True >>> hp.isnpixok(768) True >>> hp.isnpixok([12, 768, 1002]) array([ True, True, False], dtype=bool) """ nside = np.sqrt(np.asarray(npix) / 12.0) return nside == np.floor(nside)
(npix)
[ -0.0035935761407017708, -0.04984536021947861, 0.008581270463764668, 0.016224104911088943, 0.0314556360244751, 0.08467575162649155, -0.00870759878307581, 0.007633811794221401, -0.006844262592494488, -0.022973623126745224, 0.05168613791465759, 0.016792580485343933, 0.0515778586268425, -0.015619536861777306, 0.024904632940888405, -0.013950204476714134, 0.010142321698367596, 0.01668429933488369, 0.04363724961876869, -0.011405600234866142, -0.011495834216475487, 0.0322316475212574, 0.019562769681215286, 0.0015305973356589675, -0.021223079413175583, 0.05706409737467766, 0.04334849864244461, 0.012109426781535149, 0.039739131927490234, -0.004238750785589218, -0.07016609609127045, 0.03203313425183296, 0.040533192455768585, 0.06312783062458038, 0.011216108687222004, 0.052444104105234146, 0.026853691786527634, -0.009952830150723457, -0.03031868487596512, -0.013823876157402992, -0.0225765909999609, 0.02254049852490425, 0.031166885048151016, 0.03833147883415222, -0.03188876062631607, 0.014175789430737495, 0.03571468964219093, 0.022017139941453934, -0.05367128923535347, 0.04017225652933121, 0.0015204459195956588, -0.02849595434963703, -0.014798405580222607, 0.04129116237163544, -0.03427094221115112, 0.004859110806137323, 0.013499033637344837, 0.02205323427915573, 0.015276647172868252, -0.049231767654418945, -0.026961972936987877, 0.046019431203603745, 0.03916163370013237, -0.11398381739854813, 0.0032574539072811604, -0.018335584551095963, -0.025030961260199547, -0.05168613791465759, -0.010782984085381031, -0.007209710776805878, -0.014166765846312046, 0.028171110898256302, -0.008554200641810894, -0.009483612142503262, 0.012425246648490429, -0.0005729870172217488, 0.0435650609433651, 0.041363347321748734, -0.009163280948996544, -0.018895037472248077, -0.04074975475668907, -0.013508057221770287, 0.03818710520863533, -0.00024363228294532746, -0.045694589614868164, 0.04316803067922592, 0.07839545607566833, 0.028297439217567444, 0.036021485924720764, 0.03717648237943649, 0.007669905200600624, 0.04208522289991379, 0.03549812734127045, -0.004022188484668732, 0.0005693212733604014, 0.02771994099020958, 0.05136129632592201, 0.009384354576468468, 0.003970304038375616, -0.05565644055604935, -0.03461383283138275, -0.03677945211529732, 0.053418636322021484, -0.022811200469732285, 0.0057614524848759174, 0.10806445777416229, 0.020699720829725266, 0.027016114443540573, -0.043420687317848206, -0.011504857800900936, -0.03172633796930313, -0.027304863557219505, -0.01884089596569538, -0.00789549108594656, 0.014446492306888103, -0.03847585618495941, 0.021205032244324684, 0.026781504973769188, -0.002012222306802869, -0.03353102132678032, -0.018913084641098976, 0.03436117619276047, -0.05345472693443298, -0.019779331982135773, 0.05136129632592201, 0.05172223225235939, 0.0419408455491066, 0.045369744300842285, -0.009239980019629002, 0.06323610991239548, -0.014527702704071999, 0.04410646855831146, 0.007110453210771084, 0.041976939886808395, -0.042771000415086746, 0.024904632940888405, 0.03196094557642937, -0.042807094752788544, -0.0032416628673672676, -0.03930600732564926, -0.043131936341524124, 0.057605501264333725, 0.008725645020604134, 0.03596734255552292, 0.011243178509175777, 0.0644632950425148, 0.004466591868549585, 0.040677569806575775, 0.03560640662908554, -0.0014347234973683953, -0.016837697476148605, -0.00018638998153619468, 0.006199088413268328, -0.007403714582324028, -0.01080103125423193, -0.051469575613737106, 0.04338459298014641, -0.01796562597155571, 0.03428898751735687, -0.07067140936851501, -0.015547349117696285, 0.03596734255552292, -0.01048521138727665, -0.015204459428787231, -0.05659487843513489, -0.03926991671323776, -0.058255188167095184, 0.010043064132332802, 0.057280655950307846, 0.08684137463569641, 0.008265450596809387, -0.01433821115642786, -0.0193462073802948, 0.015042037703096867, 0.03898116573691368, -0.036959920078516006, -0.012253801338374615, -0.023623308166861534, -0.04273490607738495, -0.012064309790730476, 0.030842043459415436, -0.035371799021959305, -0.03484844043850899, 0.011910911649465561, -0.0012463596649467945, 0.06417454779148102, -0.004403428174555302, 0.01111685112118721, -0.018895037472248077, -0.000746687815990299, -0.018317539244890213, 0.05515113100409508, 0.006131412461400032, -0.010656656697392464, 0.008815879002213478, -0.05933799594640732, 0.02481439895927906, -0.006893891375511885, -0.02403838559985161, -0.057316750288009644, 0.020537300035357475, -0.04204912856221199, -0.015736840665340424, -0.024850493296980858, -0.020212456583976746, -0.07381156086921692, -0.05861612409353256, 0.01570977084338665, 0.003083753166720271, 0.03952256962656975, 0.008594805374741554, -0.014789381995797157, -0.0029416342731565237, 0.04381771758198738, 0.004597431514412165, 0.03436117619276047, 0.022179560735821724, 0.010701773688197136, -0.02725072205066681, -0.021511828526854515, 0.06024033948779106, 0.038114916533231735, 0.06359705328941345, 0.04107460007071495, 0.002458881353959441, 0.03147368133068085, 0.00021331924654077739, 0.09644228965044022, 0.03224969655275345, -0.007832326926290989, -0.004083096515387297, 0.025355804711580276, 0.008107541128993034, -0.0013253145152702928, -0.014500632882118225, -0.01634141057729721, -0.020356830209493637, 0.041363347321748734, 0.037970542907714844, 0.03060743398964405, 0.01798367127776146, 0.004543290939182043, -0.027485331520438194, -0.043889906257390976, -0.045369744300842285, -0.0033860376570373774, -0.058904871344566345, 0.018660428002476692, -0.012542551383376122, 0.026871738955378532, 0.020266596227884293, -0.06265861541032791, -0.007317991927266121, -0.018010742962360382, 0.01490668673068285, 0.054032228887081146, -0.08272669464349747, -0.0042455182410776615, 0.0418686605989933, -0.036959920078516006, 0.008256427943706512, 0.008554200641810894, 0.04367334395647049, 0.025825021788477898, -0.053923945873975754, 0.011739467270672321, 0.036346327513456345, 0.029073452576994896, 0.005220047198235989, -0.03529961034655571, 0.022305889055132866, 0.04591115191578865, 0.01103563979268074, -0.009167792275547981, -0.0005236402503214777, 0.003144661197438836, 0.023117996752262115, -0.009546776302158833, 0.043889906257390976, 0.05381566658616066, 0.011423647403717041, -0.0484016127884388, 0.006551001686602831, 0.014446492306888103, -0.0030476595275104046, 0.01303883921355009, 0.030715715140104294, 0.07142937928438187, 0.014058485627174377, -0.007453343365341425, -0.06384970247745514, -0.012055286206305027, -0.09261636435985565, -0.03562445566058159, -0.026709318161010742, 0.0726204663515091, -0.023280419409275055, 0.011170991696417332, -0.05385175719857216, -0.004741806071251631, 0.005702800117433071, -0.0386563241481781, -0.04638036713004112, -0.05446534976363182, 0.06630407273769379, 0.07803452014923096, -0.02883884310722351, 0.0016309828497469425, -0.007611253298819065, 0.012993722222745419, 0.016837697476148605, -0.03192485123872757, 0.004056026227772236, -0.04464787244796753, 0.06063736975193024, 0.012885441072285175, 0.013453916646540165, -0.01298469863831997, -0.023009715601801872, 0.03672531247138977, 0.022107373923063278, 0.0010247218888252974, 0.0005600159056484699, 0.016314338892698288, 0.032953523099422455, -0.026005491614341736, 0.006104342173784971, -0.04638036713004112, -0.05572862923145294, -0.029614858329296112, -0.016494808718562126, -0.0435289703309536, 0.03446945548057556, -0.02544603869318962, 0.0676034465432167, -0.03627413883805275, -0.0005036194925196469, 0.01580902747809887, -0.01931011490523815, 0.02032073773443699, -0.025265570729970932, -0.012578644789755344, 0.010088181123137474, -0.02124112658202648, -0.029217828065156937, -0.05868830904364586, -0.09868010133504868, -0.006668305955827236, 0.009294120594859123, 0.009862596169114113, -0.010088181123137474, -0.0027295839972794056, 0.008599317632615566, -0.024272995069622993, 0.04222959652543068, 0.0725482776761055, 0.04381771758198738, -0.0008713238057680428, 0.0028671910986304283, 0.037609606981277466, 0.053563009947538376, -0.02402033843100071, 0.012461340054869652, -0.0403166301548481, -0.05605347454547882, -0.013571220450103283, 0.03742913901805878, -0.011748489923775196, -0.011640209704637527, 0.062153302133083344, -0.009718221612274647, -0.029452435672283173, -0.06092611700296402, -0.03515523672103882, 0.012650832533836365, 0.02708830125629902, -0.012849347665905952, 0.0005876501090824604, -0.08027232438325882, -0.05764159560203552, 0.014220906421542168, -0.02143964171409607, 0.00471473578363657, 0.020681673660874367, -0.009618964046239853, -0.02402033843100071, -0.03959475830197334, 0.0217644851654768, -0.07868420332670212, -0.04786020889878273, 0.030408918857574463, -0.017424220219254494, 0.03351297602057457, 0.002308867173269391, -0.0045026857405900955, 0.010819078423082829, 0.022305889055132866, 0.03609367087483406, 0.00556293735280633, -0.018218280747532845, -0.004484638571739197, -0.08308763056993484, -0.020501205697655678, 0.02320823073387146, 0.02607767842710018, 0.0008132355287671089, -0.02867642231285572, 0.0004830348480027169, 0.0034920626785606146, -0.03497476875782013, 0.07276484370231628, -0.04782411456108093, -0.0042455182410776615, -0.0450809970498085, -0.053563009947538376, 0.044575683772563934, -0.039089445024728775, 0.019219880923628807, -0.007787209935486317, -0.035371799021959305, 0.02836962603032589, -0.04688568040728569, 0.0023122509010136127, 0.012425246648490429, 0.03571468964219093, -0.04334849864244461, 0.017343008890748024, -0.03901726007461548, 0.018119024112820625, 0.07983919978141785, -0.10279478132724762, -0.009330214001238346, 0.02676345780491829, 0.01589023880660534, -0.011396576650440693, -0.052913323044776917, 0.003940977621823549, 0.02596939727663994, -0.05219145119190216, 0.008730157278478146, 0.0742085874080658, 0.05370738357305527, 0.030408918857574463, 0.019147692248225212, 0.024254947900772095, 0.014518680050969124, 0.013336611911654472, -0.0028468884993344545, 0.06435501575469971, 0.03271891549229622, -0.053093791007995605, -0.06406626850366592, -0.007209710776805878, -0.051650043576955795, 0.037790074944496155, -0.021818624809384346, -0.06973297148942947, -0.029759231954813004, -0.05063942074775696, 0.021944953128695488, -0.0499175488948822, 0.03966694697737694, -0.05060333013534546, -0.09810259938240051, -0.033115945756435394, 0.022486357018351555, -0.0265649426728487, 0.019057458266615868, 0.046308182179927826, 0.00384623184800148, -0.035678595304489136, 0.06298346072435379, -0.019779331982135773, -0.015303716994822025, 0.06800048053264618, 0.024904632940888405, 0.0007055184687487781, 0.12113036215305328, -0.03468601778149605, -0.004103399347513914, -0.062766894698143, 0.05894096568226814, 0.01869652234017849, -0.006456255447119474, -0.011008569970726967, -0.04594724625349045, -0.07774577289819717, -0.017018167302012444, -0.026023536920547485, -0.06652063876390457, 0.0037695327773690224, -0.049700986593961716, -0.010088181123137474, 0.01749640703201294, 0.061178773641586304, -0.025825021788477898, 0.041471630334854126, 0.016873791813850403, -0.0019276277162134647, 0.007281898520886898, -0.005138836335390806, 0.06110658869147301, 0.01216356735676527, 0.02205323427915573, -0.018804803490638733, 0.02965095080435276, 0.017767110839486122, -0.005057625938206911, -0.0038868372794240713, 0.002646117238327861, -0.02225174941122532, 0.017117423936724663, 0.01515031885355711, -0.021692296490073204, 0.04233787581324577, 0.031184932217001915, 0.017767110839486122, -0.04046100750565529, -0.004128213971853256, 0.010142321698367596, 0.052588481456041336, 0.029434390366077423, 0.00745785515755415, 0.03416265919804573, -0.0061494591645896435, 0.04529755935072899, 0.0059554558247327805, -0.01279520709067583, -0.007827815599739552, 0.01778515614569187, 0.02062753401696682, 0.004504941403865814, 0.034234847873449326, 0.03201508894562721, -0.013697548769414425, -0.026673223823308945, 0.008639922365546227, -0.025662600994110107, 0.06482423841953278, -0.021836671978235245, -0.046488650143146515, -0.016314338892698288, 0.02800869010388851, -0.01754152402281761, 0.03486648574471474, 0.04017225652933121, 0.0005521203856915236, -0.021511828526854515, 0.0249948687851429, -0.040533192455768585, 0.018245350569486618, 0.01328247133642435, 0.05338254198431969, -0.01741519756615162, 0.06558220088481903, 0.10366102308034897, 0.04461177811026573, -0.026528848335146904, -0.029578763991594315, -0.0029777279123663902, -0.034595783799886703, -0.08092201501131058, 0.07229562848806381, -0.0804888904094696, -0.0822213813662529, -0.04284318909049034, -0.04594724625349045, -0.02690783329308033, 0.003629670012742281, -0.0014200604055076838, -0.02560845948755741, 0.01869652234017849, 0.0028220738749951124, -0.023244325071573257, -0.03452359884977341, -0.06341658532619476, 0.00862638745456934, -0.027340956032276154, 0.02398424595594406, -0.07031047344207764, -0.03981132060289383, 0.03075180947780609, 0.010909312404692173, -0.000378983560949564, -0.011757513508200645, 0.016314338892698288, -0.05345472693443298, -0.0040627941489219666, 0.014635983854532242, 0.005143348127603531, 0.02338869869709015, 0.0074217612855136395, -0.006172018125653267, -0.022179560735821724, -0.006740493234246969, -0.0033386647701263428, 0.0031920340843498707, -0.007462366484105587, 0.08828511834144592, 0.0014290838735178113, -0.017162540927529335, 0.03224969655275345, -0.018660428002476692, -0.07059922069311142, 0.019400348886847496, 0.006749516818672419, 0.04623599350452423, 0.024381276220083237, -0.006717934738844633, -0.03252039849758148, 0.02577088214457035, 0.007417249493300915, -0.008265450596809387, -0.0031897781882435083, -0.03991959989070892, -0.026673223823308945, 0.005874244961887598, 0.04103850573301315, 0.004412451293319464, -0.02241417020559311, -0.03926991671323776, 0.038584135472774506, 0.06074564903974533, -0.02093433029949665, 0.02708830125629902, -0.04962879791855812, 0.06222549080848694, -0.017767110839486122, -0.01634141057729721, -0.06464377045631409, 0.048112865537405014, -0.015303716994822025, 0.031329307705163956, -0.06172017753124237, -0.056486595422029495, -0.0242008063942194, -0.010638609528541565, 0.015619536861777306, -0.04638036713004112, 0.04446740448474884, -0.015926333144307137, -0.014708171598613262, -0.0042455182410776615, -0.01328247133642435, 0.06309174001216888, -0.02127721905708313, 0.028441812843084335, 0.0016151918098330498, 0.03564250096678734, -0.02853204868733883, 0.02418276108801365, 0.013336611911654472, -0.009970877319574356, -0.06738688796758652, 0.06536564230918884, 0.030697667971253395, 0.019689098000526428, 0.025500180199742317, -0.05623394250869751, -0.01562855951488018, 0.02770189382135868, -0.0281891580671072, -0.05814690515398979, 0.0044304984621703625, 0.052480198442935944, 0.005729870405048132, 0.053274258971214294, -0.036815546452999115, -0.05572862923145294, 0.0074217612855136395, 0.007534554228186607, 0.03880069777369499, 0.00027704713284038007, -0.057749874889850616, 0.08106638491153717, -0.00006591324927285314, -0.07442515343427658, 0.017343008890748024, -0.029921654611825943, -0.008039865642786026, -0.06013205647468567, -0.03275500610470772, 0.014446492306888103, 0.05601738020777702, 0.018407773226499557, -0.028802750632166862, 0.03030063770711422, -0.006717934738844633, 0.01159509178251028, -0.005017020273953676, -0.0012001146096736193, -0.014960827305912971, 0.025554319843649864, 0.06175627186894417, 0.0010472805006429553, -0.06623189151287079, -0.00030679622432217, 0.13881626725196838, 0.03492062911391258, -0.022360030561685562, -0.005129813216626644, -0.01635945774614811, 0.008500060066580772, 0.018570194020867348, -0.010250602848827839, 0.01725277490913868, -0.045514121651649475, -0.015276647172868252, 0.013616337440907955, 0.01216356735676527, -0.04771583527326584, 0.007850374095141888, 0.011974075809121132, -0.05948237329721451, -0.05894096568226814, -0.0016050405101850629, 0.01216356735676527, 0.027034159749746323, -0.006916449870914221, -0.06399407982826233, 0.01965300366282463, 0.041327252984046936, -0.022486357018351555, 0.0023167626932263374, -0.048582084476947784, -0.024579791352152824, 0.03289938345551491, 0.00027634217985905707, 0.014987897127866745, -0.03367539495229721, -0.005702800117433071, -0.03369344398379326, -0.034704066812992096, -0.038114916533231735, -0.01354415062814951, -0.006902914959937334, -0.024615883827209473, -0.018100976943969727, 0.0067856102250516415, -0.04612771421670914, 0.07601327449083328, -0.028423767536878586, 0.0418686605989933, -0.06417454779148102, -0.01353512704372406, 0.042951468378305435, 0.013129073195159435, -0.0038394643925130367, 0.032177507877349854, -0.015763910487294197, 0.03508304804563522, 0.033260319381952286, -0.04641646146774292, -0.004935809876769781, 0.043131936341524124, 0.001298244227655232, 0.006929985247552395, -0.009217421524226665, 0.006695376243442297, -0.001098601147532463, -0.038439761847257614, -0.01979737915098667, -0.04082194343209267, 0.0354439876973629, 0.010638609528541565, 0.017667852342128754, -0.04789630323648453, -0.020086128264665604 ]
37,688
healpy.pixelfunc
isnsideok
Returns :const:`True` if nside is a valid nside parameter, :const:`False` otherwise. NSIDE needs to be a power of 2 only for nested ordering Parameters ---------- nside : int, scalar or array-like integer value to be tested Returns ------- ok : bool, scalar or array-like :const:`True` if given value is a valid nside, :const:`False` otherwise. Examples -------- >>> import healpy as hp >>> hp.isnsideok(13, nest=True) False >>> hp.isnsideok(13, nest=False) True >>> hp.isnsideok(32) True >>> hp.isnsideok([1, 2, 3, 4, 8, 16], nest=True) array([ True, True, False, True, True, True], dtype=bool)
def isnsideok(nside, nest=False): """Returns :const:`True` if nside is a valid nside parameter, :const:`False` otherwise. NSIDE needs to be a power of 2 only for nested ordering Parameters ---------- nside : int, scalar or array-like integer value to be tested Returns ------- ok : bool, scalar or array-like :const:`True` if given value is a valid nside, :const:`False` otherwise. Examples -------- >>> import healpy as hp >>> hp.isnsideok(13, nest=True) False >>> hp.isnsideok(13, nest=False) True >>> hp.isnsideok(32) True >>> hp.isnsideok([1, 2, 3, 4, 8, 16], nest=True) array([ True, True, False, True, True, True], dtype=bool) """ # we use standard bithacks from http://graphics.stanford.edu/~seander/bithacks.html#DetermineIfPowerOf2 if hasattr(nside, "__len__"): if not isinstance(nside, np.ndarray): nside = np.asarray(nside) is_nside_ok = ( (nside == nside.astype(int)) & (nside > 0) & (nside <= max_nside) ) if nest: is_nside_ok &= (nside.astype(int) & (nside.astype(int) - 1)) == 0 else: is_nside_ok = nside == int(nside) and 0 < nside <= max_nside if nest: is_nside_ok = is_nside_ok and (int(nside) & (int(nside) - 1)) == 0 return is_nside_ok
(nside, nest=False)
[ -0.012433908879756927, 0.02158198133111, 0.01617715135216713, -0.021003223955631256, 0.03853391483426094, 0.048652805387973785, -0.008102577179670334, -0.009960195980966091, 0.008340613916516304, -0.05877169221639633, 0.02117125131189823, 0.03558412939310074, 0.022683482617139816, -0.032186273485422134, 0.013974145986139774, -0.005876235663890839, 0.012657943181693554, 0.03810451552271843, -0.0214699637144804, 0.012107192538678646, -0.023280907422304153, 0.020891208201646805, 0.012163201346993446, -0.01947232335805893, 0.008573982864618301, 0.023542281240224838, 0.03287704661488533, -0.008854025974869728, -0.03353048115968704, -0.005484175402671099, -0.033437132835388184, 0.022067388519644737, -0.009792170487344265, 0.07053349912166595, 0.050930485129356384, 0.004335999023169279, 0.0015997455921024084, 0.041931770741939545, -0.1129133403301239, 0.030730051919817924, -0.05981718376278877, -0.045591000467538834, 0.031999580562114716, 0.007038414012640715, -0.060377269983291626, -0.02188069373369217, 0.05940645560622215, -0.0019614677876234055, -0.06694894284009933, 0.032839708030223846, -0.018958911299705505, -0.06982405483722687, 0.032410308718681335, 0.002190169645473361, -0.038272544741630554, -0.004683719016611576, 0.012237879447638988, 0.008695335127413273, 0.03853391483426094, 0.021750006824731827, -0.01146309357136488, 0.024849148467183113, 0.03465065360069275, -0.03308241441845894, -0.049287568777799606, 0.017343996092677116, -0.060788001865148544, -0.008359283208847046, -0.02260880544781685, 0.035864174365997314, -0.03108477219939232, 0.01208852231502533, -0.01649453304708004, 0.042977266013622284, -0.013208694756031036, -0.010286913253366947, 0.001994139514863491, 0.026548076421022415, 0.010772320441901684, 0.013787450268864632, -0.019864384084939957, -0.024849148467183113, 0.03392254188656807, 0.0013535411562770605, -0.03705902397632599, 0.09738028794527054, 0.02417704463005066, 0.06325238198041916, 0.08281804621219635, -0.019192280247807503, -0.006394315045326948, 0.017259983345866203, 0.02451309747993946, -0.021731337532401085, -0.0040932949632406235, 0.04357469081878662, 0.04219314455986023, -0.04114765301346779, -0.040064819157123566, -0.08714938163757324, -0.018557516857981682, -0.030076617375016212, 0.04779400676488876, -0.027612239122390747, 0.013918137177824974, 0.03394121304154396, -0.027929620817303658, 0.02869507297873497, -0.0511171817779541, -0.039616748690605164, -0.02660408429801464, -0.01892157271504402, -0.036816321313381195, -0.006893725134432316, -0.004525028169155121, 0.021693997085094452, 0.03812318667769432, 0.04495623707771301, 0.01799743063747883, -0.03664829209446907, 0.022328762337565422, 0.019453654065728188, -0.04084893688559532, -0.047383274883031845, 0.04824207350611687, 0.030113957822322845, 0.005236804019659758, 0.053357526659965515, -0.03957941010594368, 0.05182662606239319, 0.03067404218018055, 0.03767511621117592, -0.017820069566369057, 0.025465242564678192, -0.05918242037296295, -0.014646248891949654, 0.004868080839514732, 0.006501664873212576, -0.0049520935863256454, -0.04185709357261658, -0.01570107787847519, 0.031458161771297455, 0.006688360124826431, 0.010762985795736313, 0.014384875074028969, 0.059219758957624435, -0.03972876816987991, 0.00011909120075870305, 0.05350688099861145, 0.05107984319329262, 0.006366310641169548, -0.0324849896132946, 0.019808374345302582, 0.052834779024124146, 0.02104056440293789, -0.030300652608275414, 0.015822429209947586, -0.07654508948326111, -0.004116632044315338, -0.020499147474765778, -0.0009731494355946779, -0.016531871631741524, -0.012527257204055786, 0.007957888767123222, -0.00737913278862834, 0.012779295444488525, -0.06332705914974213, -0.0027140832971781492, 0.04962361976504326, 0.08296740800142288, 0.007635839283466339, -0.006296299863606691, -0.07184036076068878, -0.005708209704607725, 0.03235430270433426, -0.030319321900606155, 0.012387235648930073, -0.03735773637890816, -0.05992920324206352, -0.01967768743634224, 0.004868080839514732, -0.0508931465446949, -0.00034101068740710616, -0.028097648173570633, -0.003768912050873041, 0.06093735620379448, 0.030132627114653587, -0.008770013228058815, 0.01220053993165493, -0.03562146797776222, -0.02858305536210537, 0.02596932090818882, -0.010389595292508602, 0.024419749155640602, 0.013516741804778576, -0.05933177471160889, 0.028844429180026054, 0.030935415998101234, 0.006193617824465036, -0.030748721212148666, 0.03916868194937706, 0.022851508110761642, 0.017484018579125404, -0.017372000962495804, 0.02901245467364788, 0.014711592346429825, -0.07344594597816467, 0.0006067598005756736, 0.0372643880546093, 0.0038109184242784977, 0.00012689449067693204, -0.024046359583735466, 0.04032619297504425, 0.043089281767606735, 0.04103563353419304, 0.015253008343279362, -0.00003766724330489524, 0.030132627114653587, -0.06623950600624084, -0.014646248891949654, 0.03349314257502556, 0.004725725390017033, 0.06426053494215012, 0.03760043904185295, -0.011696462519466877, 0.003883262863382697, 0.007537824101746082, 0.07773993909358978, 0.02869507297873497, -0.013498072512447834, -0.039131343364715576, 0.0511171817779541, -0.016513202339410782, -0.010389595292508602, -0.01768004707992077, 0.006272963248193264, -0.01587843708693981, 0.015066313557326794, 0.03311975300312042, 0.030095286667346954, 0.017885413020849228, -0.04637512192130089, -0.09312362968921661, -0.03728305920958519, -0.0072297765873372555, 0.033231768757104874, 0.01733466237783432, 0.01915494166314602, 0.021003223955631256, 0.06127340719103813, -0.05014636740088463, -0.04185709357261658, -0.013610090129077435, 0.008653328754007816, 0.0034818679559975863, 0.06310302019119263, -0.10327985882759094, 0.008457298390567303, 0.026884127408266068, -0.015430369414389133, -0.024979835376143456, 0.0023371921852231026, 0.0025297217071056366, 0.032186273485422134, -0.03549078106880188, 0.0068003772757947445, 0.03138348460197449, -0.007710517384111881, 0.029721897095441818, -0.048951517790555954, -0.029721897095441818, 0.016055798158049583, 0.019453654065728188, 0.0017841072985902429, -0.008900700137019157, -0.01655987650156021, 0.057539500296115875, -0.0011925164144486189, 0.017754726111888885, 0.03528541699051857, -0.0009177242172881961, 0.012368565425276756, -0.03224228322505951, 0.03707769140601158, -0.014020819216966629, 0.005936911795288324, 0.024251723662018776, 0.04417211562395096, 0.04447082802653313, -0.008223929442465305, -0.017708051949739456, 0.014179510064423084, 0.0305620264261961, 0.007999895140528679, 0.017521357163786888, 0.04689786583185196, -0.017409339547157288, -0.01969635672867298, -0.006296299863606691, -0.025091852992773056, -0.009386108256876469, -0.001605579862371087, -0.0023768648970872164, -0.03278370201587677, 0.11649788916110992, 0.033773183822631836, -0.008583317510783672, -0.010025539435446262, 0.04809271916747093, -0.03528541699051857, -0.0033745181281119585, -0.029292497783899307, 0.005474840756505728, -0.0162424948066473, 0.04081159830093384, -0.006193617824465036, 0.018464168533682823, -0.061198730021715164, -0.010501611977815628, 0.0797562450170517, 0.025091852992773056, 0.05122919753193855, 0.02626803331077099, 0.015533051453530788, 0.013003329746425152, -0.028116317465901375, 0.01298466045409441, -0.01115504652261734, -0.005712877027690411, 0.023747647181153297, -0.010296247899532318, -0.03631224110722542, 0.04096095636487007, -0.017549362033605576, 0.011593780480325222, -0.012368565425276756, 0.02617468498647213, -0.0008541311253793538, 0.007397802546620369, -0.012657943181693554, 0.015477042645215988, 0.005997587461024523, -0.004471353255212307, -0.05410430580377579, 0.00007074002496665344, -0.029871253296732903, -0.07027212530374527, 0.01706395298242569, 0.047383274883031845, 0.08446096628904343, -0.0017852741293609142, 0.00268374546431005, 0.028060307726264, -0.007369798142462969, 0.00035034544998779893, 0.020480478182435036, 0.050930485129356384, -0.015449038706719875, -0.013395390473306179, 0.006576342973858118, 0.04704722389578819, -0.009810839779675007, 0.010940346866846085, 0.007934551686048508, -0.022702151909470558, -0.0012275218032300472, 0.007211107295006514, -0.005134121514856815, -0.02692146599292755, 0.012807299382984638, -0.04925023019313812, -0.08304208517074585, 0.00013710439088754356, -0.04447082802653313, 0.028303012251853943, 0.009904187172651291, -0.03623756393790245, -0.03274635970592499, -0.0005037856753915548, -0.03842189908027649, 0.014048824086785316, 0.005904240068048239, -0.0033138422295451164, 0.0020909877493977547, 0.013227364048361778, -0.04618842527270317, 0.025931982323527336, 0.05410430580377579, -0.023430263623595238, -0.01583176478743553, -0.021936701610684395, 0.031234128400683403, 0.03143949434161186, -0.006025591865181923, -0.05739014595746994, 0.008125914260745049, 0.0198830533772707, -0.0053721582517027855, -0.016121141612529755, -0.024046359583735466, -0.012443243525922298, -0.019005585461854935, 0.03646159917116165, 0.021115241572260857, 0.007892545312643051, 0.01587843708693981, 0.007341793738305569, -0.003663895884528756, 0.020125756040215492, -0.08184723556041718, -0.010837663896381855, -0.013852793723344803, -0.021544640883803368, 0.00953079666942358, 0.00445968471467495, 0.027836274355649948, -0.011080368421971798, 0.032951727509498596, 0.011435088701546192, -0.07983092218637466, 0.03916868194937706, -0.10417599231004715, 0.04028885439038277, 0.031682197004556656, 0.045703016221523285, -0.06650087982416153, 0.0087466761469841, -0.016718566417694092, -0.0016814247937873006, 0.07714251428842545, -0.10858200490474701, 0.041633058339357376, 0.022496787831187248, -0.04775666445493698, 0.00015037725097499788, -0.05018370598554611, -0.009465453214943409, -0.007710517384111881, -0.0021785011049360037, 0.012069853022694588, 0.0019217950757592916, 0.07034680247306824, -0.025297217071056366, 0.0037525761872529984, 0.013600754551589489, -0.02385966293513775, 0.0046860529109835625, 0.07535023242235184, 0.04327597841620445, -0.05238670855760574, -0.02690279670059681, -0.046860527247190475, 0.012741956859827042, -0.0230568740516901, -0.04096095636487007, -0.0031481499318033457, -0.06851718574762344, 0.03259700536727905, -0.014300862327218056, -0.000556002021767199, -0.03046867810189724, -0.009502792730927467, -0.04951160028576851, 0.002826100680977106, -0.03466932475566864, -0.022272752597928047, -0.005110784899443388, -0.012956656515598297, 0.020480478182435036, 0.0033885203301906586, -0.015990454703569412, 0.014534231275320053, 0.008037233725190163, -0.00552151445299387, 0.10626698285341263, 0.04081159830093384, -0.010538951493799686, 0.008307942189276218, -0.030935415998101234, -0.02471846155822277, -0.05671804025769234, 0.043313317000865936, -0.020480478182435036, -0.02774292603135109, -0.03739507496356964, -0.09073393046855927, -0.10596827417612076, 0.03564013913273811, 0.012797964736819267, -0.07826268672943115, 0.022030049934983253, -0.061646800488233566, 0.0013827122747898102, 0.02807897888123989, 0.06803178042173386, 0.034183915704488754, 0.0004448599647730589, 0.020984554663300514, 0.004749062471091747, 0.002511052181944251, 0.002872774377465248, 0.05727812647819519, 0.010436269454658031, -0.004683719016611576, -0.0008208760409615934, 0.027910951524972916, -0.032186273485422134, 0.0015262343222275376, 0.023187560960650444, 0.0086906673386693, 0.03412790596485138, -0.015159660950303078, 0.07908414304256439, 0.011612449772655964, 0.08356483280658722, 0.0797562450170517, 0.023168889805674553, -0.0001308325881836936, 0.04921288788318634, -0.0037735793739557266, 0.046748511493206024, -0.02440107986330986, -0.011752471327781677, 0.05290945619344711, 0.013255368918180466, 0.028545716777443886, -0.030188634991645813, -0.007537824101746082, -0.01880955509841442, 0.0065436712466180325, 0.01136041060090065, 0.016139810904860497, 0.027593569830060005, 0.026846788823604584, -0.061609458178281784, -0.019136272370815277, -0.010538951493799686, 0.051154520362615585, 0.06616482883691788, 0.011929831467568874, -0.023299576714634895, -0.039952799677848816, 0.03143949434161186, 0.017372000962495804, 0.04178241640329361, 0.0642978698015213, 0.02690279670059681, -0.022048719227313995, 0.037115033715963364, -0.04323863983154297, 0.022478118538856506, 0.026454728096723557, 0.06515666842460632, -0.06411118060350418, 0.11380947381258011, 0.018389489501714706, 0.01141641940921545, 0.011491097509860992, -0.03067404218018055, 0.004886750131845474, -0.057427484542131424, -0.039840783923864365, 0.021693997085094452, -0.12867042422294617, -0.045404303818941116, -0.03173820674419403, 0.009904187172651291, -0.06019057333469391, -0.01874421164393425, 0.028564386069774628, -0.03425859287381172, 0.026025328785181046, 0.04585237428545952, 0.004452683497220278, -0.014991635456681252, 0.02764957956969738, -0.026118677109479904, -0.06019057333469391, 0.012648608535528183, -0.05070645362138748, 0.005344153847545385, -0.0347626693546772, -0.013442063704133034, 0.001504064304754138, -0.009288093075156212, 0.06314036250114441, -0.0016230825567618012, 0.011136376298964024, 0.021843353286385536, 0.03246631845831871, 0.0479433611035347, -0.026566745713353157, 0.04995967075228691, -0.03058069571852684, 0.04532962664961815, 0.017754726111888885, -0.04932490736246109, 0.03300773352384567, 0.08154851943254471, -0.02626803331077099, -0.039542071521282196, 0.02242210879921913, -0.03394121304154396, -0.037973832339048386, 0.029068462550640106, 0.010417599231004715, 0.02985258400440216, -0.004272989463061094, -0.04316396266222, -0.030431339517235756, 0.011929831467568874, 0.02553992159664631, 0.002373364521190524, -0.056195296347141266, -0.011845818720757961, 0.03257833421230316, 0.000680854544043541, -0.02208605781197548, -0.026641424745321274, -0.06422319263219833, -0.060451947152614594, 0.036125548183918, 0.04764464870095253, -0.04432147368788719, -0.011267063207924366, -0.07613435387611389, 0.04040087014436722, -0.04607640951871872, -0.029553871601819992, -0.05234936997294426, 0.01817478984594345, -0.008013897575438023, 0.01335805095732212, -0.07788929343223572, -0.05380559340119362, -0.014832943677902222, 0.0052834777161479, -0.03455730527639389, -0.04357469081878662, 0.09805238991975784, -0.01768004707992077, 0.012125861831009388, -0.0199950709939003, 0.03224228322505951, 0.013880797661840916, -0.030599365010857582, 0.020648503676056862, -0.001372210681438446, -0.022142065688967705, -0.01110837236046791, 0.017437344416975975, 0.0747528076171875, 0.016961270943284035, -0.06291632354259491, 0.043500013649463654, 0.034818679094314575, 0.07826268672943115, -0.012228543870151043, -0.025782626122236252, -0.01595311611890793, 0.06795710325241089, 0.00021601234038826078, -0.06314036250114441, 0.0022613471373915672, -0.053245507180690765, 0.029609879478812218, 0.031458161771297455, -0.0406622439622879, 0.01785740815103054, -0.010940346866846085, 0.01335805095732212, 0.016139810904860497, -0.00409562885761261, -0.0199950709939003, 0.023187560960650444, -0.0017701050965115428, -0.05369357764720917, 0.026622753590345383, -0.02104056440293789, 0.01785740815103054, -0.04992233216762543, -0.005180795677006245, 0.024774471297860146, -0.015197000466287136, 0.03588284179568291, -0.01838015578687191, -0.0066603561863303185, 0.024979835376143456, -0.04503091424703598, -0.062356241047382355, -0.02723884955048561, -0.033362455666065216, -0.01949099265038967, 0.035229410976171494, 0.015850434079766273, -0.08184723556041718, 0.009554133750498295, 0.0897631123661995, -0.0053674909286201, -0.007789862807840109, 0.0025157195050269365, -0.04406009986996651, 0.023523611947894096, -0.041297007352113724, -0.0030804730486124754, 0.023915672674775124, -0.027873612940311432, -0.010025539435446262, 0.0452176108956337, 0.02755623124539852, -0.05940645560622215, 0.004116632044315338, 0.000026363422875874676, -0.0845356434583664, -0.0586223341524601, 0.01063229888677597, 0.0016265830490738153, 0.051901303231716156, -0.04630044102668762, -0.05025838315486908, 0.003008128609508276, 0.006165613420307636, -0.019603010267019272, -0.038683272898197174, -0.02660408429801464, 0.0038109184242784977, 0.04155838117003441, -0.0036452263593673706, 0.025913313031196594, -0.08946440368890762, -0.013152685947716236, -0.006263628602027893, -0.019509661942720413, -0.014935626648366451, -0.008125914260745049, 0.009670818224549294, 0.016121141612529755, 0.0429399274289608, -0.007738521322607994, -0.06060130521655083, 0.06101203337311745, 0.030431339517235756, 0.037003014236688614, -0.048130057752132416, -0.028956446796655655, 0.06071332097053528, 0.011239059269428253, -0.04693520814180374, 0.029404515400528908, -0.054291002452373505, 0.029665887355804443, 0.045292288064956665, 0.0017479350790381432, -0.00264173885807395, 0.022571465000510216, 0.02671610191464424, -0.02878841944038868, -0.0018167789094150066, -0.0214699637144804, -0.04574035480618477, -0.040064819157123566, 0.008321944624185562, 0.010809659957885742, 0.061721477657556534, -0.052834779024124146, 0.04503091424703598, 0.013974145986139774, 0.011584444902837276 ]
37,690
healpy.pixelfunc
ma
Return map as a masked array, with ``badval`` pixels masked. Parameters ---------- m : a map (may be a sequence of maps) badval : float, optional The value of the pixel considered as bad (:const:`UNSEEN` by default) rtol : float, optional The relative tolerance atol : float, optional The absolute tolerance copy : bool, optional If ``True``, a copy of the input map is made. Returns ------- a masked array with the same shape as the input map, masked where input map is close to badval. See Also -------- mask_good, mask_bad, numpy.ma.masked_values Examples -------- >>> import healpy as hp >>> m = np.arange(12.) >>> m[3] = hp.UNSEEN >>> hp.ma(m) masked_array(data = [0.0 1.0 2.0 -- 4.0 5.0 6.0 7.0 8.0 9.0 10.0 11.0], mask = [False False False True False False False False False False False False], fill_value = -1.6375e+30) <BLANKLINE>
def ma(m, badval=UNSEEN, rtol=1e-5, atol=1e-8, copy=True): """Return map as a masked array, with ``badval`` pixels masked. Parameters ---------- m : a map (may be a sequence of maps) badval : float, optional The value of the pixel considered as bad (:const:`UNSEEN` by default) rtol : float, optional The relative tolerance atol : float, optional The absolute tolerance copy : bool, optional If ``True``, a copy of the input map is made. Returns ------- a masked array with the same shape as the input map, masked where input map is close to badval. See Also -------- mask_good, mask_bad, numpy.ma.masked_values Examples -------- >>> import healpy as hp >>> m = np.arange(12.) >>> m[3] = hp.UNSEEN >>> hp.ma(m) masked_array(data = [0.0 1.0 2.0 -- 4.0 5.0 6.0 7.0 8.0 9.0 10.0 11.0], mask = [False False False True False False False False False False False False], fill_value = -1.6375e+30) <BLANKLINE> """ return np.ma.masked_values(np.array(m), badval, rtol=rtol, atol=atol, copy=copy)
(m, badval=-1.6375e+30, rtol=1e-05, atol=1e-08, copy=True)
[ 0.07055231928825378, 0.057202644646167755, 0.04600614309310913, -0.013654709793627262, 0.00027937989216297865, -0.033625394105911255, -0.027757996693253517, -0.04169979691505432, 0.017099786549806595, -0.000039320650103036314, -0.0236849095672369, 0.05375756695866585, 0.0010036929743364453, 0.025748368352651596, -0.005127244628965855, 0.025120358914136887, -0.04324290528893471, 0.07715538889169693, 0.03455843776464462, 0.03969016671180725, 0.022249460220336914, -0.020491035655140877, 0.024546179920434952, -0.0013221831759437919, -0.006697267293930054, -0.024600008502602577, -0.02117287367582321, -0.01500044297426939, 0.014228888787329197, -0.02167528122663498, -0.023397820070385933, 0.008666523732244968, 0.010523635894060135, 0.022482721135020256, 0.010299347341060638, -0.06861446797847748, 0.024797383695840836, -0.0032521893735975027, -0.0930171012878418, -0.042058657854795456, -0.005015100352466106, -0.042884040623903275, 0.02431291900575161, 0.030808325856924057, 0.030234146863222122, -0.007571993861347437, 0.048805270344018936, 0.025497164577245712, -0.02621488831937313, 0.028045086190104485, -0.04643677920103073, 0.02799125760793686, 0.024151431396603584, 0.051317304372787476, -0.0564490370452404, 0.041628021746873856, -0.02928316220641136, 0.0001405310322297737, 0.011331075802445412, -0.022715982049703598, -0.030808325856924057, -0.00307724392041564, 0.03393042832612991, -0.09761054068803787, 0.04966653883457184, -0.009348361752927303, -0.04632911831140518, -0.008590265177190304, 0.0001666746975388378, 0.024653838947415352, -0.04611380025744438, 0.04862583801150322, -0.009110615588724613, 0.0004370830429252237, 0.03272823989391327, 0.014569807797670364, 0.027524735778570175, -0.01399562880396843, -0.033410076051950455, 0.008271775208413601, 0.000006570964615093544, 0.015736110508441925, 0.039941370487213135, 0.04116150364279747, -0.07543285191059113, 0.007401534356176853, 0.021280532702803612, 0.023864341899752617, 0.03199257329106331, -0.04981008172035217, 0.045431964099407196, -0.005207988899201155, 0.0018358047818765044, 0.029659966006875038, -0.06233437731862068, 0.042776383459568024, -0.016032172366976738, 0.047154501080513, -0.011106787249445915, -0.00021307446877472103, 0.013071558438241482, -0.010631294921040535, 0.03854180872440338, 0.016382062807679176, 0.0193606186658144, -0.002293354133144021, 0.025712482631206512, -0.034450776875019073, -0.025299789384007454, 0.0564490370452404, -0.0048894984647631645, -0.0008825769182294607, -0.06244203448295593, -0.0059257131069898605, -0.004804268479347229, 0.07091118395328522, -0.005445735063403845, -0.05282452702522278, 0.0194682776927948, 0.02580219693481922, 0.018696723505854607, 0.0053784484043717384, 0.032154060900211334, -0.046365004032850266, 0.03796762973070145, 0.012910069897770882, 0.02040131948888302, -0.03402014449238777, 0.0099494569003582, -0.00889081321656704, -0.021513793617486954, 0.0193606186658144, 0.03229760378599167, 0.02546127885580063, -0.022662151604890823, 0.00031708847382105887, 0.017270246520638466, -0.027022328227758408, 0.008778668008744717, -0.030682723969221115, 0.00915098749101162, 0.01948622055351734, -0.005472649820148945, 0.022769810631871223, 0.013852084055542946, -0.0958162248134613, 0.0277938824146986, 0.007989170961081982, 0.06725078821182251, 0.06484641134738922, -0.014794097281992435, -0.03355362266302109, -0.019522108137607574, 0.050348374992609024, 0.026448149234056473, -0.017925171181559563, 0.07923679053783417, -0.061831969767808914, -0.02515624463558197, 0.000029262695534271188, -0.026053400710225105, 0.00612757308408618, 0.007715539075434208, -0.07065998017787933, 0.010182716883718967, -0.008949127979576588, 0.02494092844426632, 0.016857555136084557, 0.02632254734635353, 0.03195668384432793, -0.05185559764504433, -0.05347047746181488, -0.042991701513528824, -0.014022543095052242, 0.03839826211333275, -0.040156688541173935, -0.08411731570959091, 0.029534364119172096, -0.0038622552528977394, 0.01821226067841053, -0.025407448410987854, 0.10536196082830429, -0.04449892044067383, 0.025443335995078087, -0.027417076751589775, 0.014300661161541939, -0.028045086190104485, 0.005149673670530319, -0.04449892044067383, 0.0015038572018966079, -0.013798254542052746, 0.006226260215044022, 0.034145746380090714, 0.0008971556671895087, -0.06538470834493637, -0.06233437731862068, -0.014408320188522339, 0.05002539977431297, 0.058996956795454025, 0.03367922455072403, -0.0783037468791008, -0.02420525997877121, 0.006167945452034473, 0.008756239898502827, 0.040694981813430786, -0.0408744141459465, -0.007397048640996218, -0.01236280519515276, -0.0016047871904447675, 0.020598694682121277, -0.006194859743118286, -0.004885012749582529, -0.041951000690460205, 0.015117073431611061, 0.02147790789604187, 0.019199131056666374, 0.05390111356973648, 0.005311161745339632, -0.03918775916099548, 0.06577945500612259, -0.08828011900186539, -0.006271118298172951, 0.021352306008338928, 0.06158076599240303, 0.008101316168904305, 0.050779011100530624, -0.0019322490552440286, 0.0049208989366889, 0.05390111356973648, 0.00925864651799202, 0.008877355605363846, -0.0024066201876848936, -0.01652560755610466, -0.08741884678602219, -0.021101102232933044, -0.018239175900816917, 0.0631597563624382, -0.05368579551577568, 0.04988185688853264, 0.04955887794494629, 0.020814010873436928, -0.010137858800590038, -0.011178559623658657, 0.10184511542320251, 0.026699353009462357, -0.03138250485062599, -0.08196414262056351, 0.05185559764504433, 0.029390819370746613, 0.04274049773812294, -0.03685515373945236, 0.04525253176689148, 0.02621488831937313, 0.06994225829839706, 0.0778731107711792, 0.0023326047230511904, 0.02273392491042614, -0.031095415353775024, 0.00339573435485363, 0.0011091086780652404, 0.02443852089345455, -0.02011422999203205, 0.04525253176689148, -0.02980351261794567, -0.0179520845413208, -0.016121886670589447, -0.020347490906715393, 0.030700666829943657, 0.02601751498878002, 0.01894792728126049, -0.03281795606017113, 0.013878998346626759, -0.020257774740457535, -0.05504947155714035, -0.010119915939867496, 0.06021708995103836, 0.0752893015742302, -0.002523250412195921, 0.024079658091068268, -0.0240078866481781, -0.040264345705509186, 0.015404162928462029, -0.03990548476576805, 0.015161930583417416, -0.03703458607196808, -0.018463464453816414, -0.015547707676887512, 0.0404437780380249, 0.00024559636949561536, 0.007347704842686653, 0.032584693282842636, -0.006437092088162899, -0.060360632836818695, -0.08433263748884201, -0.005145187955349684, -0.04575493931770325, -0.01137593388557434, -0.04643677920103073, -0.03864946588873863, -0.028924299404025078, 0.023343991488218307, -0.026125174015760422, 0.015233703888952732, 0.04198688641190529, 0.011393876746296883, 0.015135016292333603, -0.03043152019381523, 0.025174187496304512, 0.04927178844809532, 0.05286041274666786, 0.022931300103664398, -0.058458663523197174, -0.025963684543967247, -0.04812343046069145, 0.04370942339301109, 0.01840963400900364, 0.028134802356362343, 0.007042672019451857, 0.04568316787481308, -0.005992999766021967, 0.006347376387566328, -0.02463589422404766, 0.005445735063403845, -0.07478689402341843, -0.011268275789916515, -0.03760876506567001, -0.007370133884251118, -0.018768496811389923, 0.019432391971349716, -0.0010115429759025574, 0.020293662324547768, -0.014856898225843906, -0.01914530247449875, -0.00673763919621706, 0.029426706954836845, -0.0015408649342134595, -0.00974311027675867, -0.016498692333698273, -0.02063458040356636, 0.001557686598971486, 0.007154816761612892, 0.02506653033196926, 0.009599565528333187, -0.027757996693253517, 0.01905558630824089, 0.038147058337926865, -0.0385059230029583, 0.05325515940785408, -0.02928316220641136, 0.04345821961760521, 0.04370942339301109, 0.02738119103014469, 0.0018683266825973988, 0.0014993714867159724, 0.019665652886033058, 0.022070029750466347, 0.02716587483882904, -0.01095427107065916, 0.013798254542052746, 0.022070029750466347, 0.02809891663491726, 0.01200394332408905, -0.0038622552528977394, -0.08031337708234787, -0.010236546397209167, -0.00932144746184349, -0.022141803056001663, -0.031526051461696625, -0.01672298274934292, -0.028673095628619194, 0.013511164113879204, -0.03010854497551918, -0.04008491709828377, -0.03793174400925636, 0.02104727178812027, -0.018786439672112465, -0.0018986057257279754, 0.003974399529397488, -0.016992129385471344, 0.056700240820646286, 0.01020963117480278, -0.022482721135020256, -0.0310415867716074, 0.014327576383948326, 0.03922364488244057, 0.010532607324421406, 0.02377462573349476, 0.01346630696207285, -0.07306435704231262, 0.0012941471068188548, 0.03043152019381523, -0.041412707418203354, 0.02431291900575161, -0.0002352230076212436, -0.055300675332546234, 0.05178382620215416, 0.0047728680074214935, 0.020921669900417328, -0.06481052935123444, -0.057202644646167755, 0.010990156792104244, 0.010999128222465515, -0.004988185595721006, -0.06233437731862068, -0.02431291900575161, -0.022895412519574165, -0.02736324816942215, -0.016911383718252182, 0.014659523963928223, 0.026501979678869247, 0.05591074377298355, 0.013654709793627262, 0.06283678114414215, -0.022554494440555573, 0.023128673434257507, 0.01183348335325718, -0.0681479424238205, -0.06125779077410698, -0.033733054995536804, -0.023720795288681984, 0.05217857286334038, -0.1081610918045044, -0.021208759397268295, -0.013017728924751282, 0.042991701513528824, -0.05540833622217178, -0.029552308842539787, -0.02829628996551037, -0.06441577523946762, -0.015323419123888016, 0.038577694445848465, -0.056700240820646286, -0.016866527497768402, -0.031741369515657425, 0.001636187662370503, 0.010299347341060638, -0.0313645638525486, -0.030593007802963257, -0.00718621676787734, -0.02305690012872219, -0.002774453954771161, 0.009572651237249374, 0.041520364582538605, -0.0022608323488384485, -0.01026346068829298, -0.031418390572071075, 0.012587093748152256, 0.013385563157498837, 0.043314676731824875, -0.013690595515072346, 0.011555365286767483, -0.017144644632935524, 0.029659966006875038, -0.005333590321242809, 0.07543285191059113, 0.004122430458664894, -0.04374530911445618, -0.0139507707208395, -0.003510121488943696, 0.04144859313964844, 0.027183817699551582, -0.03486346825957298, -0.055946629494428635, -0.051963258534669876, 0.026860840618610382, 0.08167704939842224, 0.056879669427871704, 0.00718621676787734, 0.0006868847995065153, -0.013968713581562042, 0.022608323022723198, -0.06287267059087753, 0.019970685243606567, -0.004539607558399439, -0.00784114096313715, 0.022895412519574165, 0.0038353404961526394, 0.0813181921839714, 0.02180088311433792, 0.04374530911445618, 0.041520364582538605, -0.023236332461237907, -0.005091358441859484, 0.005822540260851383, -0.011564336717128754, 0.021280532702803612, -0.011402849107980728, -0.01784442737698555, -0.007163788191974163, 0.008146173320710659, 0.016148801892995834, -0.009805911220610142, -0.019845083355903625, 0.0276862233877182, -0.019611822441220284, 0.0037770255003124475, 0.022769810631871223, 0.03378688171505928, 0.07988274097442627, -0.018293004482984543, -0.01669606752693653, -0.042273975908756256, -0.06976282596588135, 0.011977028101682663, -0.0380752868950367, -0.00883698370307684, -0.030808325856924057, -0.034594323486089706, 0.01840963400900364, -0.002258589491248131, -0.015969371423125267, 0.03147222101688385, -0.033840712159872055, 0.055838968604803085, 0.006926042027771473, 0.00433774758130312, -0.02199825644493103, -0.07399740070104599, -0.004416248761117458, -0.0397978276014328, -0.002935942029580474, 0.021495850756764412, -0.04970242455601692, -0.035742681473493576, -0.07256194949150085, -0.034881412982940674, -0.005400876980274916, 0.008303175680339336, -0.013547050766646862, -0.026501979678869247, 0.004389334004372358, -0.03149016574025154, 0.032154060900211334, -0.0005408166325651109, 0.006594094447791576, -0.03402014449238777, 0.038039401173591614, -0.045862600207328796, -0.027022328227758408, 0.040910299867391586, 0.015843769535422325, 0.018463464453816414, 0.05379345640540123, -0.005984028335660696, 0.009456020779907703, 0.04356588050723076, -0.03663983941078186, -0.015870684757828712, 0.006037857849150896, -0.05397288501262665, 0.02757856622338295, 0.008029543794691563, 0.02653786540031433, -0.002662309445440769, 0.008235889486968517, -0.004456620663404465, 0.06420046091079712, -0.044893670827150345, -0.06606654077768326, -0.03454049304127693, -0.006212803069502115, -0.01458775158971548, 0.05989411473274231, -0.005486106965690851, -0.08634226024150848, 0.009357334114611149, -0.053219273686409, 0.05677201226353645, -0.026896728202700615, -0.001258260803297162, -0.023810511454939842, 0.010173745453357697, 0.013080529868602753, -0.016444863751530647, 0.03493524342775345, 0.08763416856527328, 0.007329761981964111, -0.07600703090429306, -0.01998862810432911, 0.02590985596179962, 0.04148447886109352, 0.016812697052955627, -0.00697538536041975, 0.0061051445081830025, 0.031633708626031876, 0.007096501532942057, -0.05081489682197571, 0.012129545211791992, -0.006307004485279322, 0.033966314047575, 0.04439126327633858, 0.040982071310281754, -0.004620351828634739, 0.013977685943245888, -0.02201620116829872, -0.014928670600056648, 0.012273089960217476, 0.007491250056773424, 0.0011337804608047009, 0.07435626536607742, 0.06473875045776367, -0.005934685003012419, -0.03864946588873863, -0.012685781344771385, -0.04410417377948761, 0.026071343570947647, 0.025317734107375145, -0.054475292563438416, -0.02316455915570259, -0.016184687614440918, -0.08232300728559494, -0.010756896808743477, -0.018445521593093872, -0.052465662360191345, 0.033410076051950455, -0.03793174400925636, -0.03653217852115631, 0.05329104885458946, -0.002648852067068219, 0.0008982770959846675, 0.005176588427275419, -0.05347047746181488, -0.0195759367197752, -0.01764705218374729, 0.0785190686583519, -0.07758602499961853, -0.005216960329562426, 0.046042028814554214, -0.07887792587280273, 0.006594094447791576, -0.0020589723717421293, 0.0795956552028656, -0.007370133884251118, -0.008505036123096943, -0.05397288501262665, 0.039510734379291534, 0.022070029750466347, 0.024187317118048668, -0.020455149933695793, 0.08928493410348892, -0.03608360141515732, -0.038254719227552414, 0.03147222101688385, 0.007859083823859692, 0.02052692137658596, 0.03570679575204849, -0.03586828336119652, 0.01948622055351734, 0.0060423435643315315, -0.0016462806379422545, -0.025873970240354538, 0.025820139795541763, -0.03800351545214653, 0.03166959434747696, 0.04475012421607971, 0.008419806137681007, 0.009913570247590542, 0.009527793154120445, -0.05526478961110115, -0.009491907432675362, -0.055838968604803085, 0.0057328250259160995, -0.08576808124780655, -0.06710724532604218, 0.06545647978782654, -0.0034921783953905106, -0.00015672188601456583, 0.01830197498202324, 0.05085078254342079, 0.034361060708761215, 0.004438677802681923, -0.007697595749050379, -0.04719039052724838, 0.01136696245521307, 0.0376446507871151, 0.007024729158729315, 0.012506349943578243, 0.010927355848252773, -0.022339176386594772, 0.01821226067841053, 0.0473698191344738, 0.03969016671180725, -0.006881183944642544, 0.08993088454008102, -0.006701753009110689, 0.06804028898477554, 0.024779438972473145, 0.012614008970558643, -0.039833713322877884, 0.05210680142045021, 0.07127004861831665, -0.06168842315673828, 0.04252517968416214, 0.03922364488244057, 0.007697595749050379, 0.06710724532604218, -0.04640089347958565, 0.004378119949251413, -0.0026667951606214046, 0.05379345640540123, -0.01494661346077919, 0.023505479097366333, -0.04220220446586609, -0.005373962689191103, -0.03430723398923874, 0.002221581758931279, -0.020867841318249702, 0.059212274849414825, -0.04841051995754242, -0.04252517968416214, -0.0063518621027469635, 0.09115101397037506, 0.05113787204027176, -0.02009628713130951, -0.023182502016425133, -0.08770594000816345, -0.0011091086780652404, -0.049630653113126755, 0.006822868715971708, 0.012075715698301792, -0.005607223138213158, 0.02632254734635353, -0.04223809018731117, 0.0343969501554966, -0.01730613224208355, 0.047154501080513, -0.08770594000816345, -0.07478689402341843, -0.0013412476982921362, -0.025281846523284912, 0.03620920330286026, 0.01342144887894392, 0.035222332924604416, 0.04496544227004051, -0.009402191266417503, 0.023649023845791817, -0.03360745310783386, -0.0237925685942173, 0.04155625030398369, 0.05318338796496391, 0.008249346166849136, -0.006697267293930054, 0.04561139643192291, 0.010667180642485619, -0.06222671642899513, -0.01194114238023758, -0.015009414404630661, 0.03663983941078186, -0.018445521593093872, 0.02989322692155838, -0.027327362447977066, -0.003404705785214901, -0.024922985583543777, 0.06219083070755005, 0.034594323486089706, 0.009716195985674858, -0.015718167647719383, -0.007244531996548176, 0.0551571324467659, 0.021442020311951637, -0.018005914986133575, 0.022715982049703598, -0.05989411473274231, 0.028798697516322136, -0.051101986318826675, 0.0022911112755537033, -0.03506084531545639, -0.015610508620738983 ]
37,691
healpy.sphtfunc
map2alm
Computes the alm of a Healpix map. The input maps must all be in ring ordering. For recommendations about how to set `lmax`, `iter`, and weights, see the `Anafast documentation <https://healpix.sourceforge.io/html/fac_anafast.htm>`_ Pixel values are weighted before applying the transform: * when you don't specify any weights, the uniform weight value 4*pi/n_pix is used * with ring weights enabled (use_weights=True), pixels in every ring are weighted with a uniform value similar to the one above, ring weights are included in healpy * with pixel weights (use_pixel_weights=True), every pixel gets an individual weight Pixel weights provide the most accurate transform, so you should always use them if possible. However they are not included in healpy and will be automatically downloaded and cached in ~/.astropy the first time you compute a trasform at a specific nside. If datapath is specified, healpy will first check that local folder before downloading the weights. The easiest way to setup the folder is to clone the healpy-data repository: git clone --depth 1 https://github.com/healpy/healpy-data cd healpy-data bash download_weights_8192.sh and set datapath to the root of the repository. Parameters ---------- maps : array-like, shape (Npix,) or (n, Npix) The input map or a list of n input maps. Must be in ring ordering. lmax : int, scalar, optional Maximum l of the power spectrum. Default: 3*nside-1 mmax : int, scalar, optional Maximum m of the alm. Default: lmax iter : int, scalar, optional Number of iteration (default: 3) pol : bool, optional If True, assumes input maps are TQU. Output will be TEB alm's. (input must be 1 or 3 maps) If False, apply spin 0 harmonic transform to each map. (input can be any number of maps) If there is only one input map, it has no effect. Default: True. use_weights: bool, scalar, optional If True, use the ring weighting. Default: False. datapath : None or str, optional If given, the directory where to find the pixel weights. See in the docstring above details on how to set it up. gal_cut : float [degrees] pixels at latitude in [-gal_cut;+gal_cut] are not taken into account use_pixel_weights: bool, optional If True, use pixel by pixel weighting, healpy will automatically download the weights, if needed verbose : bool, optional Deprecated, has not effect. Returns ------- alms : array or tuple of array alm or a tuple of 3 alm (almT, almE, almB) if polarized input. Notes ----- The pixels which have the special `UNSEEN` value are replaced by zeros before spherical harmonic transform. They are converted back to `UNSEEN` value, so that the input maps are not modified. Each map have its own, independent mask.
def synalm(cls, lmax=None, mmax=None, new=False, verbose=True): """Generate a set of alm given cl. The cl are given as a float array. Corresponding alm are generated. If lmax is None, it is assumed lmax=cl.size-1 If mmax is None, it is assumed mmax=lmax. Parameters ---------- cls : float, array or tuple of arrays Either one cl (1D array) or a tuple of either 4 cl or of n*(n+1)/2 cl. Some of the cl may be None, implying no cross-correlation. See *new* parameter. lmax : int, scalar, optional The lmax (if None or <0, the largest size-1 of cls) mmax : int, scalar, optional The mmax (if None or <0, =lmax) new : bool, optional If True, use the new ordering of cl's, ie by diagonal (e.g. TT, EE, BB, TE, EB, TB or TT, EE, BB, TE if 4 cl as input). If False, use the old ordering, ie by row (e.g. TT, TE, TB, EE, EB, BB or TT, TE, EE, BB if 4 cl as input). Returns ------- alms : array or list of arrays the generated alm if one spectrum is given, or a list of n alms (with n(n+1)/2 the number of input cl, or n=3 if there are 4 input cl). Notes ----- We don't plan to change the default order anymore, that would break old code in a way difficult to debug. """ if not cb.is_seq(cls): raise TypeError("cls must be an array or a sequence of arrays") if not cb.is_seq_of_seq(cls, True): # Only one spectrum if lmax is None or lmax < 0: lmax = len(cls) - 1 if mmax is None or mmax < 0: mmax = lmax cls_list = [np.asarray(cls, dtype=np.float64)] szalm = Alm.getsize(lmax, mmax) alm = np.zeros(szalm, "D") alm.real = np.random.standard_normal(szalm) alm.imag = np.random.standard_normal(szalm) alms_list = [alm] sphtlib._synalm(cls_list, alms_list, lmax, mmax) return alm # From here, we interpret cls as a list of spectra cls_list = list(cls) maxsize = max([len(c) for c in cls if c is not None]) if lmax is None or lmax < 0: lmax = maxsize - 1 if mmax is None or mmax < 0: mmax = lmax Nspec = sphtlib._getn(len(cls_list)) if Nspec <= 0: if len(cls_list) == 4: if new: ## new input order: TT EE BB TE -> TT EE BB TE 0 0 cls_list = [cls[0], cls[1], cls[2], cls[3], None, None] else: ## old input order: TT TE EE BB -> TT TE 0 EE 0 BB cls_list = [cls[0], cls[1], None, cls[2], None, cls[3]] Nspec = 3 else: raise TypeError( "The sequence of arrays must have either 4 elements " "or n(n+1)/2 elements (some may be None)" ) szalm = Alm.getsize(lmax, mmax) alms_list = [] for i in range(Nspec): alm = np.zeros(szalm, "D") alm.real = np.random.standard_normal(szalm) alm.imag = np.random.standard_normal(szalm) alms_list.append(alm) if new: # new input order: input given by diagonal, should be given by row cls_list = new_to_old_spectra_order(cls_list) # ensure cls are float64 cls_list = [ (np.asarray(cl, dtype=np.float64) if cl is not None else None) for cl in cls_list ] sphtlib._synalm(cls_list, alms_list, lmax, mmax) return np.array(alms_list)
(maps, lmax=None, mmax=None, iter=3, pol=True, use_weights=False, datapath=None, gal_cut=0, use_pixel_weights=False, verbose=True)
[ 0.0000011125005130452337, 0.025629526004195213, 0.06709841638803482, -0.03253437578678131, -0.012476485222578049, -0.012954053469002247, -0.04672214761376381, -0.044294506311416626, -0.023042695596814156, 0.07549566775560379, -0.06200435012578964, -0.002078170422464609, 0.031997110694646835, 0.013312229886651039, 0.005954686086624861, 0.03836469352245331, -0.030564403161406517, 0.006551647093147039, -0.015809517353773117, -0.0030221149791032076, 0.02274421416223049, 0.05289074406027794, -0.02755969949066639, 0.023818744346499443, 0.028554635122418404, 0.04644356667995453, 0.01637662947177887, -0.0021440850105136633, -0.05647251009941101, -0.03337011858820915, 0.023281479254364967, 0.035101305693387985, 0.026704056188464165, -0.008939490653574467, 0.027878079563379288, -0.06347685307264328, 0.02612699382007122, -0.012695370241999626, -0.09535457193851471, 0.03904125094413757, 0.06423300504684448, -0.048473235219717026, 0.07597323507070541, 0.015182708390057087, 0.007581404875963926, 0.045130252838134766, 0.01813766546547413, 0.05261216312646866, -0.10044863820075989, -0.015759769827127457, 0.015530935488641262, -0.0932055115699768, 0.011521347798407078, 0.005021934397518635, -0.022843707352876663, 0.0756150633096695, -0.008506693877279758, -0.016545768827199936, 0.041468892246484756, -0.037190672010183334, 0.02139110304415226, -0.021789075806736946, 0.04286180064082146, -0.023918237537145615, 0.0038578605744987726, -0.030246024951338768, -0.04966715723276138, 0.02529124729335308, 0.01990864984691143, 0.05734805390238762, -0.05117945745587349, 0.034504346549510956, 0.02584841102361679, -0.02198806405067444, 0.04556802287697792, 0.010083666071295738, -0.03438495472073555, -0.026922941207885742, 0.004499593749642372, -0.02023697830736637, -0.0049398522824049, 0.04970695450901985, 0.01980915665626526, 0.03195731341838837, -0.04246382415294647, 0.02143090032041073, -0.0009215585305355489, -0.0050741685554385185, -0.06518813967704773, -0.08691751956939697, -0.00018281930533703417, 0.015789618715643883, 0.015371745452284813, 0.03689219057559967, -0.06873010843992233, 0.02905210293829441, -0.0478762723505497, -0.042583219707012177, 0.055756159126758575, -0.004223498981446028, -0.012814763002097607, -0.001982408110052347, 0.06486976146697998, 0.04528944194316864, -0.01572992280125618, -0.018018273636698723, -0.03257417306303978, 0.010023970156908035, -0.042662814259529114, 0.06204414740204811, 0.0064173308201134205, 0.08285818994045258, 0.008989238180220127, 0.026743853464722633, 0.004250859841704369, -0.03840449079871178, 0.01194916944950819, 0.04310058429837227, -0.03780753165483475, 0.006128799635916948, -0.0070690130814909935, -0.002569419564679265, -0.024694286286830902, -0.024117223918437958, 0.05094067379832268, -0.01498372107744217, 0.023699352517724037, -0.023540161550045013, 0.05054269731044769, -0.024694286286830902, -0.02742040902376175, 0.018993308767676353, -0.03235528618097305, 0.05432344973087311, -0.007078962400555611, -0.02626628428697586, 0.003992176614701748, -0.04005608335137367, -0.0398968942463398, -0.05587555095553398, -0.014595696702599525, 0.06626266986131668, 0.05456223711371422, 0.010785095393657684, -0.04286180064082146, 0.02379884570837021, 0.033390019088983536, -0.026485169306397438, -0.03321092948317528, 0.05543777719140053, -0.025092260912060738, -0.04775688052177429, 0.05726845934987068, 0.05921852961182594, -0.019003259018063545, -0.03344971314072609, -0.038026414811611176, -0.013859444297850132, -0.019928548485040665, 0.011979017406702042, -0.06849132478237152, -0.04059334844350815, -0.0218487735837698, 0.013302280567586422, -0.022664619609713554, -0.0215303935110569, -0.023778947070240974, 0.0020122560672461987, -0.015003619715571404, 0.007680898066610098, -0.027718888595700264, -0.05086107552051544, -0.04059334844350815, -0.052413176745176315, -0.00687997555360198, -0.00983990728855133, -0.030047036707401276, -0.024535097181797028, 0.025808613747358322, 0.01057615876197815, -0.010984082706272602, 0.032176196575164795, 0.02427641488611698, -0.04250362515449524, -0.010844791308045387, 0.04385673627257347, -0.014346962794661522, -0.0098797045648098, -0.03446454927325249, -0.0004573591868393123, -0.007148608099669218, -0.0013717666734009981, -0.029867948964238167, 0.021450798958539963, 0.015222505666315556, -0.013123192824423313, -0.061128806322813034, 0.05117945745587349, 0.031201161444187164, 0.036036547273397446, -0.026763752102851868, 0.04190666228532791, 0.0250126663595438, -0.026365777477622032, 0.050741683691740036, -0.03808611258864403, 0.025112159550189972, -0.016963642090559006, -0.027082130312919617, 0.0065864697098731995, 0.051577430218458176, 0.014187772758305073, -0.015282201580703259, -0.017371565103530884, 0.03118126280605793, -0.03653401508927345, 0.08429089188575745, 0.025072362273931503, 0.009004161693155766, -0.008392277173697948, -0.035937052220106125, -0.014904126524925232, -0.05766643211245537, 0.03609624132514, -0.056910283863544464, 0.0070341904647648335, 0.009496654383838177, 0.034265562891960144, -0.010237880982458591, -0.017232274636626244, -0.029867948964238167, -0.01596870645880699, 0.009919501841068268, -0.006168596912175417, -0.03502171114087105, 0.06387482583522797, 0.011789979413151741, 0.05460203438997269, -0.04107091575860977, 0.034822724759578705, -0.01869482919573784, -0.01758050173521042, -0.004213549662381411, 0.03651411458849907, -0.042344432324171066, 0.05993488430976868, 0.013232635334134102, 0.04473227635025978, -0.04771708324551582, 0.024992767721414566, -0.043219976127147675, -0.017043236643075943, 0.01986885257065296, 0.0045518274419009686, 0.023460566997528076, 0.008337555453181267, -0.03388748690485954, -0.018505791202187538, 0.024933071807026863, -0.09057888388633728, 0.0005400631343945861, 0.01162084098905325, 0.0423046350479126, 0.06399422138929367, -0.06530753523111343, -0.001961265690624714, 0.018764473497867584, 0.022246746346354485, -0.05042330548167229, 0.01986885257065296, -0.06873010843992233, 0.07107815891504288, -0.056313320994377136, -0.01675470545887947, 0.001351867918856442, 0.0624421201646328, 0.029430177062749863, -0.054084666073322296, -0.002668913220986724, -0.007536632474511862, 0.015361796133220196, -0.00343998777680099, 0.0023617269471287727, -0.002284619491547346, -0.004810510668903589, -0.00015242715016938746, -0.015451340936124325, -0.015481188893318176, 0.02041606605052948, -0.021311508491635323, 0.058024607598781586, -0.016685059294104576, 0.027679091319441795, -0.049905940890312195, 0.11135312914848328, -0.047120120376348495, -0.05388567969202995, 0.0029599317349493504, 0.008934516459703445, -0.03002713806927204, -0.00418618880212307, -0.01856548711657524, 0.08715630322694778, -0.010367223061621189, -0.02710202895104885, -0.07736614346504211, -0.04365774616599083, -0.027858180925250053, 0.056631699204444885, 0.005646256264299154, 0.007646075449883938, 0.06968525052070618, -0.017321817576885223, -0.0386233776807785, -0.0165258701890707, 0.056870486587285995, -0.014585747383534908, 0.016695009544491768, 0.06701882183551788, 0.06809335201978683, -0.02783828228712082, 0.01953057385981083, -0.026704056188464165, -0.013043598271906376, 0.05782562121748924, -0.05404486879706383, 0.0199484471231699, -0.01632688380777836, -0.022843707352876663, -0.01698354072868824, -0.03549928218126297, -0.018366500735282898, -0.006984443869441748, 0.021550292149186134, -0.006312862504273653, 0.020575255155563354, 0.03195731341838837, -0.04202605411410332, 0.043538354337215424, -0.055557169020175934, 0.02087373659014702, 0.07191390544176102, -0.031479742377996445, 0.04397612810134888, -0.018714727833867073, 0.013232635334134102, 0.01799837499856949, -0.0020296673756092787, -0.04843343421816826, -0.03731006383895874, 0.017331767827272415, -0.06252171844244003, -0.005596509203314781, 0.02348046563565731, 0.05396527424454689, 0.060850225389003754, -0.004805536009371281, -0.022206949070096016, -0.014138026162981987, -0.059696100652217865, 0.01582941599190235, 0.016834300011396408, -0.01487427856773138, 0.009407110512256622, -0.032872650772333145, -0.0015856776153668761, -0.02101302705705166, -0.05432344973087311, 0.026564763858914375, -0.04994573816657066, -0.002606729744002223, -0.045130252838134766, 0.014585747383534908, 0.023778947070240974, -0.007357544265687466, 0.060293059796094894, -0.02407742664217949, -0.001923955511301756, -0.001272273133508861, 0.021550292149186134, 0.02765919268131256, 0.02059515379369259, 0.047358907759189606, 0.014526051469147205, 0.04111071303486824, -0.009984172880649567, 0.020993128418922424, 0.037469252943992615, -0.03243488073348999, 0.03563857078552246, 0.0597756952047348, -0.02483357861638069, 0.00008752318535698578, -0.06861072033643723, -0.027161724865436554, 0.047358907759189606, -0.029569467529654503, 0.054960209876298904, -0.041787270456552505, -0.020197181031107903, 0.00152225058991462, -0.021729379892349243, 0.041508689522743225, -0.012058611959218979, -0.04843343421816826, -0.053288720548152924, 0.05909913778305054, -0.050463102757930756, -0.06347685307264328, -0.01162084098905325, 0.013461470603942871, 0.048234447836875916, -0.018406298011541367, -0.0021714456379413605, 0.04075253754854202, 0.021828873082995415, -0.018475942313671112, -0.00259926775470376, 0.02964906394481659, 0.05651230737566948, 0.060531847178936005, 0.036036547273397446, 0.013819647021591663, 0.05026411637663841, 0.08819103986024857, -0.0035767913796007633, -0.0354594849050045, 0.002062002895399928, -0.06670044362545013, -0.0444536954164505, 0.05695008113980293, 0.029589366167783737, -0.007452063262462616, -0.02909190021455288, -0.03929993137717247, -0.004096644930541515, -0.012416789308190346, 0.020754344761371613, -0.002840539440512657, -0.04013567790389061, 0.016396528109908104, -0.03727026656270027, -0.04254342243075371, 0.01874457485973835, -0.020953331142663956, -0.07828148454427719, 0.012546130456030369, -0.021729379892349243, 0.008571364916861057, -0.016575617715716362, -0.00043279671808704734, 0.04743850231170654, -0.01902315765619278, 0.04612518846988678, 0.0966280847787857, -0.027042333036661148, 0.07251086086034775, -0.02954956889152527, -0.03671310096979141, -0.018893815577030182, -0.010586108081042767, -0.01958032138645649, 0.04162808135151863, 0.0372304692864418, 0.03981729969382286, 0.015491138212382793, 0.020217079669237137, -0.0012847097823396325, -0.04302098974585533, -0.040951523929834366, 0.03653401508927345, -0.030842985957860947, 0.027758685871958733, 0.014257418923079967, -0.0018580411560833454, -0.029688861221075058, 0.02254522778093815, -0.0035519178491085768, -0.05038350820541382, -0.023122290149331093, 0.05921852961182594, 0.016297034919261932, -0.017759589478373528, -0.030285822227597237, -0.00909370556473732, 0.03734986111521721, -0.0008562659495510161, -0.04325977340340614, 0.010446817614138126, 0.00562635762616992, -0.01243668794631958, 0.021311508491635323, 0.005944736767560244, 0.06287989020347595, 0.006815304979681969, 0.030285822227597237, 0.058541975915431976, -0.03981729969382286, 0.027440307661890984, 0.04469247907400131, 0.03810600936412811, -0.04087192937731743, -0.06904848664999008, -0.005899964366108179, 0.03563857078552246, -0.0028977482579648495, -0.042105648666620255, -0.04250362515449524, -0.029450075700879097, 0.07708756625652313, -0.025490235537290573, -0.04270261153578758, 0.0035544054117053747, -0.0006227671401575208, 0.03076338954269886, -0.018535638228058815, -0.01971961185336113, -0.03317113220691681, 0.03472323343157768, 0.05882055684924126, -0.0011273857671767473, 0.020336471498012543, -0.08643995225429535, -0.00668098870664835, -0.028733722865581512, 0.018346602097153664, -0.023420769721269608, -0.03717077150940895, 0.04202605411410332, 0.010596057400107384, 0.018018273636698723, -0.03490231931209564, -0.008322631008923054, 0.08628076314926147, -0.0010216739028692245, 0.027539800852537155, -0.029390379786491394, -0.01568017527461052, 0.070918969810009, -0.06252171844244003, -0.00030842985142953694, 0.0021453285589814186, 0.007646075449883938, 0.015282201580703259, 0.002945007523521781, -0.003454911755397916, 0.008566390722990036, -0.0229233019053936, 0.000445544341346249, 0.022425834089517593, -0.021192114800214767, -0.021888570860028267, 0.005999458022415638, 0.025510134175419807, 0.01053636148571968, -0.020754344761371613, 0.04119030758738518, -0.04783647507429123, -0.023699352517724037, 0.01808791793882847, -0.03303184360265732, 0.02004794031381607, -0.044891469180583954, -0.02821635641157627, 0.000739361101295799, -0.016217440366744995, 0.07919682562351227, 0.03922033682465553, 0.0036489241756498814, 0.00032615213422104716, -0.0410311184823513, 0.03689219057559967, -0.0707995742559433, 0.017381515353918076, -0.039240237325429916, 0.061367589980363846, 0.007889834232628345, -0.016227390617132187, -0.02204775996506214, -0.06932707130908966, 0.04441389814019203, 0.027758685871958733, -0.023958034813404083, -0.027062231674790382, 0.056870486587285995, -0.04055355116724968, -0.047995664179325104, -0.005046807695180178, -0.06829234212636948, -0.011372107081115246, -0.02254522778093815, 0.05722866207361221, -0.015759769827127457, 0.0025569829158484936, -0.03836469352245331, 0.024375908076763153, 0.023918237537145615, 0.001666516182012856, -0.009133503772318363, 0.04417511448264122, 0.0027236344758421183, 0.05961650609970093, -0.0423046350479126, 0.0040319738909602165, 0.05651230737566948, -0.0315394401550293, 0.013312229886651039, -0.06658104807138443, -0.0277387872338295, 0.0058949897065758705, -0.009058883413672447, 0.054960209876298904, 0.02236613817512989, -0.03138025104999542, 0.03265376761555672, -0.044334303587675095, -0.04469247907400131, 0.03651411458849907, 0.0667402371764183, -0.003678772132843733, 0.04059334844350815, 0.018734626471996307, -0.018664980307221413, -0.023181986063718796, -0.045687414705753326, 0.01939128339290619, -0.04314038157463074, -0.011421853676438332, 0.032176196575164795, -0.04859262704849243, 0.026107095181941986, -0.03633502498269081, 0.06880970299243927, 0.004862744826823473, 0.01327243261039257, -0.04803546145558357, -0.0006833960069343448, 0.05507960170507431, 0.033330321311950684, 0.027062231674790382, -0.04254342243075371, 0.011421853676438332, 0.04005608335137367, -0.03500181436538696, 0.01869482919573784, -0.023420769721269608, -0.009785185568034649, 0.006128799635916948, 0.006676014047116041, 0.0009775236248970032, -0.002895260928198695, 0.004367764573544264, -0.043538354337215424, 0.03271346166729927, 0.007496835198253393, -0.06765557825565338, 0.024614691734313965, 0.005795496515929699, 0.028037268668413162, -0.012237700633704662, -0.004653808660805225, 0.02069464884698391, 0.02018723078072071, -0.058860354125499725, 0.011740232817828655, -0.003599177347496152, 0.04055355116724968, 0.013342078775167465, 0.004114056471735239, 0.011073626577854156, -0.0492691807448864, 0.0010683115106076002, 0.0011460407404229045, -0.010004071518778801, -0.00549701601266861, -0.028136761859059334, 0.013332129456102848, -0.021092621609568596, 0.057467445731163025, -0.02598770149052143, -0.01832670345902443, 0.027778584510087967, 0.0019836516585201025, -0.04743850231170654, -0.017461109906435013, 0.027042333036661148, 0.018346602097153664, -0.013411724008619785, -0.004449846688657999, -0.054442841559648514, 0.015262302942574024, 0.03327062726020813, 0.016535820439457893, -0.016555719077587128, 0.03155933693051338, 0.06825254112482071, -0.014406658709049225, -0.013580862432718277, -0.018127715215086937, 0.018207309767603874, 0.04946816712617874, 0.006238242611289024, -0.06176556646823883, 0.022803910076618195, -0.022843707352876663, 0.044612884521484375, -0.0024338597431778908, 0.04162808135151863, -0.0368523932993412, 0.0027534826658666134, 0.016635313630104065, 0.06339725852012634, 0.019361434504389763, 0.049866143614053726, 0.020754344761371613, -0.11191029101610184, 0.059138935059309006, 0.036772798746824265, -0.01986885257065296, 0.026067297905683517, 0.0031141466461122036, 0.014605646021664143, 0.032832853496074677, -0.011451701633632183, 0.006118850316852331, 0.04556802287697792, 0.01487427856773138, 0.04978654906153679, 0.03480282798409462, -0.07780391722917557, -0.007193380035459995, -0.001486184191890061, 0.007641100790351629, 0.05675109103322029, -0.016685059294104576, -0.01313314214348793, -0.038205504417419434, -0.04278220608830452, -0.019271891564130783, 0.012058611959218979, -0.05177641659975052, 0.00553183862939477, 0.015023518353700638, 0.00008247078221756965, -0.0846092700958252, -0.023002896457910538, 0.013481369242072105, 0.0165258701890707, -0.002785817952826619, -0.046841539442539215, 0.017570551484823227, -0.04692113399505615, 0.0017784463707357645, 0.03689219057559967, 0.03506150841712952, -0.009601122699677944, 0.060850225389003754, -0.058303192257881165, 0.05058249458670616, -0.07064038515090942, -0.00562635762616992, -0.021172216162085533, 0.06558611243963242, 0.04819465056061745, -0.040255069732666016, 0.00447720754891634, 0.003917556721717119, -0.03840449079871178 ]
37,692
healpy.sphtfunc
map2alm_lsq
Runs an iterative map analysis up to (lmax, mmax) and returns the result including its quality. Healpix map analysis is often interpreted as "compute the `alm` for which `alm2map(alm) == map`". Unfortunately this inversion problem is not solvable in many cases, since `alm` typically has fewer elements than `map`, which makes the equation system overdetermined, so that a solution only exists for a vanishingly small subset of all possible maps. (Even if there were more `alm` elements than map pixels it can happen that the problem is unsolvable, but this situation should not be relevant for practical use.) This function aims to compute instead the `alm` for which the L2 norm of `alm2map(alm) - map` is minimal, i.e. it tries to find the best possible least-squares approximation. Since this is an iterative procedure, the user needs to specify a tolerance at which the iteration is stopped and a maximum iteration count to avoid excessive run times in extreme cases. Compared to `map2alm` this algorithm has the following advantages and disadvantages: - the exact number of iterations need not be specified beforehand, it will stop automatically once the desired accuracy is reached. - during calculation it requires more memory than `map2alm`. Parameters ---------- maps : array-like, shape (Npix,) or (n, Npix) The input map or a list of n input maps. Must be in ring ordering. lmax, mmax : int The desired lmax and mmax parameters for the analysis pol : bool, optional If True, assumes input maps are TQU. Output will be TEB alm's. (input must be 1 or 3 maps) If False, apply spin 0 harmonic transform to each map. (input can be any number of maps) If there is only one input map, it has no effect. Default: True. tol : float The desired accuracy for the result. Once this is reached, the iteration stops. maxiter : int maximum iteration count after which the minimization is stopped Returns ------- alm : numpy.ndarray(complex) The reconstructed a_lm coefficients rel_res : float The norm of the residual map (i.e. `map-alm2map(alm)`), divided by the norm of `maps`. This is a measure for the fraction of the map signal that could not be modeled by the a_lm n_iter : int the number of iterations required
def map2alm_lsq(maps, lmax, mmax, pol=True, tol=1e-10, maxiter=20): """Runs an iterative map analysis up to (lmax, mmax) and returns the result including its quality. Healpix map analysis is often interpreted as "compute the `alm` for which `alm2map(alm) == map`". Unfortunately this inversion problem is not solvable in many cases, since `alm` typically has fewer elements than `map`, which makes the equation system overdetermined, so that a solution only exists for a vanishingly small subset of all possible maps. (Even if there were more `alm` elements than map pixels it can happen that the problem is unsolvable, but this situation should not be relevant for practical use.) This function aims to compute instead the `alm` for which the L2 norm of `alm2map(alm) - map` is minimal, i.e. it tries to find the best possible least-squares approximation. Since this is an iterative procedure, the user needs to specify a tolerance at which the iteration is stopped and a maximum iteration count to avoid excessive run times in extreme cases. Compared to `map2alm` this algorithm has the following advantages and disadvantages: - the exact number of iterations need not be specified beforehand, it will stop automatically once the desired accuracy is reached. - during calculation it requires more memory than `map2alm`. Parameters ---------- maps : array-like, shape (Npix,) or (n, Npix) The input map or a list of n input maps. Must be in ring ordering. lmax, mmax : int The desired lmax and mmax parameters for the analysis pol : bool, optional If True, assumes input maps are TQU. Output will be TEB alm's. (input must be 1 or 3 maps) If False, apply spin 0 harmonic transform to each map. (input can be any number of maps) If there is only one input map, it has no effect. Default: True. tol : float The desired accuracy for the result. Once this is reached, the iteration stops. maxiter : int maximum iteration count after which the minimization is stopped Returns ------- alm : numpy.ndarray(complex) The reconstructed a_lm coefficients rel_res : float The norm of the residual map (i.e. `map-alm2map(alm)`), divided by the norm of `maps`. This is a measure for the fraction of the map signal that could not be modeled by the a_lm n_iter : int the number of iterations required """ from scipy.sparse.linalg import LinearOperator, lsqr, lsmr from scipy.linalg import norm from .pixelfunc import npix2nside maps = ma_to_array(maps) info = maptype(maps) ncomp = 1 if info == 0 else info maps = np.array(maps) npix = maps.size / ncomp nside = pixelfunc.get_nside(maps) check_max_nside(nside) # helper functions to convert between real- and complex-valued a_lm def alm2realalm(alm): alm = alm.reshape((ncomp, -1)) res = np.zeros((ncomp, alm.shape[1] * 2 - lmax - 1)) for i in range(ncomp): res[i, 0 : lmax + 1] = alm[i, 0 : lmax + 1].real res[i, lmax + 1 :] = alm[i, lmax + 1 :].view(np.float64) * np.sqrt(2.0) return res.reshape((-1,)) def realalm2alm(alm): alm = np.array(alm).reshape((ncomp, -1)) res = np.zeros((ncomp, (alm.shape[1] + lmax + 1) // 2), dtype=np.complex128) for i in range(ncomp): res[i, 0 : lmax + 1] = alm[i, 0 : lmax + 1] res[i, lmax + 1 :] = alm[i, lmax + 1 :].view(np.complex128) * ( np.sqrt(2.0) / 2 ) if ncomp == 1: res = res[0] return res def a2m2(x): talm = realalm2alm(x) res = alm2map(talm, lmax=lmax, nside=nside, pol=pol) return res.reshape((-1,)) def m2a2(x): talm = map2alm(x.reshape((ncomp, -1)), lmax=lmax, iter=0, pol=pol) talm *= (12 * nside ** 2) / (4 * np.pi) res = alm2realalm(talm) return res # initial guess alm0 = m2a2(maps) / npix * (4 * np.pi) op = LinearOperator( matvec=a2m2, rmatvec=m2a2, shape=(len(maps) * maps[0].size, alm0.size) ) res = lsqr( A=op, b=maps.reshape((-1,)), x0=alm0, atol=tol, btol=tol, iter_lim=maxiter, show=False, ) # res = lsmr(A=op, b=maps, x0=alm0, atol=tol, btol=tol, maxiter=maxiter, show=False) return realalm2alm(res[0]), res[3] / norm(maps.reshape((-1,))), res[2]
(maps, lmax, mmax, pol=True, tol=1e-10, maxiter=20)
[ 0.03945048525929451, 0.057086698710918427, 0.03575451299548149, 0.045195311307907104, 0.027518922463059425, -0.02219591848552227, -0.03649772331118584, -0.08798020333051682, -0.050136663019657135, 0.056443922221660614, -0.034910865128040314, 0.032279495149850845, -0.007833854295313358, 0.07191076129674911, -0.013146813958883286, 0.04539617896080017, -0.04559704661369324, -0.029728470370173454, 0.0017651279922574759, -0.006899817381054163, -0.012624557130038738, 0.005754869431257248, 0.03302270546555519, 0.07279457896947861, 0.002729294588789344, -0.020970623940229416, 0.018580295145511627, -0.030913593247532845, -0.03157645836472511, -0.03344453126192093, -0.003899350995197892, 0.02386312372982502, 0.057207219302654266, -0.059296246618032455, -0.0008656157297082245, -0.052265867590904236, 0.06383586674928665, -0.025911977514624596, -0.11859249323606491, -0.042584024369716644, 0.015235841274261475, -0.015075147151947021, 0.02255748212337494, 0.02279852330684662, 0.0031636718194931746, -0.014643280766904354, -0.06194770708680153, 0.0065482985228300095, -0.006508124992251396, 0.027719790115952492, -0.024546075612306595, -0.08086947351694107, 0.0023740092292428017, 0.04981527477502823, -0.011027655564248562, 0.07010295242071152, -0.03951074555516243, -0.00498152757063508, 0.0727544054389, -0.11955666542053223, -0.0038692208472639322, -0.0624699629843235, 0.006086301989853382, -0.007261380087584257, 0.010846874676644802, -0.009877686388790607, -0.013327594846487045, -0.008366154506802559, 0.03414756804704666, 0.043949928134679794, -0.04254385083913803, 0.0415395125746727, 0.009877686388790607, -0.053953155875205994, 0.036979809403419495, 0.07395961880683899, 0.008491696789860725, -0.05318985879421234, 0.00017732882406562567, -0.0339667871594429, 0.01145952194929123, -0.004092686343938112, 0.02671544998884201, -0.0006399530684575438, -0.07022347301244736, -0.0031059221364557743, 0.055841315537691116, -0.005990889389067888, 0.012835468165576458, -0.09376520663499832, 0.014834105037152767, 0.03754223883152008, 0.05049822852015495, 0.04463288187980652, -0.03625668212771416, 0.01368915755301714, -0.05443524196743965, -0.01707378402352333, 0.02237670123577118, -0.0194038525223732, 0.04447218403220177, -0.008300872519612312, 0.0018919259309768677, 0.04097708314657211, 0.04294558987021446, -0.005152265541255474, -0.000830463832244277, -0.04282506927847862, 0.036397289484739304, 0.019243158400058746, -0.022577568888664246, 0.026936404407024384, -0.05764912813901901, 0.01812834106385708, -0.06664802134037018, 0.03772301971912384, 0.016230138018727303, -0.02920621447265148, 0.0030632377602159977, 0.04603895545005798, 0.0011480863904580474, -0.04969475418329239, -0.0008260698523372412, -0.04451236128807068, 0.06628645956516266, -0.010686180554330349, 0.023943470790982246, -0.03280175104737282, 0.016641918569803238, -0.046440694481134415, 0.02886473760008812, -0.002040066057816148, -0.016662005335092545, 0.046320170164108276, 0.0014336956664919853, -0.013176944106817245, 0.002013702178373933, -0.02207539789378643, -0.005579110234975815, -0.023843036964535713, -0.04338749870657921, 0.03914918377995491, -0.006407690700143576, 0.01800782047212124, -0.009039062075316906, -0.022959217429161072, 0.06841565668582916, 0.018570251762866974, 0.031857673078775406, -0.01005344558507204, 0.039771873503923416, -0.0809498205780983, -0.020729582756757736, 0.015537143684923649, -0.01622009463608265, -0.034910865128040314, 0.03643746301531792, -0.014121023938059807, 0.0008587109041400254, -0.013638940639793873, -0.016380788758397102, -0.05190430209040642, -0.0023325802758336067, -0.02159331552684307, -0.011921518482267857, -0.03890814259648323, -0.00472291000187397, 0.016812656074762344, 0.024525988847017288, -0.0007689479971304536, -0.02070949599146843, -0.015416623093187809, -0.07227232307195663, -0.05158291384577751, 0.0016697156243026257, -0.014562933705747128, -0.042101942002773285, -0.006457907613366842, -0.020870190113782883, -0.008014635182917118, -0.035372864454984665, 0.040193695574998856, -0.03450912982225418, 0.00712579395622015, -0.02231644093990326, 0.06146562099456787, 0.021613402292132378, -0.02313999831676483, -0.012684817425906658, -0.008622260764241219, -0.04374906048178673, -0.04848954826593399, -0.006046128459274769, -0.019725242629647255, -0.03133541718125343, 0.006005954463034868, -0.003133541438728571, 0.059135552495718, 0.031917933374643326, 0.046561215072870255, -0.09802360832691193, 0.022959217429161072, -0.009254995733499527, -0.003206356195732951, 0.03047168254852295, -0.042985763400793076, -0.015165537595748901, -0.03262097015976906, 0.05889451131224632, 0.01883137971162796, 0.02510850690305233, -0.0032967468723654747, -0.04764590039849281, 0.0031561392825096846, 0.02998960018157959, 0.05049822852015495, 0.04539617896080017, 0.04901180416345596, 0.013879981823265553, 0.0017739159520715475, -0.07665124535560608, -0.02992933988571167, -0.005724739283323288, -0.008064852096140385, -0.029708383604884148, 0.018489904701709747, 0.08982819318771362, 0.06311274319887161, 0.030371248722076416, 0.036738764494657516, 0.014121023938059807, -0.04515513777732849, 0.04073604196310043, -0.07371857017278671, -0.027338141575455666, -0.01749560609459877, -0.007457226514816284, 0.031074287369847298, -0.028603609651327133, -0.013618853874504566, -0.0030230642296373844, -0.046440694481134415, -0.04475340247154236, 0.04226263612508774, -0.06299222260713577, 0.008110047318041325, -0.02814161404967308, -0.0046500954777002335, -0.0224369615316391, 0.004748018458485603, 0.013066466897726059, 0.00950608029961586, 0.006317300256341696, 0.043106283992528915, 0.017395172268152237, -0.051743607968091965, -0.008190394379198551, -0.023642169311642647, 0.027458662167191505, -0.06560350209474564, 0.038104668259620667, -0.0144022386521101, -0.005815130192786455, -0.014452456496655941, -0.00958140566945076, -0.013608810491859913, 0.027659529820084572, 0.034428782761096954, 0.025188853964209557, 0.027097100391983986, 0.11296819150447845, 0.028161700814962387, -0.07263388484716415, 0.002568600233644247, -0.01205208245664835, 0.09938950836658478, 0.07403996586799622, -0.035794686526060104, 0.011349044740200043, 0.014442413114011288, -0.007296531926840544, 0.007698268163949251, -0.046922776848077774, 0.04190107434988022, -0.03308296576142311, -0.000919599027838558, -0.02623336762189865, 0.009797339327633381, 0.030913593247532845, -0.0292664747685194, 0.07303562015295029, 0.0015705371042713523, 0.010856918059289455, -0.04724416509270668, 0.09352416545152664, -0.02171383611857891, 0.01249399222433567, -0.027297968044877052, -0.00982746947556734, -0.020277628675103188, -0.012514078989624977, -0.017545824870467186, 0.10228201001882553, -0.014824061654508114, -0.0018015352543443441, -0.03796406090259552, -0.07251336425542831, -0.04961440712213516, 0.02731805481016636, -0.014583020471036434, -0.017144087702035904, 0.0035880054347217083, -0.0037562325596809387, -0.02135227434337139, -0.030893506482243538, 0.04238315671682358, 0.00728648854419589, 0.030029773712158203, 0.06480003148317337, 0.021914703771471977, 0.003841601312160492, 0.025449981912970543, 0.040253955870866776, -0.02267800271511078, 0.05073926970362663, -0.04933319240808487, 0.05005631595849991, -0.008336024358868599, 0.07865992933511734, -0.0897478461265564, -0.019534418359398842, 0.013036336749792099, -0.015627535060048103, -0.016511352732777596, -0.03338427096605301, -0.015908749774098396, 0.03372574597597122, -0.059416767209768295, -0.006809426937252283, -0.025249114260077477, 0.05242656171321869, 0.05841242894530296, -0.016079487279057503, 0.03145593777298927, -0.0020840060897171497, 0.017877256497740746, -0.002486997516825795, 0.005860325414687395, -0.08476631343364716, -0.05351124703884125, -0.01901216059923172, -0.06327343732118607, -0.011740737594664097, 0.025269201025366783, -0.0017726605292409658, 0.10284443944692612, 0.0028673913329839706, -0.021452708169817924, 0.005694609135389328, 0.005104559473693371, -0.009194734506309032, -0.025932064279913902, -0.07239284366369247, -0.032400015741586685, -0.005805086810141802, -0.03511173650622368, 0.021814269945025444, -0.04961440712213516, 0.04571756720542908, -0.061787012964487076, 0.013669070787727833, -0.039249617606401443, 0.01809821091592312, 0.020036587491631508, -0.05178378149867058, 0.054234374314546585, 0.008687542751431465, 0.014151154085993767, -0.06022024154663086, 0.014914453029632568, 0.01380967814475298, 0.011258654296398163, -0.0036030705086886883, 0.012082213535904884, 0.055319059640169144, 0.006201800890266895, -0.00742207420989871, 0.006924925837665796, -0.039068836718797684, -0.01151978224515915, 0.029587863013148308, 0.01178091112524271, 0.025389721617102623, -0.019152767956256866, -0.003967144060879946, 0.04672190919518471, -0.0043513039126992226, 0.018690772354602814, -0.06512141972780228, -0.024244774132966995, -0.021171491593122482, -0.01350837666541338, 0.020538758486509323, -0.02874421700835228, -0.04350801929831505, -0.03205854073166847, 0.03402704745531082, 0.006708992645144463, -0.040374476462602615, 0.026313714683055878, -0.01193156186491251, 0.0554797537624836, -0.008858281187713146, -0.06604541093111038, -0.05037770792841911, 0.014412282034754753, -0.03860683739185333, -0.027117187157273293, 0.008622260764241219, 0.01892177015542984, 0.052627429366111755, -0.013970373198390007, 0.011881344951689243, 0.016993436962366104, 0.01728469505906105, -0.021814269945025444, -0.03844614326953888, -0.036095988005399704, -0.07616916298866272, -0.010394921526312828, 0.056443922221660614, 0.003896840149536729, 0.034790344536304474, -0.08749812096357346, -0.04848954826593399, 0.05194447562098503, -0.007808745373040438, 0.04627999663352966, -0.009782274253666401, -0.07813767343759537, 0.07239284366369247, 0.009229887276887894, 0.0036608201917260885, 0.01612970419228077, 0.018931813538074493, -0.03428817540407181, -0.008787977509200573, -0.019273288547992706, -0.019213028252124786, 0.03862692415714264, 0.002950249472633004, 0.01746547594666481, -0.0053430902771651745, 0.004110262263566256, 0.05789017304778099, -0.007813767530024052, 0.008873346261680126, -0.000044096814235672355, -0.05716704577207565, 0.04961440712213516, 0.021372361108660698, -0.01825890503823757, 0.05057857558131218, 0.042744722217321396, 0.0648803785443306, 0.0609433650970459, 0.013528463430702686, 0.06347430497407913, -0.045677393674850464, -0.027980919927358627, 0.026032499969005585, -0.009275082498788834, 0.06234944239258766, 0.006246996112167835, 0.041860900819301605, -0.01871085911989212, -0.03774310648441315, 0.049172498285770416, 0.052868470549583435, -0.0232002604752779, -0.00498152757063508, -0.00227734143845737, 0.017596041783690453, 0.00702033843845129, 0.00246816617436707, 0.018108254298567772, 0.0011261164909228683, -0.056082360446453094, -0.015386492945253849, -0.032520536333322525, -0.036859285086393356, 0.036738764494657516, 0.03527243062853813, 0.06146562099456787, -0.01737508550286293, 0.010575702413916588, 0.040334302932024, -0.018489904701709747, 0.03683919832110405, 0.008255676366388798, 0.027217620983719826, -0.0536719411611557, -0.06632663309574127, 0.002957782009616494, 0.03386635333299637, 0.04378923401236534, -0.03657807037234306, -0.03655798360705376, 0.016230138018727303, 0.05081961676478386, -0.06299222260713577, -0.0821952074766159, 0.055078018456697464, -0.004916245583444834, 0.00910936575382948, 0.04121812433004379, 0.03368557244539261, -0.01390006858855486, -0.012333298102021217, 0.008079917170107365, -0.0036909503396600485, -0.01416119746863842, -0.08315937221050262, -0.033464618027210236, -0.03296244516968727, -0.02595215104520321, -0.0017149109626188874, -0.002940206089988351, -0.0008392517920583487, -0.025670936331152916, 0.003276660107076168, -0.009400624781847, -0.029587863013148308, 0.011118046008050442, 0.027699703350663185, 0.0415395125746727, -0.00912443082779646, -0.09336347132921219, 0.014121023938059807, -0.0180379506200552, 0.0026539689861238003, 0.018168514594435692, 0.06773270666599274, -0.015336275100708008, 0.013176944106817245, 0.03135550394654274, -0.013227161020040512, 0.02856343612074852, 0.010796657763421535, -0.015205711126327515, 0.0013332617236301303, 0.02285878360271454, 0.006488037761300802, 0.005182395689189434, 0.00479070283472538, 0.014301804825663567, 0.029909253120422363, -0.08267728984355927, -0.05604218691587448, -0.00469277985394001, 0.0025234047789126635, 0.017304781824350357, 0.004283511079847813, 0.0026815885212272406, -0.02938699536025524, -0.009214821271598339, 0.07420065999031067, 0.03428817540407181, 0.01646113581955433, 0.017776822671294212, -0.016812656074762344, -0.01686287298798561, -0.036337029188871384, -0.05636357516050339, -0.024023817852139473, 0.028101440519094467, 0.027358228340744972, -0.06688906252384186, 0.008657412603497505, -0.025490155443549156, 0.05182395502924919, 0.02719753421843052, -0.01431184820830822, 0.018720902502536774, 0.07299544662237167, 0.0011870046146214008, -0.039892394095659256, 0.04053517058491707, -0.027157360687851906, -0.013076510280370712, -0.022416874766349792, 0.024264860898256302, -0.0064980811439454556, -0.010646006092429161, -0.04071595519781113, -0.03135550394654274, -0.001824132981710136, 0.022537395358085632, -0.03314322978258133, 0.036156248301267624, 0.010269379243254662, -0.008702607825398445, -0.055841315537691116, -0.014000503346323967, -0.011891388334333897, 0.013428028672933578, 0.028181787580251694, -0.028302308171987534, -0.03766275942325592, 0.04455253481864929, -0.01205208245664835, 0.023421214893460274, 0.02659492939710617, -0.023662256076931953, 0.017897343263030052, -0.05339072644710541, -0.013217117637395859, 0.06218874827027321, 0.07395961880683899, -0.0006317927618511021, 0.0014110980555415154, 0.008657412603497505, -0.013066466897726059, -0.02307973802089691, 0.0008072384516708553, -0.0036909503396600485, 0.030009686946868896, -0.0022672980558127165, 0.02950751595199108, 0.03256070986390114, -0.00476810522377491, 0.022939130663871765, 0.03587503358721733, -0.02916604094207287, 0.028483089059591293, -0.008084938861429691, 0.04015352204442024, -0.0010363536421209574, -0.004205674864351749, 0.06122457981109619, -0.046561215072870255, -0.024907637387514114, 0.027980919927358627, -0.040494997054338455, 0.05403350666165352, 0.061264753341674805, 0.005508806090801954, 0.01871085911989212, 0.035312604159116745, 0.036919549107551575, -0.01983571983873844, 0.0011970479972660542, -0.015306144952774048, 0.04403027519583702, 0.013287421315908432, -0.039952654391527176, 0.0003025574842467904, 0.018520034849643707, -0.052265867590904236, -0.02135227434337139, -0.03856666386127472, -0.02605258673429489, -0.02064923569560051, -0.04121812433004379, -0.02095053717494011, -0.01916281133890152, 0.07327666133642197, 0.05363176763057709, -0.005247677676379681, 0.037100329995155334, -0.0070303818210959435, -0.020568888634443283, 0.03320349007844925, 0.0099329249933362, 0.012915815226733685, 0.03979196026921272, -0.010897091589868069, -0.022959217429161072, 0.006558341905474663, -0.011449478566646576, -0.024204600602388382, 0.05515836551785469, -0.02689623087644577, 0.010686180554330349, -0.00949101522564888, 0.021332187578082085, 0.024767030030488968, 0.00475304014980793, -0.0037687867879867554, -0.026514582335948944, 0.0009283869876526296, 0.019504288211464882, 0.03193802013993263, 0.0069650993682444096, 0.011168263852596283, 0.023160085082054138, -0.020157108083367348, 0.002651458140462637, 0.05568062141537666, 0.006156605668365955, 0.07902149111032486, -0.003284192644059658, -0.012925858609378338, -0.004293554462492466, -0.019855806604027748, 0.057930346578359604, -0.021553141996264458, 0.02119157835841179, -0.05865347012877464, -0.026213280856609344, 0.0012918326538056135, 0.04615947604179382, 0.02968829683959484, -0.01998637057840824, 0.03563399240374565, -0.09103339910507202, 0.02195487730205059, 0.016933176666498184, -0.010515442118048668, 0.0014738693134859204, 0.013849851675331593, 0.023160085082054138, 0.01437210850417614, -0.037602499127388, -0.030793072655797005, 0.023360954597592354, -0.026856057345867157, -0.017365042120218277, 0.015908749774098396, 0.008100003935396671, -0.02695649117231369, 0.005084472242742777, -0.005935650784522295, 0.08235590159893036, -0.03784354031085968, 0.015748055651783943, -0.02119157835841179, -0.05588149279356003, -0.0142515879124403, -0.002116647083312273, 0.05801069363951683, 0.0041906097903847694, 0.014763801358640194, -0.015466840006411076, -0.10991499572992325, 0.023702429607510567, -0.027117187157273293, 0.015999140217900276, -0.020267585292458534, -0.022457048296928406, 0.049775101244449615, -0.02641414850950241, 0.0030833245255053043, 0.05740808695554733, -0.009330321103334427, 0.022577568888664246, 0.04314645752310753, -0.03738154470920563, 0.01112809032201767, -0.0324401892721653, 0.0008279529865831137, 0.03657807037234306, -0.022296354174613953, 0.031978193670511246, -0.05600201338529587, -0.0200165007263422, -0.0821952074766159, -0.016029270365834236 ]
37,693
healpy.pixelfunc
maptype
Describe the type of the map (valid, single, sequence of maps). Checks : the number of maps, that all maps have same length and that this length is a valid map size (using :func:`isnpixok`). Parameters ---------- m : sequence the map to get info from Returns ------- info : int -1 if the given object is not a valid map, 0 if it is a single map, *info* > 0 if it is a sequence of maps (*info* is then the number of maps) Examples -------- >>> import healpy as hp >>> hp.pixelfunc.maptype(np.arange(12)) 0 >>> hp.pixelfunc.maptype([np.arange(12), np.arange(12)]) 2
def maptype(m): """Describe the type of the map (valid, single, sequence of maps). Checks : the number of maps, that all maps have same length and that this length is a valid map size (using :func:`isnpixok`). Parameters ---------- m : sequence the map to get info from Returns ------- info : int -1 if the given object is not a valid map, 0 if it is a single map, *info* > 0 if it is a sequence of maps (*info* is then the number of maps) Examples -------- >>> import healpy as hp >>> hp.pixelfunc.maptype(np.arange(12)) 0 >>> hp.pixelfunc.maptype([np.arange(12), np.arange(12)]) 2 """ if not hasattr(m, "__len__"): raise TypeError("input map is a scalar") if len(m) == 0: raise TypeError("input map has length zero") try: npix = len(m[0]) except TypeError: npix = None if npix is not None: for mm in m[1:]: if len(mm) != npix: raise TypeError("input maps have different npix") if isnpixok(len(m[0])): return len(m) else: raise TypeError("bad number of pixels") else: if isnpixok(len(m)): return 0 else: raise TypeError("bad number of pixels")
(m)
[ 0.06067995727062225, 0.04977914318442345, 0.0428219698369503, 0.01734643243253231, 0.07053905725479126, 0.013700425624847412, -0.001290518674068153, -0.025782471522688866, -0.0428219698369503, 0.02098313719034195, -0.012072744779288769, 0.049332693219184875, 0.009728883393108845, -0.008063998073339462, 0.042152293026447296, 0.009254531003534794, -0.011412370949983597, 0.023903662338852882, 0.03366975113749504, 0.015169989317655563, 0.0250569898635149, 0.08006331324577332, 0.07842633128166199, -0.010407859459519386, -0.015365310944616795, -0.057964056730270386, 0.03151191025972366, -0.010379956103861332, 0.01636052131652832, -0.03820865601301193, -0.09546583145856857, -0.035027701407670975, 0.01694648712873459, 0.04870022460818291, -0.0004941175575368106, 0.010007914155721664, 0.017086002975702286, 0.04650517925620079, -0.05874534323811531, 0.0033134939149022102, -0.049295488744974136, -0.028014719486236572, 0.002546158619225025, 0.04259874299168587, 0.03214437887072563, -0.014481713064014912, -0.016016384586691856, -0.048886243253946304, -0.0964331403374672, -0.0271404217928648, -0.011579789221286774, -0.024722153320908546, 0.0327768512070179, 0.005417853593826294, -0.039138760417699814, 0.06294941157102585, -0.03379996493458748, -0.005641078110784292, -0.005757341161370277, -0.0031088711693882942, -0.00814770720899105, 0.02557784877717495, 0.006840911693871021, -0.08274201303720474, 0.0325908288359642, -0.0021508645731955767, -0.02090872824192047, 0.0037901720497757196, -0.03430221974849701, 0.023420007899403572, -0.01741153933107853, 0.02351301908493042, -0.06190769374370575, 0.015616439282894135, 0.07210163027048111, -0.0032437362242490053, 0.06577692925930023, 0.005850351415574551, 0.05063483864068985, 0.009570766240358353, -0.010110226459801197, 0.013719027861952782, 0.012668010778725147, -0.03379996493458748, -0.03525092452764511, 0.05781523883342743, 0.03646006062626839, 0.04739807918667793, -0.055917829275131226, -0.06871605664491653, 0.011691401712596416, -0.0034111549612134695, 0.04241272434592247, 0.07280851155519485, -0.10469245910644531, 0.008477894589304924, -0.012537796050310135, -0.0089754993095994, -0.01635122112929821, -0.039585210382938385, 0.002090407768264413, -0.027493862435221672, 0.04862581565976143, -0.0017753351712599397, -0.0208901260048151, -0.004201742820441723, 0.026340533047914505, 0.010259042493999004, -0.05837330222129822, 0.03292566537857056, -0.03067481704056263, -0.03846908360719681, -0.034581251442432404, -0.021262168884277344, 0.028405362740159035, 0.025763869285583496, 0.026191717013716698, -0.008673216216266155, -0.018062612041831017, 0.014435207471251488, -0.024740755558013916, 0.0388411246240139, 0.025782471522688866, -0.061572857201099396, 0.05472729355096817, -0.03015395812690258, 0.01942056231200695, -0.013160965405404568, -0.001491653616540134, 0.005352746229618788, -0.01578385755419731, -0.013728328980505466, -0.005162074696272612, 0.12002056837081909, -0.0022148091811686754, -0.01076129823923111, 0.004662144463509321, -0.11109156906604767, -0.044235724955797195, 0.010789201594889164, -0.010677589103579521, 0.057480402290821075, 0.011663499288260937, -0.0015742003452032804, -0.02196904644370079, -0.022322485223412514, 0.03117707185447216, -0.001986933872103691, 0.04516582936048508, 0.0029600546695291996, -0.04810495674610138, -0.05487611144781113, 0.021578403189778328, -0.007245507091283798, -0.03735296055674553, -0.02347581461071968, 0.055992234498262405, -0.02291775308549404, -0.007394323591142893, -0.06045673415064812, -0.030042346566915512, 0.012342474423348904, -0.03683210164308548, -0.02241549640893936, -0.018081214278936386, 0.011663499288260937, 0.009324288927018642, 0.01556993369013071, 0.04959312453866005, 0.03588339686393738, -0.030823633074760437, -0.0281821396201849, -0.006208441220223904, -0.06402833014726639, 0.08259319514036179, 0.011635595932602882, -0.03824586048722267, 0.0004528441932052374, 0.012295969761908054, 0.017179014161229134, 0.04181745648384094, 0.022173669189214706, -0.06291220337152481, 0.012184357270598412, -0.053425151854753494, 0.05576901137828827, -0.008208164013922215, 0.02092733047902584, -0.01305865403264761, 0.017262723296880722, 0.01094731967896223, 0.015616439282894135, -0.004669120069593191, -0.01558853592723608, 0.01893690973520279, -0.014202681370079517, 0.010891512967646122, 0.0296517014503479, 0.01838814839720726, 0.04546346515417099, -0.05643868446350098, -0.007566392887383699, -0.014156176708638668, 0.07176679372787476, 0.006296801380813122, -0.046840015798807144, -0.022285282611846924, 0.008380233310163021, 0.017709171399474144, -0.016016384586691856, 0.012147152796387672, -0.047844529151916504, 0.0071617974899709225, -0.0035553209017962217, 0.06938572973012924, -0.03180954232811928, 0.03379996493458748, 0.001609079190529883, -0.02764267846941948, -0.0010661312844604254, 0.005822448525577784, 0.04739807918667793, 0.0317351333796978, 0.07887278497219086, 0.046281956136226654, -0.017225518822669983, -0.03618102893233299, 0.07879837602376938, 0.039027146995067596, 0.04140821099281311, -0.0145654221996665, -0.020071635022759438, 0.007975637912750244, 0.0053620473481714725, 0.0348602831363678, -0.04308239743113518, 0.023252589628100395, -0.04032929241657257, -0.01638842560350895, 0.0036855353973805904, -0.010910115204751492, 0.039622411131858826, -0.050374411046504974, -0.000039057085814420134, -0.06588853895664215, -0.020611096173524857, -0.045798301696777344, 0.019160134717822075, -0.041594233363866806, 0.02600569650530815, -0.03729715570807457, -0.03117707185447216, 0.0188532005995512, -0.012705215252935886, 0.058522116392850876, -0.0054643587209284306, -0.04393809288740158, -0.03212577849626541, 0.017067400738596916, -0.027996117249131203, 0.025187205523252487, -0.009784690104424953, 0.06871605664491653, 0.025391828268766403, -0.00007310033106477931, -0.02141098491847515, 0.0520113930106163, 0.0347672738134861, 0.011198447085916996, -0.021783025935292244, -0.005757341161370277, 0.060084693133831024, 0.012919139117002487, -0.039101555943489075, -0.019792605191469193, 0.024759357795119286, 0.06793476641178131, 0.0025577847845852375, 0.03011675365269184, 0.007691956590861082, -0.0271404217928648, -0.027196228504180908, -0.04449615627527237, -0.015700148418545723, -0.039659615606069565, 0.020313462242484093, 0.015532730147242546, 0.053425151854753494, -0.005013258196413517, 0.008305825293064117, 0.03220018744468689, 0.003015860915184021, -0.04032929241657257, -0.037036724388599396, -0.049407102167606354, 0.0006063112523406744, 0.009259181097149849, 0.023885060101747513, -0.02100173942744732, -0.04758409783244133, -0.002574061742052436, -0.012919139117002487, 0.018629975616931915, 0.0025182554963976145, 0.0017823110101744533, 0.03817145153880119, -0.02712182141840458, -0.04657958820462227, -0.008459292352199554, 0.03482307866215706, 0.01069619134068489, 0.05361117050051689, -0.06477241218090057, 0.016658155247569084, 0.01026834361255169, 0.05126731097698212, -0.0055666700936853886, 0.02399667166173458, 0.005185327492654324, 0.040106065571308136, 0.008840634487569332, 0.013598114252090454, 0.041705843061208725, -0.04497981071472168, 0.013263276778161526, -0.021355178207159042, 0.007026932667940855, -0.03206996992230415, 0.05666191130876541, -0.026470748707652092, -0.01888110302388668, -0.007840773090720177, 0.01094731967896223, 0.024870969355106354, -0.009766087867319584, -0.01587686873972416, -0.014621227979660034, -0.018657878041267395, -0.012984246015548706, 0.0114867789670825, 0.013598114252090454, -0.010379956103861332, -0.017681268975138664, -0.015253698453307152, 0.04151982441544533, 0.013765533454716206, -0.02820073999464512, -0.038543492555618286, -0.003629729151725769, 0.07366420328617096, 0.004359860438853502, 0.0015172314597293735, 0.011616993695497513, -0.006324704270809889, -0.007324565667659044, 0.023717641830444336, 0.035548560321331024, 0.011765810661017895, -0.02044367603957653, 0.08341168612241745, 0.06462359428405762, 0.006515375804156065, 0.0036832101177424192, -0.07850074023008347, -0.03525092452764511, -0.025782471522688866, 0.004324981477111578, -0.025168603286147118, 0.043640460819005966, -0.023122375831007957, 0.005957313347607851, -0.001449798932299018, -0.06533047556877136, -0.02150399424135685, 0.006999029312282801, 0.03839467465877533, -0.00023165391758084297, 0.03206996992230415, -0.08177470415830612, -0.01589547097682953, -0.042115092277526855, -0.043677665293216705, -0.012175056152045727, 0.033465128391981125, -0.007822170853614807, -0.012928440235555172, -0.02864718995988369, 0.005627126898616552, -0.1304377317428589, 0.03668328374624252, 0.002848442178219557, 0.014109671115875244, -0.004976054187864065, -0.0612008161842823, 0.024219896644353867, 0.02600569650530815, -0.029316864907741547, 0.04352884739637375, -0.04248713329434395, -0.024945378303527832, 0.01301214937120676, -0.038078442215919495, -0.01845325529575348, 0.011728606186807156, -0.019290348514914513, -0.02615451253950596, -0.039101555943489075, -0.02715902402997017, -0.011533284559845924, -0.029949335381388664, 0.11682101339101791, 0.016518639400601387, -0.001139376894570887, -0.07191561162471771, -0.004371487069875002, -0.037018124014139175, -0.02144818939268589, -0.007296662777662277, -0.01949497126042843, 0.024647744372487068, 0.0714319571852684, 0.009784690104424953, 0.015467622317373753, 0.008603458292782307, -0.010789201594889164, -0.0417802520096302, -0.016862777993083, 0.01587686873972416, -0.030377183109521866, 0.07753343135118484, -0.010510170832276344, -0.002967030508443713, 0.03491608798503876, -0.050820861011743546, -0.036106619983911514, 0.0006330517353489995, -0.03612522408366203, -0.032944269478321075, 0.021224964410066605, -0.029763314872980118, 0.050783656537532806, 0.026191717013716698, -0.0027135771233588457, 0.045277442783117294, 0.06823240220546722, -0.028870414942502975, 0.002953078830614686, -0.02764267846941948, 0.03835747018456459, -0.004562158137559891, -0.045277442783117294, -0.02293635532259941, 0.044756583869457245, -0.039585210382938385, 0.1453193873167038, -0.014025961980223656, -0.06618617475032806, 0.030507396906614304, 0.00924057886004448, 0.005134171806275845, -0.027475260198116302, -0.03623683750629425, 0.027419453486800194, -0.021224964410066605, 0.03469286486506462, 0.047249261289834976, 0.007719859946519136, 0.011570489034056664, 0.01836954616010189, -0.0012277367059141397, 0.01203554030507803, 0.01329118013381958, 0.027419453486800194, -0.031976960599422455, 0.02654515579342842, 0.022378291934728622, 0.026247523725032806, 0.06942293047904968, 0.033576738089323044, 0.021187759935855865, 0.07109712064266205, 0.04687722027301788, 0.03022836707532406, -0.0316421240568161, -0.03828306496143341, 0.020239053294062614, -0.028312353417277336, -0.02195044420659542, -0.04044090583920479, 0.015532730147242546, -0.023289794102311134, -0.02821934223175049, 0.025894083082675934, -0.002985632512718439, 0.02449892833828926, -0.00375761860050261, 0.07518957555294037, -0.02353162132203579, 0.008756925351917744, -0.005780593957751989, 0.024312907829880714, 0.0033390719909220934, 0.015700148418545723, -0.06666982173919678, -0.022843344137072563, 0.011384467594325542, 0.015272300690412521, -0.03471146523952484, 0.016100093722343445, 0.016518639400601387, -0.055917829275131226, -0.013086557388305664, 0.013384190388023853, 0.03564156964421272, 0.01460262667387724, 0.04151982441544533, 0.05022559314966202, -0.05967544764280319, 0.014202681370079517, -0.0007150171441026032, 0.007840773090720177, -0.02957729436457157, -0.039064351469278336, 0.019755400717258453, -0.059042975306510925, 0.030005142092704773, 0.03471146523952484, -0.0052085802890360355, 0.006543278694152832, 0.02155980095267296, 0.03214437887072563, 0.02963310107588768, 0.0072873616591095924, 0.010612482205033302, 0.003966891672462225, -0.029837723821401596, 0.012593602761626244, -0.05309031158685684, 0.021299371495842934, 0.0359019972383976, 0.02656375803053379, -0.017039498314261436, 0.012137851677834988, -0.030042346566915512, 0.034599851816892624, 0.019271746277809143, 0.008691818453371525, -0.06067995727062225, 0.013979457318782806, -0.005938711576163769, -0.07065066695213318, 0.005599223542958498, -0.010026516392827034, 0.02356882579624653, 0.010333450511097908, 0.08125384896993637, 0.04181745648384094, -0.05729437991976738, -0.011784412898123264, -0.004841189365833998, -0.03526952862739563, -0.03660887852311134, 0.023847855627536774, 0.012109948322176933, -0.09204304963350296, -0.02557784877717495, -0.032888464629650116, 0.051936984062194824, -0.012156453914940357, 0.01150538120418787, 0.016500037163496017, -0.023215385153889656, -0.018574168905615807, -0.046244751662015915, 0.016193103045225143, 0.010910115204751492, -0.01046366523951292, -0.009115015156567097, 0.04460776969790459, -0.01592337340116501, -0.02448032610118389, 0.08519748598337173, 0.02144818939268589, 0.040626924484968185, 0.02358742617070675, 0.01945776678621769, -0.0643259659409523, -0.03582759201526642, -0.07221323996782303, 0.006501424126327038, -0.04564948379993439, -0.015979180112481117, 0.026433544233441353, 0.012100648134946823, -0.023643232882022858, 0.00010768855281639844, 0.07154356688261032, 0.019215939566493034, -0.025187205523252487, -0.01893690973520279, 0.023680437356233597, 0.025410430505871773, -0.054504070430994034, -0.025782471522688866, 0.04672840237617493, -0.035995010286569595, 0.05736878886818886, 0.030377183109521866, 0.024145489558577538, -0.030544601380825043, -0.013449298217892647, -0.0022031827829778194, 0.008077949285507202, -0.02092733047902584, -0.04590991139411926, -0.05309031158685684, -0.041147783398628235, 0.06700466573238373, 0.05632707476615906, 0.024201296269893646, -0.008817382156848907, 0.016034984961152077, 0.018425352871418, -0.02243409864604473, 0.03932477906346321, 0.0007382697076536715, -0.03071201965212822, 0.015960577875375748, 0.026786983013153076, -0.055434174835681915, -0.005166725255548954, 0.056550297886133194, 0.0357159785926342, -0.08408136665821075, -0.03802263364195824, -0.01745804399251938, -0.029428478330373764, 0.012863332405686378, -0.03679489716887474, 0.09836775809526443, -0.055471379309892654, 0.009859098121523857, 0.03731575608253479, 0.0036576322745531797, 0.08222115784883499, -0.0023357225582003593, 0.027921710163354874, 0.017746375873684883, 0.06611176580190659, -0.017169712111353874, 0.005352746229618788, 0.00894294586032629, 0.016155898571014404, -0.005287638865411282, 0.03264663740992546, -0.0034995146561414003, -0.026396339759230614, -0.01583966426551342, -0.13780415058135986, -0.030432989820837975, -0.024777960032224655, -0.031009653583168983, -0.04341723397374153, -0.05469008907675743, 0.06882766634225845, -0.021131953224539757, 0.021578403189778328, -0.00014896190259605646, 0.009942807257175446, -0.025801073759794235, -0.015597837045788765, 0.027326444163918495, 0.052457842975854874, -0.03480447456240654, 0.024387316778302193, 0.003487888490781188, 0.024684948846697807, 0.003520442172884941, 0.01740223728120327, 0.05253225192427635, 0.049853552132844925, -0.0019834458362311125, -0.009607969783246517, 0.08475103974342346, -0.025763869285583496, -0.014407304115593433, 0.017541753128170967, -0.039138760417699814, -0.02038787119090557, 0.01405386533588171, 0.019290348514914513, -0.045277442783117294, 0.07678934931755066, 0.0009341727709397674, -0.03221878781914711, 0.0020950583275407553, -0.031530510634183884, 0.0849742665886879, 0.02200625091791153, 0.017625462263822556, -0.0025694111827760935, -0.020685503259301186, -0.02295495569705963, 0.040626924484968185, -0.03869231045246124, 0.025689460337162018, -0.0632842481136322, 0.03169792890548706, 0.032553624361753464, -0.015253698453307152, -0.057964056730270386, 0.052457842975854874, 0.06086597964167595, -0.04743528366088867, -0.04204068332910538, -0.06462359428405762, -0.024777960032224655, 0.05885695666074753, -0.018109116703271866, 0.002339210594072938, -0.007752413395792246, 0.006566531490534544, -0.003201881656423211, 0.04713765159249306, -0.034506842494010925, 0.03683210164308548, -0.02001582831144333, -0.02349441684782505, -0.020201850682497025, -0.044198524206876755, -0.03951080143451691, -0.03763199225068092, -0.044310133904218674, 0.013905048370361328, -0.04654238373041153, 0.05052322521805763, -0.04550066590309143, 0.0037506427615880966, -0.02665676921606064, -0.03519511967897415, 0.006617687176913023, 0.04032929241657257, 0.013970156200230122, 0.008733673021197319, -0.023736244067549706, -0.010612482205033302, 0.02501978725194931, 0.039138760417699814, -0.03584619238972664, -0.008570904843509197, 0.06428875774145126, 0.010398558340966702, -0.06168447062373161, -0.018657878041267395, 0.01940196007490158, 0.009849797002971172, 0.02914944663643837, -0.052867088466882706, 0.034004587680101395, 0.01590477116405964, -0.008705769665539265, -0.026861391961574554, -0.0072129531763494015, -0.03162352368235588, -0.03162352368235588, 0.005064413882791996, -0.05108128860592842, -0.02241549640893936 ]
37,694
healpy.pixelfunc
mask_bad
Returns a bool array with ``True`` where m is close to badval. Parameters ---------- m : a map (may be a sequence of maps) badval : float, optional The value of the pixel considered as bad (:const:`UNSEEN` by default) rtol : float, optional The relative tolerance atol : float, optional The absolute tolerance Returns ------- mask a bool array with the same shape as the input map, ``True`` where input map is close to badval, and ``False`` elsewhere. See Also -------- mask_good, ma Examples -------- >>> import healpy as hp >>> import numpy as np >>> m = np.arange(12.) >>> m[3] = hp.UNSEEN >>> hp.mask_bad(m) array([False, False, False, True, False, False, False, False, False, False, False, False], dtype=bool)
def mask_bad(m, badval=UNSEEN, rtol=1.0e-5, atol=1.0e-8): """Returns a bool array with ``True`` where m is close to badval. Parameters ---------- m : a map (may be a sequence of maps) badval : float, optional The value of the pixel considered as bad (:const:`UNSEEN` by default) rtol : float, optional The relative tolerance atol : float, optional The absolute tolerance Returns ------- mask a bool array with the same shape as the input map, ``True`` where input map is close to badval, and ``False`` elsewhere. See Also -------- mask_good, ma Examples -------- >>> import healpy as hp >>> import numpy as np >>> m = np.arange(12.) >>> m[3] = hp.UNSEEN >>> hp.mask_bad(m) array([False, False, False, True, False, False, False, False, False, False, False, False], dtype=bool) """ m = np.asarray(m) atol = np.absolute(atol) rtol = np.absolute(rtol) return np.absolute(m - badval) <= atol + rtol * np.absolute(badval)
(m, badval=-1.6375e+30, rtol=1e-05, atol=1e-08)
[ 0.06642530113458633, 0.016274018213152885, -0.003940522205084562, 0.008765696547925472, -0.03623034805059433, -0.023692527785897255, -0.04760060831904411, -0.013929913751780987, -0.04321775957942009, -0.03186546266078949, -0.015528575517237186, 0.04652285948395729, 0.016759006306529045, 0.012932995334267616, -0.02159091643989086, 0.024608615785837173, -0.047169506549835205, 0.07644837349653244, 0.037326060235500336, -0.03362578898668289, -0.028793876990675926, 0.014657394960522652, 0.004692701157182455, -0.007872062735259533, 0.017423618584871292, -0.010472133755683899, -0.023063842207193375, 0.002746016252785921, -0.0045983982272446156, -0.009304571896791458, -0.04257110878825188, 0.018663030117750168, 0.013570663519203663, 0.006641631945967674, 0.005932113621383905, -0.039984509348869324, 0.06362315267324448, 0.0008650062954984605, -0.004827420227229595, -0.06179097667336464, 0.005307916551828384, -0.013669457286596298, 0.021465180441737175, 0.030967338010668755, 0.04350515827536583, -0.016238093376159668, 0.06222207844257355, -0.001993836835026741, -0.019848555326461792, 0.06969447433948517, -0.043828483670949936, -0.005379766691476107, 0.011379239149391651, 0.046738408505916595, -0.01406463235616684, 0.028344813734292984, -0.019525229930877686, 0.00693801324814558, 0.019579118117690086, -0.039266008883714676, -0.011549883522093296, 0.006394647527486086, 0.023459015414118767, -0.06373092532157898, 0.03865528479218483, 0.004537774715572596, -0.06743119657039642, -0.05457005649805069, -0.0315241776406765, 0.041924457997083664, -0.03836788609623909, 0.02924293838441372, 0.005011535715311766, 0.024357140064239502, -0.013525757938623428, -0.0009840078419074416, 0.0694430023431778, -0.014738225378096104, -0.08988431841135025, -0.0010822402546182275, -0.003316325368359685, -0.001078310888260603, 0.06664085388183594, -0.010112883523106575, -0.08708216995000839, -0.001436999416910112, 0.025165453553199768, 0.01263661403208971, 0.03583517298102379, -0.0567614771425724, 0.049792032688856125, 0.018842656165361404, -0.008235802873969078, -0.045481033623218536, -0.02076464146375656, 0.05403117835521698, 0.0013965838588774204, 0.06193467602133751, -0.052270855754613876, -0.05956362932920456, 0.04095448553562164, -0.0018972883699461818, 0.008379503153264523, -0.010984065011143684, 0.0225968174636364, 0.009807521477341652, 0.01348085142672062, -0.04889390617609024, -0.016714099794626236, 0.02196813002228737, -0.001907392288558185, -0.012861145660281181, -0.05302527919411659, 0.04041561111807823, -0.0074185095727443695, 0.039122309535741806, 0.02065686695277691, 0.0007998922956176102, 0.02430325374007225, -0.001266355742700398, 0.011819320730865002, -0.010076958686113358, 0.0005181056912988424, -0.03833195939660072, 0.0534563809633255, 0.005025007296353579, 0.04278665781021118, 0.006053360179066658, -0.007180506829172373, -0.02561451494693756, -0.025183415040373802, 0.03543999791145325, 0.045373257249593735, 0.01736075058579445, -0.016453644260764122, 0.0008560250862501562, -0.018986355513334274, -0.012385139241814613, 0.0185732189565897, -0.015393856912851334, 0.021267592906951904, 0.03905045986175537, -0.01382213830947876, 0.0330689512193203, 0.013615570031106472, -0.036356087774038315, -0.016794931143522263, 0.000036451230698730797, 0.06606604903936386, 0.07666391879320145, -0.02536304108798504, -0.07005372643470764, -0.015726162120699883, 0.06746712327003479, 0.02715929038822651, -0.035098712891340256, 0.06247355043888092, -0.040918558835983276, -0.053276754915714264, -0.03644590079784393, 0.012510876171290874, -0.017791850492358208, 0.024752315133810043, -0.017190106213092804, -0.021662766113877296, -0.03299710154533386, -0.007122128736227751, 0.0201718807220459, 0.031003262847661972, 0.04131373390555382, -0.0372542105615139, -0.030715864151716232, -0.051875680685043335, 0.017100293189287186, 0.04885798320174217, -0.039840810000896454, -0.05848587676882744, 0.00437611248344183, -0.03156010061502457, 0.002282359404489398, 0.012762351892888546, 0.07346659898757935, -0.019076168537139893, 0.02304587885737419, -0.036894962191581726, 0.032853398472070694, -0.04803170636296272, -0.0011597034754231572, -0.0390145368874073, 0.013400020077824593, -0.04099040850996971, 0.02372845448553562, 0.0403437614440918, 0.018950430676341057, -0.033985037356615067, -0.05629445239901543, 0.01785471849143505, 0.07184997200965881, 0.07062852382659912, 0.002620278624817729, -0.00802923459559679, -0.012537820264697075, 0.01066972129046917, 0.003549837740138173, 0.027177251875400543, -0.02105204202234745, -0.04903760552406311, -0.056438155472278595, 0.030159026384353638, 0.0169206690043211, -0.017243994399905205, 0.020800568163394928, -0.04555288329720497, 0.04404403269290924, 0.05151643231511116, 0.06577865034341812, 0.027338914573192596, 0.03579925000667572, -0.09096206724643707, 0.020441317930817604, -0.06042582914233208, -0.04598398134112358, 0.06700009852647781, 0.04501400887966156, 0.010517040267586708, 0.07766982167959213, 0.011091839522123337, 0.01285216398537159, 0.053276754915714264, 0.018151098862290382, -0.0009155258303508162, -0.007512812968343496, 0.0048678359016776085, -0.06940707564353943, -0.03750568628311157, 0.008357049897313118, 0.025452852249145508, -0.019435416907072067, 0.03466761112213135, 0.03263784945011139, 0.028578326106071472, 0.007315225433558226, -0.05571965500712395, 0.055216703563928604, 0.03342819958925247, -0.036751262843608856, -0.05719257891178131, 0.018025362864136696, 0.05421080440282822, 0.0644853487610817, -0.033338386565446854, 0.014828038401901722, 0.044798459857702255, 0.032763589173555374, 0.06728749722242355, -0.020638905465602875, -0.051336806267499924, -0.03312283754348755, 0.014792113564908504, 0.013570663519203663, 0.03937378525733948, -0.018663030117750168, 0.031703799962997437, 0.026153389364480972, -0.022471079602837563, 0.013247339054942131, -0.032853398472070694, 0.0014976229285821319, 0.07159850001335144, -0.03245822712779045, 0.027392802760004997, -0.030087176710367203, -0.022399229928851128, -0.02807537652552128, -0.0005021078395657241, 0.05848587676882744, 0.04907353222370148, -0.041744835674762726, 0.023369204252958298, -0.013498813845217228, -0.022417191416025162, -0.02532711625099182, 0.0028897160664200783, 0.06092877686023712, 0.006996391341090202, 0.0025506741367280483, -0.0387989841401577, 0.061144325882196426, 0.015025625936686993, -0.004470415413379669, -0.006394647527486086, -0.02712336555123329, -0.03389522433280945, -0.07192182540893555, 0.018878581002354622, -0.003031170694157481, 0.020944267511367798, -0.045337334275245667, -0.04864243045449257, -0.05183975398540497, 0.051193106919527054, -0.035188525915145874, -0.018160080537199974, 0.004578190390020609, 0.05737220495939255, 0.05155235528945923, -0.04070300981402397, 0.003668839344754815, 0.02187831699848175, 0.04170890897512436, 0.013561682775616646, -0.06064137816429138, -0.009879371151328087, -0.04803170636296272, 0.021375367417931557, -0.0018344196723774076, 0.02284829132258892, -0.03364374861121178, 0.012591707520186901, -0.02638690359890461, 0.01805230602622032, -0.02424936555325985, 0.011801358312368393, -0.06728749722242355, 0.010445189662277699, -0.02387215383350849, 0.011190633289515972, -0.027428727596998215, 0.016552437096834183, -0.033248573541641235, 0.028290927410125732, -0.03075178898870945, 0.025578590109944344, -0.019219867885112762, 0.06042582914233208, -0.035763323307037354, -0.0011243397602811456, -0.017243994399905205, 0.01266355812549591, -0.023459015414118767, 0.014756188727915287, 0.01266355812549591, 0.015097475610673428, -0.053564153611660004, 0.014935812912881374, 0.04070300981402397, -0.05485745519399643, 0.022435154765844345, 0.000980078591965139, 0.05205530673265457, 0.05166013166308403, 0.004522057715803385, 0.026153389364480972, 0.018932467326521873, 0.019561154767870903, 0.060210276395082474, 0.024069741368293762, 0.02769816480576992, 0.03321265056729317, 0.03402096405625343, 0.021842392161488533, -0.023494942113757133, 0.008280709385871887, -0.0468461811542511, -0.048390958458185196, 0.010858327150344849, -0.026764115318655968, -0.0330689512193203, -0.032081011682748795, 0.017486486583948135, -0.006345250643789768, -0.04501400887966156, -0.011388220824301243, -0.023027917370200157, 0.04763653129339218, -0.031057151034474373, -0.017980456352233887, -0.024285290390253067, 0.008972265757620335, 0.052845656871795654, 0.003284890903159976, -0.019722817465662956, 0.009196796454489231, -0.002247557044029236, 0.0682215467095375, 0.01813313737511635, 0.03235045075416565, -0.0019410719396546483, -0.04084670916199684, -0.025542665272951126, 0.020692791789770126, -0.028775913640856743, 0.023153653368353844, 0.05370785668492317, -0.0694430023431778, 0.02809333987534046, -0.005231576040387154, 0.008882452733814716, -0.04332553222775459, -0.06193467602133751, 0.02550674043595791, 0.015501631423830986, -0.012259401381015778, -0.05280973017215729, 0.017594262957572937, 0.012888088822364807, -0.038870833814144135, 0.020261691883206367, 0.0046882107853889465, 0.04914538189768791, 0.022722553461790085, -0.0005753611330874264, 0.027590390294790268, -0.04070300981402397, -0.028434626758098602, 0.04630730673670769, -0.08665106445550919, -0.022471079602837563, 0.005761469714343548, -0.04257110878825188, 0.031164925545454025, -0.1294018030166626, 0.012780314311385155, -0.03269173949956894, -0.014136482030153275, -0.06322797387838364, -0.0010670843767002225, -0.050223130732774734, -0.063048355281353, 0.026548564434051514, -0.010570927523076534, -0.02450084127485752, -0.0006820134003646672, -0.04390033334493637, -0.0009413469233550131, -0.0014336315216496587, -0.03711051121354103, -0.02935071475803852, -0.039948586374521255, -0.02861425280570984, 0.02667430229485035, 0.024464916437864304, 0.02997940219938755, 0.001140056992881, 0.033733561635017395, -0.039984509348869324, -0.0026359958574175835, 0.04228371009230614, 0.0437566339969635, 0.015429781749844551, 0.0006337392260320485, -0.0317397266626358, 0.002683147555217147, -0.02997940219938755, 0.046630632132291794, -0.010651758871972561, -0.030284764245152473, -0.015995601192116737, -0.03235045075416565, 0.06232985109090805, 0.019345605745911598, -0.03951748460531235, -0.06599420309066772, -0.04030783474445343, 0.021752579137682915, 0.05399525538086891, 0.006637141108512878, -0.02144721709191799, 0.025488778948783875, -0.008958793245255947, -0.028488514944911003, -0.05485745519399643, 0.00680329417809844, -0.014513694681227207, 0.004133618902415037, 0.04982795566320419, -0.026009690016508102, 0.11373850703239441, 0.008464825339615345, 0.03351801261305809, 0.015932731330394745, -0.030626051127910614, -0.005411201156675816, 0.003693537786602974, 0.004205468576401472, -0.015744125470519066, -0.05363600328564644, -0.02142925374209881, 0.017684074118733406, -0.06362315267324448, 0.016336888074874878, -0.05618667975068092, -0.0040258439257740974, 0.0339491106569767, 0.02507564052939415, -0.002851545810699463, 0.02047724276781082, 0.02741076424717903, 0.03662552312016487, -0.013328170403838158, 0.018303779885172844, -0.02464454062283039, -0.062401700764894485, -0.0007420754991471767, 0.0019096375908702612, -0.03822418674826622, -0.02895553968846798, -0.02798556536436081, 0.009120455943048, 0.011828301474452019, 0.009089021943509579, 0.01653447560966015, 0.0030670957639813423, 0.04117003455758095, 0.011325351893901825, 0.002510258462280035, -0.012259401381015778, -0.06204245239496231, 0.013355113565921783, -0.03069790080189705, 0.0036463860888034105, 0.02633301541209221, -0.02581210248172283, 0.0023777850437909365, -0.06082100421190262, -0.03362578898668289, -0.016121337190270424, -0.0016806158237159252, -0.002624769229441881, -0.03457779809832573, 0.0024406537413597107, -0.006610197480767965, 0.04030783474445343, -0.0024316725321114063, -0.027338914573192596, -0.026853928342461586, 0.05176790431141853, -0.035871099680662155, -0.062114302068948746, -0.00044176506344228983, 0.00755322864279151, 0.010948139242827892, 0.08758511394262314, 0.016282999888062477, 0.043720707297325134, 0.05629445239901543, -0.053564153611660004, 0.0032826457172632217, 0.02133944258093834, -0.06552717834711075, 0.04950463026762009, 0.04156520962715149, -0.001298912800848484, -0.0650242269039154, 0.030194951221346855, 0.01644466258585453, 0.06085692718625069, -0.018555255606770515, -0.0633716732263565, -0.022093866020441055, -0.04325368255376816, 0.004468169994652271, 0.08154971897602081, -0.03294321149587631, -0.032817475497722626, 0.0025304662995040417, -0.046343233436346054, 0.022920140996575356, -0.03367967531085014, -0.010023071430623531, 0.0011597034754231572, -0.01988448016345501, 0.029889589175581932, -0.012959938496351242, 0.04088263586163521, 0.08119046688079834, 0.01862710528075695, -0.039984509348869324, -0.022201642394065857, -0.03376948833465576, 0.028991464525461197, 0.010696664452552795, -0.023494942113757133, -0.0006685415282845497, 0.011262482963502407, 0.002164480509236455, -0.06423387676477432, 0.03583517298102379, 0.02618931606411934, 0.04864243045449257, 0.047313205897808075, 0.018366649746894836, -0.013453907333314419, -0.023297354578971863, -0.007521794177591801, -0.002447389764711261, 0.026171352714300156, 0.06983817368745804, 0.02667430229485035, 0.0761609748005867, 0.05694110319018364, -0.03987673670053482, -0.0010743816383183002, -0.043828483670949936, -0.07105962187051773, 0.03159602731466293, 0.012115702033042908, -0.01979466713964939, -0.03583517298102379, -0.000547856034245342, -0.04117003455758095, 0.017351768910884857, -0.016282999888062477, -0.023512903600931168, 0.018663030117750168, -0.008806112222373486, -0.03362578898668289, 0.05597113072872162, 0.007791231386363506, 0.004355904646217823, 0.01367843896150589, -0.05237863212823868, 0.05388747900724411, -0.0029907552525401115, 0.06692825257778168, -0.07824461907148361, 0.01965096779167652, 0.006641631945967674, -0.07630467414855957, -0.035134635865688324, -0.017486486583948135, 0.01993836835026741, -0.0330689512193203, -0.020261691883206367, -0.09110576659440994, 0.05209122970700264, 0.025237303227186203, 0.01692965067923069, -0.03238637372851372, 0.06599420309066772, -0.05999472737312317, 0.017163163051009178, -0.01688474416732788, 0.019148018211126328, 0.010175752453505993, 0.02144721709191799, -0.005254029296338558, 0.04095448553562164, 0.027320953086018562, 0.002885225461795926, -0.01200792659074068, 0.068113774061203, 0.014756188727915287, -0.019183943048119545, 0.0794660672545433, 0.03818826004862785, 0.029799776151776314, 0.027913713827729225, -0.03754160925745964, -0.009340496733784676, -0.007063750643283129, -0.013076694682240486, -0.05219900608062744, -0.06854487210512161, 0.009906315244734287, 0.02701558917760849, 0.0019814874976873398, 0.014612488448619843, 0.037900861352682114, 0.012959938496351242, 0.027285028249025345, -0.010508058592677116, -0.06520385295152664, -0.018447481095790863, 0.028362777084112167, -0.004178524948656559, -0.01833072490990162, -0.006372194737195969, -0.02390807867050171, 0.023602716624736786, 0.01181033905595541, 0.0438644103705883, -0.011495995335280895, 0.1118704080581665, 0.030626051127910614, 0.07917866855859756, 0.010984065011143684, 0.04497808218002319, -0.02667430229485035, 0.012519857846200466, 0.0389067605137825, -0.06495237350463867, 0.017208067700266838, 0.056869253516197205, 0.03522444888949394, 0.030374575406312943, -0.01745954342186451, 0.01808823086321354, 0.05198345705866814, 0.03202712535858154, 0.009439290501177311, -0.009250683709979057, -0.024213440716266632, 0.035278335213661194, -0.020549092441797256, 0.01266355812549591, 0.019327642396092415, 0.019273756071925163, -0.06222207844257355, -0.06028212606906891, -0.032332487404346466, 0.05176790431141853, 0.02371049113571644, -0.07019742578268051, -0.028398701921105385, -0.10109291225671768, 0.01023862138390541, -0.08837546408176422, 0.01722603105008602, -0.02536304108798504, 0.013031789101660252, 0.02056705579161644, -0.038834910839796066, 0.044690683484077454, -0.03224267438054085, 0.011289427056908607, -0.08456742018461227, -0.05259418115019798, -0.00305586913600564, -0.04720543324947357, 0.01066972129046917, 0.013525757938623428, -0.020602980628609657, 0.03084160014986992, -0.02299199067056179, 0.015286081470549107, -0.03861936181783676, -0.018896542489528656, 0.0389067605137825, 0.0580907016992569, 0.010921196080744267, -0.008666902780532837, 0.024177515879273415, -0.01430712640285492, -0.07982531934976578, 0.0174685250967741, -0.01506155077368021, 0.014001763425767422, 0.004804966971278191, 0.02047724276781082, 0.0025192396715283394, 0.017441581934690475, -0.03389522433280945, 0.04393626004457474, 0.059348076581954956, 0.018303779885172844, -0.020153917372226715, 0.00034746198798529804, 0.040092285722494125, -0.013525757938623428, -0.004501849878579378, 0.03739790990948677, -0.020818529650568962, 0.003632914274930954, -0.06434164941310883, 0.04131373390555382, -0.06735935062170029, 0.01001408975571394 ]
37,695
healpy.pixelfunc
mask_good
Returns a bool array with ``False`` where m is close to badval. Parameters ---------- m : a map (may be a sequence of maps) badval : float, optional The value of the pixel considered as bad (:const:`UNSEEN` by default) rtol : float, optional The relative tolerance atol : float, optional The absolute tolerance Returns ------- a bool array with the same shape as the input map, ``False`` where input map is close to badval, and ``True`` elsewhere. See Also -------- mask_bad, ma Examples -------- >>> import healpy as hp >>> m = np.arange(12.) >>> m[3] = hp.UNSEEN >>> hp.mask_good(m) array([ True, True, True, False, True, True, True, True, True, True, True, True], dtype=bool)
def mask_good(m, badval=UNSEEN, rtol=1.0e-5, atol=1.0e-8): """Returns a bool array with ``False`` where m is close to badval. Parameters ---------- m : a map (may be a sequence of maps) badval : float, optional The value of the pixel considered as bad (:const:`UNSEEN` by default) rtol : float, optional The relative tolerance atol : float, optional The absolute tolerance Returns ------- a bool array with the same shape as the input map, ``False`` where input map is close to badval, and ``True`` elsewhere. See Also -------- mask_bad, ma Examples -------- >>> import healpy as hp >>> m = np.arange(12.) >>> m[3] = hp.UNSEEN >>> hp.mask_good(m) array([ True, True, True, False, True, True, True, True, True, True, True, True], dtype=bool) """ m = np.asarray(m) atol = np.absolute(atol) rtol = np.absolute(rtol) return np.absolute(m - badval) > atol + rtol * np.absolute(badval)
(m, badval=-1.6375e+30, rtol=1e-05, atol=1e-08)
[ 0.06637158244848251, 0.011002297513186932, -0.00916858110576868, -0.000375129166059196, -0.02252340316772461, -0.009454820305109024, -0.05037800222635269, -0.011852068826556206, -0.0386064387857914, -0.022076155990362167, -0.009964683093130589, 0.034455977380275726, 0.016405051574110985, 0.01017041690647602, -0.01535849180072546, 0.021002760156989098, -0.0493403859436512, 0.058822039514780045, 0.036745887249708176, -0.03603028878569603, -0.02212982438504696, 0.010760784149169922, 0.007035209331661463, -0.009275920689105988, 0.024598633870482445, -0.013050693087279797, -0.014499776065349579, -0.002123309299349785, -0.009038879536092281, -0.012496105395257473, -0.04676423966884613, 0.024026155471801758, 0.016861245036125183, 0.01998303458094597, 0.00921330600976944, -0.03950093314051628, 0.06984222680330276, -0.02150367759168148, -0.008394842967391014, -0.06186332553625107, -0.0015340602258220315, -0.015465831384062767, 0.012326152063906193, 0.02613716572523117, 0.04798075184226036, -0.0030233957804739475, 0.05205965414643288, 0.018238767981529236, -0.018498172983527184, 0.06898351013660431, -0.04447432979941368, -0.018999090418219566, 0.006552181672304869, 0.04919726774096489, -0.022594962269067764, 0.020609183236956596, -0.015805739909410477, 0.009329590946435928, 0.018748631700873375, -0.03792662173509598, 0.0010979935759678483, 0.008524544537067413, 0.02583303675055504, -0.056675251573324203, 0.026852762326598167, -0.0018739686347544193, -0.07216791808605194, -0.05402754247188568, -0.028802763670682907, 0.041468825191259384, -0.04207707941532135, 0.03706790506839752, 0.012818124145269394, 0.02096698060631752, -0.02520688995718956, 0.008591631427407265, 0.0642605721950531, -0.024562854319810867, -0.07163122296333313, -0.006337502505630255, -0.0077329156920313835, -0.0037166299298405647, 0.07456516474485397, -0.01763051189482212, -0.08358168601989746, 0.0019455283181741834, 0.016485556960105896, 0.02438395470380783, 0.04705047607421875, -0.05044956132769585, 0.04908992722630501, 0.037676163017749786, 0.0015385326696559787, -0.04261377826333046, -0.008394842967391014, 0.05327616631984711, -0.004883946850895882, 0.052489012479782104, -0.043365154415369034, -0.05739084631204605, 0.0361197404563427, 0.0017129593761637807, 0.001366342301480472, -0.006270415149629116, 0.024222945794463158, 0.009758948348462582, 0.002719267038628459, -0.04547616466879845, -0.015930969268083572, 0.0277472585439682, -0.001053268788382411, -0.024205055087804794, -0.05334772542119026, 0.033722490072250366, 0.006793695501983166, 0.013819959945976734, 0.019482117146253586, 0.003660723799839616, 0.018641291186213493, -0.0077329156920313835, 0.008399315178394318, -0.013336931355297565, 0.006511928979307413, -0.041898179799318314, 0.05420644208788872, 0.004306997172534466, 0.056532133370637894, 0.009750003926455975, -0.008095186203718185, -0.03182616084814072, -0.013927298597991467, 0.036781664937734604, 0.05445690080523491, 0.028695423156023026, -0.015501611866056919, -0.0033834301866590977, -0.03302478417754173, -0.008502182550728321, 0.019249549135565758, -0.018372943624854088, 0.020895421504974365, 0.02891010232269764, -0.030144507065415382, 0.03375827148556709, 0.0179972555488348, -0.048052310943603516, -0.014150923117995262, -0.011270646937191486, 0.0646541565656662, 0.07045048475265503, -0.019231658428907394, -0.07123764604330063, -0.007630048785358667, 0.05903672054409981, 0.012245646677911282, -0.047515615820884705, 0.06433213502168655, -0.05377708375453949, -0.04300735518336296, -0.03531469404697418, -0.000555146427359432, -0.019535787403583527, 0.02433028444647789, -0.009642664343118668, -0.022398173809051514, -0.03161147981882095, -0.0191064290702343, 0.017979364842176437, 0.028355516493320465, 0.028355516493320465, -0.02433028444647789, -0.03052019514143467, -0.04343671351671219, 0.011816289275884628, 0.060539472848176956, -0.04315047711133957, -0.05402754247188568, -0.0013641060795634985, -0.030019277706742287, -0.006798167712986469, 0.008806310594081879, 0.0722394809126854, -0.0240798257291317, 0.026494964957237244, -0.03993029147386551, 0.033811938017606735, -0.025278450921177864, -0.01085023395717144, -0.03696056455373764, 0.006587961222976446, -0.046871576458215714, 0.025904597714543343, 0.036298636347055435, 0.029232122004032135, -0.021324779838323593, -0.06207800656557083, 0.016968583688139915, 0.0734202116727829, 0.06365232169628143, 0.011494270525872707, -0.0227738618850708, -0.02291698195040226, 0.017541062086820602, 0.00707098888233304, 0.031021112576127052, -0.016798630356788635, -0.04579818248748779, -0.044832129031419754, 0.026655973866581917, 0.017201153561472893, -0.02096698060631752, 0.011297481134533882, -0.05817800387740135, 0.04114680364727974, 0.05560185760259628, 0.07113030552864075, 0.03529680147767067, 0.027031661942601204, -0.09889545291662216, 0.008524544537067413, -0.05824956297874451, -0.04529726505279541, 0.0772128775715828, 0.04390185326337814, 0.016378218308091164, 0.07020002603530884, 0.006283832713961601, 0.021127989515662193, 0.05485048145055771, 0.007925232872366905, 0.0013238537358120084, -0.00738853495568037, 0.006221218034625053, -0.06379543989896774, -0.03889267519116402, -0.001494926051236689, 0.033382583409547806, -0.014124087989330292, 0.04111102595925331, 0.02676331251859665, 0.024258725345134735, 0.0001287934137508273, -0.06000277400016785, 0.0596807561814785, 0.028105057775974274, -0.0463348813354969, -0.060396354645490646, 0.014410327188670635, 0.050055984407663345, 0.06848259270191193, -0.03161147981882095, 0.008739223703742027, 0.04211286082863808, 0.026262395083904266, 0.059322960674762726, -0.034008730202913284, -0.0588936023414135, -0.02857019379734993, 0.006632686126977205, 0.009347480721771717, 0.033275242894887924, -0.013480051420629025, 0.03846331685781479, 0.033633042126894, -0.015054363757371902, 0.019517896696925163, -0.022612852975726128, -0.002989852102473378, 0.06948442757129669, -0.03336469084024429, 0.00585000216960907, -0.028498634696006775, -0.02263074368238449, -0.024169275537133217, 0.0023413426242768764, 0.052095431834459305, 0.05281103029847145, -0.054099105298519135, 0.026977991685271263, -0.008707916364073753, -0.03660276532173157, -0.027478909119963646, -0.010671334341168404, 0.059609197080135345, 0.0002526950556784868, 0.004412100184708834, -0.03921469300985336, 0.0662284642457962, 0.02370413765311241, -0.01238876674324274, -0.024312395602464676, -0.029804598540067673, -0.04046698659658432, -0.08157801628112793, 0.03277432546019554, 0.002123309299349785, 0.010590829886496067, -0.04222020134329796, -0.0493403859436512, -0.05270368978381157, 0.060396354645490646, -0.048839468508958817, -0.03603028878569603, 0.0039603798650205135, 0.0612550713121891, 0.06247158348560333, -0.04794497415423393, -0.006708718370646238, 0.010233031585812569, 0.033382583409547806, 0.012487160973250866, -0.05592387542128563, -0.01270184013992548, -0.04408075287938118, 0.02583303675055504, 0.0006524228374473751, 0.015421106480062008, -0.021736247465014458, 0.01695963926613331, -0.015841519460082054, 0.014302987605333328, -0.02111010067164898, 0.02116376906633377, -0.0600743368268013, 0.01452661119401455, -0.03032340668141842, 0.01788991503417492, -0.029733039438724518, 0.017585786059498787, -0.040252309292554855, 0.014124087989330292, -0.025779368355870247, 0.032989002764225006, -0.015027528628706932, 0.04798075184226036, -0.024544963613152504, -0.0001390661345794797, -0.014562390744686127, 0.004177295137196779, -0.025475239381194115, 0.016941750422120094, 0.01788991503417492, 0.011261701583862305, -0.051558736711740494, 0.008846563287079334, 0.04297157749533653, -0.05374130606651306, 0.0064627318643033504, 0.006104933563619852, 0.040109191089868546, 0.03867799788713455, 0.0028333154041320086, 0.03617340698838234, 0.030072947964072227, 0.028266066685318947, 0.08265140652656555, 0.04121836647391319, 0.026852762326598167, 0.036209188401699066, 0.028355516493320465, 0.03803395852446556, -0.027031661942601204, 0.012594500556588173, -0.057176169008016586, -0.05631745234131813, 0.0132832620292902, -0.013372711837291718, -0.02769358828663826, -0.02862386405467987, 0.02647707425057888, -0.005943924188613892, -0.04579818248748779, -0.008506654761731625, -0.02828395552933216, 0.03967983275651932, -0.028999552130699158, -0.017156429588794708, -0.016056198626756668, 0.004043120890855789, 0.0439734123647213, 0.014535556547343731, 0.006552181672304869, 0.0017643929459154606, 0.00001872850589279551, 0.06758809834718704, 0.007366172503679991, 0.031772490590810776, 0.003879875410348177, -0.04758717492222786, -0.0335078127682209, 0.011261701583862305, -0.028874322772026062, 0.02443762496113777, 0.045368824154138565, -0.05109359696507454, 0.03179037943482399, -0.002203813986852765, 0.014803905040025711, -0.06365232169628143, -0.04612020030617714, 0.03052019514143467, -0.010402985848486423, -0.009374315850436687, -0.0558880940079689, 0.006552181672304869, -0.0008615112164989114, -0.03667432442307472, 0.01907064951956272, 0.009007572196424007, 0.05527983978390694, 0.020215604454278946, -0.0009627010440453887, 0.021825697273015976, -0.03526102378964424, -0.03867799788713455, 0.05148717761039734, -0.10361839085817337, -0.02399037592113018, 0.010197252035140991, -0.04179084300994873, 0.03551148250699043, -0.11907527595758438, 0.0019701269920915365, -0.012487160973250866, -0.005237272474914789, -0.06812480092048645, -0.008189109154045582, -0.046442218124866486, -0.05384864658117294, 0.02427661418914795, 0.0013629879103973508, -0.0335078127682209, 0.008537962101399899, -0.054635800421237946, -0.00627936003729701, 0.008855507709085941, -0.030877994373440742, -0.01506330817937851, -0.04232753813266754, -0.03692478686571121, 0.03164726123213768, 0.021521568298339844, 0.03066331520676613, 0.006740025710314512, 0.036745887249708176, -0.04311469569802284, 0.002482225652784109, 0.033811938017606735, 0.03889267519116402, 0.014383492060005665, -0.003515368327498436, -0.026459185406565666, -0.006180965807288885, -0.027961937710642815, 0.0463348813354969, -0.0123350964859128, -0.025332119315862656, -0.0035712742246687412, -0.05188075453042984, 0.06329452246427536, 0.025493130087852478, -0.037819281220436096, -0.056138552725315094, -0.02667386271059513, 0.02901744283735752, 0.05388442426919937, -0.001454673707485199, -0.011038077995181084, 0.011682114563882351, -0.015304822474718094, -0.018498172983527184, -0.046442218124866486, 0.002717030933126807, -0.008524544537067413, 0.004740827716886997, 0.050735801458358765, -0.034402307122945786, 0.12501472234725952, 0.008967320434749126, 0.03749726340174675, 0.01177156437188387, -0.02379358746111393, 0.007308030501008034, 0.014401381835341454, 0.0037233387120068073, -0.00965160969644785, -0.06050369516015053, -0.02871331386268139, 0.017138538882136345, -0.06715874373912811, 0.01562684029340744, -0.06562020629644394, 0.0008520071860402822, 0.035869281738996506, 0.01998303458094597, 0.0035220771096646786, 0.02243395335972309, 0.02345367893576622, 0.026942212134599686, -0.007889452390372753, 0.0163603276014328, -0.012979133054614067, -0.06468993425369263, 0.009392205625772476, 0.007549544330686331, -0.0363880880177021, -0.021807806566357613, -0.03418762981891632, 0.0038619854021817446, 0.029804598540067673, 0.016297712922096252, 0.014061473309993744, 0.009293811395764351, 0.04547616466879845, 0.028051387518644333, 0.001490453607402742, -0.01104702241718769, -0.06529819220304489, 0.008479819633066654, -0.03427707776427269, 0.004537329543381929, 0.03179037943482399, -0.015886245295405388, 0.00894495751708746, -0.0714523196220398, -0.027818817645311356, -0.009249086491763592, 0.0028020080644637346, -0.010098856873810291, -0.0405743271112442, 0.009150691330432892, -0.008157801814377308, 0.023346340283751488, -0.0014311932027339935, -0.021754136309027672, -0.026369735598564148, 0.05442112311720848, -0.04565506428480148, -0.05037800222635269, -0.0015150521649047732, 0.012487160973250866, 0.0007413133862428367, 0.08351012319326401, 0.028409184888005257, 0.0616486482322216, 0.057999104261398315, -0.040252309292554855, -0.01414197776466608, 0.014884409494698048, -0.06655048578977585, 0.03046652488410473, 0.03925047442317009, 0.00006750648026354611, -0.05077157914638519, 0.03828441724181175, 0.02803349681198597, 0.061362408101558685, -0.0363880880177021, -0.0674092024564743, -0.023775696754455566, -0.03910735622048378, 0.00463348813354969, 0.07327709347009659, -0.021807806566357613, -0.03492111340165138, -0.009526379406452179, -0.044402770698070526, 0.03551148250699043, -0.028749093413352966, -0.0028288429602980614, 0.006095988675951958, -0.006990484427660704, 0.028802763670682907, -0.009571104310452938, 0.03645964711904526, 0.06733763962984085, 0.015421106480062008, -0.04597708210349083, -0.01752317138016224, -0.04540460556745529, 0.026906432583928108, 0.0060244291089475155, -0.020984871312975883, 0.004624543245881796, 0.010349315591156483, -0.00785814505070448, -0.06458259373903275, 0.035869281738996506, 0.016127757728099823, 0.052739471197128296, 0.03637019917368889, 0.015465831384062767, -0.020644962787628174, -0.017111703753471375, -0.004376320634037256, -0.024222945794463158, 0.03422340750694275, 0.06143396720290184, 0.02789037860929966, 0.07492296397686005, 0.050485339015722275, -0.043365154415369034, -0.005125460680574179, -0.05205965414643288, -0.0692339688539505, 0.0363880880177021, 0.021378448233008385, -0.02515322156250477, -0.0302339568734169, -0.003817260731011629, -0.03626285865902901, 0.014195648021996021, -0.01964312605559826, -0.03993029147386551, 0.012764454819262028, -0.0032827993854880333, -0.04179084300994873, 0.059358738362789154, 0.009732114151120186, 0.008417204953730106, 0.028802763670682907, -0.05631745234131813, 0.0489468090236187, -0.003598109120503068, 0.06658626347780228, -0.0781431496143341, 0.02198670618236065, 0.0014323113719001412, -0.06787433475255966, -0.05359818786382675, -0.006377754732966423, 0.01822982355952263, -0.026441294699907303, -0.024312395602464676, -0.08880554139614105, 0.039322033524513245, 0.006113878451287746, 0.019231658428907394, -0.03461698442697525, 0.05595965310931206, -0.06458259373903275, 0.024652304127812386, -0.016771795228123665, 0.02178991585969925, 0.0204839538782835, 0.023561017587780952, -0.00015905252075754106, 0.0340266190469265, 0.042542219161987305, -0.0010214023059234023, -0.009526379406452179, 0.08723122626543045, 0.02579725719988346, -0.018945420160889626, 0.0795743465423584, 0.02667386271059513, 0.02263074368238449, 0.016270877793431282, -0.04640644043684006, -0.0034147375263273716, 0.0014054764760658145, 0.0024352646432816982, -0.0340266190469265, -0.0642605721950531, 0.01901697926223278, 0.03874955698847771, 0.013417436741292477, 0.01602041907608509, 0.027765149250626564, 0.017371106892824173, 0.013175922445952892, -0.00558165367692709, -0.050735801458358765, -0.01887386105954647, 0.029071113094687462, -0.00029378593899309635, -0.00955321453511715, 0.00921330600976944, -0.031772490590810776, 0.032541755586862564, 0.010045187547802925, 0.045225705951452255, -0.0065387641079723835, 0.11928995698690414, 0.03624496981501579, 0.07771379500627518, -0.0013741691363975406, 0.020805971696972847, -0.019589457660913467, 0.016056198626756668, 0.04569084197282791, -0.0684468150138855, 0.01355161052197218, 0.038248639553785324, 0.03486744314432144, 0.02633395604789257, -0.026351844891905785, 0.03155780956149101, 0.05617433413863182, 0.01085023395717144, 0.026262395083904266, -0.015787851065397263, -0.028498634696006775, 0.037855058908462524, -0.01506330817937851, 0.016861245036125183, 0.004620070569217205, 0.028945883736014366, -0.060825712978839874, -0.05660369247198105, -0.033328913152217865, 0.05399176478385925, 0.016485556960105896, -0.06279360502958298, -0.03238074481487274, -0.09918168932199478, 0.020000925287604332, -0.08515599370002747, 0.03207661956548691, -0.03501056507229805, 0.01591308042407036, 0.0202871635556221, -0.039858732372522354, 0.03993029147386551, -0.03928625211119652, 0.014052528887987137, -0.0749945268034935, -0.05456424131989479, -0.009401150047779083, -0.04447432979941368, 0.0020450409501791, 0.022684412077069283, -0.02320322021842003, 0.03728258237242699, -0.027139000594615936, 0.022398173809051514, -0.04422387108206749, -0.014705509878695011, 0.04526148736476898, 0.05109359696507454, 0.013345876708626747, -0.010742894373834133, 0.029607810080051422, -0.02257707342505455, -0.06655048578977585, 0.005814222618937492, 0.001238876604475081, 0.011887848377227783, -0.0012176323216408491, 0.01960734650492668, 0.003575746901333332, 0.017308492213487625, -0.03359726071357727, 0.04315047711133957, 0.06336607784032822, 0.02150367759168148, -0.04300735518336296, 0.004277925938367844, 0.04393763095140457, -0.008694498799741268, -0.015600006096065044, 0.03789084032177925, -0.014741290360689163, 0.008202525787055492, -0.06261470168828964, 0.04905414581298828, -0.06132663041353226, 0.018372943624854088 ]
37,696
healpy.pixelfunc
max_pixrad
Maximum angular distance between any pixel center and its corners Parameters ---------- nside : int the nside to work with degrees : bool if True, returns pixel radius in degrees, in radians otherwise Returns ------- rads: double angular distance (in radians or degrees) Examples -------- >>> '%.14f' % max_pixrad(1) '0.84106867056793' >>> '%.14f' % max_pixrad(16) '0.06601476143251'
def max_pixrad(nside, degrees=False): """Maximum angular distance between any pixel center and its corners Parameters ---------- nside : int the nside to work with degrees : bool if True, returns pixel radius in degrees, in radians otherwise Returns ------- rads: double angular distance (in radians or degrees) Examples -------- >>> '%.14f' % max_pixrad(1) '0.84106867056793' >>> '%.14f' % max_pixrad(16) '0.06601476143251' """ check_nside(nside, nest=False) if degrees: return np.rad2deg(pixlib._max_pixrad(nside)) return pixlib._max_pixrad(nside)
(nside, degrees=False)
[ 0.011740867979824543, -0.03281586617231369, 0.09275560826063156, 0.0167465228587389, -0.004712819587439299, 0.023115692660212517, 0.01622490957379341, 0.040447887033224106, 0.031607918441295624, -0.018018526956439018, 0.04637780413031578, 0.041179973632097244, -0.006405774038285017, 0.06731553375720978, 0.022292092442512512, 0.010889815166592598, -0.024341940879821777, 0.0513560026884079, -0.021779630333185196, -0.016407933086156845, 0.011667659506201744, 0.015968678519129753, -0.002511978382244706, -0.07174466550350189, -0.008359534665942192, 0.026831042021512985, 0.11017931252717972, 0.0008842255920171738, -0.016664164140820503, 0.024927612394094467, -0.04271735996007919, 0.052307721227407455, 0.02961297705769539, -0.019180716946721077, -0.032358307391405106, 0.042351316660642624, 0.02717878296971321, 0.05505305156111717, -0.1361684501171112, 0.0031068003736436367, -0.03702537342905998, 0.0326511450111866, 0.05300320312380791, -0.015300648286938667, -0.0527469739317894, -0.023792874068021774, -0.034902315586805344, -0.010487167164683342, -0.012692583724856377, 0.014815639704465866, -0.0020429843571037054, -0.04981862008571625, -0.03960598632693291, 0.06925556808710098, -0.025458374992012978, 0.013818169012665749, -0.045060042291879654, 0.04791519045829773, 0.05164884030818939, 0.009256343357264996, -0.006204449571669102, -0.0541379414498806, 0.04791519045829773, -0.03671423718333244, 0.009892345406115055, 0.05333264172077179, 0.03215698525309563, 0.009480545297265053, -0.013076930306851864, 0.04476720839738846, -0.007641172967851162, 0.017771447077393532, 0.022401906549930573, -0.01665501296520233, 0.05790819600224495, 0.011475486680865288, 0.016526896506547928, 0.011493789032101631, 0.009846589528024197, 0.0027499073185026646, -0.02759973518550396, 0.011850682087242603, 0.05311301723122597, -0.0025806117337197065, -0.002644669497385621, 0.028057290241122246, 0.01523659098893404, -0.022694742307066917, -0.017048509791493416, -0.03923993930220604, 0.01802767813205719, -0.0053579723462462425, 0.0336211621761322, -0.020827915519475937, -0.04992843046784401, 0.003685607807710767, -0.015291497111320496, 0.03331002593040466, 0.01685633696615696, -0.061824869364500046, 0.01047801598906517, -0.04498683661222458, 0.037995390594005585, -0.045060042291879654, 0.04308340325951576, 0.03069280833005905, 0.027581432834267616, 0.028002383187413216, -0.017963619902729988, 0.02456156723201275, -0.011850682087242603, -0.036878954619169235, 0.03865427151322365, 0.037519533187150955, 0.04322982206940651, 0.06120259314775467, 0.0008493369678035378, 0.004991928115487099, 0.04180224984884262, -0.0036215500440448523, -0.017963619902729988, 0.021816235035657883, -0.07441679388284683, -0.03025355562567711, 0.01257361937314272, 0.06314262747764587, 0.024122314527630806, -0.01204285491257906, 0.0267944373190403, 0.07957801222801208, 0.02026054821908474, 0.014056097716093063, 0.01558433286845684, -0.045975156128406525, -0.005829254165291786, -0.005682836752384901, 0.01627981662750244, -0.00835038349032402, 0.0438154935836792, -0.03675083816051483, -0.009498847648501396, 0.054430775344371796, 0.03019864857196808, 0.031040549278259277, 0.00230722245760262, 0.04264415055513382, 0.006675731390714645, 0.07342847436666489, 0.05922595411539078, -0.020553383976221085, -0.0022122797090560198, -0.03173603489995003, 0.018485233187675476, 0.013790716417133808, 0.06654684245586395, -0.004468027502298355, 0.006117513868957758, 0.06087315455079079, -0.06625400483608246, -0.005801801104098558, 0.028093894943594933, -0.0038800686597824097, -0.055968161672353745, -0.007147013209760189, 0.007613719906657934, -0.04546269401907921, 0.0004049364069942385, -0.0044062575325369835, -0.02675783261656761, 0.08067614585161209, -0.018329665064811707, -0.048574067652225494, -0.07108578830957413, -0.039386358112096786, 0.010587829165160656, 0.036769140511751175, 0.0023655607365071774, -0.00935700535774231, -0.0460483618080616, 0.008382412604987621, 0.043632470071315765, -0.06365509331226349, 0.039972029626369476, -0.001207945984788239, 0.02243851125240326, 0.06493624299764633, 0.012372294440865517, -0.013122685253620148, 0.013662600889801979, -0.061605241149663925, -0.03089413233101368, 0.029283538460731506, -0.055858347564935684, -0.017698237672448158, -0.009311249479651451, -0.06932877749204636, 0.020553383976221085, 0.07233034074306488, -0.006584220565855503, -0.018329665064811707, -0.03828822448849678, 0.03832482919096947, 0.015813110396265984, -0.06478982418775558, -0.013891378417611122, -0.035597801208496094, -0.025165541097521782, -0.023847781121730804, 0.013241649605333805, 0.013863924890756607, 0.061019573360681534, 0.050440892577171326, -0.018064282834529877, -0.03971579670906067, -0.00417519174516201, 0.021926049143075943, 0.061129383742809296, 0.0358540304005146, -0.04747593402862549, 0.017158322036266327, -0.04560910910367966, -0.01776229590177536, 0.05183186009526253, 0.017826354131102562, -0.00972762517631054, -0.0505141019821167, -0.009219738654792309, 0.023005878552794456, 0.0030152893159538507, -0.09114500880241394, 0.011200953274965286, 0.004186630714684725, 0.02500081993639469, -0.01015772670507431, 0.012674281373620033, -0.023591550067067146, -0.022896066308021545, 0.02165151573717594, -0.008117030374705791, 0.06471661478281021, -0.027508223429322243, 0.006007700692862272, -0.08397054672241211, 0.03960598632693291, 0.0004475462483242154, 0.030564691871404648, 0.03876408189535141, -0.031296782195568085, 0.012784094549715519, 0.010661037638783455, 0.017149172723293304, -0.053625479340553284, -0.0020452721510082483, -0.033108700066804886, -0.01850353553891182, 0.03971579670906067, -0.08206711709499359, 0.04923294857144356, 0.01595037616789341, -0.015913773328065872, 0.07628361880779266, -0.03398720547556877, -0.015355555340647697, -0.00630053598433733, -0.00652931397780776, 0.04648761451244354, 0.016819732263684273, -0.005472361110150814, -0.05922595411539078, -0.035982146859169006, 0.10029611736536026, -0.006250204984098673, -0.02701406367123127, -0.05907953903079033, 0.004431422799825668, 0.0004455444577615708, 0.05377189442515373, -0.0006657429039478302, 0.037153489887714386, -0.003539190161973238, -0.034225136041641235, -0.05062391608953476, -0.007901979610323906, 0.07002425938844681, -0.00842816848307848, 0.03142489492893219, 0.044218141585588455, 0.025494979694485664, -0.03861766681075096, 0.04813481494784355, 0.0401916541159153, -0.0020258259028196335, -0.03274265676736832, 0.045645713806152344, 0.030802620574831963, 0.020132431760430336, 0.00972762517631054, -0.04319321736693382, -0.022566625848412514, -0.014806488528847694, -0.05505305156111717, 0.0011736293090507388, 0.004449725151062012, -0.020553383976221085, 0.014046947471797466, 0.005010230466723442, -0.04806160554289818, -0.06896273046731949, 0.06676646322011948, 0.024762891232967377, -0.01914411224424839, -0.015913773328065872, 0.015803959220647812, -0.008803363889455795, -0.010304144583642483, 0.05175865441560745, 0.00282540381886065, -0.040557701140642166, 0.05541909486055374, -0.013278254307806492, -0.0007269409252330661, 0.03649460896849632, -0.034225136041641235, 0.0267944373190403, 0.0002942652499768883, 0.031772639602422714, -0.059372372925281525, 0.05164884030818939, 0.010670188814401627, -0.025348562747240067, -0.04037467762827873, 0.0013875364093109965, 0.011420579627156258, -0.018164943903684616, 0.010981326922774315, -0.020443569868803024, 0.06464341282844543, -0.04956238716840744, -0.007334610912948847, 0.011658508330583572, -0.0071424380876123905, -0.019857898354530334, 0.0165360476821661, 0.007682353258132935, -0.025824420154094696, 0.0011381687363609672, -0.014211666770279408, -0.015190835110843182, 0.04216829314827919, -0.039532776921987534, 0.042461130768060684, -0.0006817573448643088, -0.03702537342905998, -0.013507031835615635, -0.05970181152224541, -0.01047801598906517, -0.032358307391405106, 0.0376659519970417, -0.01013027410954237, -0.012052006088197231, -0.04169243574142456, 0.015419612638652325, -0.046451013535261154, 0.02972279116511345, -0.04041128233075142, 0.051612235605716705, -0.06127580255270004, -0.01015772670507431, 0.038690872490406036, -0.01156699750572443, -0.05088014528155327, -0.003058756934478879, -0.025128936395049095, -0.013278254307806492, 0.009956402704119682, 0.008684399537742138, -0.036769140511751175, -0.01089896634221077, 0.01871401071548462, -0.00034373841481283307, -0.08975404500961304, -0.06471661478281021, 0.006666580215096474, 0.0028574327006936073, 0.009260918945074081, -0.000007135896339605097, 0.004923294764012098, 0.002463935175910592, -0.044437769800424576, -0.05534588545560837, -0.0700608640909195, 0.0006136960000731051, -0.030656203627586365, 0.008464772254228592, -0.03373097628355026, 0.05882330611348152, -0.01989450305700302, 0.023957595229148865, 0.00980998482555151, -0.019711481407284737, -0.047622352838516235, 0.017533518373966217, 0.019180716946721077, 0.022731347009539604, -0.0026698349975049496, 0.017634181305766106, 0.04125318303704262, -0.001996084814891219, 0.01967487670481205, -0.071451835334301, 0.022163977846503258, 0.035542894154787064, -0.025385167449712753, -0.0024959640577435493, 0.02935674600303173, 0.048940110951662064, -0.04425474628806114, -0.0019080055644735694, 0.024744588881731033, -0.052673764526844025, -0.05025787279009819, -0.08294562250375748, 0.00007592557813040912, -0.05809121951460838, -0.029155422002077103, -0.05622439086437225, 0.03843464329838753, -0.03828822448849678, -0.0438154935836792, 0.08221353590488434, -0.03887389600276947, 0.03817841410636902, -0.02564139850437641, -0.005014806054532528, -0.01536470651626587, -0.03638479486107826, 0.05216130241751671, -0.029210329055786133, -0.007000595796853304, -0.026281975209712982, 0.010359051637351513, 0.02642839215695858, -0.047732166945934296, 0.01183237973600626, -0.03920333459973335, -0.07192768901586533, 0.009837438352406025, -0.035341568291187286, 0.02291436865925789, -0.03486571088433266, -0.011621903628110886, -0.08214032649993896, 0.03312700241804123, 0.016499442979693413, -0.0049187191762030125, -0.03931314870715141, -0.04107016324996948, 0.005586749874055386, 0.003010713728144765, 0.0019560488872230053, 0.02084621787071228, 0.02844163589179516, -0.027801059186458588, -0.0031136637553572655, -0.06314262747764587, 0.025440072640776634, -0.027197085320949554, 0.002388438442721963, 0.011466335505247116, -0.027508223429322243, 0.04813481494784355, 0.04238792136311531, 0.001911437138915062, -0.025989139452576637, 0.044108327478170395, 0.007993490435183048, 0.009919798001646996, 0.0016071628779172897, -0.055272676050662994, 0.00005336953472578898, -0.06936538219451904, -0.015401310287415981, -0.027984080836176872, -0.07251335680484772, -0.01339721865952015, -0.04341284558176994, -0.08924157917499542, -0.029539769515395164, 0.015968678519129753, -0.03876408189535141, 0.0006543040508404374, 0.015657542273402214, -0.0032143257558345795, 0.07104918360710144, 0.014779035933315754, 0.00802551954984665, 0.04286377876996994, -0.04429135099053383, 0.04981862008571625, 0.005573023110628128, -0.013406369835138321, -0.027581432834267616, 0.023207204416394234, 0.016984451562166214, -0.004804330412298441, -0.0035163122229278088, -0.05922595411539078, 0.01897939294576645, 0.025879327207803726, 0.04147281125187874, 0.013699204660952091, 0.005925341043621302, 0.010011309757828712, -0.024049105122685432, 0.0227496474981308, -0.010679339990019798, 0.05907953903079033, 0.03861766681075096, 0.013140987604856491, -0.0017204078612849116, -0.034902315586805344, -0.010661037638783455, -0.03821501508355141, 0.037299904972314835, 0.01395543571561575, 0.04484041780233383, -0.017478611320257187, -0.024543264880776405, 0.015199986286461353, -0.001386392512358725, 0.0221822801977396, 0.029814301058650017, -0.008931479416787624, -0.013433823361992836, 0.007078380323946476, -0.02090112492442131, 0.01388222724199295, -0.0002232011902378872, 0.05600476637482643, 0.007023473735898733, -0.02090112492442131, -0.03378588333725929, 0.018649952486157417, 0.06186147406697273, -0.005312216933816671, -0.022621532902121544, 0.05300320312380791, -0.030509786680340767, 0.10900796949863434, -0.04890350624918938, 0.08675248175859451, 0.07957801222801208, -0.048464253544807434, -0.06863328814506531, 0.036622725427150726, 0.07606399059295654, -0.007746411021798849, -0.01578565686941147, -0.03460948169231415, -0.019766388460993767, -0.0005559296696446836, -0.04231471195816994, 0.04202187806367874, -0.0321020781993866, -0.01135652232915163, 0.00450920732691884, 0.04085053503513336, -0.0010009021498262882, -0.020114129409193993, 0.0024593595881015062, -0.058420658111572266, 0.05545569956302643, 0.029009005054831505, -0.03287076950073242, 0.04059430584311485, -0.004431422799825668, 0.04970880597829819, -0.033108700066804886, -0.011347371153533459, -0.0527469739317894, -0.02994241751730442, -0.016462838277220726, 0.030766017735004425, -0.015803959220647812, -0.04919634386897087, 0.06746195256710052, -0.008414441719651222, 0.049269553273916245, 0.03902031481266022, 0.007481028791517019, 0.04220489785075188, -0.05439417064189911, 0.044693998992443085, -0.010908117517828941, -0.021614911034703255, 0.035982146859169006, -0.06885291635990143, 0.06237393617630005, 0.008085002191364765, 0.05014805868268013, -0.030564691871404648, -0.01812833920121193, 0.009160256944596767, -0.008926903828978539, 0.03266944736242294, 0.012106912210583687, -0.002094459254294634, -0.057359129190444946, -0.06702269613742828, -0.012326539494097233, 0.003081634873524308, 0.03376758098602295, -0.0028528571128845215, -0.00819481536746025, -0.028899190947413445, -0.005975672043859959, -0.006373744923621416, 0.010798304341733456, -0.05541909486055374, 0.002135639311745763, -0.03708028048276901, 0.03642139956355095, 0.06142222136259079, -0.03590893745422363, 0.037519533187150955, 0.014211666770279408, -0.06522908061742783, 0.01568499580025673, -0.04114336892962456, 0.0004564113914966583, -0.06365509331226349, -0.03486571088433266, -0.01082575786858797, -0.02988751046359539, -0.044913627207279205, 0.04941596835851669, 0.056077975779771805, -0.07752816379070282, -0.01563923992216587, 0.037354812026023865, 0.019473552703857422, 0.018997695297002792, -0.018906183540821075, 0.028423333540558815, -0.010258389636874199, 0.010359051637351513, 0.010047913528978825, 0.048574067652225494, -0.06680306792259216, -0.0226032305508852, -0.006698609329760075, 0.013863924890756607, 0.03072941303253174, -0.04941596835851669, 0.08807024359703064, -0.003239491255953908, -0.019052602350711823, 0.041033558547496796, -0.005989398807287216, -0.05029447749257088, 0.052197907119989395, -0.02813049778342247, -0.02285946160554886, -0.0018668255070224404, -0.054906632751226425, -0.02871616929769516, -0.0007435273146256804, 0.014001191593706608, -0.032230194658041, -0.06237393617630005, 0.06021427363157272, 0.013927983120083809, 0.04399851709604263, -0.019748086109757423, 0.023262109607458115, 0.017515216022729874, -0.042461130768060684, -0.011539543978869915, 0.01260107196867466, 0.052929993718862534, -0.05391831323504448, 0.007421546615660191, -0.01670076698064804, 0.0730990320444107, -0.0053305188193917274, 0.05175865441560745, 0.03202886879444122, 0.04637780413031578, -0.03398720547556877, -0.003724500071257353, -0.019272228702902794, -0.02382947877049446, 0.042461130768060684, 0.04264415055513382, 0.06405773758888245, -0.05000163987278938, -0.000920830003451556, 0.0918038934469223, -0.012207575142383575, 0.01417506206780672, -0.007796742022037506, -0.0033767579589039087, 0.0007149301236495376, -0.03407871723175049, -0.0033515924587845802, -0.011438881978392601, 0.08521509170532227, 0.02712387777864933, -0.018887881189584732, 0.025879327207803726, -0.00912365224212408, -0.02015073411166668, 0.01722238026559353, -0.0334930457174778, -0.04542608931660652, -0.008473923429846764, 0.03228510171175003, -0.027727849781513214, -0.00314340484328568, -0.031040549278259277, -0.01409270241856575, -0.002646957291290164, 0.056077975779771805, -0.024158919230103493, -0.04890350624918938, -0.01414760947227478, 0.02185283973813057, 0.028899190947413445, -0.027874266728758812, -0.03583572804927826, -0.025074029341340065, -0.01239059679210186, 0.00795231107622385, 0.0058246785774827, -0.028222009539604187, 0.033053793013095856, 0.0920967236161232, 0.006067182868719101, -0.025128936395049095, -0.01903429999947548, 0.001371521968394518, 0.027984080836176872, 0.019986014813184738, -0.015822261571884155, -0.008007217198610306, 0.037098582834005356, -0.03508533909916878, -0.006382896099239588, 0.0037016221322119236, -0.03971579670906067, 0.026355184614658356, 0.031681127846241, 0.014184213243424892, 0.04648761451244354, -0.020352058112621307, -0.015254893340170383, -0.00482720835134387, 0.020077524706721306, -0.00946224294602871, -0.03201056644320488, 0.02844163589179516, -0.00830005295574665, -0.0357259176671505, 0.02318890206515789, -0.027526525780558586, 0.010789153166115284, -0.05457719415426254, -0.035012129694223404 ]
37,697
healpy.visufunc
mollview
Plot a healpix map (given as an array) in Mollweide projection. Parameters ---------- map : float, array-like or None An array containing the map, supports masked maps, see the `ma` function. If None, will display a blank map, useful for overplotting. fig : int or None, optional The figure number to use. Default: create a new figure rot : scalar or sequence, optional Describe the rotation to apply. In the form (lon, lat, psi) (unit: degrees) : the point at longitude *lon* and latitude *lat* will be at the center. An additional rotation of angle *psi* around this direction is applied. coord : sequence of character, optional Either one of 'G', 'E' or 'C' to describe the coordinate system of the map, or a sequence of 2 of these to rotate the map from the first to the second coordinate system. unit : str, optional A text describing the unit of the data. Default: '' xsize : int, optional The size of the image. Default: 800 title : str, optional The title of the plot. Default: 'Mollweide view' nest : bool, optional If True, ordering scheme is NESTED. Default: False (RING) min : float, optional The minimum range value max : float, optional The maximum range value flip : {'astro', 'geo'}, optional Defines the convention of projection : 'astro' (default, east towards left, west towards right) or 'geo' (east towards right, west towards left) remove_dip : bool, optional If :const:`True`, remove the dipole+monopole remove_mono : bool, optional If :const:`True`, remove the monopole gal_cut : float, scalar, optional Symmetric galactic cut for the dipole/monopole fit. Removes points in latitude range [-gal_cut, +gal_cut] format : str, optional The format of the scale label. Default: '%g' format2 : str, optional Format of the pixel value under mouse. Default: '%g' cbar : bool, optional Display the colorbar. Default: True notext : bool, optional If True, no text is printed around the map norm : {'hist', 'log', None} Color normalization, hist= histogram equalized color mapping, log= logarithmic color mapping, default: None (linear color mapping) cmap : a color map The colormap to use (see matplotlib.cm) badcolor : str Color to use to plot bad values bgcolor : str Color to use for background hold : bool, optional If True, replace the current Axes by a MollweideAxes. use this if you want to have multiple maps on the same figure. Default: False sub : int, scalar or sequence, optional Use only a zone of the current figure (same syntax as subplot). Default: None reuse_axes : bool, optional If True, reuse the current Axes (should be a MollweideAxes). This is useful if you want to overplot with a partially transparent colormap, such as for plotting a line integral convolution. Default: False margins : None or sequence, optional Either None, or a sequence (left,bottom,right,top) giving the margins on left,bottom,right and top of the axes. Values are relative to figure (0-1). Default: None return_projected_map : bool if True returns the projected map in a 2d numpy array alpha : float, array-like or None An array containing the alpha channel, supports masked maps, see the `ma` function. If None, no transparency will be applied. See Also -------- gnomview, cartview, orthview, azeqview
def mollview( map=None, fig=None, rot=None, coord=None, unit="", xsize=800, title="Mollweide view", nest=False, min=None, max=None, flip="astro", remove_dip=False, remove_mono=False, gal_cut=0, format="%g", format2="%g", cbar=True, cmap=None, badcolor="gray", bgcolor="white", notext=False, norm=None, hold=False, reuse_axes=False, margins=None, sub=None, nlocs=2, return_projected_map=False, alpha=None, ): """Plot a healpix map (given as an array) in Mollweide projection. Parameters ---------- map : float, array-like or None An array containing the map, supports masked maps, see the `ma` function. If None, will display a blank map, useful for overplotting. fig : int or None, optional The figure number to use. Default: create a new figure rot : scalar or sequence, optional Describe the rotation to apply. In the form (lon, lat, psi) (unit: degrees) : the point at longitude *lon* and latitude *lat* will be at the center. An additional rotation of angle *psi* around this direction is applied. coord : sequence of character, optional Either one of 'G', 'E' or 'C' to describe the coordinate system of the map, or a sequence of 2 of these to rotate the map from the first to the second coordinate system. unit : str, optional A text describing the unit of the data. Default: '' xsize : int, optional The size of the image. Default: 800 title : str, optional The title of the plot. Default: 'Mollweide view' nest : bool, optional If True, ordering scheme is NESTED. Default: False (RING) min : float, optional The minimum range value max : float, optional The maximum range value flip : {'astro', 'geo'}, optional Defines the convention of projection : 'astro' (default, east towards left, west towards right) or 'geo' (east towards right, west towards left) remove_dip : bool, optional If :const:`True`, remove the dipole+monopole remove_mono : bool, optional If :const:`True`, remove the monopole gal_cut : float, scalar, optional Symmetric galactic cut for the dipole/monopole fit. Removes points in latitude range [-gal_cut, +gal_cut] format : str, optional The format of the scale label. Default: '%g' format2 : str, optional Format of the pixel value under mouse. Default: '%g' cbar : bool, optional Display the colorbar. Default: True notext : bool, optional If True, no text is printed around the map norm : {'hist', 'log', None} Color normalization, hist= histogram equalized color mapping, log= logarithmic color mapping, default: None (linear color mapping) cmap : a color map The colormap to use (see matplotlib.cm) badcolor : str Color to use to plot bad values bgcolor : str Color to use for background hold : bool, optional If True, replace the current Axes by a MollweideAxes. use this if you want to have multiple maps on the same figure. Default: False sub : int, scalar or sequence, optional Use only a zone of the current figure (same syntax as subplot). Default: None reuse_axes : bool, optional If True, reuse the current Axes (should be a MollweideAxes). This is useful if you want to overplot with a partially transparent colormap, such as for plotting a line integral convolution. Default: False margins : None or sequence, optional Either None, or a sequence (left,bottom,right,top) giving the margins on left,bottom,right and top of the axes. Values are relative to figure (0-1). Default: None return_projected_map : bool if True returns the projected map in a 2d numpy array alpha : float, array-like or None An array containing the alpha channel, supports masked maps, see the `ma` function. If None, no transparency will be applied. See Also -------- gnomview, cartview, orthview, azeqview """ # Create the figure import pylab if map is None: map = np.zeros(12) + np.inf cbar = False # Ensure that the nside is valid nside = pixelfunc.get_nside(map) pixelfunc.check_nside(nside, nest=nest) if not (hold or sub or reuse_axes): f = pylab.figure(fig, figsize=(8.5, 5.4)) if not margins: margins = (0.02, 0.05, 0.02, 0.05) extent = (0.0, 0.0, 1.0, 1.0) elif hold: f = pylab.gcf() left, bottom, right, top = np.array(f.gca().get_position()).ravel() if not margins: margins = (0.0, 0.0, 0.0, 0.0) extent = (left, bottom, right - left, top - bottom) f.delaxes(f.gca()) elif reuse_axes: f = pylab.gcf() else: # using subplot syntax f = pylab.gcf() if hasattr(sub, "__len__"): nrows, ncols, idx = sub else: nrows, ncols, idx = sub // 100, (sub % 100) // 10, (sub % 10) if idx < 1 or idx > ncols * nrows: raise ValueError("Wrong values for sub: %d, %d, %d" % (nrows, ncols, idx)) c, r = (idx - 1) % ncols, (idx - 1) // ncols if not margins: margins = (0.01, 0.0, 0.0, 0.02) extent = ( c * 1.0 / ncols, 1.0 - (r + 1) * 1.0 / nrows, 1.0 / ncols, 1.0 / nrows, ) if not reuse_axes: extent = ( extent[0] + margins[0], extent[1] + margins[1], extent[2] - margins[2] - margins[0], extent[3] - margins[3] - margins[1], ) # Starting to draw : turn interactive off wasinteractive = pylab.isinteractive() pylab.ioff() try: map = pixelfunc.ma_to_array(map) if alpha is not None: alpha = pixelfunc.ma_to_array(alpha) if reuse_axes: ax = f.gca() else: ax = PA.HpxMollweideAxes( f, extent, coord=coord, rot=rot, format=format2, flipconv=flip ) f.add_axes(ax) if remove_dip: map = pixelfunc.remove_dipole( map, gal_cut=gal_cut, nest=nest, copy=True ) elif remove_mono: map = pixelfunc.remove_monopole( map, gal_cut=gal_cut, nest=nest, copy=True ) img = ax.projmap( map, nest=nest, xsize=xsize, coord=coord, vmin=min, vmax=max, cmap=cmap, badcolor=badcolor, bgcolor=bgcolor, norm=norm, alpha=alpha, ) if cbar: im = ax.get_images()[0] b = im.norm.inverse(np.linspace(0, 1, im.cmap.N + 1)) v = np.linspace(im.norm.vmin, im.norm.vmax, im.cmap.N) mappable = plt.cm.ScalarMappable( norm=matplotlib.colors.Normalize(vmin=im.norm.vmin, vmax=im.norm.vmax), cmap=cmap, ) if matplotlib.__version__ >= "0.91.0": cb = f.colorbar( mappable, ax=ax, orientation="horizontal", shrink=0.5, aspect=25, ticks=PA.BoundaryLocator(nlocs, norm), pad=0.05, fraction=0.1, boundaries=b, values=v, format=format, ) else: # for older matplotlib versions, no ax kwarg cb = f.colorbar( mappable, orientation="horizontal", shrink=0.5, aspect=25, ticks=PA.BoundaryLocator(nlocs, norm), pad=0.05, fraction=0.1, boundaries=b, values=v, format=format, ) cb.solids.set_rasterized(True) a
(map=None, fig=None, rot=None, coord=None, unit='', xsize=800, title='Mollweide view', nest=False, min=None, max=None, flip='astro', remove_dip=False, remove_mono=False, gal_cut=0, format='%g', format2='%g', cbar=True, cmap=None, badcolor='gray', bgcolor='white', notext=False, norm=None, hold=False, reuse_axes=False, margins=None, sub=None, nlocs=2, return_projected_map=False, alpha=None)
[ 0.06293643265962601, -0.05961690843105316, 0.02287781983613968, 0.0482228547334671, -0.04889573156833649, -0.005960569251328707, -0.029337439686059952, -0.007412862032651901, -0.06791572272777557, -0.012111786752939224, -0.006521299947053194, 0.024492723867297173, 0.07473421096801758, 0.06114209443330765, -0.007844625040888786, 0.0001602463744347915, -0.02413385733962059, 0.0015574300196021795, 0.0022078778129070997, -0.03817455843091011, 0.030571047216653824, -0.10021382570266724, 0.08267416059970856, 0.031445786356925964, -0.0368063747882843, -0.014466856606304646, -0.005340961739420891, 0.024246003478765488, 0.012885595671832561, -0.02852998673915863, -0.07558652013540268, -0.03393543139100075, 0.01028380449861288, -0.04142679646611214, -0.0018041515722870827, -0.003922312520444393, 0.07679770141839981, -0.04885087534785271, -0.04263797774910927, 0.03718767315149307, 0.02716180309653282, -0.017281726002693176, 0.06284672021865845, -0.041965097188949585, 0.033240124583244324, 0.011741704307496548, -0.03528118506073952, 0.04077634960412979, 0.010171658359467983, 0.04342300072312355, -0.038331564515829086, -0.07056237012147903, -0.04687710106372833, 0.03727738931775093, 0.01228000596165657, 0.0625327080488205, 0.009605320170521736, 0.06953062862157822, 0.1037127822637558, -0.07522765547037125, -0.023595554754137993, -0.01926671341061592, -0.009038981981575489, -0.019457360729575157, 0.030885057523846626, -0.023909565061330795, 0.05755341798067093, -0.026242205873131752, 0.014421998523175716, -0.008954872377216816, -0.013446326367557049, 0.0650896430015564, -0.0009861853905022144, -0.017808813601732254, 0.03297097608447075, -0.03153550624847412, 0.012650088407099247, -0.014096774160861969, 0.01207814272493124, 0.011096864007413387, 0.02332640439271927, -0.0010941261425614357, 0.014590217731893063, 0.016496703028678894, 0.010059512220323086, 0.011663202196359634, 0.04176323488354683, -0.00142846186645329, -0.018963918089866638, -0.011399658396840096, 0.0038494174368679523, -0.0021952614188194275, 0.034944746643304825, 0.02722909115254879, -0.06091780215501785, -0.022900249809026718, -0.032253239303827286, 0.0341372974216938, -0.002701320918276906, 0.007575474213808775, 0.017405087128281593, -0.04023804888129234, -0.044566888362169266, -0.022126439958810806, -0.005083025433123112, -0.0014235555427148938, -0.020062951371073723, 0.02191336266696453, -0.05831601098179817, 0.0032354171853512526, 0.00461201136931777, 0.03694095090031624, -0.03223080933094025, -0.004968075547367334, -0.021644212305545807, 0.047594837844371796, -0.0455537773668766, -0.04050719738006592, -0.014556573703885078, 0.009941758587956429, -0.06921661645174026, -0.026690790429711342, 0.0020943298004567623, -0.07522765547037125, 0.05961690843105316, 0.0342494435608387, 0.0007373610860668123, 0.008837118744850159, -0.012594015337526798, -0.013749120756983757, 0.012358509004116058, -0.05365072935819626, -0.05217039957642555, -0.025210460647940636, 0.001675183535553515, -0.04777427017688751, 0.015969615429639816, -0.04710139334201813, -0.05302271246910095, 0.044073447585105896, -0.015027587302029133, 0.05149752274155617, -0.007059601601213217, 0.08998609334230423, -0.038017552345991135, -0.0012959892628714442, 0.02541232295334339, -0.022047938778996468, 0.010362306609749794, -0.009156735613942146, 0.016317268833518028, -0.018291041254997253, -0.02422357350587845, -0.012661303393542767, 0.012437011115252972, -0.0964457094669342, 0.04660794883966446, 0.041516512632369995, 0.013154746033251286, 0.08146297931671143, 0.017629379406571388, -0.031042061746120453, 0.04046234115958214, 0.025300176814198494, -0.018089178949594498, -0.020320886746048927, 0.020477890968322754, -0.02113955467939377, 0.007990415208041668, 0.05481705069541931, -0.0009139913017861545, -0.06266728043556213, -0.05714968964457512, -0.02103862166404724, 0.038331564515829086, 0.04476875439286232, -0.056880541145801544, -0.02020874060690403, -0.02111712470650673, -0.006414761301130056, 0.011674417182803154, 0.008635255508124828, 0.0030111249070614576, 0.060738369822502136, -0.03198409080505371, 0.030167320743203163, 0.04835743084549904, 0.006358688231557608, 0.045800499618053436, -0.0013899116311222315, -0.00967260729521513, 0.02935986965894699, -0.035819489508867264, -0.04947889223694801, 0.026466498151421547, -0.043198708444833755, 0.017371442168951035, -0.05750855803489685, 0.058226294815540314, 0.0011375828180462122, -0.06482049077749252, -0.03440644592046738, -0.01448928564786911, -0.0316925086081028, -0.016149049624800682, 0.009930543601512909, 0.017797598615288734, 0.02642163820564747, 0.06867831945419312, 0.03393543139100075, 0.043647293001413345, 0.021834859624505043, -0.03238781541585922, -0.025546899065375328, 0.017360227182507515, -0.029696308076381683, -0.052439551800489426, 0.013805193826556206, -0.014007057063281536, 0.05450304225087166, -0.06266728043556213, 0.07096610218286514, -0.024851592257618904, 0.022148869931697845, -0.02011902444064617, -0.03207380697131157, 0.0896272212266922, 0.04176323488354683, 0.051632098853588104, -0.05086950585246086, -0.008495072834193707, 0.0048979842104017735, -0.021229270845651627, -0.025277748703956604, -0.006706341169774532, -0.07181841135025024, -0.01628362387418747, 0.04207724332809448, -0.02680293656885624, 0.00416623055934906, 0.003605499630793929, -0.040125902742147446, -0.03384571522474289, 0.07352302968502045, -0.02201429381966591, 0.01970408298075199, -0.03519146889448166, 0.052888136357069016, -0.008753009140491486, 0.046293940395116806, -0.016552776098251343, -0.03337470069527626, -0.012773449532687664, 0.025546899065375328, 0.03682880476117134, -0.009319347329437733, -0.0823601484298706, -0.043265994638204575, 0.013109887950122356, -0.04485847055912018, -0.004996112082153559, -0.022294659167528152, 0.008893191814422607, 0.013782764784991741, 0.060289785265922546, -0.03321769833564758, 0.000556875835172832, 0.009274488314986229, -0.027430955320596695, -0.010558562353253365, 0.10389221459627151, 0.0657176598906517, -0.0198498722165823, 0.027049656957387924, -0.010233338922262192, 0.029315009713172913, 0.04519490897655487, -0.04434259608387947, 0.06482049077749252, 0.016440629959106445, -0.007996022701263428, -0.05472733452916145, -0.0510040819644928, 0.05082464590668678, -0.04970318451523781, -0.02765524759888649, 0.01714714989066124, 0.0710558146238327, 0.009852041490375996, -0.019412502646446228, -0.004323235247284174, 0.013693047687411308, 0.01705743372440338, -0.003179344115778804, 0.029584161937236786, -0.03178222477436066, -0.009453922510147095, 0.00011661450116662309, -0.07392676174640656, -0.008001629263162613, 0.03380085900425911, -0.055086202919483185, 0.04387158527970314, -0.02713937498629093, 0.0490751676261425, 0.0315803624689579, -0.012313649989664555, -0.020365744829177856, 0.04754997789859772, -0.009358597919344902, 0.018795698881149292, 0.012818307615816593, -0.04597993195056915, 0.0179770328104496, -0.009605320170521736, 0.014107989147305489, 0.024896450340747833, -0.0033699925988912582, 0.032342955470085144, 0.04656309261918068, 0.015094875358045101, -0.034899890422821045, 0.0032830792479217052, -0.0003921611641999334, 0.044118303805589676, -0.05845058709383011, 0.03721009939908981, -0.007177355233579874, 0.094741091132164, -0.01838075742125511, -0.06535878777503967, 0.053426437079906464, -0.05665624886751175, -0.05131809040904045, -0.02420114539563656, -0.07092124223709106, -0.00963896419852972, -0.02321425825357437, -0.042391255497932434, -0.05351615324616432, 0.04472389444708824, 0.013345395214855671, -0.03965488821268082, 0.06235327199101448, -0.019547078758478165, 0.03429429978132248, -0.022148869931697845, -0.01142769493162632, -0.04400615766644478, -0.04463417828083038, -0.005671792663633823, 0.009083840064704418, -0.01450050063431263, -0.010771640576422215, -0.006947455462068319, 0.08339189738035202, 0.03649236634373665, -0.04257068783044815, -0.044522032141685486, 0.021801216527819633, 0.057777710258960724, -0.009622141718864441, -0.07711171358823776, -0.0008074524812400341, -0.06558308005332947, -0.0009721671813167632, 0.009386634454131126, -0.046338800340890884, 0.038825005292892456, -0.027812251821160316, 0.0027237501926720142, -0.005982998292893171, -0.0049148062244057655, 0.023976853117346764, 0.011853850446641445, 0.008455821312963963, 0.02013023942708969, 0.030615905299782753, -0.0332849845290184, 0.017876099795103073, 0.006964277476072311, -0.02992060035467148, -0.01298652682453394, -0.01803310588002205, 0.012706161476671696, -0.021195627748966217, 0.015442528761923313, 0.0198498722165823, -0.040193188935518265, -0.04185295104980469, -0.00876983068883419, -0.00941467098891735, 0.0377708300948143, 0.017461160197854042, -0.009296918287873268, 0.017315369099378586, 0.016530346125364304, 0.05854030326008797, -0.02552446909248829, -0.004850321915000677, 0.05939261615276337, -0.040170758962631226, -0.0017228455981239676, 0.0014536947710439563, 0.002453197492286563, -0.05037606135010719, -0.03391300514340401, -0.023034824058413506, 0.019390074536204338, -0.017214437946677208, 0.06782601028680801, 0.003911097999662161, -0.05284327641129494, -0.009644570760428905, -0.03252239152789116, -0.030862627550959587, -0.06630081683397293, -0.02895614318549633, -0.009695037268102169, -0.012167859822511673, 0.005383016541600227, 0.016474273055791855, 0.05320214480161667, 0.023819847032427788, 0.023348834365606308, -0.06499992311000824, 0.01888541504740715, 0.004031654912978411, -0.010048297233879566, 0.03716524317860603, -0.02019752562046051, -0.06257756799459457, 0.0335092768073082, -0.02633192203938961, -0.014870583079755306, -0.0045895823277533054, 0.011410873383283615, 0.03983432054519653, 0.026982368901371956, 0.0013702861033380032, 0.02231708914041519, -0.010642671957612038, -0.006885775364935398, -0.042727693915367126, 0.004183052573353052, 0.02013023942708969, -0.055534787476062775, -0.0011011352762579918, -0.009784753434360027, 0.010951073840260506, 0.04084363579750061, 0.08213585615158081, -0.034967176616191864, -0.00045103789307177067, 0.08832632750272751, -0.046832241117954254, -0.0678708627820015, 0.015902327373623848, 0.026982368901371956, 0.017360227182507515, -0.0018560192547738552, 0.00039391344762407243, -0.017046218737959862, -0.014668719843029976, 0.04335571080446243, 0.05522077530622482, 0.039296019822359085, 0.004267162177711725, -0.02056760899722576, -0.01204449962824583, 0.022216157987713814, -0.0015420098789036274, -0.010065119713544846, -0.009347383864223957, 0.04331085458397865, 0.014175276271998882, -0.04342300072312355, 0.05540021136403084, 0.01974894106388092, -0.024874022230505943, -0.029763594269752502, 0.033531706780195236, 0.020320886746048927, -0.037927836179733276, -0.045890215784311295, 0.014511714689433575, 0.038825005292892456, -0.03880257532000542, -0.023864706978201866, -0.006196076050400734, -0.05181153491139412, 0.00968382228165865, -0.04508276283740997, 0.041942670941352844, -0.021341416984796524, 0.05571421980857849, 0.005276477430015802, -0.04835743084549904, 0.024380577728152275, -0.04970318451523781, 0.05791228637099266, -0.011270690709352493, -0.0046540661714971066, -0.00878104567527771, -0.023999281227588654, -0.007782944478094578, 0.009302524849772453, 0.00026915082708001137, 0.03781569004058838, 0.006465226877480745, -0.023079682141542435, -0.06899232417345047, 0.06499992311000824, -0.040641773492097855, 0.023416120558977127, -0.010474452748894691, -0.041023071855306625, 0.013222034089267254, -0.017864886671304703, -0.0162724107503891, 0.021890932694077492, 0.005133491009473801, 0.01450050063431263, 0.012829522602260113, -0.017707880586385727, 0.025636615231633186, 0.007194177247583866, -0.011130508035421371, -0.0010429593967273831, 0.03326255455613136, -0.05800200253725052, -0.03214109316468239, -0.030526189133524895, 0.04266040399670601, 0.011932353489100933, 0.0027307593263685703, -0.0484471470117569, -0.08361618965864182, 0.00876422319561243, -0.04037262499332428, -0.022216157987713814, 0.00811377540230751, 0.08204614371061325, -0.03202894702553749, 0.021801216527819633, 0.048043422400951385, 0.04615936428308487, -0.01629483886063099, 0.02408899925649166, -0.021330201998353004, 0.028866425156593323, 0.023909565061330795, -0.0018391972407698631, -0.012627659365534782, 0.03806241229176521, 0.0840647742152214, 0.054233890026807785, -0.04867143929004669, -0.0448136106133461, -0.017864886671304703, -0.017797598615288734, 0.024761876091361046, 0.03696338087320328, 0.012167859822511673, -0.017696665599942207, 0.005343765486031771, 0.03523632884025574, 0.05181153491139412, -0.002565343864262104, -0.016855569556355476, 0.010048297233879566, -0.004883965943008661, 0.006880167871713638, -0.006089537404477596, -0.013973413035273552, 0.015464957803487778, 0.0702035054564476, -0.02597305364906788, 0.041494086384773254, -0.04037262499332428, -0.007227820809930563, 0.03079533949494362, 0.045890215784311295, 0.02552446909248829, 0.04375943914055824, 0.044589318335056305, 0.032275669276714325, 0.05705997347831726, 0.0008614227990619838, -0.018335899338126183, 0.0267805065959692, -0.033195268362760544, 0.03985675051808357, 0.017382657155394554, -0.00813620537519455, -0.01753966137766838, -0.020904047414660454, 0.016788283362984657, 0.0028358963318169117, 0.07527251541614532, 0.005147509276866913, -0.019423717632889748, -0.03673908859491348, -0.04997233673930168, -0.05584879592061043, -0.009072626009583473, 0.08231529593467712, 0.029180435463786125, -0.04290712624788284, -0.02364041469991207, -0.005854030139744282, -0.007009136024862528, 0.001739667495712638, -0.024694588035345078, -0.04005861282348633, -0.1263214498758316, -0.04306413233280182, 0.058674879372119904, 0.058181434869766235, 0.061231810599565506, 0.020825544372200966, -0.006768021732568741, -0.04052962735295296, 0.0047409795224666595, -0.0025008597876876593, -0.020780686289072037, 0.04871629923582077, 0.011730490252375603, 0.0021013389341533184, 0.07056237012147903, 0.006476441863924265, 0.008024059236049652, -0.010580991394817829, -0.048088278621435165, -0.003655965207144618, 0.018178895115852356, -0.021890932694077492, -0.0010268384357914329, 0.037591397762298584, 0.07325388491153717, 0.033598992973566055, -0.017046218737959862, 0.06504478305578232, 0.007037172559648752, 0.047684554010629654, 0.06293643265962601, 0.008736186660826206, 0.007850232534110546, 0.054682474583387375, -0.010844535194337368, 0.00992493610829115, 0.016788283362984657, 0.01379397977143526, 0.010508096776902676, 0.0037849333602935076, 0.022216157987713814, -0.0219806507229805, -0.04564349353313446, -0.027386095374822617, -0.01759573444724083, 0.00558487931266427, 0.005402641836553812, -0.008242744021117687, -0.038398850709199905, 0.010923037305474281, -0.06890261173248291, 0.022047938778996468, 0.0026522569824010134, -0.005649363622069359, 0.004998915828764439, 0.01623876579105854, -0.0704277977347374, -0.04292955622076988, -0.008209099993109703, -0.023617984727025032, -0.019221855327486992, 0.025098314508795738, 0.012022069655358791, -0.02500859647989273, 0.0062577566131949425, 0.04382672533392906, 0.021240485832095146, -0.055579643696546555, 0.056387096643447876, 0.029943028464913368, 0.056431956589221954, -0.0188293419778347, -0.03301583230495453, 0.01404070109128952, 0.012167859822511673, 0.032701823860406876, 0.02242923527956009, 0.03391300514340401, -0.00921841524541378, 0.03826427459716797, 0.030436472967267036, -0.0699792131781578, -0.02543475292623043, 0.0014887404395267367, -0.00702035054564476, -0.0057054366916418076, -0.013468755409121513, -0.016552776098251343, 0.04115764796733856, -0.03391300514340401, -0.008792259730398655, -0.01620512269437313, -0.0021812431514263153, -0.014119203202426434, -0.04528462514281273, -0.013984628021717072, 0.0755416601896286, 0.03119906596839428, -0.0360662117600441, -0.0062745786271989346, -0.08460307121276855, -0.08209100365638733, 0.022294659167528152, -0.007984807714819908, -0.04490333050489426, 0.031086919829249382, 0.014758436940610409, -0.019221855327486992, 0.043624863028526306, 0.035415761172771454, 0.00767079833894968, -0.008366105146706104, -0.04876115545630455, -0.03297097608447075, 0.000878244754858315, -0.017752738669514656, -0.01933400146663189, -0.0412922203540802, 0.020399389788508415, 0.0046540661714971066, 0.03032432496547699, -0.023124542087316513, -0.03864557296037674, -0.07163897901773453, -0.023079682141542435, 0.013625760562717915, -0.08913377672433853, -0.02935986965894699, -0.026242205873131752, -0.015285523608326912, 0.02494131028652191, -0.00416623055934906, 0.041494086384773254, -0.027969256043434143, 0.05616280436515808, 0.03070562332868576, 0.03249996155500412, -0.018313471227884293, 0.03027946688234806, -0.016922857612371445, 0.017438730224967003, 0.0011740302434191108, 0.028372982516884804, 0.045508917421102524, -0.02279931679368019, -0.04559863358736038, 0.04135951027274132, -0.05396473780274391, -0.010238945484161377, 0.028395412489771843, 0.061186954379081726, -0.03830913454294205, 0.010025868192315102 ]
37,698
healpy.zoomtool
mollzoom
Interactive mollweide plot with zoomed gnomview. Parameters: ----------- map : float, array-like shape (Npix,) An array containing the map, supports masked maps, see the `ma` function. if None, use map with inf value (white map), useful for overplotting fig : a figure number. Default: create a new figure rot : scalar or sequence, optional Describe the rotation to apply. In the form (lon, lat, psi) (unit: degrees) : the point at longitude *lon* and latitude *lat* will be at the center. An additional rotation of angle *psi* around this direction is applied. coord : sequence of character, optional Either one of 'G', 'E' or 'C' to describe the coordinate system of the map, or a sequence of 2 of these to rotate the map from the first to the second coordinate system. unit : str, optional A text describing the unit of the data. Default: '' xsize : int, optional The size of the image. Default: 800 title : str, optional The title of the plot. Default: 'Mollweide view' nest : bool, optional If True, ordering scheme is NESTED. Default: False (RING) min : float, optional The minimum range value max : float, optional The maximum range value flip : {'astro', 'geo'}, optional Defines the convention of projection : 'astro' (default, east towards left, west towards right) or 'geo' (east towards roght, west towards left) remove_dip : bool, optional If :const:`True`, remove the dipole+monopole remove_mono : bool, optional If :const:`True`, remove the monopole gal_cut : float, scalar, optional Symmetric galactic cut for the dipole/monopole fit. Removes points in latitude range [-gal_cut, +gal_cut] format : str, optional The format of the scale label. Default: '%g'
def mollzoom( map=None, fig=None, rot=None, coord=None, unit="", xsize=800, title="Mollweide view", nest=False, min=None, max=None, flip="astro", remove_dip=False, remove_mono=False, gal_cut=0, format="%g", cmap=None, norm=None, hold=False, margins=None, sub=None, ): """Interactive mollweide plot with zoomed gnomview. Parameters: ----------- map : float, array-like shape (Npix,) An array containing the map, supports masked maps, see the `ma` function. if None, use map with inf value (white map), useful for overplotting fig : a figure number. Default: create a new figure rot : scalar or sequence, optional Describe the rotation to apply. In the form (lon, lat, psi) (unit: degrees) : the point at longitude *lon* and latitude *lat* will be at the center. An additional rotation of angle *psi* around this direction is applied. coord : sequence of character, optional Either one of 'G', 'E' or 'C' to describe the coordinate system of the map, or a sequence of 2 of these to rotate the map from the first to the second coordinate system. unit : str, optional A text describing the unit of the data. Default: '' xsize : int, optional The size of the image. Default: 800 title : str, optional The title of the plot. Default: 'Mollweide view' nest : bool, optional If True, ordering scheme is NESTED. Default: False (RING) min : float, optional The minimum range value max : float, optional The maximum range value flip : {'astro', 'geo'}, optional Defines the convention of projection : 'astro' (default, east towards left, west towards right) or 'geo' (east towards roght, west towards left) remove_dip : bool, optional If :const:`True`, remove the dipole+monopole remove_mono : bool, optional If :const:`True`, remove the monopole gal_cut : float, scalar, optional Symmetric galactic cut for the dipole/monopole fit. Removes points in latitude range [-gal_cut, +gal_cut] format : str, optional The format of the scale label. Default: '%g' """ import pylab # Ensure that the nside is valid nside = pixelfunc.get_nside(map) pixelfunc.check_nside(nside, nest=nest) # create the figure (if interactive, it will open the window now) f = pylab.figure(fig, figsize=(10.5, 5.4)) extent = (0.02, 0.25, 0.56, 0.72) # Starting to draw : turn interactive off wasinteractive = pylab.isinteractive() pylab.ioff() try: if map is None: map = np.zeros(12) + np.inf map = pixelfunc.ma_to_array(map) ax = PA.HpxMollweideAxes( f, extent, coord=coord, rot=rot, format=format, flipconv=flip ) f.add_axes(ax) if remove_dip: map = pixelfunc.remove_dipole( map, gal_cut=gal_cut, nest=nest, copy=True ) elif remove_mono: map = pixelfunc.remove_monopole( map, gal_cut=gal_cut, nest=nest, copy=True ) ax.projmap( map, nest=nest, xsize=xsize, coord=coord, vmin=min, vmax=max, cmap=cmap, norm=norm, ) im = ax.get_images()[0] b = im.norm.inverse(np.linspace(0, 1, im.cmap.N + 1)) v = np.linspace(im.norm.vmin, im.norm.vmax, im.cmap.N) if matplotlib.__version__ >= "0.91.0": cb = f.colorbar( ax.get_images()[0], ax=ax, orientation="horizontal", shrink=0.5, aspect=25, ticks=PA.BoundaryLocator(), pad=0.05, fraction=0.1, boundaries=b, values=v, ) else: # for older matplotlib versions, no ax kwarg cb = f.colorbar( ax.get_images()[0], orientation="horizontal", shrink=0.5, aspect=25, ticks=PA.BoundaryLocator(), pad=0.05, fraction=0.1, boundaries=b, values=v, ) ax.set_title(title) ax.text( 0.86, 0.05, ax.proj.coordsysstr, fontsize=14, fontweight="bold", transform=ax.transAxes, ) cb.ax.text( 1.05, 0.30, unit, fontsize=14, fontweight="bold", transform=cb.ax.transAxes, ha="left", va="center", ) f.sca(ax) ## Gnomonic axes # extent = (0.02,0.25,0.56,0.72) g_xsize = 600 g_reso = 1.0 extent = (0.60, 0.04, 0.38, 0.94) g_ax = PA.HpxGnomonicAxes( f, extent, coord=coord, rot=rot, format=format, flipconv=flip ) f.add_axes(g_ax) if remove_dip: map = pixelfunc.remove_dipole(map, gal_cut=gal_cut, nest=nest, copy=True) elif remove_mono: map = pixelfunc.remove_monopole(map, gal_cut=gal_cut, nest=nest, copy=True) g_ax.projmap( map, nest=nest, coord=coord, vmin=min, vmax=max, xsize=g_xsize, ysize=g_xsize, reso=g_reso, cmap=cmap, norm=norm, ) im = g_ax.get_images()[0] b = im.norm.inverse(np.linspace(0, 1, im.cmap.N + 1)) v = np.linspace(im.norm.vmin, im.norm.vmax, im.cmap.N) if matplotlib.__version__ >= "0.91.0": cb = f.colorbar( g_ax.get_images()[0], ax=g_ax, orientation="horizontal", shrink=0.5, aspect=25, ticks=PA.BoundaryLocator(), pad=0.08, fraction=0.1, boundaries=b, values=v, ) else: cb = f.colorbar( g_ax.get_images()[0], orientation="horizontal", shrink=0.5, aspect=25, ticks=PA.BoundaryLocator(), pad=0.08, fraction=0.1, boundaries=b, values=v, ) g_ax.set_title(title) g_ax.text( -0.07, 0.02, "%g '/pix, %dx%d pix" % ( g_ax.proj.arrayinfo["reso"], g_ax.proj.arrayinfo["xsize"], g_ax.proj.arrayinfo["ysize"], ), fontsize=12, verticalalignment="bottom", transform=g_ax.transAxes, rotation=90, ) g_ax.text( -0.07, 0.8, g_ax.proj.coordsysstr, fontsize=14, fontweight="bold", rotation=90, transform=g_ax.transAxes, ) lon, lat = np.around(g_ax.proj.get_center(lonlat=True), g_ax._coordprec) g_ax.text( 0.5, -0.03, "on (%g,%g)" % (lon, lat), verticalalignment="center", horizontalalignment="center", transform=g_ax.transAxes, ) cb.ax.text( 1.05, 0.30, unit, fontsize=14, fontweight="bold", transform=cb.ax.transAxes, ha="left", va="center", ) # Add graticule info axes grat_ax = pylab.axes([0.25, 0.02, 0.22, 0.25]) grat_ax.axis("off") # Add help text help_ax = pylab.axes([0.02, 0.02, 0.22, 0.25]) help_ax.axis("off") t = help_ax.transAxes help_ax.text(0.1, 0.8, "r/t .... zoom out/in", transform=t, va="baseline") help_ax.text(0.1, 0.65, "p/v .... print coord/val", transform=t, va="baseline") help_ax.text(0.1, 0.5, "c ...... go to center", transform=
(map=None, fig=None, rot=None, coord=None, unit='', xsize=800, title='Mollweide view', nest=False, min=None, max=None, flip='astro', remove_dip=False, remove_mono=False, gal_cut=0, format='%g', cmap=None, norm=None, hold=False, margins=None, sub=None)
[ 0.08715584129095078, -0.014785794541239738, 0.04736730456352234, 0.0661943107843399, -0.03494388237595558, -0.015409364365041256, -0.04357792064547539, 0.004487902391701937, -0.04482506215572357, -0.0053153312765061855, 0.0017477936344221234, 0.006112780887633562, 0.06940809637308121, 0.049789633601903915, 0.001307097845710814, 0.00025669782189652324, -0.023815562948584557, -0.017352024093270302, 0.011584004387259483, -0.033816657960414886, 0.027964698150753975, -0.10600683093070984, 0.07770636677742004, 0.017507916316390038, -0.01977435126900673, -0.02258041501045227, 0.008723978884518147, 0.026789508759975433, -0.0034206390846520662, -0.027532996609807014, -0.06465937197208405, -0.0575602725148201, 0.008322255685925484, -0.04739128798246384, 0.015025628730654716, 0.0013550646835938096, 0.06005454808473587, -0.04705552011728287, -0.071710504591465, 0.01030688639730215, 0.024187305942177773, -0.018503228202462196, 0.03396055847406387, -0.02834843285381794, 0.039260901510715485, 0.012891102582216263, -0.028204532340168953, 0.06681787967681885, -0.0013063483638688922, 0.034680064767599106, -0.03074677847325802, -0.05741637200117111, -0.059143178164958954, 0.027413079515099525, 0.0004676771932281554, 0.07588362693786621, 0.045544564723968506, 0.08590870350599289, 0.09478257596492767, -0.06063015013933182, -0.014905711635947227, -0.003417641157284379, -0.02724519558250904, -0.028852086514234543, 0.025278551504015923, 0.018167460337281227, 0.07415681332349777, -0.06461140513420105, 0.006877253297716379, -0.011068359948694706, -0.009089726023375988, 0.04832664504647255, -0.01488172821700573, -0.020709706470370293, 0.028396399691700935, -0.004709749016910791, -0.024079380556941032, 0.016920320689678192, 0.023923488333821297, -0.002230460522696376, 0.01010902225971222, 0.005396275315433741, 0.01091246772557497, 0.013106953352689743, 0.03352885693311691, 0.012615292333066463, 0.044585227966308594, -0.00837022252380848, -0.020361945033073425, -0.02422328107059002, -0.028156565502285957, -0.03551948443055153, 0.049357932060956955, 0.023108050227165222, -0.05492209270596504, -0.007722669746726751, -0.03789384663105011, 0.0130230113863945, -0.03357682377099991, 0.029907356947660446, 0.017184138298034668, -0.019030865281820297, -0.03386462479829788, -0.048158761113882065, 0.002053582575172186, -0.02282024919986725, -0.03791783004999161, -0.002695139730349183, -0.02779681421816349, 0.013970357365906239, -0.019366633147001266, 0.021021490916609764, -0.01573314145207405, -0.027317145839333534, -0.002964953426271677, 0.028804119676351547, -0.04472912847995758, -0.06235696002840996, -0.01997821033000946, 0.022292613983154297, -0.05636109784245491, -0.023815562948584557, 0.008460160344839096, -0.05885537713766098, 0.04216289892792702, 0.048278678208589554, 0.0201101191341877, 0.01726808212697506, -0.012519358657300472, -0.013490688055753708, 0.035687368363142014, -0.054874125868082047, -0.03312113881111145, -0.023371867835521698, 0.032569520175457, -0.030554911121726036, -0.01112232357263565, -0.027724863961338997, -0.030363043770194054, 0.06446750462055206, -0.0233478844165802, 0.018827004358172417, -0.022088753059506416, 0.05463429167866707, -0.02846834994852543, -0.008130388334393501, 0.04763112589716911, -0.025254568085074425, -0.003951272927224636, -0.029451671987771988, 0.03189798444509506, -0.0008903854177333415, 0.010342861525714397, -0.05904724448919296, -0.020985515788197517, -0.078138068318367, 0.020889582112431526, 0.028972003608942032, 0.01888696476817131, 0.09487850964069366, 0.016332726925611496, -0.03007524088025093, 0.045232780277729034, 0.03129839897155762, -0.002284423215314746, -0.013154920190572739, 0.027389096096158028, -0.003429632866755128, 0.012351474724709988, 0.04765510931611061, -0.01455795206129551, -0.05089287459850311, -0.06557074189186096, -0.006577460095286369, 0.0379657968878746, 0.05257171392440796, -0.04930996522307396, 0.020014185458421707, -0.00450588995590806, -0.0019021871266886592, -0.007231009192764759, 0.018539203330874443, -0.010504749603569508, 0.05127660930156708, -0.02813258208334446, 0.03503981605172157, 0.06355613470077515, 0.006121774669736624, 0.016644511371850967, -0.02422328107059002, 0.0000010949473789878539, 0.0053543043322861195, -0.03657475486397743, -0.04362588748335838, 0.02236456423997879, -0.0019171767635270953, 0.027389096096158028, -0.05741637200117111, 0.05568956211209297, 0.008723978884518147, -0.03887716680765152, -0.04331410303711891, -0.004355993587523699, -0.05233187973499298, -0.006997170392423868, 0.014521976932883263, 0.01888696476817131, 0.027940714731812477, 0.08518920093774796, 0.010504749603569508, 0.04659983515739441, 0.01172790490090847, -0.05396275222301483, -0.003810370108112693, 0.014581935480237007, -0.03736620768904686, -0.03283333778381348, 0.008717983029782772, 0.010330869816243649, 0.04158729687333107, -0.06144559010863304, 0.0575123056769371, -0.009953130036592484, 0.01005505956709385, 0.0010582695249468088, -0.021045474335551262, 0.10380035638809204, 0.04796689376235008, 0.04921403154730797, -0.06864061951637268, 0.02789274789392948, 0.0005257620941847563, 0.010025080293416977, -0.021525142714381218, -0.009341551922261715, -0.08000877499580383, 0.007117087487131357, 0.03592720255255699, -0.016704469919204712, 0.006631422787904739, 0.01790364272892475, -0.03822961449623108, -0.05137254297733307, 0.09257610142230988, -0.017531899735331535, 0.0008723978535272181, -0.025998055934906006, 0.055545661598443985, -0.0031118521001189947, 0.024055397137999535, -0.038373515009880066, -0.018155468627810478, -0.008400201797485352, 0.0017088205786421895, 0.021045474335551262, -0.013238862156867981, -0.09583785384893417, -0.030698811635375023, 0.023084066808223724, -0.06230899319052696, 0.0016173836775124073, -0.024942783638834953, -0.033289022743701935, 0.01923472434282303, 0.0804404765367508, -0.02379157952964306, 0.019294682890176773, 0.005600134842097759, -0.030650844797492027, -0.0030009287875145674, 0.14294134080410004, 0.05636109784245491, -0.05266764760017395, 0.033600807189941406, -0.017519908025860786, 0.012891102582216263, 0.024403156712651253, -0.043266136199235916, 0.05568956211209297, 0.007332938723266125, -0.012159607373178005, -0.044561244547367096, -0.03312113881111145, 0.040675923228263855, -0.06609837710857391, -0.0076986863277852535, 0.029667522758245468, 0.06902436167001724, 0.00126887415535748, -0.004568846430629492, -0.010582695715129375, 0.019930243492126465, 0.025014733895659447, -0.02368365228176117, 0.022016802802681923, -0.04988556727766991, 0.003717434126883745, 0.018443269655108452, -0.08768347650766373, -0.02445112355053425, 0.07420478016138077, -0.058135874569416046, 0.019630450755357742, -0.02681349217891693, 0.028924036771059036, 0.053914785385131836, 0.0369584895670414, -0.02475091628730297, 0.058039940893650055, -0.009035763330757618, 0.0007180044194683433, -0.0044579231180250645, -0.04223484918475151, 0.03463209792971611, -0.016860362142324448, 0.029715489596128464, 0.03657475486397743, 0.0001214161966345273, 0.00934754777699709, 0.02726917900145054, 0.00826229713857174, -0.03249756991863251, 0.02475091628730297, -0.025926105678081512, 0.025158634409308434, -0.043721821159124374, 0.004119156859815121, 0.04221086576581001, 0.09084929525852203, -0.0017597853438928723, -0.06662601232528687, 0.05592939630150795, -0.035111766308546066, -0.04173119738698006, -0.02561432123184204, -0.04278646782040596, 0.007290967740118504, -0.031538233160972595, -0.03551948443055153, -0.07693889737129211, 0.02292817458510399, -0.0004961575614288449, -0.07895350456237793, 0.06864061951637268, -0.02052983082830906, 0.039908453822135925, -0.0054742214269936085, -0.03029109165072441, -0.03199391812086105, -0.03170611709356308, -0.010672633536159992, 0.01931866630911827, -0.019906260073184967, -0.023503776639699936, -0.018635137006640434, 0.07190237194299698, 0.050221335142850876, -0.04444132745265961, -0.023851538076996803, 0.015984967350959778, 0.016680486500263214, -0.018958915024995804, -0.0695040300488472, 0.023060083389282227, -0.046551868319511414, 0.002833044622093439, 0.018862979486584663, -0.03810969740152359, 0.05722450092434883, -0.01291508600115776, 0.03846944868564606, -0.004230080172419548, -0.027197228744626045, 0.011026388965547085, 0.0014277645386755466, 0.023084066808223724, 0.0021435203962028027, 0.015157537534832954, -0.06964793056249619, -0.026669591665267944, 0.008789933286607265, -0.03657475486397743, -0.010091034695506096, -0.0039842501282691956, -0.002318899380043149, -0.009953130036592484, 0.034799981862306595, 0.019630450755357742, -0.025926105678081512, -0.04314621910452843, -0.017232106998562813, -0.023084066808223724, 0.03966861963272095, 0.038613349199295044, -0.014474010095000267, 0.013802473433315754, 0.038061730563640594, 0.04225883260369301, -0.01955850049853325, 0.0036035128869116306, 0.05036523565649986, -0.022868216037750244, -0.02260439842939377, 0.00041858607437461615, -0.0077646407298743725, -0.04465717822313309, -0.02856428362429142, -0.021681034937500954, 0.008436176925897598, 0.007093104068189859, 0.05832774192094803, -0.016260776668787003, -0.0423787496984005, -0.015445339493453503, -0.04487302899360657, -0.03297723829746246, -0.08705990761518478, -0.04731933772563934, -0.008945825509727001, -0.02031397819519043, -0.026357807219028473, 0.012603300623595715, 0.04983760043978691, 0.028156565502285957, 0.0260700061917305, -0.030339058488607407, -0.00014699228631798178, -0.02225663885474205, -0.041875097900629044, 0.03739019110798836, -0.004976565018296242, -0.024726932868361473, 0.025446437299251556, -0.021860910579562187, -0.0005714805447496474, -0.005057509057223797, -0.008436176925897598, 0.03228171914815903, 0.01639268547296524, -0.016872353851795197, 0.019078832119703293, 0.0017118185060098767, -0.0013550646835938096, -0.03441624343395233, 0.04223484918475151, 0.013982349075376987, -0.04700755327939987, 0.019354641437530518, -0.00023964709544088691, 0.004158129915595055, 0.012591308914124966, 0.06585854291915894, -0.0013782986206933856, 0.00413114856928587, 0.08648430556058884, -0.04842257872223854, -0.08015267550945282, -0.005237385164946318, 0.020601781085133553, 0.02810859866440296, -0.016368702054023743, -0.023431826382875443, -0.029259804636240005, -0.004400962498039007, 0.030147191137075424, 0.06830485165119171, 0.04832664504647255, 0.010678629390895367, -0.053483083844184875, -0.008190346881747246, 0.02595008909702301, -0.016536585986614227, -0.007794620003551245, -0.020889582112431526, 0.007524806074798107, 0.014318116940557957, -0.055881429463624954, 0.07324544340372086, 0.05281154811382294, -0.03201790153980255, -0.018503228202462196, 0.03348089009523392, 0.04492099583148956, 0.000822931993752718, -0.026885442435741425, 0.03453616425395012, 0.050461169332265854, -0.05842367559671402, -0.002091056667268276, -0.0369345061480999, -0.0445132777094841, 0.024918800219893456, -0.026213906705379486, 0.03899708390235901, -0.006817294750362635, 0.06489920616149902, -0.0190068818628788, -0.046527884900569916, 0.014426043257117271, -0.0412515290081501, 0.024163322523236275, 0.017747750505805016, -0.019174765795469284, -0.0010028078686445951, 0.008855887688696384, -0.02282024919986725, -0.009287589229643345, 0.016860362142324448, 0.0238995049148798, 0.015313430689275265, -0.034895915538072586, -0.04897419735789299, 0.054778192192316055, -0.026453740894794464, 0.01652459427714348, -0.050653036683797836, -0.050653036683797836, 0.0038463452365249395, -0.02736511267721653, -0.028276482596993446, 0.0314902663230896, 0.010738587938249111, 0.0010815035784617066, -0.011200269684195518, -0.002869019750505686, 0.031969934701919556, -0.01716015487909317, -0.006871257442981005, 0.01617683470249176, 0.05156441032886505, -0.030434994027018547, -0.044249456375837326, -0.023191992193460464, 0.04959776625037193, 0.006847274024039507, -0.012747202068567276, -0.026046022772789, -0.07516411691904068, 0.007021153811365366, -0.045112863183021545, -0.021045474335551262, -0.012879110872745514, 0.10178574919700623, -0.013910398818552494, 0.029715489596128464, 0.06988776475191116, 0.04907013103365898, -0.013814465142786503, 0.02314402535557747, -0.031634166836738586, 0.0075427936390042305, 0.02073368988931179, -0.009377527050673962, 0.0047727059572935104, 0.005210403818637133, 0.07976894080638885, 0.03739019110798836, -0.043050285428762436, -0.02151315100491047, -0.04628805071115494, -0.012579317204654217, 0.029235821217298508, 0.031082546338438988, 0.007992483675479889, -0.02422328107059002, -0.004841658286750317, 0.020002193748950958, 0.04364987090229988, 0.013166911900043488, -0.014929695054888725, 0.018383311107754707, 0.001945657073520124, 0.010133005678653717, 0.00019046229135710746, -0.014509985223412514, 0.02779681421816349, 0.06912029534578323, -0.0015319426311179996, 0.020373936742544174, -0.04355393722653389, 0.006979182828217745, 0.016104884445667267, 0.04189908131957054, 0.026981376111507416, 0.03952471911907196, 0.030770761892199516, 0.029259804636240005, 0.0477990098297596, -0.012291516177356243, -0.013898407109081745, 0.027389096096158028, 0.015613223426043987, 0.04074787348508835, 0.004886627197265625, -0.019906260073184967, -0.021117424592375755, -0.007225013338029385, 0.00820833444595337, -0.005258370656520128, 0.07180643826723099, 0.003087868681177497, -0.023299917578697205, -0.03635890409350395, -0.0531952828168869, -0.05995861440896988, -0.004811679013073444, 0.07209423929452896, 0.000938352313823998, -0.04796689376235008, -0.026333823800086975, 0.008975804783403873, -0.023923488333821297, -0.04074787348508835, -0.025278551504015923, -0.053914785385131836, -0.09516631811857224, -0.04352995380759239, 0.06921622902154922, 0.05693669989705086, 0.052715614438056946, 0.013154920190572739, 0.012663259170949459, -0.04041210561990738, 0.024702949449419975, -0.007782628294080496, -0.052187979221343994, 0.03388860821723938, 0.030794745311141014, -0.006889245007187128, 0.04796689376235008, -0.002813558094203472, -0.016140859574079514, 0.022868216037750244, -0.052283912897109985, -0.025974072515964508, 0.018551195040345192, -0.050988808274269104, -0.014162224717438221, 0.005678080953657627, 0.06422767043113708, 0.03832554817199707, -0.025710254907608032, 0.05276358127593994, 0.0063676051795482635, 0.017939617857336998, 0.06557074189186096, 0.02496676705777645, 0.020349953323602676, 0.040028370916843414, -0.01996621862053871, 0.014210191555321217, 0.03563940152525902, 0.03038702718913555, -0.003756407182663679, -0.03424835950136185, 0.0012403938453644514, -0.03232968598604202, -0.04691161960363388, -0.03928488492965698, -0.013898407109081745, 0.0025782205630093813, 0.013574630953371525, 0.023215975612401962, -0.012237553484737873, 0.0008828905993141234, -0.05367495119571686, 0.02062576450407505, -0.0028000674210488796, -0.007968500256538391, 0.01813148520886898, 0.01823941059410572, -0.0695519968867302, -0.014581935480237007, -0.01064265426248312, -0.027101295068860054, -0.007710678037256002, 0.06374800205230713, 0.02247248962521553, -0.028516316786408424, 0.02020605280995369, 0.032089851796627045, 0.016596544533967972, -0.03933285176753998, 0.05947894603013992, 0.0033127134665846825, 0.038181647658348083, -0.013670564629137516, -0.01443803496658802, 0.019042856991291046, 0.03525566682219505, 0.005348308477550745, 0.045760415494441986, 0.026573657989501953, -0.006715364754199982, 0.05007743462920189, 0.007524806074798107, -0.07996080815792084, -0.017975592985749245, 0.020373936742544174, -0.016596544533967972, 0.007099099922925234, -0.04854249581694603, -0.011182282119989395, 0.039380818605422974, -0.02681349217891693, -0.030482960864901543, -0.00966532900929451, -0.012399441562592983, -0.03072279505431652, -0.04748722165822983, 0.008376218378543854, 0.07099100202322006, 0.02279626578092575, -0.031106529757380486, 0.018635137006640434, -0.0695519968867302, -0.06245289370417595, 0.03484794870018959, -0.007524806074798107, -0.03791783004999161, 0.026861459016799927, 0.013430729508399963, 0.010246926918625832, 0.04412953928112984, 0.04602423310279846, 0.0035285644698888063, -0.007446859963238239, -0.06393986940383911, -0.0391170009970665, 0.004349997732788324, -0.020697714760899544, 0.007117087487131357, -0.055641595274209976, 0.011434108018875122, -0.028612250462174416, 0.02988337352871895, -0.017184138298034668, -0.026861459016799927, -0.065139040350914, 0.0074768392369151115, -0.0029094917699694633, -0.0803925096988678, -0.027724863961338997, -0.04041210561990738, -0.009479457512497902, 0.007093104068189859, -0.0018737067002803087, 0.026549674570560455, -0.046743735671043396, 0.08125591278076172, 0.044345393776893616, 0.009677320718765259, -0.027820797637104988, 0.009581387042999268, -0.011260228231549263, 0.014593927189707756, 0.008076425641775131, 0.03549550101161003, 0.022496473044157028, -0.012039690278470516, -0.02803664840757847, 0.03280935436487198, -0.06998369842767715, -0.021453192457556725, 0.03602313622832298, 0.040891773998737335, -0.04930996522307396, 0.024055397137999535 ]
37,699
healpy.pixelfunc
nest2ring
Convert pixel number from NESTED ordering to RING ordering. Parameters ---------- nside : int, scalar or array-like the healpix nside parameter ipix : int, scalar or array-like the pixel number in NESTED scheme Returns ------- ipix : int, scalar or array-like the pixel number in RING scheme See Also -------- ring2nest, reorder Examples -------- >>> import healpy as hp >>> hp.nest2ring(16, 1130) 1504 >>> print(hp.nest2ring(2, np.arange(10))) [13 5 4 0 15 7 6 1 17 9] >>> print(hp.nest2ring([1, 2, 4, 8], 11)) [ 11 2 12 211]
def nest2ring(nside, ipix): """Convert pixel number from NESTED ordering to RING ordering. Parameters ---------- nside : int, scalar or array-like the healpix nside parameter ipix : int, scalar or array-like the pixel number in NESTED scheme Returns ------- ipix : int, scalar or array-like the pixel number in RING scheme See Also -------- ring2nest, reorder Examples -------- >>> import healpy as hp >>> hp.nest2ring(16, 1130) 1504 >>> print(hp.nest2ring(2, np.arange(10))) [13 5 4 0 15 7 6 1 17 9] >>> print(hp.nest2ring([1, 2, 4, 8], 11)) [ 11 2 12 211] """ check_nside(nside, nest=True) return pixlib._nest2ring(nside, ipix)
(nside, ipix)
[ -0.03395465761423111, -0.005230924114584923, 0.023007238283753395, -0.04092922434210777, 0.035155341029167175, 0.02434917911887169, 0.0006654530297964811, 0.020517582073807716, 0.07366553694009781, -0.035208314657211304, -0.002126580337062478, -0.038315966725349426, -0.025549864396452904, 0.03817471116781235, 0.002858247607946396, -0.0061799949035048485, -0.007235008291900158, 0.05999892204999924, -0.05752692371606827, 0.007001051213592291, 0.051417555660009384, -0.041600193828344345, 0.016747785732150078, -0.00151520234066993, -0.04047013819217682, -0.013119245879352093, 0.0707697719335556, -0.005014624446630478, -0.03958728164434433, -0.001565966522321105, 0.01855764165520668, -0.07557250559329987, 0.010011591948568821, -0.0017789556877687573, -0.03368980064988136, 0.0534304678440094, -0.05011092871427536, 0.07161731272935867, -0.04608510434627533, 0.007243836764246225, -0.03079403191804886, -0.007159965578466654, -0.013543017208576202, -0.005848923698067665, -0.027633406221866608, 0.02178889699280262, 0.05572589486837387, -0.02344866655766964, -0.03234785795211792, 0.04191802069544792, -0.02814546227455139, -0.033460259437561035, -0.018292784690856934, 0.021524040028452873, -0.018822498619556427, -0.0467560738325119, -0.030493861064314842, 0.001136677572503686, 0.04220053553581238, 0.017983784899115562, -0.013860845938324928, -0.02976991795003414, 0.043154019862413406, 0.027209633961319923, -0.031058888882398605, 0.041635509580373764, -0.06377754360437393, 0.011371190659701824, -0.02413729391992092, -0.018328098580241203, -0.012730789370834827, 0.03222426027059555, -0.021647639572620392, 0.0005870995228178799, 0.0008149868226610124, 0.039869796484708786, 0.03478454053401947, 0.046438246965408325, 0.047956760972738266, -0.03398997336626053, 0.004052310716360807, 0.02334272302687168, 0.024596380069851875, 0.05283012613654137, 0.005226510111242533, 0.06483697146177292, 0.009234678000211716, 0.04032887890934944, -0.011971533298492432, -0.07733821868896484, -0.02899300493299961, -0.006356566213071346, 0.0009805223671719432, 0.0008541635470464826, -0.0020901625975966454, -0.010400048457086086, -0.01010870561003685, 0.013339960016310215, -0.010620762594044209, -0.04308339208364487, -0.04951058700680733, -0.06847434490919113, -0.06540200114250183, -0.03072340227663517, -0.010691391304135323, 0.0032753972336649895, 0.01009987760335207, 0.08418918401002884, 0.0007355297566391528, 0.03529660031199455, -0.027086034417152405, -0.0033879615366458893, -0.027209633961319923, -0.030917631462216377, 0.001834134222008288, 0.055478695780038834, 0.035896942019462585, 0.04417813569307327, 0.07302988320589066, -0.010002763010561466, 0.014010931365191936, 0.024825921282172203, -0.0599282942712307, 0.044778477400541306, -0.013039789162576199, 0.022495180368423462, -0.024614036083221436, 0.05441926792263985, 0.04138830676674843, 0.0595751516520977, -0.004754181951284409, 0.0389869399368763, -0.04124705120921135, -0.05117035657167435, -0.015229272656142712, -0.0060917092487216, -0.03972853720188141, 0.013110417872667313, 0.011053361929953098, 0.003778625512495637, -0.0038492539897561073, -0.03462562710046768, -0.0025646977592259645, 0.019687697291374207, 0.019687697291374207, 0.01017050538212061, -0.014408216811716557, 0.008033993653953075, 0.06208246201276779, 0.0315886028110981, 0.004387796390801668, 0.028127804398536682, 0.04668544605374336, 0.04393093287944794, 0.06321252137422562, -0.015352873131632805, -0.030458545312285423, -0.027262605726718903, 0.010709048248827457, 0.005019038449972868, -0.020076153799891472, -0.040081679821014404, 0.03142968937754631, -0.021577009931206703, 0.005363352596759796, 0.015299901366233826, -0.07458370923995972, 0.022442210465669632, 0.018345756456255913, 0.02736854925751686, -0.043154019862413406, -0.0453081913292408, -0.07945707440376282, -0.040011052042245865, 0.028057176619768143, -0.003021575976163149, -0.026468034833669662, 0.03317774459719658, -0.056114353239536285, 0.021983124315738678, 0.03934008255600929, -0.06928656995296478, 0.06487228721380234, 0.0389869399368763, -0.035879284143447876, 0.03612648323178291, 0.04922807216644287, -0.04216522350907326, 0.003902225289493799, -0.03715059906244278, 0.040046367794275284, 0.06469571590423584, -0.036832768470048904, 0.023713523522019386, 0.0003559014876373112, -0.039975736290216446, -0.01049716304987669, 0.03174751624464989, -0.024578722193837166, 0.01929924078285694, -0.03282460197806358, 0.0389869399368763, -0.0074822078458964825, -0.01767478510737419, -0.023254437372088432, -0.022089067846536636, -0.05735035240650177, -0.0008061582338996232, 0.022142037749290466, 0.019952554255723953, 0.017047956585884094, -0.0030767545104026794, 0.02922254614531994, -0.0001540860248496756, 0.0039596110582351685, 0.029363803565502167, -0.04905150085687637, 0.03540254011750221, -0.009137563407421112, -0.018027927726507187, -0.05756223574280739, -0.03739779815077782, 0.02577940747141838, -0.01864592730998993, -0.05219447240233421, 0.0012062025489285588, 0.00039149163058027625, 0.003977268002927303, 0.01172433327883482, -0.015291073359549046, 0.029416775330901146, 0.020411640405654907, 0.004348067566752434, -0.02085306867957115, 0.004992553032934666, -0.0373624823987484, -0.06430725753307343, -0.0026728478260338306, 0.04922807216644287, 0.035261284559965134, 0.024508094415068626, -0.012174589559435844, -0.06692051887512207, -0.02989351749420166, 0.05247698351740837, 0.07302988320589066, 0.022954266518354416, -0.025285007432103157, -0.020429296419024467, 0.046296991407871246, -0.03665619716048241, -0.02171826735138893, 0.017630642279982567, -0.015617730095982552, 0.016977328807115555, 0.04905150085687637, -0.13009771704673767, 0.02005849778652191, -0.039869796484708786, -0.014337588101625443, 0.024119636043906212, -0.017030300572514534, -0.044849105179309845, -0.02426089346408844, 0.010611933656036854, 0.050640642642974854, 0.01864592730998993, -0.012148103676736355, 0.016456443816423416, -0.005791537929326296, 0.03450202941894531, 0.0281631201505661, 0.031906429678201675, -0.006908351555466652, 0.01644761487841606, 0.018787184730172157, 0.0036219183821231127, 0.07281799614429474, 0.047391731292009354, 0.011247590184211731, -0.013039789162576199, 0.013057446107268333, -0.02821609005331993, 0.028887061402201653, 0.005619381088763475, -0.00463941041380167, 0.05766817927360535, 0.07755010575056076, -0.010638419538736343, -0.028127804398536682, 0.056220296770334244, 0.04149425029754639, -0.05092315748333931, 0.0371859110891819, 0.008064893074333668, 0.05226510018110275, -0.03453734144568443, -0.01568835787475109, 0.012660160660743713, -0.00004597060978994705, 0.04117642343044281, -0.013949131593108177, 0.0012514489935711026, -0.011424161493778229, 0.02978757582604885, 0.06466040015220642, -0.017198042944073677, -0.008356235921382904, 0.016041500493884087, -0.014681901782751083, -0.045731961727142334, -0.04453127831220627, 0.011927390471100807, -0.0449550487101078, 0.0357380285859108, -0.04096453636884689, 0.011618390679359436, -0.00977321993559599, 0.0404348224401474, 0.03895162418484688, -0.023695865646004677, 0.044072192162275314, 0.024596380069851875, 0.048133332282304764, 0.047956760972738266, 0.050428759306669235, 0.008444521576166153, 0.08870941400527954, -0.025320321321487427, 0.06508417427539825, 0.018787184730172157, 0.0011753025464713573, -0.005976937711238861, -0.002057055477052927, -0.04601447656750679, 0.004582024645060301, 0.06296531856060028, -0.037468425929546356, -0.042306479066610336, -0.012368817813694477, -0.002102301921695471, -0.044778477400541306, 0.0010086634429171681, -0.0008342993096448481, 0.004030239302664995, 0.001068808021955192, -0.0029487404972314835, -0.03536722809076309, 0.014770187437534332, 0.09937431663274765, 0.0007769136573188007, 0.03644431382417679, 0.014717216603457928, 0.007844178937375546, -0.025620492175221443, 0.027103692293167114, -0.013799045234918594, -0.032806944102048874, -0.007539593614637852, -0.02835734747350216, -0.04876898601651192, 0.02902831882238388, 0.02014678344130516, 0.022265639156103134, -0.011583075858652592, 0.02904597483575344, -0.043189335614442825, 0.0010318384738638997, 0.017824871465563774, 0.05833915248513222, -0.016712471842765808, -0.02669757790863514, -0.07790324836969376, -0.007265908177942038, -0.008303264155983925, -0.02272472344338894, -0.03817471116781235, -0.042447734624147415, 0.030864659696817398, -0.00446725357323885, -0.03326603025197983, -0.001472163014113903, 0.039128195494413376, 0.06360097229480743, -0.01255421806126833, -0.007442479487508535, 0.056926582008600235, -0.0037984896916896105, -0.02581472136080265, -0.05904543772339821, -0.04841584339737892, 0.040893908590078354, 0.05516086891293526, 0.01933455467224121, -0.0579506941139698, -0.015953214839100838, 0.00794129353016615, 0.008749106898903847, 0.009172878228127956, -0.02258346602320671, -0.004679138772189617, -0.016633015125989914, 0.019246269017457962, -0.013534188270568848, -0.009631963446736336, -0.0015218236949294806, 0.03626774251461029, -0.022777695208787918, 0.056997209787368774, -0.13207532465457916, -0.002041605534031987, 0.02429620735347271, -0.004855710081756115, 0.011812618933618069, 0.09040449559688568, 0.020446954295039177, -0.0029774331487715244, 0.07606691122055054, -0.028445633128285408, -0.006113780662417412, -0.015167472884058952, -0.05067595839500427, 0.005283895414322615, 0.028904719278216362, 0.014072731137275696, -0.06363628804683685, 0.0070672654546797276, 0.002002980560064316, -0.006815651431679726, 0.10304699838161469, -0.04022293910384178, 0.0016586664132773876, 0.015467644669115543, -0.05491366982460022, 0.0321359746158123, -0.051240984350442886, 0.051135044544935226, -0.017171557992696762, 0.01747172884643078, -0.006484580226242542, 0.052865441888570786, 0.06483697146177292, 0.02814546227455139, -0.031005917116999626, 0.027315577492117882, -0.01044419128447771, -0.017206871882081032, 0.08058713376522064, 0.008179664611816406, -0.06268280744552612, 0.04615573212504387, -0.12190481275320053, 0.07783262431621552, 0.025620492175221443, -0.058515723794698715, -0.07917456328868866, -0.0194051843136549, 0.03732717037200928, 0.011971533298492432, 0.03729185461997986, 0.0054030814208090305, 0.0019489055266603827, -0.037539053708314896, -0.0032378758769482374, -0.04576727747917175, -0.04827458783984184, 0.0009303099359385669, -0.04417813569307327, -0.014620102010667324, -0.010241134092211723, 0.012792589142918587, 0.01613861508667469, -0.018963756039738655, -0.026944776996970177, 0.07663193345069885, 0.0595751516520977, 0.039975736290216446, -0.021276839077472687, -0.027968890964984894, -0.006241794675588608, -0.0821409597992897, -0.027968890964984894, -0.041600193828344345, -0.02104729600250721, -0.07719696313142776, -0.014072731137275696, -0.08079902082681656, 0.06257686018943787, -0.024508094415068626, -0.05473709851503372, -0.038457226008176804, -0.014831987209618092, -0.04431939125061035, 0.015326387248933315, 0.052936069667339325, 0.05897480621933937, 0.001659770030528307, -0.014823159202933311, -0.013198703527450562, -0.017842527478933334, -0.015238101594150066, -0.016165100038051605, 0.04107047989964485, 0.03489048406481743, -0.019740669056773186, 0.03300117328763008, -0.06681457161903381, 0.039975736290216446, 0.025479236617684364, 0.01213044673204422, 0.022318609058856964, 0.03144734352827072, 0.014346417039632797, 0.005769466515630484, -0.008210564963519573, 0.004771838895976543, 0.02276003733277321, 0.04922807216644287, 0.021382782608270645, -0.01864592730998993, 0.030917631462216377, 0.01610330119729042, 0.019758326932787895, 0.05095847323536873, 0.022901294752955437, 0.006758265662938356, 0.03704465553164482, 0.006466923281550407, -0.028957689180970192, -0.015079187229275703, 0.022300953045487404, 0.04011699557304382, 0.08178781718015671, -0.010214648209512234, -0.01574132964015007, -0.06508417427539825, 0.0283396914601326, 0.009614306502044201, 0.09471283853054047, -0.035120029002428055, -0.027757005766034126, -0.03372511640191078, -0.032753974199295044, 0.0040986607782542706, 0.01788667030632496, 0.0648016631603241, 0.030176032334566116, -0.02738620527088642, 0.019016727805137634, -0.04265962168574333, 0.030070088803768158, 0.015917900949716568, 0.017339300364255905, -0.02104729600250721, 0.03409591317176819, 0.01369310263544321, -0.06900405883789062, 0.014831987209618092, 0.0005012968904338777, -0.024808265268802643, -0.022795353084802628, 0.028904719278216362, 0.039304766803979874, -0.03335431590676308, 0.034466713666915894, -0.026044264435768127, -0.01007339172065258, -0.021577009931206703, 0.031818144023418427, -0.013852017000317574, -0.001183027634397149, -0.0016674950020387769, 0.05717378109693527, 0.001284556114114821, 0.02417260780930519, 0.020499926060438156, 0.0283396914601326, -0.09782049059867859, -0.00040197555790655315, -0.050428759306669235, -0.010806162841618061, -0.015423501841723919, -0.004343653563410044, -0.05283012613654137, -0.0009148599347099662, 0.07613753527402878, 0.007204108405858278, 0.04523756355047226, 0.029328489676117897, 0.0005244718631729484, 0.036620885133743286, -0.020040839910507202, 0.08687306940555573, 0.02516140788793564, 0.006391880568116903, -0.031818144023418427, -0.02680351957678795, 0.010196991264820099, 0.015238101594150066, -0.012757275253534317, -0.036726824939250946, 0.02410198003053665, -0.03139437362551689, 0.01613861508667469, 0.028922375291585922, 0.02664460614323616, 0.016721300780773163, -0.08729684352874756, -0.03144734352827072, -0.014796673320233822, 0.018875470384955406, 0.02996414713561535, -0.01288970373570919, -0.008894777856767178, -0.05501960963010788, 0.007954536005854607, 0.02592066489160061, -0.023219123482704163, -0.054525211453437805, -0.019652383401989937, -0.007561665028333664, 0.02032335475087166, 0.0104706771671772, -0.05388955399394035, 0.007001051213592291, -0.030317289754748344, 0.024825921282172203, -0.020641183480620384, 0.02011146955192089, -0.04417813569307327, -0.00924350693821907, 0.0055664097890257835, 0.01935221254825592, -0.0709463432431221, -0.05074658617377281, 0.004482703283429146, 0.023713523522019386, -0.050640642642974854, -0.06363628804683685, 0.07903330773115158, 0.039269451051950455, -0.0339369997382164, -0.01947581209242344, -0.018257470801472664, 0.013807874172925949, -0.056114353239536285, 0.02168295346200466, -0.0019588377326726913, -0.07691445201635361, -0.0332130566239357, 0.007636707741767168, 0.023113179951906204, -0.0404348224401474, -0.035102371126413345, -0.007835350930690765, 0.06458977609872818, 0.004056725185364485, -0.012289361096918583, -0.03250677138566971, -0.0077117509208619595, 0.0633537769317627, 0.006956908386200666, -0.03489048406481743, 0.024543408304452896, -0.06165869161486626, 0.041564878076314926, 0.0029244618490338326, -0.025267349556088448, 0.0006980083417147398, -0.016562385484576225, -0.009172878228127956, 0.016376987099647522, 0.027827633544802666, -0.006926008500158787, -0.0029354975558817387, -0.024455122649669647, -0.0113270478323102, 0.049722474068403244, -0.016438785940408707, 0.004780667368322611, -0.07981021702289581, -0.009164049290120602, 0.0033901685383170843, 0.01688021421432495, -0.021259183064103127, 0.008894777856767178, -0.010947419330477715, -0.011556589975953102, -0.03616179898381233, -0.02680351957678795, 0.009437735192477703, -0.01007339172065258, -0.007098165340721607, 0.03485517203807831, -0.00851073581725359, -0.08687306940555573, -0.018204499036073685, 0.05268887057900429, -0.05964577943086624, -0.02989351749420166, 0.054560527205467224, -0.04198865219950676, 0.028057176619768143, -0.007045194040983915, 0.0010583241237327456, -0.012077475897967815, -0.021276839077472687, -0.00874469242990017, -0.032789286226034164, 0.0579506941139698, -0.04608510434627533, -0.010152848437428474, -0.011936218477785587, -0.017224527895450592, -0.027227291837334633, 0.011918561533093452, 0.015591244213283062, 0.02899300493299961, -0.07917456328868866, -0.027227291837334633, -0.005385424010455608, 0.009693763218820095, -0.0002662363986019045, -0.019528783857822418, -0.006224137730896473, 0.019105013459920883, 0.0694984570145607, 0.06091709062457085, -0.08814438432455063, -0.03220660239458084, -0.018875470384955406, -0.02009381167590618, 0.020747125148773193, -0.038351282477378845, 0.03455499932169914, 0.00705843698233366, 0.026079578325152397, 0.039234139025211334, 0.006881865672767162, -0.0694984570145607, 0.011883247643709183, -0.008056065067648888, -0.030105402693152428, -0.023660551756620407, -0.011221105232834816, 0.005270652938634157, 0.07204107940196991, -0.04439001902937889, -0.005526680964976549, -0.036832768470048904, 0.05971640720963478, 0.07168793678283691, 0.018345756456255913, -0.010382391512393951, 0.022124381735920906, -0.026980090886354446, 0.0021806552540510893, 0.04633230343461037, -0.010850305669009686, -0.016359329223632812, 0.003628539852797985, -0.03607351332902908, -0.023607579991221428, -0.015529444441199303, 0.0070275370962917805, 0.047321103513240814, 0.01949346996843815, -0.03298351541161537 ]
37,700
healpy.newvisufunc
newprojplot
newprojplot is a wrapper around :func:`matplotlib.Axes.plot` to support colatitude theta and longitude phi and take into account the longitude convention (see the `flip` keyword of :func:`projview`) You can call this function as:: newprojplot(theta, phi) # plot a line going through points at coord (theta, phi) newprojplot(theta, phi, 'bo') # plot 'o' in blue at coord (theta, phi) Parameters ---------- theta, phi : float, array-like Coordinates of point to plot in radians. fmt : str A format string (see :func:`matplotlib.Axes.plot` for details) Notes ----- Other keywords are passed to :func:`matplotlib.Axes.plot`.
def newprojplot(theta, phi, fmt=None, **kwargs): """newprojplot is a wrapper around :func:`matplotlib.Axes.plot` to support colatitude theta and longitude phi and take into account the longitude convention (see the `flip` keyword of :func:`projview`) You can call this function as:: newprojplot(theta, phi) # plot a line going through points at coord (theta, phi) newprojplot(theta, phi, 'bo') # plot 'o' in blue at coord (theta, phi) Parameters ---------- theta, phi : float, array-like Coordinates of point to plot in radians. fmt : str A format string (see :func:`matplotlib.Axes.plot` for details) Notes ----- Other keywords are passed to :func:`matplotlib.Axes.plot`. """ import matplotlib.pyplot as plt ax = plt.gca() flip = getattr(ax, "healpy_flip", "astro") longitude, latitude = lonlat(theta, phi) if flip == "astro": longitude = longitude * -1 if fmt is None: ret = plt.plot(longitude, latitude, **kwargs) else: ret = plt.plot(longitude, latitude, fmt, **kwargs) return ret
(theta, phi, fmt=None, **kwargs)
[ 0.015048214234411716, 0.004342225845903158, 0.02491113916039467, -0.01728731580078602, -0.050765059888362885, -0.025600094348192215, -0.030313992872834206, 0.02871851995587349, 0.00499038677662611, -0.02512870356440544, 0.048661936074495316, -0.02801143378019333, 0.08825868368148804, 0.027050524950027466, -0.03669588640332222, -0.010796640068292618, -0.062295980751514435, -0.015909407287836075, -0.043041519820690155, 0.000053859970648773015, 0.034520238637924194, -0.02719556726515293, 0.045108381658792496, 0.026017092168331146, -0.0012475966941565275, 0.012355852872133255, 0.03207264095544815, 0.045688554644584656, 0.010470293462276459, 0.010379641316831112, -0.008525810204446316, -0.010279924608767033, 0.04441942647099495, 0.039778050035238266, 0.009164906106889248, 0.053665921092033386, -0.00810881145298481, -0.023569492623209953, -0.0164442528039217, 0.01161250751465559, 0.0014991556527093053, 0.017903748899698257, -0.009971708059310913, -0.00991731695830822, -0.014196086674928665, -0.014522433280944824, -0.043984297662973404, 0.09239240735769272, -0.035807497799396515, 0.044818297028541565, -0.00006179200863698497, 0.0064090886153280735, -0.048915762454271317, -0.008906548842787743, 0.015601190738379955, 0.03259842097759247, 0.03908909484744072, 0.05852486193180084, 0.03937918320298195, -0.045724812895059586, -0.0100804902613163, 0.02884543128311634, -0.024856748059391975, -0.024330968037247658, 0.0061054048128426075, 0.017586467787623405, 0.034483980387449265, -0.06889543682336807, 0.028065824881196022, 0.010053294710814953, -0.013597783632576466, 0.04119221866130829, 0.005815318785607815, -0.048335589468479156, 0.03796501085162163, 0.012228940613567829, -0.07593002170324326, 0.0032022781670093536, -0.018239160999655724, 0.028990475460886955, -0.05892372876405716, -0.03201824799180031, 0.0003784716536756605, -0.014069173485040665, 0.03486471623182297, 0.03350494056940079, 0.0194720271974802, -0.016616491600871086, 0.015283908694982529, -0.03174629434943199, -0.03401258960366249, -0.029208039864897728, 0.05199792608618736, -0.02008845843374729, -0.004759224131703377, -0.021955888718366623, 0.028120215982198715, 0.0840524360537529, 0.0029484527185559273, 0.0007433455321006477, 0.03694971278309822, -0.0763651505112648, -0.04329534247517586, 0.012945090420544147, 0.02289866842329502, -0.04351290687918663, -0.010624401271343231, 0.07016456127166748, 0.00037535547744482756, 0.04583359509706497, -0.032544028013944626, 0.0538109615445137, 0.003984150476753712, 0.01812131330370903, -0.014132630079984665, 0.04024944081902504, -0.03778370842337608, -0.03854518383741379, -0.01601818948984146, -0.0408296138048172, -0.06001155078411102, 0.0655231848359108, -0.037711188197135925, -0.0005441946559585631, 0.054862525314092636, -0.0096091004088521, 0.02574513666331768, -0.06041042134165764, -0.011721289716660976, -0.047755416482686996, 0.05526139214634895, 0.013561522588133812, -0.0019240863621234894, -0.027431262657046318, 0.026760438457131386, 0.001954681472852826, -0.028355911374092102, -0.033287376165390015, -0.035680584609508514, 0.029316822066903114, -0.013851609081029892, 0.007333738263696432, -0.02277175523340702, 0.008489550091326237, -0.0076963454484939575, 0.0564580000936985, 0.003594347508624196, 0.009060656651854515, -0.0005983024602755904, -0.0033382559195160866, 0.027902651578187943, -0.053665921092033386, 0.01493943203240633, -0.004129193723201752, 0.021883366629481316, -0.06501553952693939, 0.019272591918706894, 0.049242109060287476, 0.0194720271974802, 0.04732028767466545, 0.0326346829533577, 0.005461776629090309, 0.03149246796965599, 0.06095433235168457, 0.0015558131271973252, -0.01526577863842249, 0.015256713144481182, -0.03549928218126297, -0.020759282633662224, 0.005815318785607815, -0.03937918320298195, -0.012192679569125175, 0.014966627582907677, 0.008770570158958435, 0.00867538619786501, 0.011113922111690044, 0.04460073262453079, -0.03062220849096775, -0.018982505425810814, -0.013398349285125732, 0.01425954233855009, 0.02822900004684925, 0.011331486515700817, 0.04583359509706497, 0.019907156005501747, 0.0965261310338974, -0.01889185421168804, 0.021266933530569077, -0.01967146061360836, 0.008702581748366356, -0.012890699319541454, 0.05297696590423584, 0.0018912251107394695, -0.012781917117536068, 0.0028079424519091845, -0.011558116413652897, 0.0029575179796665907, -0.0007864051731303334, 0.0021892432123422623, 0.017432358115911484, 0.0453622080385685, -0.007197760045528412, -0.027286220341920853, -0.040358223021030426, -0.0096091004088521, 0.016453318297863007, 0.0025223889388144016, -0.0031932129058986902, -0.012120158411562443, 0.036097582429647446, 0.11777494102716446, -0.020052198320627213, -0.017840292304754257, 0.017323575913906097, -0.03442958742380142, 0.06008407473564148, 0.008049887605011463, -0.006812489591538906, 0.02491113916039467, 0.05145401507616043, 0.05627669394016266, -0.00991731695830822, 0.028029564768075943, 0.02987886406481266, 0.058162253350019455, -0.04209873825311661, 0.06432658433914185, 0.03221768140792847, 0.03149246796965599, -0.06708239763975143, 0.007202292792499065, -0.017940009012818336, -0.04046700522303581, 0.009962642565369606, 0.039524223655462265, -0.05025740712881088, 0.025400660932064056, 0.02681482955813408, -0.03959674760699272, 0.06595831364393234, -0.029896993190050125, 0.03392193838953972, -0.010443097911775112, 0.08448756486177444, -0.009219297207891941, 0.04086587205529213, -0.027666958048939705, -0.018909985199570656, 0.033831287175416946, -0.018456725403666496, -0.020632371306419373, 0.06476171314716339, 0.02520122565329075, 0.019453896209597588, 0.01185726746916771, 0.0015433484222739935, -0.023787057027220726, -0.03558993339538574, 0.04242508485913277, -0.02648848295211792, -0.026832960546016693, 0.013398349285125732, -0.051381491124629974, 0.008852156810462475, 0.07781558483839035, -0.03966926783323288, -0.028029564768075943, -0.03796501085162163, 0.0193451140075922, 0.01925446093082428, -0.030096428468823433, 0.07074473798274994, -0.0006102005718275905, 0.04445568844676018, 0.05939511954784393, -0.03707662224769592, 0.021629542112350464, -0.07041838765144348, 0.03656897321343422, 0.0035308911465108395, 0.0202878937125206, -0.0652693659067154, -0.054354872554540634, 0.039234139025211334, -0.03912535682320595, -0.022427277639508247, 0.0015150198014453053, 0.05946763977408409, 0.03277972340583801, 0.015646517276763916, 0.007215890567749739, -0.017006294801831245, -0.008521277457475662, -0.007950170896947384, 0.018565507605671883, 0.0660308375954628, -0.019163809716701508, 0.03234459459781647, -0.06004781275987625, -0.07542237639427185, 0.06320250034332275, -0.024693574756383896, 0.07005578279495239, -0.01727825030684471, 0.03256215900182724, 0.012283331714570522, -0.027739478275179863, -0.05856112390756607, 0.03825509920716286, 0.027413131669163704, 0.0017144539160653949, 0.03589814901351929, 0.020142849534749985, 0.0026991600170731544, -0.022554190829396248, 0.021393846720457077, -0.017523011192679405, -0.04739280790090561, 0.00926915556192398, -0.014123564586043358, -0.01702442578971386, -0.04075708985328674, -0.019979676231741905, -0.041591089218854904, 0.041301000863313675, -0.004534861072897911, -0.04858941584825516, 0.024204054847359657, 0.05239679291844368, 0.03504602238535881, -0.058416079729795456, 0.026669787243008614, 0.01979837380349636, 0.01621762290596962, -0.02761256694793701, -0.06247728317975998, 0.001930885249748826, -0.03335989639163017, 0.011766615323722363, -0.04590611904859543, -0.009427797049283981, -0.07607506960630417, -0.04264264926314354, 0.049314629286527634, -0.04724776744842529, 0.009572839364409447, -0.05333957448601723, -0.03879901021718979, 0.0005422116373665631, -0.04964097589254379, -0.011784746311604977, 0.018030662089586258, -0.05634921416640282, -0.009808534756302834, -0.03644206002354622, 0.10356072336435318, 0.018746811896562576, 0.03825509920716286, -0.027793869376182556, 0.008960939943790436, -0.02413153275847435, 0.01983463391661644, 0.005371124483644962, 0.002397742588073015, -0.023315666243433952, 0.001194338663481176, -0.008018160238862038, 0.005235146731138229, 0.04579733684659004, -0.0163807962089777, 0.010524684563279152, -0.015900341793894768, 0.010180207900702953, 0.05297696590423584, -0.006372828036546707, 0.04380299523472786, 0.05837981775403023, 0.03546302020549774, -0.0768728032708168, -0.04289647564291954, -0.04387551546096802, -0.08020879328250885, 0.015682777389883995, 0.019816502928733826, -0.021538889035582542, -0.009862925857305527, 0.00831731129437685, 0.00010573692998150364, -0.011431203223764896, 0.0027875457890331745, -0.034900978207588196, -0.050438713282346725, 0.06657475233078003, 0.01912754960358143, 0.022209713235497475, -0.017069751396775246, -0.019200069829821587, 0.043077778071165085, -0.053085748106241226, 0.008942808955907822, 0.026887351647019386, -0.06777135282754898, 0.012736590579152107, -0.02574513666331768, -0.02710491605103016, -0.0328885056078434, 0.03163750842213631, -0.03294289857149124, -0.000154816429130733, 0.0006532602128572762, 0.05997529253363609, -0.05888747051358223, -0.010533750057220459, -0.023732665926218033, 0.0020090725738555193, 0.09384284168481827, -0.06563197076320648, -0.04645003005862236, 0.05297696590423584, -0.021357586607336998, -0.009509383700788021, -0.030096428468823433, -0.010316185653209686, 0.014041977934539318, 0.07948357611894608, 0.005135429557412863, -0.012500896118581295, -0.02239101752638817, 0.04478203505277634, 0.034610893577337265, -0.001673660590313375, -0.06342006474733353, 0.029479995369911194, 0.03575310483574867, -0.0017303179483860731, -0.015438017435371876, -0.00975414365530014, 0.0331423319876194, -0.020342284813523293, 0.03404885157942772, 0.008086148649454117, -0.04434690624475479, -0.01169409416615963, -0.04329534247517586, -0.07092604041099548, -0.029733819887042046, 0.031002946197986603, -0.03120238147675991, -0.025890180841088295, 0.03310607001185417, 0.0936252772808075, 0.0806439220905304, -0.014223282225430012, -0.020940586924552917, 0.0708172544836998, -0.06436284631490707, -0.003909362945705652, -0.02868225798010826, -0.007342803291976452, 0.022916797548532486, 0.008702581748366356, 0.004337693098932505, 0.05294070392847061, -0.024476010352373123, 0.006803424563258886, -0.016126971691846848, 0.012763786129653454, -0.02732248045504093, -0.06639344245195389, -0.05917755514383316, -0.020632371306419373, 0.005212483927607536, -0.050112366676330566, 0.008339974097907543, -0.019145678728818893, 0.034774065017700195, -0.0255819633603096, 0.04742906987667084, -0.03163750842213631, -0.01628107950091362, -0.0816592276096344, 0.018048791214823723, 0.06947561353445053, 0.0641452819108963, 0.009024395607411861, 0.04264264926314354, 0.04790046066045761, -0.04982227832078934, -0.04369421303272247, 0.027739478275179863, 0.03243524581193924, 0.000704251870047301, -0.032544028013944626, 0.006254980340600014, -0.033740635961294174, 0.061715807765722275, 0.046957679092884064, -0.0376749262213707, -0.04470951482653618, 0.016362667083740234, 0.040974654257297516, -0.01696096919476986, 0.053122010082006454, -0.002934854943305254, 0.047175243496894836, -0.05653052031993866, -0.012908829376101494, 0.04557977244257927, -0.0758575052022934, 0.03912535682320595, -0.027993304654955864, -0.009890121407806873, 0.011394943110644817, -0.026307178661227226, 0.006821555085480213, 0.04202621802687645, -0.0763651505112648, -0.03749362379312515, -0.02578139863908291, -0.011875397525727749, 0.006826087366789579, 0.05032993108034134, 0.05562400072813034, 0.0005920701660215855, -0.024113403633236885, 0.04463699087500572, 0.02755817584693432, 0.045180901885032654, -0.017840292304754257, 0.03709475323557854, 0.005502569954842329, -0.001220401143655181, -0.03814631700515747, 0.005248744506388903, 0.015320169739425182, 0.014359259977936745, -0.0686778724193573, -0.01132242102175951, 0.055478956550359726, -0.07255777716636658, -0.019925285130739212, 0.039850570261478424, -0.024657314643263817, -0.042135000228881836, 0.034737806767225266, -0.018982505425810814, 0.029896993190050125, -0.02338818833231926, 0.05711069330573082, 0.012664069421589375, 0.04253386706113815, 0.02057798020541668, 0.0012136022560298443, 0.052868183702230453, -0.0061144703067839146, 0.09688874334096909, 0.010397772304713726, -0.00026699816226027906, -0.059105034917593, -0.0379287526011467, -0.013534327037632465, 0.0165711659938097, -0.003458369756117463, 0.04964097589254379, -0.056095391511917114, -0.008244789205491543, 0.018456725403666496, 0.027793869376182556, 0.03408510982990265, -0.0456160306930542, 0.024965530261397362, 0.002758083865046501, -0.010397772304713726, -0.01463121548295021, 0.005099168978631496, -0.0030753654427826405, 0.04369421303272247, 0.02219158224761486, -0.013788152486085892, 0.0021280532237142324, -0.039778050035238266, 0.01425954233855009, -0.0018594969296827912, -0.006078209262341261, -0.021085629239678383, 0.03433893620967865, -0.0020668632350862026, -0.0036170105449855328, 0.05120018869638443, -0.03426641598343849, 0.017776835709810257, -0.008018160238862038, 0.04742906987667084, -0.01621762290596962, -0.022082800045609474, -0.044528208673000336, -0.022046539932489395, 0.009210232645273209, 0.04354916885495186, -0.00006908665818627924, -0.07186882197856903, 0.008018160238862038, -0.018175704404711723, -0.06697361916303635, -0.002708225278183818, -0.018048791214823723, 0.013353023678064346, 0.020106589421629906, -0.057545822113752365, -0.03927040100097656, -0.01605444960296154, 0.02190149761736393, -0.0024362695403397083, -0.05464496091008186, 0.016235753893852234, -0.06613962352275848, -0.03495537117123604, 0.013271437026560307, -0.060519203543663025, 0.0490245446562767, -0.03749362379312515, -0.01448617223650217, -0.020777413621544838, 0.06258606910705566, -0.028446564450860023, -0.00684875063598156, 0.05700191110372543, -0.02215532213449478, -0.013606849126517773, -0.021520759910345078, -0.004534861072897911, 0.005837982054799795, -0.059105034917593, -0.05080132186412811, -0.010624401271343231, -0.048734456300735474, -0.023442579433321953, -0.0033541200682520866, 0.015202322043478489, -0.021085629239678383, -0.04706646129488945, -0.024204054847359657, 0.004394350573420525, -0.02645222283899784, 0.048408109694719315, -0.01696096919476986, -0.013978521339595318, 0.017940009012818336, 0.05870616436004639, -0.056131649762392044, 0.025853918865323067, 0.023043710738420486, -0.003501429222524166, 0.014150760136544704, 0.023007450625300407, 0.03821883723139763, -0.027666958048939705, -0.013688435778021812, 0.03600693121552467, -0.0032680006697773933, 0.08920146524906158, -0.02541879005730152, 0.03229020535945892, 0.022119062021374702, 0.06896796077489853, -0.0018039726419374347, -0.06327501684427261, 0.019073158502578735, -0.018855594098567963, 0.0010187006555497646, -0.047211505472660065, -0.03588001802563667, 0.02422218583524227, 0.01628107950091362, -0.019816502928733826, 0.010769444517791271, 0.03898031264543533, -0.03537236899137497, -0.03840013965964317, -0.0017699782038107514, -0.028120215982198715, -0.021702062338590622, -0.0037688524462282658, 0.011766615323722363, -0.04090213403105736, 0.08151417970657349, 0.029244299978017807, 0.0016713942168280482, 0.049894802272319794, 0.008611929602921009, 0.057255733758211136, 0.013588718138635159, 0.017985334619879723, 0.03214516118168831, 0.03455650061368942, 0.022662973031401634, -0.09456805139780045, -0.022554190829396248, -0.012056701816618443, -0.012310527265071869, 0.02409527264535427, 0.021683933213353157, 0.015882210806012154, 0.04311404004693031, -0.025527572259306908, -0.060192856937646866, 0.0026447689160704613, 0.024621054530143738, -0.03511854261159897, -0.037711188197135925, -0.04387551546096802, 0.018982505425810814, 0.06820648163557053, -0.06722744554281235, 0.028047695755958557, -0.07288412004709244, -0.008639125153422356, -0.01183913741260767, 0.001151279080659151, -0.031510598957538605, 0.021212542429566383, -0.03404885157942772, 0.009491252712905407, -0.0043852850794792175, 0.05529765412211418, -0.015419886447489262, -0.007660084869712591, -0.06639344245195389, -0.07034587115049362, -0.04195369407534599, -0.010424967855215073, 0.03171003237366676, -0.03577123582363129, 0.004704833030700684, -0.014114500023424625, 0.03999561443924904, -0.08390738815069199, 0.006404556334018707, 0.00499945180490613, 0.013543392531573772, -0.06987448036670685, 0.026415960863232613, -0.001447030808776617, -0.03840013965964317, -0.00882042944431305, -0.03216329216957092, -0.040394481271505356, -0.005430048331618309, -0.02817460708320141, 0.06697361916303635, 0.013924130238592625, 0.018710549920797348, -0.00650880578905344, 0.009745078161358833, -0.017260119318962097, -0.04402055963873863, 0.019617069512605667, 0.022953059524297714, 0.043984297662973404, -0.0051308972761034966, -0.05127270892262459, 0.07970114052295685, 0.019653329625725746, 0.002012471901252866, 0.014513367787003517, -0.021792715415358543, -0.013588718138635159, 0.020469198003411293 ]
37,702
healpy.pixelfunc
npix2nside
Give the nside parameter for the given number of pixels. Parameters ---------- npix : int the number of pixels Returns ------- nside : int the nside parameter corresponding to npix Notes ----- Raise a ValueError exception if number of pixel does not correspond to the number of pixel of a healpix map. Examples -------- >>> import healpy as hp >>> hp.npix2nside(768) 8 >>> np.all([hp.npix2nside(12 * nside**2) == nside for nside in [2**n for n in range(12)]]) True >>> hp.npix2nside(1000) Traceback (most recent call last): ... ValueError: Wrong pixel number (it is not 12*nside**2)
def npix2nside(npix): """Give the nside parameter for the given number of pixels. Parameters ---------- npix : int the number of pixels Returns ------- nside : int the nside parameter corresponding to npix Notes ----- Raise a ValueError exception if number of pixel does not correspond to the number of pixel of a healpix map. Examples -------- >>> import healpy as hp >>> hp.npix2nside(768) 8 >>> np.all([hp.npix2nside(12 * nside**2) == nside for nside in [2**n for n in range(12)]]) True >>> hp.npix2nside(1000) Traceback (most recent call last): ... ValueError: Wrong pixel number (it is not 12*nside**2) """ if not isnpixok(npix): raise ValueError("Wrong pixel number (it is not 12*nside**2)") return int(np.sqrt(npix / 12.0))
(npix)
[ -0.03639308363199234, -0.005639055743813515, 0.07018283754587173, -0.014086494222283363, 0.026033269241452217, 0.05973386764526367, 0.03737378865480423, 0.020380839705467224, 0.011162209324538708, -0.00381583534181118, 0.017554625868797302, -0.014523354358971119, 0.02325163222849369, 0.0029153693467378616, 0.022235265001654625, -0.007038789335638285, 0.03539454564452171, 0.029332004487514496, 0.007747571915388107, -0.0217538271099329, 0.021004924550652504, 0.017617033794522285, 0.02815515734255314, -0.028743581846356392, -0.04764444753527641, 0.007466733455657959, 0.059805192053318024, -0.007520226761698723, -0.00276157702319324, -0.027192283421754837, -0.023322954773902893, 0.049498870968818665, 0.051424622535705566, -0.01211616862565279, -0.006316633895039558, 0.041760217398405075, 0.02699614316225052, 0.04129660874605179, -0.05513346940279007, 0.028262143954634666, -0.015432735905051231, -0.045683037489652634, 0.032719895243644714, 0.007774318568408489, -0.04397125914692879, 0.016538258641958237, 0.0069407192058861256, -0.040333736687898636, -0.06836407631635666, 0.04760878533124924, -0.027281438931822777, -0.05966254696249962, -0.008380572311580181, 0.03336181119084358, -0.011688224039971828, 0.028386961668729782, 0.004725216422230005, 0.0035439124330878258, 0.05238749459385872, 0.027299270033836365, -0.019043514505028725, 0.02581929601728916, 0.04714518040418625, -0.04418523237109184, 0.011839787475764751, 0.015290087088942528, -0.029492484405636787, 0.008184432052075863, -0.023198138922452927, -0.0014420825755223632, 0.0021363773848861456, 0.01309687364846468, -0.016128145158290863, 0.019828079268336296, 0.1014227643609047, 0.02111191116273403, 0.018562076613307, 0.04411390796303749, 0.04147491976618767, 0.015022622421383858, -0.007489022333174944, -0.007796607445925474, 0.04864298552274704, 0.02121889777481556, 0.004290585871785879, 0.06276514381170273, 0.0681501030921936, 0.0145501010119915, 0.007132402155548334, -0.008202262222766876, -0.04076167941093445, -0.010636194609105587, 0.025462675839662552, 0.025712311267852783, -0.036250434815883636, 0.029599469155073166, 0.0262829028069973, -0.03216713294386864, 0.00892441812902689, -0.05452721565961838, -0.013997339643537998, -0.018972190096974373, 0.03293386846780777, -0.052601467818021774, -0.010582702234387398, 0.022484898567199707, 0.02574797160923481, 0.06683061271905899, -0.06158829480409622, -0.026425549760460854, -0.020024219527840614, 0.0007879075710661709, -0.020559148862957954, -0.0004619344836100936, -0.007827811874449253, -0.003309880383312702, 0.01838376745581627, 0.0380157046020031, 0.05941291153430939, -0.015842849388718605, -0.06747252494096756, 0.027816368266940117, -0.09464697539806366, 0.0010353127727285028, 0.031382571905851364, 0.05966254696249962, 0.02476726658642292, 0.04464883729815483, 0.011028476990759373, 0.0925072580575943, 0.015780439600348473, -0.009405856020748615, -0.03309434652328491, 0.014986960217356682, -0.017073187977075577, 0.025159548968076706, 0.02068396657705307, -0.019400134682655334, 0.04703819379210472, -0.031988825649023056, -0.034948769956827164, 0.03202448785305023, 0.037124153226614, 0.03822967782616615, 0.024749435484409332, 0.07093174010515213, 0.008942249231040478, 0.041938524693250656, 0.03876460716128349, -0.005433999001979828, -0.004858949221670628, 0.03658922389149666, 0.02023819088935852, -0.00968223623931408, 0.007966001518070698, -0.034449502825737, 0.012927479110658169, -0.04208117350935936, 0.040440719574689865, -0.017108850181102753, -0.010297405533492565, -0.01490672118961811, 0.008616833947598934, -0.014006255194544792, -0.03054451383650303, -0.032541584223508835, -0.03179268166422844, 0.0018232202855870128, 0.042045511305332184, 0.058557022362947464, -0.0362326055765152, -0.03207797929644585, -0.07916966825723648, -0.00999427866190672, 0.03619694337248802, -0.022128278389573097, -0.007796607445925474, -0.03195316344499588, -0.03427119180560112, -0.0027727214619517326, 0.044434867799282074, -0.053849637508392334, 0.009601996280252934, 0.019935064017772675, -0.004604857414960861, 0.06461956351995468, 0.016992948949337006, 0.006980838719755411, 0.014407453127205372, -0.0010720891878008842, 0.03505575656890869, 0.0525658056139946, -0.054634202271699905, 0.0016972888261079788, 0.027049636468291283, -0.051424622535705566, 0.014790819026529789, 0.01756354048848152, -0.03744511306285858, -0.04222382232546806, 0.03507358953356743, 0.033861078321933746, -0.01357831060886383, -0.014282635413110256, 0.00042543665040284395, -0.014362875372171402, -0.03862195834517479, 0.0008753909496590495, 0.008509847335517406, 0.01402408629655838, 0.05577538534998894, -0.0013863607309758663, -0.016565004363656044, -0.03063366748392582, 0.004335163161158562, -0.0034636729396879673, 0.029492484405636787, 0.033236995339393616, -0.022574054077267647, 0.016270792111754417, 0.03633958846330643, 0.016939455643296242, 0.04029807448387146, 0.04924923926591873, -0.00896453857421875, 0.001111094607040286, -0.0026501333341002464, 0.025944113731384277, 0.027566734701395035, -0.02086227759718895, -0.02813732624053955, 0.05859268456697464, 0.007756487466394901, -0.0005207210779190063, 0.04036939889192581, -0.02120106667280197, -0.07150233536958694, 0.0012002495350316167, 0.0126956757158041, 0.04782275855541229, -0.02592628262937069, -0.01819654181599617, -0.02253839187324047, -0.025676649063825607, -0.00033934632665477693, 0.05484817549586296, 0.0051754494197666645, 0.010021025314927101, -0.045754361897706985, 0.05356433987617493, 0.02742408774793148, -0.09514624625444412, -0.019489290192723274, -0.02601543813943863, 0.021985629573464394, 0.09207931160926819, -0.11882582306861877, 0.04661024734377861, -0.0032853628508746624, -0.024357153102755547, -0.026318565011024475, -0.0034904193598777056, -0.017911246046423912, -0.017813174054026604, -0.021771658211946487, 0.016975117847323418, 0.013364339247345924, 0.020666135475039482, 0.016538258641958237, -0.01340891607105732, 0.04332934319972992, 0.06854238361120224, 0.03157871216535568, -0.03179268166422844, -0.019471459090709686, -0.03152521699666977, 0.009174052625894547, 0.022163940593600273, 0.015468397177755833, 0.01776859723031521, 0.026853494346141815, -0.041581906378269196, -0.03485961630940437, 0.03206015005707741, 0.006873852573335171, -0.021646840497851372, 0.04828636348247528, 0.017813174054026604, -0.0064414506778120995, -0.0069407192058861256, -0.022431405261158943, 0.003831437323242426, -0.04939188435673714, 0.01756354048848152, -0.005090752150863409, 0.04304404929280281, -0.07802847772836685, 0.010885829105973244, -0.031917501240968704, 0.023394279181957245, -0.020648304373025894, -0.006740120239555836, -0.06536846607923508, -0.026300733909010887, 0.0607324056327343, 0.0331835001707077, -0.022663207724690437, -0.0012972056865692139, 0.019810248166322708, -0.014478776603937149, -0.01531683374196291, -0.0663670003414154, -0.00028181346715427935, -0.026407720521092415, 0.06123167276382446, 0.008906587027013302, -0.02974211797118187, 0.022431405261158943, 0.009566335007548332, 0.07567478716373444, 0.03216713294386864, 0.01705535687506199, -0.01606573536992073, 0.06576074659824371, 0.011821957305073738, 0.03061583638191223, -0.035376716405153275, -0.02025602199137211, -0.008795144036412239, -0.013524818234145641, 0.002926513785496354, 0.006205189973115921, -0.03719547763466835, -0.028797075152397156, 0.004912442062050104, -0.06351404637098312, 0.038835931569337845, 0.001903459895402193, -0.021432869136333466, 0.014879974536597729, -0.013284099288284779, -0.014719495549798012, 0.008746108040213585, -0.0025230874307453632, -0.010386561043560505, -0.052958086133003235, -0.11632948368787766, -0.04111829772591591, -0.01025282870978117, 0.05919893831014633, 0.022324418649077415, -0.01713559590280056, -0.021700333803892136, -0.04297272488474846, -0.0053136395290493965, 0.04286573827266693, 0.03148955479264259, -0.043792951852083206, -0.04411390796303749, -0.012847240082919598, 0.0008726048399694264, -0.0051888227462768555, 0.009388024918735027, -0.026318565011024475, -0.01900785230100155, -0.007702994626015425, 0.01597658172249794, -0.045504726469516754, -0.0014186793705448508, 0.04243779554963112, -0.061659619212150574, -0.006731204688549042, -0.05848569795489311, -0.012463873252272606, 0.007747571915388107, 0.02104058675467968, -0.02264537662267685, -0.008714904077351093, -0.07417698204517365, -0.016466934233903885, -0.020095543935894966, -0.0331835001707077, 0.007034331560134888, 0.04464883729815483, -0.042473454028367996, -0.031988825649023056, -0.0008068530005402863, 0.020345177501440048, -0.04582568630576134, -0.027477579191327095, -0.02637205831706524, -0.004522388800978661, 0.02530219778418541, -0.000468063895823434, -0.002068396657705307, -0.02972428686916828, -0.022502729669213295, 0.03826534003019333, 0.08116673678159714, 0.002779408125206828, -0.014050832949578762, -0.03560851886868477, 0.02219960279762745, 0.05056873336434364, -0.004925815388560295, 0.018258949741721153, 0.005344843957573175, 0.014175649732351303, 0.003811377566307783, -0.1032058596611023, 0.03346879780292511, 0.012749169021844864, -0.0013830173993483186, -0.025979775935411453, 0.035644181072711945, 0.0002181512099923566, -0.03773040696978569, 0.037766069173812866, -0.02318030782043934, -0.036803197115659714, -0.018169794231653214, -0.06051843240857124, 0.03833666071295738, -0.013613972812891006, 0.03539454564452171, -0.04910659044981003, 0.031828343868255615, -0.03648223727941513, -0.0020093314815312624, 0.10784192383289337, -0.08230791985988617, 0.028565270826220512, 0.006842648610472679, 0.008197804912924767, -0.0030156688299030066, -0.03808702901005745, 0.045041121542453766, 0.0195249505341053, 0.018330274149775505, 0.020987093448638916, 0.027406256645917892, 0.09564551711082458, -0.010074518620967865, 0.007529142312705517, -0.017189089208841324, -0.03944218531250954, -0.00443546287715435, 0.004658350255340338, 0.07339242100715637, -0.03894291818141937, -0.011260280385613441, -0.07300014048814774, 0.032791219651699066, -0.009548503905534744, 0.02528436668217182, -0.05631031468510628, -0.05299374833703041, -0.0010007652454078197, -0.01660066656768322, 0.008456354960799217, -0.02804817259311676, 0.029332004487514496, -0.032006654888391495, -0.06069674342870712, -0.010377645492553711, -0.03826534003019333, -0.030847640708088875, 0.013337592594325542, 0.03072282299399376, -0.023554759100079536, -0.004176913294941187, 0.06957658380270004, 0.004850033670663834, -0.006566267926245928, 0.05484817549586296, -0.012062675319612026, -0.001654940191656351, 0.037409450858831406, -0.017902329564094543, -0.030669329687952995, -0.09229328483343124, 0.021272389218211174, -0.026853494346141815, -0.012232069857418537, -0.025498338043689728, -0.07760053873062134, -0.0745336040854454, -0.005590020213276148, -0.02822648175060749, -0.06108902767300606, 0.04065469279885292, -0.01100173033773899, -0.012900732457637787, -0.010484631173312664, 0.07460492849349976, 0.01667199097573757, 0.01581610180437565, -0.021183235570788383, 0.0008714903960935771, 0.007279508281499147, -0.012142915278673172, -0.0009032518719322979, 0.040975652635097504, 0.03765908256173134, -0.025052562355995178, 0.04924923926591873, -0.01127811148762703, 0.027406256645917892, 0.013747705146670341, -0.009468263946473598, 0.003465901827439666, -0.008278044871985912, 0.03780173137784004, -0.03391457349061966, 0.05213785916566849, 0.015673454850912094, -0.023929210379719734, 0.021004924550652504, 0.019952895119786263, 0.04393559694290161, 0.036624886095523834, -0.04147491976618767, -0.00536713283509016, 0.04511244595050812, 0.02646121196448803, 0.03346879780292511, 0.03719547763466835, -0.04728782922029495, -0.01916833035647869, 0.04029807448387146, -0.008171058259904385, -0.014933466911315918, 0.05673826113343239, 0.034681305289268494, 0.00276157702319324, 0.010012109763920307, 0.0059778448194265366, 0.01596766524016857, 0.13515903055667877, -0.0027816370129585266, -0.024624619632959366, -0.045326415449380875, -0.010101264342665672, 0.04118962213397026, 0.03567984327673912, 0.02662169188261032, -0.046217966824769974, 0.010021025314927101, 0.01616380736231804, -0.0001915440079756081, 0.0018923154566437006, 0.01171497069299221, 0.015058284625411034, -0.050925351679325104, 0.07292881608009338, 0.05042608454823494, 0.024267999455332756, 0.030687160789966583, -0.011215702630579472, 0.01570911519229412, -0.04817937687039375, -0.06968357414007187, 0.06936261057853699, -0.07242954522371292, -0.05370698869228363, -0.01331084594130516, 0.013551563955843449, -0.079597607254982, 0.025230873376131058, -0.011295942589640617, -0.021094080060720444, 0.029973920434713364, 0.04828636348247528, 0.01557538378983736, -0.06016181409358978, -0.012722422368824482, 0.023590421304106712, -0.07995422929525375, 0.02822648175060749, -0.0816660076379776, -0.058450035750865936, 0.027120959013700485, 0.0157002005726099, 0.005291351117193699, -0.019845910370349884, 0.05595369637012482, -0.030847640708088875, -0.0024272457230836153, 0.04475582391023636, 0.001219194964505732, 0.015352495945990086, -0.06205189973115921, 0.031988825649023056, 0.01972109265625477, 0.006561810150742531, -0.011260280385613441, -0.04111829772591591, -0.01827678084373474, 0.0589493066072464, -0.018178710713982582, -0.019043514505028725, 0.04728782922029495, -0.005206653848290443, 0.0033076514955610037, 0.10263527184724808, 0.007636128459125757, 0.02236008085310459, -0.05780811980366707, -0.0726078525185585, -0.04832202568650246, 0.035822492092847824, 0.04029807448387146, 0.028476117178797722, 0.022770194336771965, -0.06836407631635666, 0.013908184133470058, 0.036089956760406494, -0.021094080060720444, -0.0625155046582222, -0.043543316423892975, -0.040975652635097504, 0.022698869928717613, 0.05352867767214775, -0.06775782257318497, 0.007698536850512028, -0.008313706144690514, 0.032809048891067505, -0.00953958835452795, -0.0035595146473497152, -0.014879974536597729, 0.006927345879375935, -0.020077712833881378, 0.027013974264264107, -0.05213785916566849, -0.05976952984929085, 0.017340652644634247, -0.0053403861820697784, -0.03261290863156319, -0.07624538242816925, 0.08865576237440109, 0.0500338040292263, -0.00270808394998312, 0.00716806435957551, 0.004809913691133261, 0.034485165029764175, -0.0644412562251091, -0.0011735031148418784, 0.0011445276904851198, -0.036089956760406494, -0.035715505480766296, 0.014505523256957531, -0.01651151105761528, -0.021789489313960075, -0.04546906426548958, 0.02599760703742504, 0.007056620437651873, -0.00046917833969928324, 0.005728210788220167, -0.014460945501923561, -0.057843782007694244, 0.05595369637012482, 0.0073998672887682915, -0.0580577552318573, 0.012481704354286194, -0.003240785328671336, 0.023661743849515915, 0.040084101259708405, -0.06048277020454407, -0.06501184403896332, -0.06034012511372566, 0.06540413200855255, 0.03471696749329567, -0.025783633813261986, -0.041225284337997437, 0.03489527851343155, -0.03933519870042801, -0.048785630613565445, 0.015780439600348473, -0.036000799387693405, -0.004016433842480183, -0.09821318089962006, -0.04507678374648094, 0.03512708097696304, 0.012303394265472889, -0.004618230275809765, -0.022253096103668213, 0.029795611277222633, -0.010654025711119175, -0.050390422344207764, 0.001428709365427494, -0.02467811293900013, 0.027459748089313507, 0.012873985804617405, 0.06144564598798752, 0.05106800049543381, -0.08808516710996628, 0.012044844217598438, 0.08102408796548843, -0.005567731335759163, 0.00450901547446847, 0.024267999455332756, -0.0417245551943779, 0.04143925756216049, 0.013970592990517616, -0.018437260761857033, -0.0006887225899845362, 0.012526281177997589, -0.03346879780292511, -0.026675185188651085, 0.07000453025102615, -0.03694584220647812, -0.04960585758090019, 0.018597738817334175, -0.0198994018137455, -0.05060439556837082, 0.03489527851343155, -0.020915769040584564, 0.03197099268436432, -0.040084101259708405, -0.043899934738874435, 0.03161437436938286, -0.037587761878967285, 0.013720959424972534, -0.008068529888987541, -0.030330540612339973, 0.00468509690836072, 0.07460492849349976, 0.0312577523291111, -0.03560851886868477, -0.017875583842396736, -0.024018364027142525, -0.033326148986816406, -0.01732282154262066, -0.03601863235235214, 0.004036494065076113, 0.017617033794522285, 0.01127811148762703, 0.013293014839291573, -0.023572590202093124, -0.06205189973115921, 0.06704457849264145, 0.008723819628357887, 0.03400372713804245, -0.026318565011024475, -0.020737459883093834, 0.03373626247048378, 0.015183101408183575, -0.0113583505153656, 0.020648304373025894, -0.03822967782616615, 0.03302302211523056, 0.0672585517168045, -0.02760239690542221, -0.03188183903694153, 0.016030075028538704, -0.021504193544387817, 0.06754384934902191, 0.0010743180755525827, 0.0017574685625731945, -0.027638059109449387, -0.01016367319971323, 0.01216074638068676, -0.021004924550652504, 0.04400692135095596, 0.011554491706192493, 0.0043975720182061195, 0.009815968573093414, -0.012276647612452507 ]
37,703
healpy.pixelfunc
npix2order
Give the resolution order for the given number of pixels. Parameters ---------- npix : int the number of pixels Returns ------- order : int corresponding resolution order Notes ----- A convenience function that successively applies npix2nside then nside2order to npix. Examples -------- >>> import healpy as hp >>> hp.npix2order(768) 3 >>> np.all([hp.npix2order(12 * 4**order) == order for order in range(12)]) True >>> hp.npix2order(1000) Traceback (most recent call last): ... ValueError: Wrong pixel number (it is not 12*nside**2)
def npix2order(npix): """Give the resolution order for the given number of pixels. Parameters ---------- npix : int the number of pixels Returns ------- order : int corresponding resolution order Notes ----- A convenience function that successively applies npix2nside then nside2order to npix. Examples -------- >>> import healpy as hp >>> hp.npix2order(768) 3 >>> np.all([hp.npix2order(12 * 4**order) == order for order in range(12)]) True >>> hp.npix2order(1000) Traceback (most recent call last): ... ValueError: Wrong pixel number (it is not 12*nside**2) """ nside = npix2nside(npix) order = nside2order(nside) return order
(npix)
[ -0.06129045411944389, 0.012655507773160934, -0.004133131355047226, 0.020577343180775642, 0.0617850162088871, 0.04677150398492813, 0.014421802945435047, 0.02531101554632187, 0.04394543170928955, -0.02025941014289856, 0.02516971156001091, -0.06319805234670639, 0.033206354826688766, 0.00824860017746687, 0.025558296591043472, 0.010562446899712086, 0.04874975606799126, 0.005961247254163027, -0.023456403985619545, -0.023438740521669388, 0.028349043801426888, 0.007405193988233805, 0.016903448849916458, -0.030327294021844864, -0.013008766807615757, 0.03513161838054657, 0.050374746322631836, -0.004614447243511677, -0.015190141275525093, -0.03306505084037781, -0.015154815278947353, 0.01757463999092579, 0.04415738955140114, 0.01460726372897625, -0.030327294021844864, 0.039953604340553284, 0.038257960230112076, 0.022043367847800255, -0.037056878209114075, 0.04602966085076332, 0.006274764891713858, -0.024869440123438835, 0.02114255726337433, -0.0293381679803133, -0.049915511161088943, 0.04931497201323509, -0.011922494508326054, -0.011180650442838669, 0.03384222090244293, 0.05210571736097336, 0.012266922742128372, -0.08223871886730194, 0.0057846177369356155, 0.010394648648798466, -0.01573769375681877, 0.026264814659953117, 0.01856376603245735, 0.0005729420809075236, 0.05397799238562584, -0.03230554610490799, -0.02914387546479702, 0.017256706953048706, 0.03437210991978645, -0.03589112311601639, -0.0009339287644252181, -0.005850853864103556, -0.04097805544734001, -0.0094585120677948, -0.04147261753678322, -0.02038305066525936, -0.026370791718363762, -0.005316549446433783, 0.02753654681146145, -0.03532591089606285, 0.04783128201961517, 0.034901998937129974, 0.016629671677947044, 0.04186120256781578, 0.059665463864803314, 0.038257960230112076, -0.021972715854644775, 0.01681513339281082, 0.06397522240877151, 0.027819154784083366, -0.0007252850919030607, 0.00979410856962204, 0.11685810983181, 0.006389574147760868, 0.021566467359662056, -0.0016481744823977351, -0.0519644133746624, -0.03642101213335991, 0.010845054872334003, 0.007250642869621515, -0.020365387201309204, 0.005541752092540264, 0.010933369398117065, -0.005449021700769663, -0.00962631031870842, -0.03103381209075451, -0.06132578104734421, 0.01632940210402012, -0.010147367604076862, -0.03963566944003105, -0.012311079539358616, 0.022961841896176338, 0.031740330159664154, 0.06326870620250702, -0.0519644133746624, -0.025010744109749794, -0.032482173293828964, -0.01597614213824272, 0.02388031594455242, -0.039741650223731995, 0.054083969444036484, -0.053801361471414566, 0.03244685009121895, 0.028437357395887375, 0.08845607936382294, -0.006195281632244587, -0.07157029211521149, 0.02107190527021885, -0.03027430549263954, 0.05895894393324852, -0.028702301904559135, 0.03868187218904495, 0.043309565633535385, 0.04652422294020653, -0.011860674247145653, 0.06351598352193832, 0.04401608556509018, -0.02200804278254509, -0.0445459708571434, 0.02356238290667534, 0.016108615323901176, -0.003671686863526702, -0.0015444046584889293, -0.05376603454351425, 0.056026894599199295, 0.0004261187859810889, -0.015428591519594193, -0.010730245150625706, 0.015578726306557655, 0.0030049101915210485, 0.041684575378894806, 0.0378340482711792, 0.05570895969867706, -0.005263560451567173, 0.004552626516669989, -0.04804323613643646, 0.0047601661644876, 0.036986228078603745, 0.025346340611577034, -0.04394543170928955, 0.029444146901369095, -0.04083675146102905, -0.00782910455018282, -0.06450511515140533, 0.021107232198119164, -0.0000381892423320096, 0.021690109744668007, 0.03571449592709541, 0.001819284399971366, -0.01683279685676098, -0.04500520974397659, 0.005603572353720665, -0.018263496458530426, -0.034089501947164536, 0.03451341390609741, 0.02967376448214054, -0.03154603764414787, 0.003925591707229614, -0.0442986898124218, -0.040483493357896805, 0.0038196139503270388, -0.02605285868048668, -0.04408673569560051, -0.005749291740357876, -0.013803599402308464, 0.06683662533760071, 0.05719264969229698, -0.016682660207152367, 0.007034271955490112, 0.04415738955140114, -0.021654782816767693, 0.04723074287176132, 0.0421438105404377, -0.022855862975120544, 0.02140750177204609, 0.010218019597232342, 0.037869375199079514, 0.08633652329444885, -0.003057899186387658, -0.0025809993967413902, 0.046877481043338776, -0.013600475154817104, -0.027783827856183052, -0.0012617973843589425, -0.03048625960946083, 0.007656890898942947, 0.03716285899281502, 0.022167008370161057, 0.030539250001311302, 0.01009437907487154, 0.01480155624449253, -0.0010299710556864738, -0.012116787023842335, -0.01174586545675993, -0.01632940210402012, 0.02504607103765011, 0.061007846146821976, -0.01965886913239956, -0.036986228078603745, -0.07128768414258957, -0.03428379446268082, 0.06846161186695099, 0.016638504341244698, 0.04253239557147026, 0.011145324446260929, -0.006142292637377977, 0.019941477105021477, 0.08054307848215103, -0.006566203664988279, 0.00824860017746687, 0.005886179860681295, 0.011666381731629372, -0.005073683802038431, 0.029444146901369095, 0.025081396102905273, 0.052600279450416565, 0.009290714748203754, 0.012328743003308773, 0.033612605184316635, -0.022043367847800255, 0.0730539858341217, -0.027836816385388374, -0.08810281753540039, 0.02873762883245945, -0.030115338042378426, 0.05874698981642723, 0.0050295265391469, 0.02047136425971985, 0.006005404517054558, -0.04355684667825699, -0.03156369924545288, 0.027377581223845482, 0.0057846177369356155, -0.04044816642999649, -0.04171989858150482, 0.03295907378196716, -0.012796810828149319, -0.06637738645076752, -0.0065485406666994095, -0.05344810336828232, -0.046948134899139404, 0.0476546511054039, -0.09142345190048218, 0.002236571628600359, 0.000039017191738821566, -0.026194162666797638, -0.018599091097712517, 0.04355684667825699, -0.020241746678948402, -0.047548674046993256, -0.003144006012007594, -0.010182693600654602, 0.03221723064780235, 0.02840203233063221, 0.024798788130283356, 0.03868187218904495, 0.0034972650464624166, 0.030397946015000343, 0.010818559676408768, -0.008257431909441948, 0.014881039969623089, -0.025081396102905273, 0.006588282063603401, 0.05539102852344513, -0.0013975813053548336, 0.06959204375743866, 0.042709026485681534, -0.0016128486022353172, -0.043168261647224426, 0.017380347475409508, -0.001716618426144123, 0.0036915575619786978, 0.023032493889331818, -0.009167073294520378, -0.016806302592158318, -0.04973888024687767, 0.028243064880371094, 0.049703557044267654, -0.0742550641298294, 0.0005387201090343297, -0.05016279220581055, -0.030115338042378426, -0.07142899185419083, -0.04380412772297859, 0.011454426683485508, 0.08407566696405411, -0.03737481310963631, -0.010712582617998123, 0.021919727325439453, -0.02416292205452919, 0.05570895969867706, 0.05330679938197136, -0.027236277237534523, 0.013918408192694187, -0.040342189371585846, -0.007617149502038956, 0.015349107794463634, -0.014430634677410126, -0.038469914346933365, -0.044863905757665634, 0.031051475554704666, 0.004888223018497229, -0.020912939682602882, 0.049632903188467026, 0.05242365226149559, 0.03924708440899849, 0.009008106775581837, 0.04666552692651749, -0.0239509679377079, 0.017177224159240723, 0.02886126935482025, 0.05924155190587044, -0.003958710003644228, 0.007193238474428654, 0.01817518100142479, -0.02430422604084015, -0.00844289269298315, 0.02907322347164154, -0.025593621656298637, 0.015057669021189213, 0.005210571922361851, -0.04285033047199249, 0.03196994960308075, -0.00979410856962204, -0.008385487832129002, 0.03288842365145683, -0.02988572046160698, -0.041084032505750656, -0.03343597427010536, 0.007714295759797096, -0.020135769620537758, -0.03864654526114464, -0.07220616191625595, -0.02612351067364216, -0.06499967724084854, 0.04938562214374542, 0.021054241806268692, -0.06132578104734421, -0.026423780247569084, -0.05362473055720329, -0.03103381209075451, 0.06051328405737877, 0.03292374685406685, -0.06545890867710114, -0.0016095368191599846, 0.01905832812190056, 0.046877481043338776, -0.023050155490636826, -0.011401437222957611, -0.04617096483707428, -0.012293417006731033, -0.015799513086676598, 0.05680406466126442, 0.000004299308329791529, 0.00196389970369637, 0.04387478157877922, -0.029232190921902657, 0.018387136980891228, -0.014139195904135704, 0.03762209415435791, -0.031722668558359146, 0.03596177697181702, -0.036315035074949265, 0.016223425045609474, -0.07439636439085007, -0.03343597427010536, -0.0016117446357384324, -0.006897383835166693, 0.015587558038532734, 0.04719541594386101, -0.08845607936382294, -0.01829882152378559, -0.008173532783985138, 0.012125618755817413, -0.0390351302921772, -0.04369815066456795, -0.03451341390609741, 0.0009162657661363482, 0.04511118680238724, -0.030804194509983063, 0.011357280425727367, -0.00168239651247859, 0.011489752680063248, 0.06121980398893356, 0.070899099111557, -0.058994270861148834, -0.01796322502195835, -0.06595347076654434, -0.00985592883080244, 0.015940817072987556, 0.014121532440185547, 0.010924537666141987, -0.014298162423074245, 0.058111123740673065, 0.005312133580446243, -0.06379859149456024, -0.035166945308446884, 0.02294417843222618, 0.022643908858299255, -0.07368984818458557, 0.018599091097712517, 0.010279839858412743, -0.036986228078603745, 0.029497135430574417, -0.019535228610038757, -0.007802610285580158, -0.024392541497945786, 0.025275688618421555, -0.010050221346318722, -0.0008340226486325264, 0.04394543170928955, -0.08923324942588806, 0.04535846784710884, 0.01434231922030449, -0.017106572166085243, 0.14123298227787018, -0.04500520974397659, 0.052070390433073044, 0.004108844790607691, 0.027077309787273407, 0.053200822323560715, -0.041967179626226425, 0.05079865828156471, 0.04617096483707428, -0.0047822450287640095, 0.023862652480602264, 0.04698346182703972, 0.10173862427473068, -0.0027752919122576714, 0.008230936713516712, 0.007109339348971844, 0.010986357927322388, 0.007361036725342274, 0.007166744209825993, 0.018740395084023476, -0.035096291452646255, -0.004724840633571148, -0.07743439823389053, 0.05330679938197136, -0.04327423870563507, 0.0041309236548841, -0.033612605184316635, -0.02509905956685543, -0.014580769464373589, -0.027889806777238846, 0.03318869322538376, -0.008968365378677845, 0.033277008682489395, -0.005532920826226473, -0.07913003861904144, -0.05659210681915283, -0.007228564471006393, -0.0378340482711792, 0.022767549380660057, 0.018864035606384277, 0.008796151727437973, 0.01877572201192379, 0.05182310938835144, -0.02085994929075241, -0.030503923073410988, -0.01012970507144928, 0.020542016252875328, 0.025858566164970398, 0.036774273961782455, 0.02382732555270195, -0.016249919310212135, -0.05934752896428108, -0.02698899619281292, 0.016753312200307846, -0.0009593192371539772, 0.0025787914637476206, -0.03744546324014664, -0.03264114260673523, -0.005775786470621824, -0.027236277237534523, -0.0946027860045433, 0.01978250965476036, -0.02006511762738228, -0.007246227469295263, -0.002123970305547118, 0.09615712612867355, 0.0006159955519251525, 0.00639398954808712, -0.046206291764974594, -0.04945627599954605, 0.011454426683485508, 0.018881699070334435, 0.0007959369104355574, 0.020683320239186287, 0.04938562214374542, -0.012328743003308773, 0.045535098761320114, 0.03398352488875389, 0.013176564127206802, 0.03525525704026222, 0.007365452125668526, -0.038999803364276886, 0.0009068823419511318, 0.03292374685406685, -0.05733395367860794, 0.005948000121861696, 0.014006723649799824, -0.0361560694873333, 0.02308548241853714, 0.009405523538589478, 0.07033389061689377, 0.055143747478723526, -0.028384368866682053, 0.03815198317170143, 0.016541358083486557, 0.022237660363316536, 0.036844924092292786, 0.0371275320649147, -0.02409227006137371, -0.0009377925307489932, 0.0045261322520673275, 0.020559679716825485, -0.0038880580104887486, 0.05069268122315407, 0.026635736227035522, -0.0097587825730443, -0.015428591519594193, -0.013132407329976559, 0.032482173293828964, 0.07167626917362213, 0.012081461027264595, -0.02253792993724346, -0.012046135030686855, 0.00033311228617094457, -0.019817834720015526, 0.07291267812252045, 0.02403928153216839, -0.048361171036958694, -0.022184671834111214, -0.02186673879623413, -0.029497135430574417, -0.007312463596463203, 0.001367775141261518, 0.02167244628071785, -0.026476768776774406, 0.04267369955778122, 0.005630067083984613, -0.004044816829264164, 0.01480155624449253, 0.009021353907883167, -0.013909577392041683, -0.027978120371699333, 0.009767614305019379, 0.019287947565317154, -0.05553233250975609, -0.07510288804769516, -0.06422250717878342, -0.008716668002307415, -0.039670996367931366, -0.004338463302701712, -0.025752589106559753, 0.026423780247569084, -0.03027430549263954, 0.019535228610038757, -0.018758058547973633, -0.06008937209844589, -0.05016279220581055, 0.05517907068133354, -0.07693982869386673, 0.03627970814704895, -0.06231490522623062, -0.056168198585510254, 0.01786607876420021, -0.009016938507556915, -0.027748502790927887, -0.019146643579006195, -0.006230607628822327, 0.023120807483792305, 0.07199420779943466, 0.056026894599199295, -0.035573191940784454, -0.02705964632332325, -0.07722243666648865, 0.06613010168075562, -0.004128715954720974, 0.002576583530753851, -0.023067818954586983, -0.04783128201961517, -0.003559085540473461, 0.018864035606384277, -0.05150517821311951, -0.009732288308441639, 0.0543665774166584, 0.005471100565046072, -0.04832584410905838, 0.06030132994055748, -0.03299440070986748, 0.023315099999308586, -0.048149216920137405, -0.0074228569865226746, -0.019305609166622162, 0.0531654953956604, 0.025346340611577034, 0.01822816953063011, 0.027218613773584366, -0.07241811603307724, -0.010809728875756264, 0.031404733657836914, -0.016029132530093193, -0.0445459708571434, -0.014960522763431072, -0.03228788077831268, 0.0037975353188812733, 0.06143175810575485, -0.04617096483707428, -0.0003353201609570533, -0.012549529783427715, 0.018334146589040756, -0.0035392146091908216, 0.06567087024450302, -0.01911131665110588, 0.017186054959893227, -0.004733671899884939, 0.08605391532182693, -0.04772530496120453, -0.048149216920137405, -0.07075779885053635, -0.023332763463258743, -0.046064987778663635, -0.05048072710633278, -0.012293417006731033, 0.004985369276255369, -0.0008273990242742002, -0.003936631139367819, -0.05390733852982521, 0.014271668158471584, -0.044051408767700195, -0.019305609166622162, -0.04712476581335068, 0.012929283082485199, -0.05072800815105438, 0.007837936282157898, -0.014545443467795849, -0.009405523538589478, -0.04193185642361641, -0.030185990035533905, 0.03585579991340637, 0.03131641820073128, 0.031016148626804352, -0.014201016165316105, -0.044934555888175964, 0.02886126935482025, 0.012779148295521736, -0.027695514261722565, 0.025593621656298637, -0.017450999468564987, 0.05072800815105438, 0.024480855092406273, -0.030027024447917938, -0.08096698671579361, -0.03428379446268082, 0.043521519750356674, 0.05687471479177475, 0.05687471479177475, -0.014616095460951328, 0.009061096236109734, -0.00959098432213068, -0.024940092116594315, 0.053200822323560715, -0.020542016252875328, -0.018687406554818153, -0.0699099749326706, -0.020100442692637444, 0.03103381209075451, -0.0005657665315084159, -0.015587558038532734, -0.01872273162007332, -0.0070607662200927734, 0.027748502790927887, -0.06913280487060547, -0.001530053443275392, 0.000850029697176069, 0.04073077440261841, 0.026600411161780357, 0.03009767457842827, 0.017707113176584244, -0.010438806377351284, 0.02502840757369995, 0.07333658635616302, 0.0029695844277739525, -0.026088183745741844, 0.015313781797885895, -0.05079865828156471, 0.027978120371699333, -0.021107232198119164, -0.033153366297483444, 0.0012783564161509275, -0.026335466653108597, -0.028631649911403656, -0.036844924092292786, 0.053130168467760086, -0.06280946731567383, -0.029320504516363144, 0.0008009046432562172, -0.030998487025499344, -0.0221493449062109, 0.06934475898742676, 0.02416292205452919, 0.038469914346933365, -0.02713029831647873, -0.0012165360385552049, -0.004071311093866825, 0.01978250965476036, 0.013538654893636703, -0.035555530339479446, 0.015092995017766953, 0.010341660119593143, 0.07418441027402878, 0.01187833771109581, -0.08732564747333527, -0.030256642028689384, -0.03601476550102234, -0.04468727484345436, -0.02711263671517372, -0.03461939096450806, 0.006433731410652399, 0.007736374158412218, 0.028437357395887375, -0.018387136980891228, -0.011586898937821388, -0.03295907378196716, 0.05189376324415207, 0.0024043696466833353, 0.004091181792318821, -0.009820602834224701, 0.017548145726323128, -0.003534798976033926, 0.04641824588179588, -0.018493114039301872, -0.003857147879898548, -0.006341001018881798, 0.013635801151394844, 0.03412482887506485, -0.008540038950741291, -0.07665722817182541, -0.00011901796096935868, -0.020135769620537758, 0.05592091754078865, 0.025487644597887993, 0.008314835838973522, -0.010809728875756264, -0.0730539858341217, -0.04415738955140114, -0.06411653012037277, 0.038929153233766556, 0.021018916741013527, -0.02174309827387333, 0.012743822298943996, -0.009741120040416718 ]
37,704
healpy.pixelfunc
nside2npix
Give the number of pixels for the given nside. Parameters ---------- nside : int healpix nside parameter Returns ------- npix : int corresponding number of pixels Examples -------- >>> import healpy as hp >>> import numpy as np >>> hp.nside2npix(8) 768 >>> np.all([hp.nside2npix(nside) == 12 * nside**2 for nside in [2**n for n in range(12)]]) True >>> hp.nside2npix(7) 588
def nside2npix(nside): """Give the number of pixels for the given nside. Parameters ---------- nside : int healpix nside parameter Returns ------- npix : int corresponding number of pixels Examples -------- >>> import healpy as hp >>> import numpy as np >>> hp.nside2npix(8) 768 >>> np.all([hp.nside2npix(nside) == 12 * nside**2 for nside in [2**n for n in range(12)]]) True >>> hp.nside2npix(7) 588 """ return 12 * nside * nside
(nside)
[ -0.05048077926039696, -0.010264893993735313, 0.048055171966552734, -0.03782543167471886, 0.04851216822862625, 0.08029115200042725, 0.0461568683385849, 0.03525920584797859, 0.04390702769160271, -0.023306934162974358, 0.025943463668227196, -0.01189954299479723, 0.023183895274996758, 0.017436258494853973, 0.022392936050891876, -0.01551159005612135, 0.04432887211441994, 0.006556173786520958, 0.01729564368724823, -0.010642796754837036, 0.0341167114675045, 0.016539838165044785, 0.03476705402135849, -0.04253603145480156, -0.032376598566770554, 0.00303640472702682, 0.04946132004261017, -0.01485245767980814, 0.018772101029753685, -0.016671663150191307, -0.06165967136621475, 0.052273619920015335, 0.04348518326878548, 0.005593840032815933, 0.017568085342645645, 0.04766847938299179, 0.01752414181828499, 0.025838002562522888, -0.0739634782075882, 0.06116751953959465, -0.03097045049071312, -0.06633511930704117, 0.03768481686711311, 0.005387311335653067, -0.04784424975514412, 0.01878967694938183, 0.0072153061628341675, -0.0536094605922699, -0.03067164309322834, 0.03754420205950737, -0.02923033945262432, -0.05234392732381821, 0.014720630832016468, 0.029441261664032936, -0.0028540447819978, 0.021848052740097046, 0.00641995295882225, -0.0005992614896968007, 0.04675448313355446, 0.023412395268678665, -0.041305650025606155, 0.00699120108038187, 0.0424305722117424, -0.06517504155635834, 0.00846326444298029, 0.004512862302362919, -0.018666639924049377, 0.005101687274873257, -0.0414462648332119, -0.004631505813449621, 0.004047074820846319, 0.004719390533864498, 0.0006118948804214597, 0.01181165874004364, 0.06812795996665955, 0.025293119251728058, 0.0369817391037941, 0.03849335014820099, 0.06422589719295502, 0.029476415365934372, 0.003739479696378112, 0.019984904676675797, 0.039794038981199265, 0.035997435450553894, 0.032446905970573425, 0.0769163966178894, 0.06109720841050148, 0.023693624883890152, 0.004750149790197611, -0.024976735934615135, -0.028949109837412834, -0.006999989505857229, 0.028298765420913696, 0.010282470844686031, -0.032622676342725754, -0.005545503459870815, 0.022920241579413414, -0.009473934769630432, 0.0022586281411349773, -0.049918320029973984, -0.033167559653520584, -0.029915837571024895, 0.040883805602788925, -0.04018073156476021, -0.0003633469168562442, 0.0072856140322983265, 0.016399221494793892, 0.05888252332806587, -0.057406067848205566, -0.013507827185094357, -0.014588804915547371, -0.005914617795497179, -0.016662875190377235, -0.011038276366889477, 0.041059575974941254, 0.019193945452570915, 0.006767095997929573, 0.003937219735234976, 0.06840918958187103, -0.007610785774886608, -0.04921524226665497, -0.0011798476334661245, -0.052273619920015335, -0.0011002024402841926, 0.015863128006458282, 0.05241423472762108, 0.023342087864875793, 0.016135569661855698, 0.014518496580421925, 0.06622965633869171, 0.016618933528661728, -0.02386939339339733, -0.054136767983436584, 0.004326107911765575, -0.033466365188360214, -0.012040157802402973, 0.017128663137555122, -0.026857461780309677, 0.04464525729417801, -0.01789325661957264, -0.03054860420525074, 0.05891767889261246, 0.025873156264424324, 0.05181661993265152, 0.015010649338364601, 0.044434335082769394, 0.033905789256095886, 0.06482350826263428, 0.053293079137802124, -0.020037634298205376, 0.009851837530732155, 0.00040289488970302045, 0.02536342851817608, 0.004205266945064068, 0.0021564625203609467, -0.0233245100826025, 0.004895159043371677, -0.02342997118830681, 0.01527430210262537, -0.020055212080478668, -0.02501188963651657, -0.012848693877458572, -0.01295415498316288, -0.01921152137219906, -0.02965218387544155, -0.009113608859479427, -0.014518496580421925, -0.024449430406093597, 0.04320395365357399, 0.05645691603422165, -0.03975888714194298, -0.05526169016957283, -0.05814429372549057, -0.02459004521369934, 0.016364067792892456, -0.0021300972439348698, -0.0018301919335499406, -0.0249415822327137, -0.02429123781621456, 0.022568704560399055, 0.05912860110402107, -0.0694638043642044, 0.01172377448529005, 0.023535432294011116, -0.004440357442945242, 0.06763580441474915, 0.0332554429769516, 0.005844310391694307, 0.03019706718623638, -0.006415558513253927, 0.00694286497309804, 0.041059575974941254, -0.06187059357762337, 0.02374635450541973, 0.02103951759636402, -0.060886286199092865, -0.011556793935596943, 0.03394094109535217, -0.06359312683343887, -0.04647325351834297, 0.012971731834113598, 0.042641494423151016, -0.0011787490220740438, -0.0012754218187183142, 0.012084100395441055, 0.009570606984198093, -0.03302694484591484, -0.0014742602361366153, 0.01415817067027092, 0.022498397156596184, 0.0597965233027935, -0.019369713962078094, 0.0004309080250095576, -0.018526023253798485, -0.000036698587791761383, 0.020107941702008247, 0.01608283817768097, 0.02694534696638584, -0.045524101704359055, 0.004750149790197611, 0.022023821249604225, 0.04000496119260788, -0.002370680682361126, 0.055578071624040604, -0.027876920998096466, -0.006982412654906511, -0.01603889651596546, 0.040110424160957336, 0.005317003931850195, -0.027138691395521164, -0.020758286118507385, 0.07614301145076752, 0.011829235590994358, -0.010510969907045364, 0.04116503521800041, -0.018543601036071777, -0.04337972402572632, 0.013358423486351967, 0.029792798683047295, 0.09772741049528122, -0.02945883944630623, -0.021320747211575508, -0.019844289869070053, -0.01965094357728958, -0.0013742917217314243, 0.06021836772561073, 0.0030825440771877766, 0.0015225965762510896, -0.01921152137219906, 0.06141359359025955, -0.0063364626839756966, -0.08465021848678589, -0.027208998799324036, -0.020758286118507385, 0.015458859503269196, 0.07958807796239853, -0.12943609058856964, 0.009763953275978565, -0.010537335649132729, -0.013973614200949669, -0.006121146026998758, 0.010818565264344215, 0.00942999217659235, -0.04183295741677284, -0.009157550521194935, 0.006635269615799189, 0.01952790655195713, 0.03663020208477974, -0.014632746577262878, 0.0033835479989647865, -0.004530439153313637, 0.057933371514081955, 0.0491449348628521, -0.023183895274996758, -0.022621436044573784, -0.06805764883756638, 0.0045831697061657906, 0.04520771652460098, -0.006160694174468517, 0.023535432294011116, 0.007874439470469952, -0.016012530773878098, -0.041481420397758484, 0.029072146862745285, -0.013912094756960869, -0.03996980935335159, 0.03573378175497055, 0.05195723474025726, -0.011381025426089764, -0.021971091628074646, -0.03072437457740307, 0.024800967425107956, -0.0699911043047905, 0.0007838186575099826, -0.006569356191903353, 0.034327633678913116, -0.06615935266017914, -0.0054444363340735435, -0.030882565304636955, 0.04724663496017456, -0.011433755978941917, 0.0006690197042189538, -0.09589941799640656, -0.017981141805648804, 0.07027234137058258, 0.05754668265581131, -0.005141235422343016, -0.01126677542924881, 0.026312578469514847, -0.01849086955189705, 0.0015039212303236127, -0.06176513060927391, -0.0083446204662323, -0.020687978714704514, 0.0694638043642044, -0.007536084391176701, -0.05392584577202797, 0.01530945673584938, 0.013683595694601536, 0.06127297878265381, 0.04520771652460098, 0.026418039575219154, -0.005892646498978138, 0.07006141543388367, -0.001410544035024941, 0.06970987468957901, -0.03740358725190163, -0.009148762561380863, -0.0020993377547711134, -0.023517856374382973, -0.043063338845968246, 0.007272431161254644, -0.032148100435733795, -0.03176140785217285, -0.0021487728226929903, -0.06334704905748367, 0.04770363122224808, -0.0017126465681940317, -0.005976136773824692, 0.01903575286269188, -0.013780267909169197, -0.0036076530814170837, -0.015590686351060867, -0.001534680719487369, -0.004657871089875698, -0.05230877548456192, -0.08626729249954224, -0.02933580055832863, 0.0011710592079907656, 0.045278023928403854, -0.007615180220454931, 0.002194911940023303, -0.008507206104695797, -0.010598854161798954, -0.0015291878953576088, 0.01784052513539791, 0.023693624883890152, -0.04584048315882683, -0.04355549067258835, 0.023271780461072922, -0.001476457342505455, 0.0012556478613987565, 0.008357803337275982, -0.04236026480793953, -0.040110424160957336, 0.004477708600461483, 0.03610289841890335, -0.006411164533346891, -0.01214561890810728, 0.040708038955926895, -0.06056990474462509, -0.024484584107995033, -0.06405012309551239, -0.004890765063464642, 0.01470305398106575, 0.0038185755256563425, -0.05505076423287392, -0.005637782160192728, -0.06310097128152847, -0.013402365148067474, -0.02049463428556919, -0.021830476820468903, -0.020090365782380104, 0.044750720262527466, -0.026523500680923462, -0.015810396522283554, 0.016074050217866898, 0.038774579763412476, -0.03954796493053436, -0.02146136201918125, -0.03655989468097687, 0.008806013502180576, 0.00900814775377512, -0.031181372702121735, -0.0030979239381849766, -0.025521619245409966, -0.017128663137555122, 0.043239105492830276, 0.052449390292167664, -0.02139105461537838, -0.0006377109093591571, -0.02513492852449417, 0.0374738946557045, 0.030144337564706802, -0.017075931653380394, -0.004282165784388781, 0.0024805362336337566, -0.004242617636919022, 0.012171984650194645, -0.1245848760008812, 0.025838002562522888, 0.033413633704185486, -0.00475893821567297, -0.039688579738140106, 0.035768937319517136, 0.006547385361045599, -0.022568704560399055, -0.006231001578271389, -0.0021465755999088287, -0.05055108666419983, -0.01795477606356144, -0.05104323849081993, 0.033888209611177444, -0.0127783864736557, 0.02989826165139675, -0.057933371514081955, 0.01921152137219906, -0.03729812428355217, 0.00036087515763938427, 0.11776504665613174, -0.08612667769193649, 0.021795323118567467, 0.0077997371554374695, -0.0014204310718923807, 0.007386680692434311, -0.02819330431520939, 0.036313820630311966, 0.022463243454694748, -0.01945759914815426, 0.035944703966379166, -0.012224715203046799, 0.07213548570871353, 0.0032649042550474405, 0.01644316501915455, -0.02355301007628441, -0.03930188715457916, -0.03373001888394356, -0.0011699605965986848, 0.023359663784503937, -0.04084865376353264, 0.0020718739833682775, -0.06158936396241188, 0.05596476420760155, -0.018772101029753685, 0.029089724645018578, -0.04039165377616882, -0.06721395999193192, 0.01777900755405426, -0.003423095913603902, 0.004754544235765934, -0.004341487772762775, 0.038176968693733215, -0.0311462190002203, -0.04633263871073723, -0.000775579537730664, -0.051254160702228546, -0.04415310546755791, 0.0037526623345911503, 0.020354019477963448, -0.01603010855615139, 0.006371616385877132, 0.0635228157043457, -0.01686500944197178, -0.020758286118507385, 0.06257366389036179, -0.0060859923250973225, -0.017735064029693604, 0.031111065298318863, -0.008322649635374546, -0.025644658133387566, -0.08668913692235947, 0.03167352452874184, -0.00949151162058115, -0.012391695752739906, -0.024660352617502213, -0.07790070027112961, -0.04946132004261017, -0.009333319962024689, -0.04077834635972977, -0.06640542298555374, 0.049074627459049225, -0.022498397156596184, -0.023886971175670624, -0.00475893821567297, 0.0684794932603836, 0.024080315604805946, 0.040040116757154465, -0.024273661896586418, 0.01651347242295742, 0.013217808678746223, 0.0000887769419932738, -0.028755763545632362, 0.05645691603422165, 0.04453979432582855, -0.016645299270749092, 0.03206021711230278, -0.011134948581457138, 0.026066502556204796, 0.033466365188360214, -0.008674186654388905, 0.038352735340595245, 0.0009101524483412504, 0.01952790655195713, -0.02042432688176632, 0.05754668265581131, 0.027701152488589287, -0.013876941055059433, 0.0468950979411602, 0.007931564003229141, 0.0249415822327137, 0.0333784818649292, -0.04102442041039467, 0.02031886577606201, 0.07016687840223312, 0.006688000168651342, 0.04633263871073723, 0.005725666414946318, -0.01806902512907982, -0.0204770565032959, 0.042149342596530914, -0.020406749099493027, 0.021478937938809395, 0.04176265001296997, 0.019809136167168617, -0.003005645237863064, -0.008037025108933449, 0.011293141171336174, -0.004134959541261196, 0.13520130515098572, 0.008476447314023972, -0.017251700162887573, -0.037262968719005585, -0.01518641784787178, 0.02819330431520939, 0.017260489985346794, 0.04362579807639122, -0.0027507806662470102, -0.034433092921972275, 0.0250646211206913, -0.03144502639770508, 0.012708079069852829, -0.002502507297322154, 0.028404226526618004, -0.04605140537023544, 0.08978267014026642, 0.054980456829071045, 0.028210880234837532, -0.01583676226437092, -0.030267374590039253, 0.0034736294765025377, -0.05824975669384003, -0.05687876045703888, 0.04960193485021591, -0.06021836772561073, -0.07041295617818832, -0.03297421336174011, -0.000039376314816763625, -0.0464029461145401, -0.005119264125823975, -0.017339585348963737, -0.02975764498114586, 0.044856179505586624, 0.036419279873371124, 0.0016467332607135177, -0.03084741160273552, -0.02307843416929245, 0.03705204650759697, -0.09484480321407318, 0.04946132004261017, -0.06622965633869171, -0.056913916021585464, 0.01183802355080843, 0.012628982774913311, 0.0023904547560960054, -0.021320747211575508, 0.08380652964115143, -0.050410471856594086, 0.01603010855615139, 0.08261130005121231, 0.01795477606356144, 0.018121756613254547, -0.05023470148444176, 0.03873942792415619, 0.037157509475946426, 0.02367604710161686, -0.00909603200852871, -0.05030500888824463, 0.0016423390479758382, 0.036665357649326324, -0.023605739697813988, -0.0058179451152682304, 0.06703819334506989, -0.007764583453536034, -0.0037087202072143555, 0.07579147815704346, -0.0553319975733757, 0.02218201383948326, -0.03207779303193092, -0.05276577174663544, -0.03951280936598778, 0.008397351019084454, 0.01452728547155857, 0.02771872840821743, -0.015924647450447083, -0.05779275670647621, 0.007083479780703783, 0.019844289869070053, -0.024115469306707382, -0.05997228994965553, -0.030355259776115417, -0.06289005279541016, 0.01124041061848402, 0.04271180182695389, -0.05983167514204979, 0.05157054588198662, -0.032271139323711395, 0.03197233006358147, -0.007074691355228424, -0.018244793638586998, -0.014210902154445648, 0.011934696696698666, -0.017339585348963737, 0.027630845084786415, -0.07719762623310089, -0.023939700797200203, 0.01419332530349493, -0.01910606026649475, -0.0377199687063694, -0.06158936396241188, 0.06064021214842796, 0.03179656341671944, 0.016188299283385277, 0.02024855837225914, -0.02265658974647522, 0.022621436044573784, -0.07255733013153076, 0.010414296761155128, -0.011161314323544502, -0.04893401265144348, -0.03866912052035332, 0.03627866506576538, -0.01479093823581934, 0.0024168200325220823, -0.025750119239091873, 0.021883206441998482, 0.039372194558382034, -0.003838349599391222, 0.012822329066693783, -0.020582517609000206, -0.07034264504909515, 0.05515622720122337, 0.04271180182695389, -0.03441551700234413, 0.010168220847845078, -0.007180152460932732, 0.030232220888137817, 0.042746953666210175, -0.04032134637236595, -0.05719514563679695, -0.019932173192501068, 0.058355219662189484, 0.035522859543561935, -0.01644316501915455, -0.059023138135671616, 0.035347092896699905, -0.00507532199844718, -0.036313820630311966, -0.005097293294966221, -0.022551128640770912, 0.026664115488529205, -0.0652805045247078, -0.03207779303193092, 0.03807150572538376, 0.018174486234784126, 0.01307719387114048, -0.003095726715400815, 0.02814057283103466, 0.005725666414946318, -0.07290887087583542, -0.01856117695569992, -0.019422445446252823, 0.04127049818634987, 0.03873942792415619, 0.051078394055366516, 0.026910193264484406, -0.06021836772561073, 0.0030429961625486612, 0.06021836772561073, -0.016364067792892456, 0.0038493352476507425, 0.01945759914815426, -0.02031886577606201, 0.039196427911520004, -0.02838665060698986, -0.03153290972113609, -0.0032758896704763174, 0.00397457042708993, -0.01760323904454708, -0.0459107905626297, 0.08275191485881805, -0.02933580055832863, -0.04141111299395561, 0.014184536412358284, -0.04334456846117973, -0.05213300511240959, 0.027191422879695892, -0.00957939587533474, 0.034433092921972275, -0.05846067890524864, -0.014957918785512447, 0.033290598541498184, 0.008423716761171818, 0.022551128640770912, -0.018701793625950813, -0.05283607915043831, 0.015441282652318478, 0.08415807038545609, 0.007698670495301485, -0.03513617068529129, -0.03754420205950737, -0.013859364204108715, -0.03800119832158089, -0.016135569661855698, -0.02416820079088211, 0.005365340504795313, 0.02464277669787407, 0.030706796795129776, 0.014544862322509289, 0.015599474310874939, -0.07101056724786758, 0.06939349323511124, 0.013578134588897228, 0.030460720881819725, -0.024906428530812263, -0.008603879250586033, 0.0379660464823246, 0.034081555902957916, -0.03659505024552345, 0.013314480893313885, -0.01699683628976345, 0.01758566126227379, 0.07635393738746643, -0.022217167541384697, -0.041129883378744125, -0.005097293294966221, -0.011187680065631866, 0.042746953666210175, -0.004596352111548185, -0.009649703279137611, -0.0204770565032959, -0.035997435450553894, 0.01632012613117695, -0.057335760444402695, 0.04404764249920845, -0.0019576242193579674, 0.003932825289666653, 0.03228871524333954, -0.0020718739833682775 ]
37,705
healpy.pixelfunc
nside2order
Give the resolution order for a given nside. Parameters ---------- nside : int healpix nside parameter; an exception is raised if nside is not valid (nside must be a power of 2, less than 2**30) Returns ------- order : int corresponding order where nside = 2**(order) Notes ----- Raise a ValueError exception if nside is not valid. Examples -------- >>> import healpy as hp >>> import numpy as np >>> hp.nside2order(128) 7 >>> np.all([hp.nside2order(2**o) == o for o in range(30)]) True >>> hp.nside2order(7) Traceback (most recent call last): ... ValueError: 7 is not a valid nside parameter (must be a power of 2, less than 2**30)
def nside2order(nside): """Give the resolution order for a given nside. Parameters ---------- nside : int healpix nside parameter; an exception is raised if nside is not valid (nside must be a power of 2, less than 2**30) Returns ------- order : int corresponding order where nside = 2**(order) Notes ----- Raise a ValueError exception if nside is not valid. Examples -------- >>> import healpy as hp >>> import numpy as np >>> hp.nside2order(128) 7 >>> np.all([hp.nside2order(2**o) == o for o in range(30)]) True >>> hp.nside2order(7) Traceback (most recent call last): ... ValueError: 7 is not a valid nside parameter (must be a power of 2, less than 2**30) """ check_nside(nside, nest=True) return len("{0:b}".format(nside)) - 1
(nside)
[ -0.06446955353021622, 0.048833150416612625, 0.0031176607590168715, -0.023716958239674568, 0.04900805279612541, 0.04033282399177551, 0.019694171845912933, 0.018557297065854073, 0.07338964939117432, -0.04834342002868652, -0.0009401080897077918, -0.019536757841706276, 0.025168661028146744, -0.0027066366747021675, 0.02648044005036354, 0.025500977411866188, 0.03263705596327782, 0.01846984401345253, -0.03945830464363098, -0.01707935892045498, 0.021110892295837402, 0.02303483337163925, 0.008076184429228306, -0.07059118151664734, 0.009199941530823708, -0.0016419097082689404, 0.04313128441572189, -0.011255061253905296, -0.058907609432935715, -0.02826445922255516, 0.004110239911824465, 0.020061468705534935, 0.017604069784283638, 0.04015791788697243, 0.01063415315002203, -0.0007039878983050585, 0.03844385966658592, 0.009051273576915264, -0.1099795252084732, 0.05593424290418625, -0.03606516867876053, -0.04841338098049164, 0.04190695658326149, -0.019711662083864212, -0.07129079848527908, 0.011832243762910366, 0.004499400965869427, -0.020288843661546707, 0.011631104163825512, 0.017980113625526428, -0.016895709559321404, -0.08864126354455948, 0.031762536615133286, 0.01210334524512291, 0.019291892647743225, 0.014735647477209568, 0.0035199394915252924, -0.008377893827855587, 0.0643995925784111, 0.011840988881886005, -0.024783872067928314, 0.007433412596583366, 0.0031985538080334663, -0.029838593676686287, -0.01667707972228527, 0.022002901881933212, -0.0288066603243351, 0.003898169146850705, -0.03847884386777878, -0.0004345267079770565, -0.004543127026408911, -0.007722003851085901, -0.0035199394915252924, 0.009890811517834663, 0.03742941841483116, 0.04512518644332886, 0.01578507013618946, 0.026288045570254326, 0.08423368632793427, 0.05631903186440468, -0.03550547733902931, -0.005483235232532024, 0.05757834017276764, 0.028579285368323326, -0.01261056587100029, 0.04725901409983635, 0.08689222484827042, 0.01654590293765068, 0.021845487877726555, -0.0299085546284914, -0.07541853189468384, -0.03067813068628311, 0.004976014140993357, -0.008391011506319046, -0.036624860018491745, -0.0071579390205442905, 0.012007148005068302, -0.038653746247291565, -0.04047274589538574, -0.03994803503155708, -0.03970316797494888, 0.007376568857580423, 0.020078958943486214, -0.02355954609811306, 0.011753537692129612, -0.026585381478071213, -0.004739893600344658, 0.0323222279548645, -0.07352957129478455, -0.0157938152551651, -0.015382791869342327, -0.028369400650262833, 0.026585381478071213, -0.05285593867301941, 0.055864281952381134, 0.01950177736580372, 0.026585381478071213, 0.017883917316794395, 0.0887112244963646, 0.007997477427124977, -0.03987807407975197, -0.006305282935500145, -0.01758657954633236, -0.004123357590287924, -0.029086505994200706, 0.04530009254813194, 0.027319978922605515, 0.004250163212418556, -0.047958631068468094, 0.043096303939819336, 0.09815602749586105, -0.0009980449685826898, -0.03498076647520065, 0.022072862833738327, -0.020446257665753365, -0.026935189962387085, -0.015715109184384346, -0.02523862197995186, 0.06125131994485855, 0.0007898000767454505, 0.010992705821990967, 0.0034609094727784395, 0.03473589941859245, -0.019012046977877617, 0.04351607337594032, 0.034945785999298096, 0.01170981116592884, -0.0005640648305416107, 0.035453006625175476, 0.009304883889853954, 0.01731547899544239, 0.024888815358281136, 0.05086203292012215, -0.014027287252247334, 0.017499128356575966, -0.03386138007044792, -0.013441359624266624, -0.04823847487568855, -0.031657591462135315, 0.014097248204052448, 0.030363304540514946, -0.016222329810261726, 0.00961096491664648, -0.024661440402269363, -0.015181652270257473, 0.01629229076206684, 0.003362526185810566, -0.04652441665530205, 0.035995207726955414, 0.028124535456299782, -0.03760432451963425, -0.006790641229599714, -0.05411524325609207, -0.05390536040067673, 0.012689272873103619, -0.03868872672319412, -0.017525363713502884, -0.00722790090367198, -0.017910152673721313, 0.02074359357357025, 0.04369097575545311, -0.03627505525946617, 0.005745590664446354, 0.025011247023940086, -0.021967921406030655, 0.03389636054635048, 0.03186747804284096, -0.018032584339380264, 0.026340516284108162, -0.03781420737504959, 0.008775799535214901, 0.05568937957286835, -0.027180055156350136, 0.00544388173148036, 0.0460696667432785, -0.041836995631456375, -0.0274948813021183, 0.030275853350758553, -0.03655489906668663, 0.018504824489355087, 0.026655344292521477, 0.0670231506228447, 0.02305232547223568, 0.015137926675379276, 0.05212134122848511, 0.05429014936089516, -0.009541003964841366, -0.041452206671237946, 0.003524312051013112, -0.001498707220889628, 0.057263512164354324, -0.023769430816173553, -0.011823498643934727, -0.04288641735911369, -0.010398032143712044, 0.03984309360384941, 0.014691921882331371, 0.04645445570349693, -0.02702264115214348, -0.0079581243917346, -0.0016648657619953156, 0.070381298661232, 0.018050074577331543, 0.015478989109396935, -0.011167609132826328, -0.003362526185810566, -0.014184700325131416, 0.042221784591674805, 0.01082654669880867, 0.02737244963645935, -0.030870525166392326, 0.05243616923689842, 0.010747840628027916, -0.021478191018104553, 0.07499875873327255, -0.025693371891975403, -0.07450903207063675, -0.002334966091439128, -0.023122286424040794, 0.07422918826341629, -0.025903256610035896, 0.002507683588191867, -0.05701864883303642, -0.024661440402269363, -0.006077907979488373, 0.06684824079275131, 0.035995207726955414, -0.03562790900468826, 0.0011576446704566479, 0.06569387763738632, -0.04022787883877754, -0.04830843582749367, -0.013616262935101986, -0.021460698917508125, -0.04239668697118759, 0.029523765668272972, -0.120123952627182, -0.03094048798084259, -0.020463747903704643, 0.0005184258916415274, -0.0019414324779063463, 0.023017343133687973, -0.03756934404373169, -0.041592128574848175, 0.02891160361468792, -0.0030586307402700186, 0.010284344665706158, 0.005522588267922401, 0.01656339317560196, 0.030223380774259567, 0.0055663143284618855, 0.008456599898636341, 0.0015817865496501327, 0.0014932414051145315, 0.0030476991087198257, -0.029978515580296516, 0.03875868767499924, 0.05831293761730194, -0.020218882709741592, 0.05589926242828369, 0.026567891240119934, 0.015968719497323036, -0.05107191950082779, 0.03555794805288315, -0.04243166744709015, 0.030520718544721603, 0.025431016460061073, -0.009296138770878315, 0.02457398734986782, -0.03181500732898712, 0.024643950164318085, 0.05540953204035759, -0.023209737613797188, 0.027547353878617287, 0.006397107616066933, -0.0369047075510025, -0.04491530358791351, -0.054080262780189514, 0.03258458152413368, 0.06950677931308746, -0.0409974567592144, -0.00037194392643868923, 0.02840438112616539, -0.01578507013618946, 0.08381391316652298, 0.029593728482723236, 0.008360402658581734, -0.015583931468427181, 0.014534507878124714, -0.05415022373199463, -0.0229124017059803, -0.0020398159977048635, -0.03389636054635048, -0.0204987283796072, 0.04599970579147339, -0.005216506775468588, -0.04851832240819931, -0.004206437151879072, 0.04071761295199394, 0.04809855297207832, 0.009217431768774986, 0.05551447346806526, 0.004796737339347601, 0.008828271180391312, 0.0012483760947361588, 0.07443907111883163, -0.025133680552244186, 0.008548424579203129, 0.06975165009498596, -0.01589875854551792, -0.01704437844455242, 0.005059093236923218, -0.008251087740063667, -0.01208585500717163, -0.030520718544721603, -0.037884168326854706, 0.058242976665496826, -0.03536555543541908, 0.002627930138260126, 0.010485484264791012, 0.012514368630945683, -0.020463747903704643, -0.01770026795566082, -0.0033822027035057545, -0.0006083374028094113, -0.002540478017181158, -0.04288641735911369, -0.0300309881567955, -0.011018941178917885, 0.08661237359046936, -0.021985411643981934, -0.04778372496366501, -0.016851983964443207, -0.03410624712705612, -0.022370198741555214, 0.006191595457494259, 0.04250163212418556, -0.049217935651540756, -0.03296937048435211, -0.004543127026408911, 0.015339065343141556, -0.013642498292028904, -0.022002901881933212, 0.00878454465419054, -0.032672036439180374, -0.013170258142054081, 0.0621958002448082, -0.015741344541311264, -0.002892472082749009, 0.049497783184051514, -0.05054720491170883, -0.03756934404373169, 0.023209737613797188, 0.016204839572310448, -0.02090100757777691, 0.06373495608568192, -0.027949631214141846, -0.00031974606099538505, -0.016598373651504517, -0.03816401585936546, -0.017236772924661636, -0.00903378240764141, -0.012059618718922138, 0.040052976459264755, -0.04575484246015549, -0.02800210379064083, 0.028841640800237656, 0.04659438133239746, -0.010546701028943062, -0.04054270684719086, -0.06607866287231445, 0.01756034418940544, 0.04446055367588997, -0.023279700428247452, -0.013738695532083511, 0.022335218265652657, -0.010336816310882568, 0.026812756434082985, 0.03466593846678734, -0.06058668717741966, 0.007407177239656448, -0.03415871784090996, 0.004849208518862724, 0.02100594900548458, -0.008570287376642227, -0.010940234176814556, -0.006510795094072819, 0.04033282399177551, 0.019169459119439125, -0.09206937253475189, -0.07534857094287872, 0.03540053591132164, -0.007748239673674107, -0.03219979628920555, 0.029821103438735008, 0.002743803896009922, -0.01707935892045498, 0.01679076813161373, -0.013205238617956638, -0.05544451251626015, -0.010590426623821259, -0.042081862688064575, 0.03631003573536873, 0.004639324266463518, 0.0626855343580246, -0.07373945415019989, 0.04054270684719086, -0.0017468519508838654, -0.02940133400261402, 0.11921445280313492, -0.03373894840478897, 0.05792814865708351, -0.011158864013850689, -0.0356803797185421, 0.05778822675347328, -0.015557695180177689, 0.044635456055402756, 0.022982362657785416, -0.011508671566843987, 0.028701718896627426, -0.017875172197818756, 0.10137426108121872, -0.015583931468427181, 0.027827199548482895, 0.026707815006375313, -0.027162564918398857, 0.028841640800237656, -0.007844436913728714, 0.030153419822454453, -0.07080107182264328, -0.009838340803980827, -0.03858378529548645, 0.05568937957286835, -0.03209485113620758, -0.012505623511970043, -0.00790565274655819, -0.054325129836797714, 0.004000924993306398, -0.024381592869758606, 0.01208585500717163, 0.0034390464425086975, 0.008058694191277027, -0.009278648532927036, 0.01170981116592884, -0.05505972355604172, -0.03651991859078407, -0.03275948762893677, -0.0010024175280705094, 0.021548151969909668, -0.009864576160907745, 0.03464844822883606, 0.03872370719909668, -0.0007427947130054235, -0.018015094101428986, 0.016353508457541466, 0.01679076813161373, 0.005728100426495075, -0.036869727075099945, 0.012129580602049828, -0.04103243723511696, -0.060306839644908905, -0.0004574828199110925, -0.0206211619079113, -0.00219504302367568, -0.017796464264392853, -0.06481935828924179, -0.07688771933317184, 0.005037230439484119, 0.004468793049454689, -0.08528310805559158, 0.01962420903146267, -0.035225629806518555, 0.01376493088901043, -0.001737013692036271, 0.05680876225233078, 0.058138031512498856, -0.014875570312142372, -0.022754987701773643, -0.03718455508351326, 0.007774475030601025, 0.01897706463932991, 0.002426790539175272, 0.014473292045295238, 0.02090100757777691, -0.021320777013897896, 0.020428767427802086, -0.013729950413107872, 0.009812104515731335, 0.0540103018283844, 0.029488785192370415, 0.018277449533343315, -0.0012297926004976034, 0.10277348756790161, -0.02051621861755848, 0.04729399457573891, 0.064644455909729, -0.019449306651949883, 0.04914797469973564, 0.016834493726491928, 0.06307031959295273, 0.029873574152588844, -0.07506871968507767, 0.03886362910270691, 0.0407525934278965, 0.009252412244677544, 0.03477087989449501, -0.00973339844495058, -0.02420669049024582, 0.003108915640041232, -0.006786268670111895, 0.02114587277173996, 0.02891160361468792, 0.03875868767499924, 0.015094200149178505, -0.03566288948059082, -0.023769430816173553, -0.01285543106496334, 0.08528310805559158, 0.06079657003283501, 0.04369097575545311, -0.025938237085938454, -0.04215182363986969, -0.0009472135570831597, -0.014438310638070107, 0.04879816994071007, 0.049357861280441284, 0.0065982467494904995, -0.04341113194823265, -0.010721604339778423, -0.04746890068054199, 0.008570287376642227, 0.004748638719320297, 0.04809855297207832, -0.047958631068468094, 0.06992655247449875, -0.03998301550745964, 0.002962433500215411, 0.01503298431634903, -0.003854443086311221, -0.008303559385240078, -0.05247114971280098, 0.00292963907122612, 0.01465694047510624, -0.07034631818532944, -0.044775381684303284, -0.03756934404373169, 0.0112113356590271, -0.04036780446767807, -0.02382190153002739, 0.0010674599325284362, 0.026427969336509705, 0.0020977528765797615, 0.062230780720710754, -0.026427969336509705, -0.03106291964650154, -0.014473292045295238, 0.03949328511953354, -0.08906102925539017, 0.02481885254383087, -0.053415630012750626, -0.03333666920661926, -0.0007766823400743306, -0.03907351568341255, 0.02345460280776024, -0.039318379014730453, 0.036869727075099945, 0.017910152673721313, 0.04571986198425293, 0.07919645309448242, 0.03274199739098549, -0.011814753524959087, -0.06856229901313782, 0.07828695327043533, -0.008635876700282097, 0.02803708426654339, 0.0015304085100069642, -0.053415630012750626, 0.025273602455854416, 0.01057293638586998, -0.033056825399398804, -0.017123084515333176, 0.06502924114465714, 0.0223002377897501, -0.029698669910430908, 0.07800710946321487, -0.028684228658676147, 0.01934436336159706, -0.0489380918443203, -0.044250667095184326, -0.022615065798163414, 0.022580083459615707, 0.028334420174360275, 0.02418920025229454, -0.0361701101064682, -0.03721953555941582, 0.01857478730380535, 0.04809855297207832, -0.07269003242254257, -0.04442557319998741, -0.03998301550745964, -0.03658987954258919, 0.013904854655265808, 0.0496726855635643, -0.04372595623135567, 0.02202039211988449, -0.03844385966658592, 0.01719304546713829, -0.027809709310531616, 0.010712859220802784, -0.034945785999298096, -0.01593373902142048, 0.015715109184384346, 0.05383539944887161, -0.06999651342630386, -0.05033732205629349, -0.003648931160569191, -0.013056570664048195, -0.06376993656158447, -0.04725901409983635, 0.006930564064532518, 0.010555446147918701, 0.040437765419483185, -0.015741344541311264, -0.009654691442847252, -0.029016545042395592, -0.016886964440345764, -0.005824297666549683, -0.0201314315199852, -0.03323172777891159, -0.038653746247291565, 0.016021190211176872, 0.01554895006120205, 0.019326873123645782, -0.03491080552339554, 0.013283945620059967, 0.028351910412311554, 0.04690920561552048, -0.01937934383749962, 0.006939309183508158, -0.04652441665530205, 0.05757834017276764, 0.018802162259817123, -0.027075111865997314, 0.011333768256008625, -0.08647245168685913, 0.055199649184942245, 0.022212786599993706, -0.026165612041950226, -0.03760432451963425, -0.024399084970355034, 0.0412423238158226, 0.033179257065057755, 0.054814860224723816, -0.03491080552339554, -0.02128579653799534, 0.015137926675379276, -0.011945931240916252, 0.030520718544721603, 0.008963821455836296, 0.010529210790991783, -0.07534857094287872, 0.004599970765411854, 0.010459248907864094, -0.012523113749921322, 0.009129979647696018, 0.014560744166374207, -0.012523113749921322, 0.05614412948489189, -0.09171956777572632, -0.037254516035318375, -0.0011248502414673567, 0.026060670614242554, -0.0014232798712328076, 0.013966070488095284, 0.009497277438640594, -0.03198990970849991, 0.03162261098623276, 0.02725001610815525, -0.008495953865349293, -0.006760032847523689, 0.02151317149400711, -0.04334116727113724, 0.06279047578573227, -0.06418970227241516, -0.014788119122385979, -0.013520065695047379, -0.001681263092905283, -0.01534781139343977, -0.02102344110608101, 0.06982161104679108, -0.06569387763738632, -0.03221728652715683, -0.0047617568634450436, -0.035103198140859604, -0.04176703467965126, 0.056249070912599564, 0.011237571015954018, 0.04827345535159111, -0.06128630042076111, 0.012575585395097733, -0.0414871871471405, 0.004665559623390436, 0.027792219072580338, -0.058767687529325485, 0.018312430009245872, 0.0247139111161232, 0.06733797490596771, -0.005749963223934174, -0.0800359919667244, -0.0694717988371849, -0.033931341022253036, -0.022702516987919807, -0.026165612041950226, -0.018522314727306366, 0.013528810814023018, 0.027547353878617287, 0.03200739994645119, 0.05156164988875389, 0.01082654669880867, -0.03284693881869316, 0.06565889716148376, 0.04879816994071007, 0.00846097245812416, -0.02457398734986782, 0.0012636801693588495, 0.028561795130372047, 0.02074359357357025, -0.0271275844424963, 0.004427253268659115, -0.025623410940170288, -0.006086653098464012, 0.04687422513961792, 0.026567891240119934, -0.041452206671237946, -0.029331371188163757, -0.010651643387973309, 0.002665097126737237, 0.024661440402269363, -0.01234821043908596, -0.0417320542037487, -0.05348559096455574, -0.016502175480127335, -0.04358603432774544, 0.061426226049661636, -0.01064289826899767, -0.007494628895074129, 0.044880323112010956, -0.020183902233839035 ]
37,706
healpy.pixelfunc
nside2pixarea
Give pixel area given nside in square radians or square degrees. Parameters ---------- nside : int healpix nside parameter, must be a power of 2, less than 2**30 degrees : bool if True, returns pixel area in square degrees, in square radians otherwise Returns ------- pixarea : float pixel area in square radian or square degree Notes ----- Raise a ValueError exception if nside is not valid. Examples -------- >>> import healpy as hp >>> hp.nside2pixarea(128, degrees = True) # doctest: +FLOAT_CMP 0.2098234113027917 >>> hp.nside2pixarea(256) 1.5978966540475428e-05 >>> hp.nside2pixarea(7) 0.021371378595848933
def nside2pixarea(nside, degrees=False): """Give pixel area given nside in square radians or square degrees. Parameters ---------- nside : int healpix nside parameter, must be a power of 2, less than 2**30 degrees : bool if True, returns pixel area in square degrees, in square radians otherwise Returns ------- pixarea : float pixel area in square radian or square degree Notes ----- Raise a ValueError exception if nside is not valid. Examples -------- >>> import healpy as hp >>> hp.nside2pixarea(128, degrees = True) # doctest: +FLOAT_CMP 0.2098234113027917 >>> hp.nside2pixarea(256) 1.5978966540475428e-05 >>> hp.nside2pixarea(7) 0.021371378595848933 """ pixarea = 4 * np.pi / nside2npix(nside) if degrees: pixarea = np.rad2deg(np.rad2deg(pixarea)) return pixarea
(nside, degrees=False)
[ -0.03319671005010605, -0.032674919813871384, 0.09593759477138519, -0.02236504666507244, 0.027852850034832954, 0.0422830730676651, 0.018388638272881508, 0.018910428509116173, 0.012549975886940956, -0.03695720434188843, 0.043686509132385254, 0.013602553866803646, -0.004669130779802799, 0.06531385332345963, 0.02250898815691471, -0.019198313355445862, -0.011371447704732418, 0.023462606593966484, -0.00005063988282927312, -0.024038376286625862, -0.008510592393577099, -0.01025589369237423, 0.017318066209554672, -0.067580945789814, 0.002532486105337739, 0.012064170092344284, 0.11133942753076553, -0.038108743727207184, -0.027528978884220123, -0.01586964726448059, -0.016391437500715256, 0.06927226483821869, 0.06110353767871857, -0.010201916098594666, 0.010651735588908195, 0.01903637871146202, 0.013188719749450684, 0.05718110874295235, -0.10802875459194183, 0.04001598060131073, -0.04455016553401947, -0.02218511886894703, 0.037496987730264664, 0.013179723173379898, -0.04588163271546364, 0.018388638272881508, -0.017641937360167503, -0.019198313355445862, -0.027367044240236282, 0.007934823632240295, -0.042211100459098816, -0.05318670719861984, -0.02295880950987339, 0.05808074772357941, -0.008533083833754063, 0.006639341823756695, -0.055921610444784164, 0.026989195495843887, 0.07161132991313934, 0.018964407965540886, -0.05631745234131813, -0.003085764590650797, 0.027708906680345535, -0.09205114841461182, 0.01771390810608864, 0.01712014526128769, -0.0027304068207740784, 0.019810069352388382, -0.004592661280184984, 0.03879246860742569, -0.007583963684737682, 0.017255092039704323, 0.014466208405792713, -0.006774288136512041, 0.04933624714612961, 0.03380846604704857, 0.016805272549390793, 0.06373048573732376, 0.06671728938817978, 0.07290681451559067, -0.0489044226706028, 0.0052224090322852135, 0.03535584732890129, 0.032063163816928864, -0.008465610444545746, 0.07758493721485138, 0.0346001498401165, -0.0054338243789970875, -0.045665718615055084, -0.030083956196904182, 0.023462606593966484, -0.016229502856731415, 0.024524182081222534, -0.027510985732078552, -0.021717306226491928, -0.012010191567242146, 0.0040168920531868935, -0.019540177658200264, 0.017740897834300995, -0.05750497803092003, -0.058800458908081055, -0.06592560559511185, 0.030299870297312737, -0.036147527396678925, 0.04185124486684799, -0.01155137550085783, 0.024344254285097122, 0.029256287962198257, -0.013791478238999844, 0.022401031106710434, -0.006396439392119646, -0.08082364499568939, -0.024722103029489517, -0.010372847318649292, 0.04030386358499527, 0.020565766841173172, -0.0013820716412737966, 0.03355656564235687, 0.024578159675002098, -0.03836064413189888, -0.04624148830771446, 0.041923217475414276, -0.033124737441539764, -0.011290480382740498, 0.04775288328528404, 0.06606955081224442, 0.009994998574256897, -0.02943621575832367, 0.012513990513980389, 0.06293880194425583, 0.001042457646690309, -0.0015125194331631064, 0.006679825950413942, -0.015860650688409805, -0.07042380422353745, -0.019522184506058693, -0.0062075150199234486, -0.0012561221374198794, 0.08075167238712311, -0.014880042523145676, -0.0059196301735937595, 0.03031786158680916, 0.041419416666030884, -0.029202308505773544, 0.012046176940202713, 0.030569761991500854, 0.007183623965829611, 0.019378241151571274, 0.018640536814928055, 0.003198219696059823, 0.0006308724405243993, -0.02734905108809471, -0.0018555071437731385, 0.02339063584804535, 0.020637737587094307, -0.03384445235133171, 0.026161527261137962, 0.023066764697432518, -0.02884245291352272, -0.02144741453230381, -0.02400238998234272, 0.0371011458337307, -0.00835315603762865, 0.012513990513980389, -0.02853657491505146, -0.0016800774028524756, -0.012945816852152348, -0.011533382348716259, 0.0316673219203949, 0.0157706867903471, -0.04724908247590065, -0.054446201771497726, -0.0616433210670948, -0.02400238998234272, 0.0008653410477563739, -0.0032454507891088724, -0.011227505281567574, -0.03204517066478729, -0.025729699060320854, -0.011002595536410809, 0.05239502340555191, -0.0552738718688488, 0.005046979524195194, 0.04577367380261421, 0.018235700204968452, 0.038252685219049454, 0.019252292811870575, -0.018073763698339462, 0.0011318593751639128, -0.044298265129327774, -0.008092259988188744, 0.0267013106495142, -0.08075167238712311, 0.005487802904099226, 0.031163522973656654, -0.08737301826477051, 0.0056767272762954235, 0.043686509132385254, -0.0687684714794159, -0.02159135602414608, -0.007669429760426283, 0.018442615866661072, 0.025153929367661476, -0.021465405821800232, 0.014331262558698654, -0.017327062785625458, -0.05243100970983505, -0.01057976484298706, 0.012028184719383717, -0.0003570445696823299, 0.060779668390750885, 0.0057217092253267765, -0.05437423288822174, -0.011884242296218872, -0.008843459188938141, 0.027600949630141258, 0.042498987168073654, 0.03467211872339249, -0.06221909075975418, 0.03233305737376213, -0.04706915467977524, 0.02718711644411087, 0.044946007430553436, 0.028608547523617744, 0.00988704152405262, 0.00009558672900311649, -0.020781680941581726, 0.01274789683520794, 0.005060473922640085, -0.020331859588623047, -0.03251298516988754, 0.05815272033214569, -0.02006196789443493, -0.006841761060059071, -0.004070870112627745, -0.004826567601412535, -0.022149132564663887, -0.004221559967845678, -0.00824070069938898, 0.08046378940343857, -0.01856856606900692, -0.01116453018039465, -0.05120749771595001, -0.024524182081222534, -0.017488999292254448, 0.032818861305713654, 0.006468410603702068, -0.004480206407606602, -0.005321369506418705, 0.02477608062326908, -0.00226709246635437, -0.04692521318793297, 0.03558975085616112, -0.022167125716805458, -0.053366634994745255, 0.045089948922395706, -0.1209835633635521, 0.0011133042862638831, -0.02051178738474846, -0.030893631279468536, 0.08082364499568939, -0.03893641382455826, 0.0024245292879641056, 0.0014799075433984399, 0.019989997148513794, 0.008276686072349548, 0.01640043407678604, -0.005712713114917278, -0.00539783900603652, -0.019072365015745163, 0.05181925371289253, 0.042822856456041336, 0.0259815976023674, -0.02643141895532608, 0.023588556796312332, -0.007633443921804428, 0.06301077455282211, 0.031631335616111755, 0.013845456764101982, 0.03215312585234642, -0.016391437500715256, -0.015860650688409805, -0.03062373958528042, 0.06142740696668625, 0.0113984365016222, -0.03551778197288513, 0.028626538813114166, 0.03562573716044426, 0.005447319243103266, -0.0009030135115608573, -0.007480505388230085, 0.02596360631287098, -0.07772888243198395, 0.040519777685403824, 0.00913134403526783, 0.05387043207883835, -0.06319069862365723, -0.060779668390750885, -0.014996996149420738, -0.008784983307123184, -0.027079159393906593, 0.024991994723677635, -0.029256287962198257, -0.03756896033883095, 0.046709299087524414, -0.013260691426694393, -0.04239102825522423, -0.023210708051919937, 0.030227897688746452, 0.01685025356709957, -0.006337962578982115, -0.06909234076738358, 0.017902832478284836, -0.017614947631955147, 0.03461813926696777, 0.01975608989596367, -0.0005932000349275768, -0.021177520975470543, 0.04473009333014488, 0.024524182081222534, 0.002269341377541423, 0.03037184104323387, 0.01871250942349434, 0.06149937957525253, 0.008470108732581139, 0.05268291011452675, -0.02490203082561493, 0.004655635915696621, 0.03245900571346283, -0.02841062657535076, -0.058188702911138535, -0.0032656926196068525, -0.031001588329672813, -0.048688508570194244, -0.030605746433138847, -0.06254296004772186, 0.04541381821036339, -0.016454411670565605, -0.01713813841342926, 0.028896432369947433, -0.01856856606900692, 0.03125348687171936, 0.02896840311586857, -0.017327062785625458, -0.0002263156493427232, -0.04451417922973633, -0.08111152797937393, -0.037964802235364914, 0.011839260347187519, 0.013161730952560902, 0.006234504282474518, -0.02567572146654129, -0.001957841217517853, -0.03533785417675972, -0.011128544807434082, -0.012585961259901524, 0.013674525544047356, -0.019378241151571274, -0.040411822497844696, -0.016643336042761803, 0.009392240084707737, -0.00667532766237855, -0.035553764551877975, 0.006742800585925579, -0.04300278425216675, 0.046421416103839874, -0.012010191567242146, -0.015599754638969898, 0.011776285246014595, -0.013674525544047356, -0.02342662215232849, -0.030533775687217712, -0.05710913613438606, -0.00026005212566815317, 0.01774989441037178, 0.015806671231985092, -0.013647536747157574, 0.014331262558698654, -0.04922829195857048, -0.003524339059367776, -0.03954816609621048, -0.022221103310585022, -0.004032635595649481, 0.04451417922973633, -0.004354256670922041, -0.0250459723174572, -0.0027101649902760983, 0.02747500129044056, -0.08967609703540802, -0.03580566495656967, -0.08744499087333679, 0.02749299257993698, -0.025927620008587837, -0.033592551946640015, -0.0005864527192898095, 0.022221103310585022, -0.020115947350859642, 0.03580566495656967, 0.02249099500477314, -0.03159534931182861, -0.01410635281354189, -0.04814872518181801, 0.03415032848715782, 0.020601753145456314, -0.02402038313448429, 0.008717509917914867, 0.013305673375725746, -0.02567572146654129, 0.04048379138112068, -0.09572167694568634, 0.021213507279753685, 0.05379846319556236, -0.026233498007059097, 0.009059373289346695, 0.024092353880405426, 0.01397140696644783, 0.029328258708119392, -0.021069565787911415, 0.014475204981863499, -0.04940821975469589, -0.03218911215662956, -0.05613752454519272, -0.01609455607831478, -0.03944021090865135, 0.05149538442492485, -0.09046778082847595, 0.05001997575163841, -0.015716707333922386, -0.001908360980451107, 0.07096359133720398, -0.026215504854917526, 0.013575565069913864, -0.010660732164978981, -0.025927620008587837, -0.029364245012402534, -0.017965806648135185, 0.07715310901403427, -0.012172127142548561, 0.0010396463330835104, 0.028626538813114166, 0.008303675800561905, 0.07114351540803909, -0.01517692394554615, 0.03875648230314255, -0.032225098460912704, -0.04937223345041275, -0.025711705908179283, -0.03242301940917969, 0.043578553944826126, -0.04033984988927841, -0.006616850849241018, -0.06225507706403732, 0.04469410702586174, -0.007556974422186613, 0.007606454659253359, -0.03618351370096207, -0.05304276570677757, 0.02853657491505146, -0.02277887985110283, 0.020781680941581726, 0.007795379031449556, 0.00014886228018440306, -0.016724305227398872, 0.025153929367661476, 0.007678425870835781, -0.039656125009059906, -0.010444818064570427, 0.003202717751264572, 0.044946007430553436, -0.012442018836736679, 0.0029080857057124376, 0.051711298525333405, -0.004790582228451967, -0.00850609503686428, 0.07189921289682388, 0.0016587110003456473, 0.010318868793547153, 0.003994401078671217, -0.03528387472033501, 0.011641339398920536, -0.08571768552064896, 0.044910021126270294, -0.0377848744392395, -0.03017392009496689, -0.006954215932637453, -0.045053962618112564, -0.040375836193561554, -0.02369651384651661, 0.009923027828335762, -0.024974001571536064, 0.021375441923737526, -0.02236504666507244, -0.0023503091651946306, 0.013791478238999844, 0.012082163244485855, 0.019414227455854416, 0.03245900571346283, -0.027564965188503265, 0.04397439584136009, 0.018928421661257744, -0.004768091253936291, -0.03713713213801384, 0.03233305737376213, -0.0019454711582511663, -0.002402038313448429, 0.038900427520275116, -0.05980805680155754, 0.007435523439198732, 0.02839263342320919, 0.030119942501187325, -0.01207316666841507, 0.010669728741049767, 0.06286682933568954, -0.042031172662973404, 0.0637664720416069, 0.051567357033491135, 0.044334251433610916, 0.06610553711652756, 0.01781286858022213, 0.017030181363224983, -0.008861452341079712, -0.02583765611052513, 0.03200918436050415, 0.10119149088859558, -0.0196121484041214, 0.07024388015270233, 0.018370645120739937, -0.024830060079693794, -0.003706516232341528, -0.029022380709648132, 0.011695317924022675, 0.010669728741049767, -0.009932023473083973, 0.003157735802233219, -0.018370645120739937, -0.000347485882230103, 0.02567572146654129, 0.00505597610026598, 0.07945618778467178, 0.020043974742293358, -0.03067771904170513, -0.06560173630714417, -0.02051178738474846, 0.051567357033491135, -0.0030655227601528168, 0.0016857001464813948, 0.01900039240717888, -0.04876047745347023, 0.06855255365371704, -0.051711298525333405, 0.06887642294168472, 0.017030181363224983, -0.0033758985809981823, -0.02945420891046524, 0.10032783448696136, 0.028644531965255737, -0.0056182509288191795, -0.00814174022525549, -0.06340661644935608, 0.01087664533406496, -0.028914423659443855, -0.057001180946826935, 0.006558374501764774, -0.036885231733322144, -0.034960005432367325, -0.012055173516273499, 0.011533382348716259, -0.00036519754212349653, 0.000810800411272794, -0.007570469286292791, -0.015518787316977978, 0.045845646411180496, 0.03875648230314255, -0.07405835390090942, -0.03580566495656967, 0.00900989305227995, 0.022562967613339424, -0.07161132991313934, 0.006769789848476648, -0.02416432648897171, -0.07042380422353745, -0.013107752427458763, -0.029778078198432922, 0.002050054259598255, -0.04411833733320236, 0.06131945177912712, -0.02643141895532608, 0.044478192925453186, 0.0779447928071022, 0.07330265641212463, 0.055201899260282516, -0.07693719863891602, 0.0746341198682785, 0.04044780880212784, -0.02191522717475891, -0.00017163441225420684, -0.05430226027965546, 0.002240103203803301, 0.007462512236088514, -0.0020612997468560934, -0.019558170810341835, 0.031019581481814384, -0.0052224090322852135, 0.004378996789455414, 0.08910033106803894, 0.024704109877347946, 0.06160733476281166, -0.039764080196619034, -0.09536182135343552, -0.047033172100782394, -0.001721685752272606, 0.016778282821178436, 0.032692912966012955, -0.0023705509956926107, -0.03370050713419914, 0.020781680941581726, 0.001822895254008472, -0.042211100459098816, -0.067580945789814, 0.008384643122553825, -0.03188323602080345, 0.017192117869853973, 0.029382236301898956, -0.047788869589567184, 0.04786083847284317, -0.05808074772357941, 0.0009389990591444075, 0.01791182905435562, -0.042067158967256546, -0.021663326770067215, -0.04271489754319191, -0.019432220607995987, -0.004804076626896858, -0.06225507706403732, -0.026071561500430107, 0.034222301095724106, 0.041275475174188614, -0.05696519464254379, -0.007822368294000626, 0.04782485216856003, 0.018910428509116173, -0.0023345653899013996, -0.003666032338514924, 0.012208112515509129, 0.049444206058979034, -0.0030880137346684933, -0.02972410060465336, -0.0003621050273068249, -0.08262292295694351, -0.03549978882074356, 0.012280084192752838, 0.006769789848476648, 0.029040373861789703, -0.043578553944826126, 0.07729705423116684, 0.08067969977855682, -0.0010700090788304806, 0.011614350602030754, -0.0014180572470650077, -0.04361454024910927, 0.03846859931945801, 0.009374246932566166, -0.04257095605134964, 0.05286283791065216, -0.004437473602592945, 0.025729699060320854, 0.0022738396655768156, 0.00036744665703736246, -0.05343860760331154, -0.019360249862074852, 0.07744099944829941, 0.022904830053448677, 0.03668731078505516, -0.04850858077406883, 0.010525786317884922, 0.025189915671944618, -0.03125348687171936, -0.014160331338644028, 0.0006078191800042987, 0.028158726170659065, -0.07643339782953262, -0.029238294810056686, 0.017902832478284836, 0.022616945207118988, 0.02490203082561493, 0.04829266667366028, 0.014934021048247814, 0.0023952911142259836, -0.060923609882593155, -0.026305468752980232, 0.0030835154466331005, -0.0024762586690485477, 0.015005992725491524, 0.028032777830958366, 0.0455937460064888, -0.06027586758136749, 0.0031442411709576845, 0.0597720704972744, -0.017920825630426407, 0.02549579367041588, 0.04152737557888031, -0.028302669525146484, 0.010183922946453094, -0.03594960644841194, 0.022526981309056282, -0.016346456483006477, 0.06088762357831001, 0.021213507279753685, -0.029184315353631973, 0.052323054522275925, -0.023300671949982643, -0.04300278425216675, 0.0026809268165379763, -0.014511190354824066, -0.02463213913142681, 0.03454617038369179, -0.008105754852294922, -0.016247496008872986, -0.014133341610431671, -0.028320662677288055, 0.0005012680776417255, 0.007502996362745762, 0.03245900571346283, -0.05523788556456566, -0.044946007430553436, -0.009644138626754284, 0.039800066500902176, 0.012028184719383717, -0.010309872217476368, -0.0368492491543293, -0.008371148258447647, -0.010570768266916275, 0.018001792952418327, 0.04904836416244507, -0.008501596748828888, 0.04239102825522423, 0.03227907791733742, 0.009257294237613678, 0.010084962472319603, -0.0685165673494339, 0.1048620194196701, 0.009401236660778522, 0.04843660816550255, -0.020565766841173172, -0.0019072364084422588, 0.010138940997421741, 0.010480804368853569, -0.0049525173380970955, 0.0051189507357776165, 0.0022974552121013403, 0.0028518582694232464, 0.07078365981578827, 0.02945420891046524, 0.05689322203397751, 0.020943615585565567, -0.013773486018180847, 0.017839858308434486, 0.005825167987495661, -0.005528286565095186, -0.031325459480285645, -0.012648936361074448, 0.052898820489645004, -0.053510576486587524, 0.04451417922973633, 0.0028878438752144575, 0.0020882890094071627, -0.004889542702585459, -0.021051572635769844 ]
37,707
healpy.pixelfunc
nside2resol
Give approximate resolution (pixel size in radian or arcmin) for nside. Resolution is just the square root of the pixel area, which is a gross approximation given the different pixel shapes Parameters ---------- nside : int healpix nside parameter, must be a power of 2, less than 2**30 arcmin : bool if True, return resolution in arcmin, otherwise in radian Returns ------- resol : float approximate pixel size in radians or arcmin Notes ----- Raise a ValueError exception if nside is not valid. Examples -------- >>> import healpy as hp >>> hp.nside2resol(128, arcmin = True) # doctest: +FLOAT_CMP 27.483891294539248 >>> hp.nside2resol(256) 0.0039973699529159707 >>> hp.nside2resol(7) 0.1461895297066412
def nside2resol(nside, arcmin=False): """Give approximate resolution (pixel size in radian or arcmin) for nside. Resolution is just the square root of the pixel area, which is a gross approximation given the different pixel shapes Parameters ---------- nside : int healpix nside parameter, must be a power of 2, less than 2**30 arcmin : bool if True, return resolution in arcmin, otherwise in radian Returns ------- resol : float approximate pixel size in radians or arcmin Notes ----- Raise a ValueError exception if nside is not valid. Examples -------- >>> import healpy as hp >>> hp.nside2resol(128, arcmin = True) # doctest: +FLOAT_CMP 27.483891294539248 >>> hp.nside2resol(256) 0.0039973699529159707 >>> hp.nside2resol(7) 0.1461895297066412 """ resol = np.sqrt(nside2pixarea(nside)) if arcmin: resol = np.rad2deg(resol) * 60 return resol
(nside, arcmin=False)
[ -0.028165992349386215, -0.004084432497620583, 0.04531288146972656, -0.019819840788841248, 0.039057813584804535, 0.056004684418439865, 0.036184847354888916, -0.04043974727392197, 0.009114398621022701, -0.013792063109576702, 0.04451281577348709, 0.04505831375718117, 0.01616498827934265, 0.03171174228191376, 0.017155980691313744, 0.016028612852096558, -0.007427894044667482, 0.03402102738618851, -0.016819588840007782, 0.02727500908076763, 0.017492372542619705, 0.0026774967554956675, -0.002463842509314418, -0.06189608946442604, -0.01940162293612957, -0.028220543637871742, 0.08451616019010544, -0.029329726472496986, -0.054913684725761414, 0.010237219743430614, 0.0054459101520478725, 0.08953476697206497, 0.036530330777168274, 0.021947290748357773, -0.015210363082587719, 0.014855788089334965, 0.029911592602729797, 0.01118275336921215, -0.1410299837589264, 0.023601975291967392, -0.08487983047962189, -0.009837186895310879, 0.05327718332409859, -0.01247377134859562, 0.003345734439790249, 0.006423264741897583, 0.007977940142154694, -0.025293026119470596, -0.046913016587495804, 0.03931238129734993, -0.014937613159418106, -0.07447896152734756, -0.044985581189394, 0.05029511824250221, 0.02287464030086994, 0.05364084988832474, -0.026147643104195595, 0.0773155614733696, 0.0814613625407219, -0.005950497929006815, -0.004382184706628323, -0.02047443948686123, 0.005509552080184221, -0.07371525466442108, -0.029802493751049042, 0.03043891116976738, 0.018492456525564194, -0.03562116250395775, -0.06313255429267883, 0.013355663046240807, -0.0243111252784729, -0.00988264475017786, -0.020674457773566246, -0.023347407579421997, 0.09004389494657516, 0.017255989834666252, 0.04371274635195732, -0.012182837352156639, 0.05455001816153526, 0.04585838317871094, -0.0016205901047214866, 0.02011077292263508, 0.06356895714998245, -0.030311627313494682, -0.02480207569897175, 0.0393851138651371, 0.03851231187582016, -0.014655771665275097, 0.01056452002376318, -0.03398466110229492, -0.009214406833052635, -0.020783556625247, 0.04283994808793068, 0.03731221333146095, -0.07306066155433655, 0.04520378261804581, -0.014082996174693108, -0.02863875962793827, -0.01854700595140457, -0.03471199423074722, -0.023838357999920845, 0.0009631487773731351, -0.0023797445464879274, -0.0034616533666849136, 0.03571207821369171, 0.0038003178779035807, 0.038694147020578384, 0.04123981297016144, -0.0340392105281353, 0.03587573021650314, -0.022401874884963036, -0.057168420404195786, -0.03000251017510891, 0.01896522380411625, 0.017565105110406876, 0.036821261048316956, -0.03043891116976738, 0.01655593141913414, 0.06876938790082932, -0.016155896708369255, -0.06684195250272751, 0.029457010328769684, -0.05360448360443115, -0.02756594307720661, 0.007705190218985081, 0.047131214290857315, 0.026729509234428406, -0.015883147716522217, -0.009700811468064785, 0.06124148890376091, 0.056077420711517334, 0.0040321554988622665, -0.03280274569988251, 0.03102077730000019, -0.001945617375895381, -0.004877680912613869, -0.025147559121251106, -0.00621870206668973, 0.06982402503490448, -0.026529492810368538, -0.022492790594697, 0.09717176854610443, 0.018228797242045403, -0.007332431618124247, -0.016674121841788292, 0.018783390522003174, 0.020510807633399963, 0.03365736082196236, 0.003648032434284687, 0.02251097373664379, -0.008041582070291042, -0.05018601566553116, 0.02762049250304699, 0.00766427768394351, 0.034730177372694016, -0.04916774854063988, 0.022965557873249054, 0.005827760323882103, -0.03843957930803299, 0.0035275679547339678, -0.018228797242045403, -0.007386981509625912, 0.02222004160284996, -0.018128789961338043, -0.022765541449189186, -0.024983908981084824, 0.013392029330134392, -0.038912344723939896, 0.005486822687089443, 0.0658964216709137, -0.03931238129734993, -0.04462191462516785, -0.07891569286584854, -0.052986253052949905, 0.02012895606458187, 0.0041526202112436295, -0.005573193542659283, -0.05836851894855499, -0.04291268065571785, 0.04378548264503479, 0.05698658525943756, -0.09178949892520905, 0.04687665030360222, 0.00020711960678454489, -0.020238056778907776, 0.07673369348049164, -0.005836851894855499, 0.001579677569679916, -0.006527818739414215, -0.05389541760087013, 0.03578481078147888, 0.050222381949424744, -0.10822723805904388, 0.011064562015235424, 0.004041247069835663, -0.08204323053359985, -0.012219204567372799, 0.04269448295235634, -0.036893997341394424, 0.002479752991348505, -0.005150430835783482, 0.07491535693407059, -0.00060175487305969, 0.003404830349609256, 0.036603063344955444, 0.03563934564590454, -0.018246980383992195, -0.010364503599703312, 0.039712414145469666, 0.01961982250213623, -0.0004477647307794541, 0.04189441353082657, -0.04574928060173988, -0.047785814851522446, -0.023765625432133675, 0.0141011793166399, 0.012601054273545742, 0.021619990468025208, -0.04153074696660042, -0.007355161011219025, -0.007614273577928543, 0.017319630831480026, 0.06244158744812012, 0.0372031107544899, -0.02596580795943737, -0.016283180564641953, -0.03931238129734993, 0.016755947843194008, 0.035948462784290314, -0.044985581189394, -0.04189441353082657, 0.031202610582113266, -0.0112463952973485, -0.03225724399089813, 0.06280525773763657, 0.009564436972141266, 0.003059346927329898, 0.04087614640593529, 0.004611749667674303, 0.10320863127708435, -0.06971492618322372, 0.004200351424515247, -0.10269950330257416, 0.008832557126879692, -0.023620158433914185, 0.016428647562861443, -0.005614106077700853, -0.007687006611377001, -0.019074322655797005, 0.05084061622619629, 0.004518559668213129, -0.06404171884059906, 0.025565775111317635, -0.0009421242866665125, 0.003916236571967602, 0.014573946595191956, -0.15521298348903656, 0.007846111431717873, -0.003891234751790762, -0.01096455380320549, 0.06604188680648804, -0.024147475138306618, 0.010446328669786453, 0.006996039766818285, -0.010328136384487152, -0.0032025405671447515, -0.030838944017887115, 0.011737345717847347, -0.029402459040284157, -0.011955545283854008, 0.010591795668005943, 0.03252999484539032, 0.01554675493389368, -0.030420726165175438, 0.003848049324005842, -0.005700476933270693, 0.012882895767688751, 0.014919430017471313, 0.028875142335891724, 0.03738494589924812, -0.04905864968895912, -0.02494754269719124, -0.0064369020983576775, 0.04178531467914581, 0.012491954490542412, -0.01641046442091465, 0.03931238129734993, 0.030911676585674286, -0.040003348141908646, 0.0325845442712307, -0.021529074758291245, 0.00288433232344687, -0.053422652184963226, -0.010337228886783123, 0.02834782563149929, 0.07393345981836319, -0.024202024564146996, -0.040148813277482986, -0.013555679470300674, 0.04291268065571785, -0.045131050050258636, 0.005236801691353321, -0.06935125589370728, -0.010473603382706642, 0.06360532343387604, 0.006500544026494026, -0.023183757439255714, -0.07404255867004395, 0.027802325785160065, 0.015710406005382538, -0.025765791535377502, -0.016283180564641953, -0.019510723650455475, -0.008564352989196777, 0.03462107852101326, 0.0045753829181194305, -0.011291854083538055, 0.006395989563316107, 0.054950051009655, 0.005345901940017939, 0.018874306231737137, 0.06015048548579216, 0.00506860576570034, 0.049022283405065536, 0.01467395480722189, 0.05924132093787193, -0.06673285365104675, 0.06513272225856781, 0.03982151299715042, -0.05480458587408066, -0.057241152971982956, -0.010873637162148952, -0.017946956679224968, -0.030984411016106606, -0.022747358307242393, -0.03587573021650314, 0.0821886956691742, -0.0425490140914917, 0.015274005010724068, -0.002702498808503151, 0.015137630514800549, 0.00364121375605464, -0.010891820304095745, -0.002811598824337125, -0.014255737885832787, 0.01060088723897934, -0.014146638102829456, -0.06793295592069626, 0.0033821011893451214, -0.009955378249287605, -0.06556912511587143, -0.04116708040237427, -0.01232830435037613, -0.008041582070291042, -0.02329285815358162, 0.04909501597285271, 0.015746772289276123, -0.05822305381298065, -0.013182921335101128, -0.034657444804906845, -0.039130546152591705, -0.007805198431015015, -0.022056391462683678, -0.037166744470596313, -0.03269364312291145, 0.031184427440166473, -0.01626499742269516, -0.027784142643213272, 0.035893913358449936, 0.02720227651298046, -0.04833131656050682, -0.014983071945607662, -0.043676380068063736, -0.002194501692429185, -0.004532197490334511, 0.04167621582746506, -0.02041989006102085, 0.009196223691105843, -0.04818585142493248, -0.011310037225484848, -0.0372031107544899, 0.004170803353190422, -0.03449379652738571, 0.03705764561891556, 0.021183591336011887, -0.03036617673933506, 0.018392447382211685, 0.026493126526474953, -0.051022451370954514, -0.03287547826766968, -0.038985081017017365, 0.005509552080184221, 0.042221713811159134, -0.0031934489961713552, -0.043167248368263245, -0.01020085345953703, 0.010910003446042538, 0.047422148287296295, 0.021219957619905472, 0.0015410380437970161, 0.0014273921260610223, -0.027965975925326347, 0.026311291381716728, 0.027456842362880707, -0.006255068816244602, -0.004818584769964218, 0.05847762152552605, 0.013864796608686447, 0.012955629266798496, -0.047058481723070145, 0.008627994917333126, -0.012482862919569016, 0.0022354142274707556, -0.013128370977938175, -0.015937697142362595, 0.01757419854402542, -0.028093259781599045, -0.02682042494416237, 0.020510807633399963, -0.06800568848848343, -0.04080341383814812, -0.0858253613114357, -0.004718576557934284, 0.005473185330629349, 0.031148061156272888, -0.09208042919635773, 0.06975129246711731, -0.011155478656291962, -0.0418216809630394, 0.08138862997293472, 0.004166257567703724, 0.036603063344955444, -0.012610145844519138, -0.05891402065753937, -0.0022115486208349466, -0.01687413826584816, 0.0290569756180048, 0.056950218975543976, -0.019019773229956627, -0.015210363082587719, -0.0020081226248294115, 0.05429545044898987, 0.009500795044004917, 0.008568898774683475, -0.014146638102829456, -0.06931488960981369, -0.011019104160368443, -0.010800903663039207, -0.02732955850660801, -0.04971325024962425, -0.04731304943561554, -0.06964219361543655, 0.014601221308112144, -0.0021274506580084562, 0.021947290748357773, -0.04080341383814812, -0.023256491869688034, 0.04233081266283989, -0.035948462784290314, -0.001291017048060894, 0.02112904004752636, -0.01852882280945778, 0.02258370816707611, -0.0024456591345369816, -0.00892347376793623, -0.03636667877435684, -0.01867428980767727, 0.016855955123901367, -0.022056391462683678, -0.05451365187764168, 0.010700895451009274, 0.06866028904914856, 0.01709233969449997, -0.025511225685477257, 0.06658738851547241, -0.009455336257815361, -0.021183591336011887, 0.039639681577682495, -0.02112904004752636, -0.00621870206668973, -0.029675209894776344, 0.013801154680550098, 0.026365842670202255, 0.006523272953927517, -0.028293276205658913, -0.0751335620880127, -0.06775112450122833, -0.04502194747328758, -0.04767671599984169, -0.0026297655422240496, 0.0033252781722694635, 0.0021615445148199797, -0.009196223691105843, 0.019219789654016495, 0.0021388153545558453, 0.020583540201187134, 0.048658616840839386, -0.060041386634111404, 0.02487480826675892, 0.013982987962663174, -0.0032070865854620934, -0.06367805600166321, 0.020019857212901115, 0.031129878014326096, -0.012937446124851704, 0.03129352629184723, -0.07029679417610168, 0.03289366140961647, 0.02547485940158367, 0.056150153279304504, 0.018201522529125214, -0.0030979865696281195, 0.04502194747328758, -0.033366426825523376, 0.055277351289987564, 0.03814864531159401, 0.03931238129734993, 0.05073151737451553, -0.006027777213603258, -0.010037203319370747, -0.0362212136387825, -0.03196630999445915, 0.04582201689481735, 0.04480374976992607, 0.0007364252232946455, 0.03469381108880043, -0.02258370816707611, -0.021110856905579567, -0.010719078592956066, -0.03065711073577404, 0.01660138927400112, 0.022110940888524055, 0.0113645875826478, -0.019347073510289192, 0.013619321398437023, 0.013755695894360542, 0.014719413593411446, 0.014110271818935871, 0.0656418576836586, 0.01818333938717842, -0.030857127159833908, -0.012655604630708694, -0.016546839848160744, 0.09440790116786957, 0.038257747888565063, -0.0008762096986174583, 0.016465013846755028, -0.0367121621966362, 0.08691636472940445, -0.0573866181075573, 0.021474523469805717, 0.04494921490550041, 0.04283994808793068, -0.019347073510289192, 0.04564018175005913, 0.023311041295528412, 0.03693036362528801, -0.0372031107544899, -0.03349371254444122, -0.01258287113159895, -0.014437571167945862, -0.014446663670241833, 0.046040214598178864, -0.00841434020549059, -0.055859219282865524, -0.01711961440742016, 0.026202192530035973, 0.008818919770419598, 0.016637755557894707, 0.009214406833052635, -0.008032490499317646, 0.05414998531341553, 0.040003348141908646, -0.027147725224494934, -0.022674623876810074, -0.01687413826584816, 0.04236718267202377, -0.09840822964906693, -0.005559556186199188, -0.03923964500427246, -0.025656692683696747, -0.023820174857974052, 0.022474607452750206, 0.003652578219771385, -0.04262174665927887, 0.08306149393320084, -0.02762049250304699, 0.03134807571768761, 0.027311375364661217, 0.05036785081028938, 0.018947040662169456, -0.051313385367393494, 0.043821848928928375, 0.03294821083545685, 0.024056557565927505, -0.021910924464464188, -0.05044058337807655, 0.04105798155069351, 0.027875060215592384, -0.027456842362880707, -0.029766127467155457, 0.012591962702572346, -0.013046545907855034, -0.009755361825227737, 0.0496041513979435, -0.01060088723897934, 0.05149521678686142, -0.0457129143178463, -0.043749116361141205, -0.023892907425761223, 0.008500711061060429, -0.004313997458666563, 0.0285660270601511, -0.011164570227265358, -0.02300192415714264, 0.014183004386723042, 0.013782971538603306, -0.042512647807598114, -0.08429796248674393, 0.006182335317134857, -0.0022876914590597153, 0.02171090804040432, 0.05316808447241783, -0.05393178388476372, 0.04898591712117195, -0.0009012117516249418, -0.012510137632489204, -0.009291686117649078, -0.053131718188524246, -0.04614931717514992, -0.010119028389453888, 0.0038685055915266275, 0.0032616364769637585, -0.06775112450122833, -0.012355579063296318, 0.03738494589924812, 0.03611211106181145, -0.034875646233558655, -0.0376758798956871, 0.026093091815710068, 0.016574114561080933, 0.04458554834127426, -0.04880408197641373, 0.022674623876810074, 0.016174079850316048, -0.0021388153545558453, 0.002352469600737095, -0.014255737885832787, -0.034730177372694016, -0.010109936818480492, 0.027293192222714424, 0.0243111252784729, 0.028020525351166725, -0.00887347012758255, 0.08386155962944031, 0.04094887897372246, -0.00007102866948116571, -0.034148313105106354, -0.029675209894776344, -0.018492456525564194, 0.06411445140838623, 0.02387472428381443, -0.005845943465828896, 0.003970786929130554, 0.001302381744608283, 0.025911258533596992, -0.03518476337194443, -0.0005977773107588291, -0.04982234910130501, -0.030038876459002495, 0.05076788365840912, 0.002893423894420266, 0.046985749155282974, -0.044767383486032486, 0.024983908981084824, 0.03131170943379402, -0.03029344417154789, 0.0054959142580628395, -0.0031502635683864355, 0.043458182364702225, -0.05800485238432884, -0.015355830080807209, -0.023892907425761223, 0.04087614640593529, 0.007350614760071039, 0.024129291996359825, 0.00150580785702914, -0.0008887107251212001, -0.038621414452791214, 0.029947960749268532, 0.03449379652738571, -0.007641548290848732, -0.004579928703606129, 0.004673118237406015, 0.01204646285623312, -0.043021779507398605, -0.021074490621685982, 0.0746244266629219, 0.011546420864760876, -0.0069824024103581905, 0.04349454864859581, -0.01954708993434906, 0.0318572111427784, -0.04207624867558479, -0.034511979669332504, -0.003918509464710951, 0.04225808009505272, 0.008868923410773277, -0.036821261048316956, 0.04724031686782837, -0.027656858786940575, -0.008255235850811005, -0.002829782199114561, -0.03382101282477379, -0.02732955850660801, 0.011137295514345169, 0.01582859642803669, 0.002827509306371212, -0.027365926653146744, -0.02574760839343071, 0.012419220991432667, -0.017228713259100914, 0.04174894839525223, -0.03982151299715042, -0.02531120926141739, 0.051022451370954514, 0.09782636910676956, 0.019456172361969948, -0.015346738509833813, -0.036821261048316956, -0.0008091586059890687, 0.022565525025129318, 0.008237052708864212, 0.02720227651298046, -0.018656106665730476, 0.029747944325208664, 0.05098608508706093, 0.053240817040205, 0.03533022850751877, -0.05360448360443115, 0.04189441353082657, 0.0282023586332798, 0.020438073202967644, -0.040657948702573776, -0.0056822937913239, 0.017519647255539894, -0.015892239287495613, -0.011373679153621197, -0.009168948978185654, 0.013082913123071194, 0.001052360748872161, 0.05374995246529579, 0.026493126526474953, 0.006041414570063353, 0.006177789531648159, -0.056004684418439865, 0.0011086154263466597, 0.024056557565927505, 0.014328471384942532, -0.007737011183053255, -0.0033184594940394163, 0.025129375979304314, -0.029875226318836212, 0.027893243357539177, -0.027511391788721085, -0.0034934740979224443, 0.00029491103487089276, -0.029020609334111214 ]
37,708
healpy.pixelfunc
order2npix
Give the number of pixels for the given resolution order. Parameters ---------- order : int the resolution order Returns ------- npix : int corresponding number of pixels Notes ----- A convenience function that successively applies order2nside then nside2npix to order. Examples -------- >>> import healpy as hp >>> hp.order2npix(7) 196608 >>> print(hp.order2npix(np.arange(8))) [ 12 48 192 768 3072 12288 49152 196608] >>> hp.order2npix(31) Traceback (most recent call last): ... ValueError: 2147483648 is not a valid nside parameter (must be a power of 2, less than 2**30)
def order2npix(order): """Give the number of pixels for the given resolution order. Parameters ---------- order : int the resolution order Returns ------- npix : int corresponding number of pixels Notes ----- A convenience function that successively applies order2nside then nside2npix to order. Examples -------- >>> import healpy as hp >>> hp.order2npix(7) 196608 >>> print(hp.order2npix(np.arange(8))) [ 12 48 192 768 3072 12288 49152 196608] >>> hp.order2npix(31) Traceback (most recent call last): ... ValueError: 2147483648 is not a valid nside parameter (must be a power of 2, less than 2**30) """ nside = order2nside(order) npix = nside2npix(nside) return npix
(order)
[ -0.07586105912923813, 0.013855129480361938, 0.005301209166646004, -0.006216589827090502, 0.07010215520858765, 0.0487729012966156, 0.00913603138178587, 0.019391849637031555, 0.0412721112370491, -0.03697071224451065, 0.06288576126098633, -0.0355665348470211, 0.029221082106232643, -0.04432930424809456, -0.03110516630113125, 0.030411966145038605, 0.059864114969968796, 0.004516914486885071, -0.009091596119105816, -0.001359740155749023, 0.026821540668606758, -0.015072675421833992, 0.031336233019828796, -0.0051412396132946014, -0.038463760167360306, -0.009624827653169632, 0.028865594416856766, -0.013161929324269295, -0.010282479226589203, -0.037041809409856796, -0.019143007695674896, 0.030962971970438957, 0.011953270994126797, 0.025915047153830528, -0.023942090570926666, 0.05165234953165054, 0.02129370905458927, 0.0172322615981102, -0.04944832623004913, 0.04536021873354912, -0.009838120080530643, -0.04411601275205612, 0.031211812049150467, -0.016254670917987823, -0.04528912156820297, 0.025470687076449394, 0.023248890414834023, -0.059828564524650574, 0.014877156354486942, 0.02308892086148262, 0.04557351395487785, -0.032100532203912735, -0.00010275813838234171, 0.00008033186895772815, -0.025755077600479126, 0.061534907668828964, 0.007140857633203268, -0.007385255303233862, 0.044044915586709976, -0.008002915419638157, -0.05278991162776947, 0.01648573763668537, 0.043760526925325394, -0.02737254649400711, 0.005305652506649494, 0.0093404371291399, -0.021187061443924904, 0.004192532040178776, -0.06508978456258774, -0.012815328314900398, -0.012628697790205479, 0.009051603265106678, 0.018449807539582253, -0.030660806223750114, 0.055562715977430344, 0.05087027698755264, 0.04450704902410507, 0.04084552824497223, 0.04827521741390228, 0.025968370959162712, -0.022271299734711647, 0.04692436382174492, 0.07294605672359467, 0.07756739854812622, 0.05218558385968208, 0.029149984940886497, 0.07998471707105637, 0.053109850734472275, 0.020173922181129456, -0.03208275884389877, -0.03761059045791626, -0.023284438997507095, 0.008051794953644276, 0.013570739887654781, -0.044044915586709976, 0.009269339963793755, 0.018983038142323494, -0.005989966448396444, -0.01933852583169937, -0.0404900386929512, -0.045075830072164536, -0.014290601946413517, 0.018236514180898666, -0.012477615848183632, -0.004221415612846613, -0.03307812288403511, 0.037930529564619064, 0.04820412024855614, -0.04301400110125542, -0.00515012675896287, -0.008185102604329586, 0.022609012201428413, 0.024155383929610252, -0.035744279623031616, 0.054673995822668076, -0.016041379421949387, 0.015916958451271057, 0.022377945482730865, 0.049092840403318405, 0.006372115574777126, -0.06939118355512619, -0.010815710760653019, -0.026661571115255356, 0.046888817101716995, -0.002926107496023178, 0.03467781841754913, 0.021560324355959892, 0.017481103539466858, 0.04671107232570648, 0.036384157836437225, 0.057233504951000214, -0.06811142712831497, -0.047279853373765945, -0.01765884831547737, 0.01154446043074131, 0.012308758683502674, 0.006567633710801601, -0.0629924088716507, 0.03647302836179733, -0.011233408935368061, -0.024741938337683678, 0.03825046867132187, 0.008753882721066475, 0.04927058517932892, 0.03732619807124138, 0.04400936886668205, 0.06772039085626602, 0.012406517751514912, 0.055313874036073685, -0.028190167620778084, 0.008020689710974693, 0.0037370636127889156, 0.008811648935079575, -0.005607817322015762, -0.004530245438218117, -0.04450704902410507, 0.025239620357751846, -0.048701804131269455, -0.00713641382753849, 0.01839648373425007, -0.01413952000439167, 0.008158440701663494, -0.0037237328942865133, -0.027816906571388245, -0.02243126928806305, -0.01011362299323082, 0.006692054215818644, -0.0448625385761261, 0.026661571115255356, 0.03693516179919243, -0.028207942843437195, -0.04432930424809456, 0.00007380534225376323, -0.04749314486980438, -0.015499260276556015, 0.012104352936148643, -0.007562999147921801, -0.011615557596087456, -0.024866359308362007, 0.07163075357675552, 0.06270801275968552, -0.040134552866220474, -0.026430504396557808, 0.025577334687113762, -0.00567002734169364, 0.07977142184972763, 0.055065032094717026, -0.012477615848183632, 0.04823967069387436, 0.016245784237980843, 0.047528695315122604, 0.04276515915989876, -0.01185551192611456, 0.026234986260533333, 0.05755344405770302, -0.03380687162280083, -0.016148025169968605, 0.0220402330160141, -0.049732718616724014, 0.014121745713055134, 0.02890114299952984, 0.009695924818515778, 0.007123083341866732, 0.029114436358213425, 0.01043356116861105, 0.04425820708274841, 0.006247695069760084, 0.0038548188749700785, 0.03114071488380432, 0.029736539348959923, 0.0432983934879303, -0.04059668630361557, -0.03089187480509281, -0.03160284832119942, -0.002848344622179866, 0.07262612134218216, -0.03490888327360153, 0.0267326682806015, 0.027017058804631233, 0.008620575070381165, 0.017569975927472115, 0.06313460320234299, -0.005505614448338747, 0.01621912233531475, -0.002206244971603155, -0.024155383929610252, -0.012299872003495693, -0.0034637823700904846, 0.015445937402546406, 0.03396684303879738, 0.02518629841506481, -0.003223828272894025, 0.0053367577493190765, -0.000730415980797261, 0.10621970146894455, -0.015481485985219479, -0.08048239350318909, 0.005163457710295916, 0.016672369092702866, 0.09633714705705643, -0.02788800373673439, 0.013997324742376804, 0.003954799845814705, -0.01907191053032875, -0.01024693064391613, 0.034162361174821854, -0.02632385864853859, -0.012051030062139034, -0.0037881648167967796, 0.02998538129031658, -0.0412721112370491, -0.07241282612085342, 0.01198881957679987, -0.03672187030315399, 0.01983620971441269, 0.05577600747346878, -0.05133241042494774, 0.0017629964277148247, 0.016672369092702866, -0.010069186799228191, -0.029469924047589302, 0.06288576126098633, 0.00019996178161818534, -0.06782703846693039, -0.005901094526052475, -0.021471451967954636, -0.0035770940594375134, 0.022733433172106743, -0.01709895394742489, 0.04386717081069946, -0.011500024236738682, 0.07813617587089539, 0.04436485469341278, -0.011891060508787632, 0.004443595185875893, -0.07962922751903534, 0.024208705872297287, 0.04308509826660156, -0.014592766761779785, 0.03999235853552818, 0.016272446140646935, 0.015908071771264076, -0.06324125081300735, 0.028741173446178436, -0.027159253135323524, -0.00045380217488855124, 0.013037508353590965, 0.012548713013529778, -0.011108987964689732, -0.03853485733270645, 0.020582733675837517, 0.04827521741390228, -0.08993836492300034, -0.02100931853055954, -0.0417342446744442, -0.007869606837630272, -0.06569410860538483, -0.011500024236738682, -0.016556836664676666, 0.11126762628555298, -0.03089187480509281, -0.0021784724667668343, -0.02829681523144245, 0.004259185865521431, 0.06327679753303528, 0.08233093470335007, 0.010833485051989555, -0.010842372663319111, 0.0000392286128771957, 0.02296449989080429, -0.008509485051035881, -0.01971178874373436, -0.007340819109231234, -0.0014963806606829166, 0.062032587826251984, -0.0038525969721376896, -0.026110565289855003, 0.022875627502799034, 0.05741124972701073, 0.061143871396780014, 0.014166181907057762, 0.04191198945045471, -0.026430504396557808, 0.040667783468961716, -0.018965264782309532, 0.06946227699518204, -0.04887954890727997, 0.03921028599143028, 0.05147460848093033, -0.03631306067109108, -0.054282959550619125, -0.016281332820653915, -0.03928138315677643, 0.01762329787015915, 0.04120101407170296, -0.037432845681905746, 0.06178374961018562, -0.02607501670718193, 0.016254670917987823, 0.026803767308592796, -0.012219887226819992, -0.039636868983507156, -0.04827521741390228, 0.024919681251049042, -0.002277342602610588, -0.05015930160880089, -0.03732619807124138, -0.01724115014076233, -0.027550291270017624, 0.05922423675656319, -0.023568829521536827, -0.00006405026215361431, -0.0030571934767067432, -0.00856725126504898, 0.010620192624628544, 0.05406966805458069, 0.023373311385512352, -0.02580840140581131, 0.004914616234600544, 0.05069253593683243, 0.0007343041361309588, -0.006696498021483421, 0.025204071775078773, -0.06132161244750023, -0.020156148821115494, -0.0106290802359581, 0.03304257243871689, 0.013019734062254429, -0.02996760606765747, 0.02566620521247387, -0.04240967333316803, -0.02721257694065571, -0.05307430028915405, 0.01445057149976492, 0.02346218191087246, 0.030251996591687202, -0.0756477639079094, -0.008269530721008778, -0.032633762806653976, -0.03686406463384628, -0.016787903383374214, -0.01749887876212597, -0.022502366453409195, 0.05755344405770302, -0.04511138051748276, -0.0064965360797941685, -0.00047268744674511254, 0.007598547730594873, -0.04898619279265404, -0.0322071798145771, -0.03254489228129387, 0.014637202955782413, 0.03451784700155258, -0.05808667838573456, 0.017721056938171387, -0.003299369476735592, -0.021115964278578758, 0.03410903736948967, 0.022271299734711647, -0.03956577181816101, -0.006785369943827391, -0.041698697954416275, 0.018894167616963387, 0.019871758297085762, -0.002735032932832837, 0.009042716585099697, -0.0378238819539547, -0.003230493748560548, 0.020689379423856735, -0.0920712947845459, -0.022609012201428413, 0.023266663774847984, 0.043511684983968735, -0.07429691404104233, 0.015605906024575233, 0.02436867542564869, -0.03316699340939522, 0.009749247692525387, -0.00809623021632433, -0.042480770498514175, 0.0037859431467950344, -0.030536387115716934, 0.04176979511976242, -0.001007585204206407, 0.0523633249104023, -0.07106197625398636, 0.023959865793585777, -0.03874814882874489, -0.01999617926776409, 0.12292762100696564, -0.09555507451295853, 0.029114436358213425, -0.019143007695674896, 0.027923552319407463, 0.05876210331916809, -0.01802322268486023, 0.03640193119645119, 0.0417342446744442, -0.03238492086529732, 0.022893402725458145, -0.011500024236738682, 0.08439276367425919, 0.0008631683886051178, 0.019534043967723846, -0.03062525764107704, -0.02397763915359974, -0.02388876862823963, -0.0005876654759049416, -0.02259123884141445, -0.034428976476192474, 0.018360935151576996, -0.06189039349555969, 0.08012691140174866, -0.0250085536390543, 0.024297578260302544, -0.042231928557157516, -0.05993521213531494, 0.01853867992758751, -0.006892016157507896, 0.008136223070323467, -0.0000441235133621376, 0.011971045285463333, -0.02721257694065571, -0.08382397890090942, 0.0031305127777159214, -0.0293099544942379, -0.045324672013521194, 0.00587443308904767, 0.021080415695905685, 0.010273592546582222, 0.030660806223750114, 0.05812222510576248, -0.02906111255288124, -0.028172394260764122, 0.023444408550858498, 0.004079220350831747, -0.015028239227831364, 0.054922837764024734, -0.0008681674371473491, -0.03160284832119942, -0.058833200484514236, 0.0069853318855166435, 0.00015983056800905615, -0.013810694217681885, -0.02762138843536377, -0.030518611893057823, -0.027550291270017624, 0.004114769399166107, -0.03382464498281479, -0.06288576126098633, 0.03544211387634277, -0.017027856782078743, -0.028083521872758865, -0.02891891822218895, 0.09804348647594452, -0.004807970020920038, 0.04575125500559807, 0.015472598373889923, -0.02763916179537773, -0.016805676743388176, 0.007940704934298992, -0.006167710293084383, 0.08716556429862976, 0.04237412288784981, 0.006261025555431843, -0.015285967849195004, 0.02349773235619068, 0.015765875577926636, 0.017712170258164406, -0.002091822447255254, -0.026643797755241394, 0.0070430985651910305, 0.004503583535552025, -0.050656985491514206, 0.03778833523392677, 0.027568064630031586, -0.02698151022195816, 0.03386019542813301, -0.002592837903648615, 0.027923552319407463, 0.04024119675159454, -0.04959052428603172, 0.03293592855334282, 0.0850326418876648, -0.0019274094374850392, 0.03074967861175537, -0.0019885089714080095, -0.010104735381901264, -0.0015541474567726254, 0.03464226797223091, -0.01972956210374832, 0.024226481094956398, 0.03316699340939522, 0.019907306879758835, 0.01568589173257351, -0.037930529564619064, -0.01933852583169937, -0.0012453175149857998, 0.07678532600402832, 0.02518629841506481, -0.00652319798246026, 0.014486120082437992, 0.005381193943321705, -0.004923503380268812, 0.042480770498514175, 0.03247379511594772, -0.006914234254509211, -0.01775660738348961, 0.007274165283888578, -0.037290651351213455, -0.01827206276357174, -0.0259505957365036, 0.0440804660320282, 0.00389258936047554, 0.05435405671596527, 0.042480770498514175, -0.006305461749434471, -0.012913087382912636, -0.006607626099139452, -0.05904649198055267, -0.04134320840239525, -0.030038703233003616, -0.0028439010493457317, -0.059473078697919846, -0.10117177665233612, -0.041023269295692444, -0.012797554023563862, -0.08289971202611923, -0.019534043967723846, 0.009038272313773632, -0.021204836666584015, 0.012033255770802498, 0.000037770558265037835, 0.027674710378050804, -0.04162760078907013, -0.030660806223750114, 0.07884715497493744, -0.06149935722351074, 0.05641588568687439, -0.023444408550858498, -0.02609279192984104, -0.009891442954540253, 0.031940560787916183, -0.025915047153830528, -0.0061277179047465324, 0.042231928557157516, -0.0053500887006521225, 0.004301400389522314, 0.05716240778565407, -0.029132209718227386, -0.0018118759617209435, -0.06082393229007721, 0.06007740646600723, 0.011366716586053371, 0.014574992470443249, -0.022822305560112, -0.07013770937919617, -0.005510058254003525, 0.021115964278578758, -0.04521802440285683, -0.006652061827480793, 0.07507898658514023, 0.00007297216507140547, -0.014210617169737816, 0.062032587826251984, -0.07458130270242691, -0.003166061593219638, -0.03601089492440224, -0.00017718835442792624, -0.050905827432870865, 0.00687424186617136, 0.0028283484280109406, -0.0014619427965953946, -0.0005248996894806623, -0.05488728731870651, -0.0011875508353114128, 0.04397381842136383, -0.013295236974954605, -0.06402332335710526, -0.010104735381901264, -0.08083788305521011, -0.004656887613236904, 0.012104352936148643, -0.05488728731870651, 0.031460653990507126, 0.02388876862823963, 0.02683931589126587, -0.000695978116709739, 0.03140733018517494, 0.02191581204533577, 0.014219504781067371, 0.018129868432879448, 0.034535620361566544, -0.07422581315040588, -0.025204071775078773, -0.05918869003653526, -0.04098772257566452, -0.022360170260071754, -0.056735824793577194, 0.01775660738348961, 0.038712602108716965, 0.027941327542066574, -0.005301209166646004, -0.023444408550858498, 0.018574228510260582, -0.05666472762823105, 0.005816665943711996, -0.026608247309923172, -0.0036792969331145287, -0.030038703233003616, 0.015721440315246582, -0.026945961639285088, -0.019285203889012337, -0.023639926686882973, -0.02570175565779209, 0.06238807737827301, 0.015783650800585747, 0.017223374918103218, -0.02683931589126587, -0.07415471971035004, 0.016432415693998337, 0.055420517921447754, -0.04852405935525894, 0.025132974609732628, -0.02570175565779209, 0.059473078697919846, 0.013686273247003555, -0.03519327566027641, -0.07280386239290237, -0.058442164212465286, 0.02463529258966446, 0.05083473026752472, 0.011215634644031525, -0.04137875884771347, -0.0018029888160526752, 0.02115151286125183, -0.03334473818540573, 0.005261216778308153, 0.013961776159703732, 0.024333126842975616, -0.047635339200496674, -0.01445057149976492, 0.04496918246150017, -0.029505472630262375, 0.0016019160393625498, -0.014566104859113693, 0.0022951168939471245, 0.005470065865665674, -0.051687899976968765, -0.021347030997276306, -0.006945339497178793, 0.05758899450302124, 0.04002790525555611, 0.04436485469341278, 0.024973005056381226, -0.026039468124508858, -0.022733433172106743, 0.05798003077507019, -0.0026306083891540766, -0.008034019730985165, 0.0027483636513352394, -0.04308509826660156, 0.015614793635904789, -0.020262794569134712, -0.03592202439904213, -0.009047159925103188, -0.04141430929303169, -0.004090329632163048, -0.02436867542564869, 0.05588265508413315, -0.07180850207805634, -0.03213607892394066, 0.0006382113788276911, -0.04201863706111908, -0.052825458347797394, 0.047635339200496674, -0.006243251264095306, 0.045644611120224, -0.05936643108725548, 0.023764347657561302, 0.001877418952062726, 0.04777753725647926, 0.019925080239772797, -0.016654595732688904, -0.038037173449993134, 0.029860960319638252, 0.06811142712831497, 0.01127784512937069, -0.07230617851018906, -0.001969623612239957, -0.01354407798498869, -0.05204338580369949, -0.021364806219935417, -0.03554876148700714, -0.012282096780836582, 0.013668498955667019, 0.029363276436924934, 0.00447692209854722, 0.017072292044758797, -0.04400936886668205, 0.022609012201428413, -0.0186808742582798, 0.008642792701721191, -0.009296000935137272, 0.027905777096748352, -0.01185551192611456, 0.0412721112370491, -0.02799464948475361, -0.003103851340711117, 0.022484591230750084, 0.010717951692640781, 0.03711290657520294, 0.00850504171103239, -0.05879765376448631, -0.021631421521306038, -0.029132209718227386, 0.03137178346514702, 0.016805676743388176, -0.010815710760653019, -0.020547185093164444, -0.07458130270242691, -0.04479144141077995, -0.05886875092983246, 0.02268010936677456, -0.0001621912233531475, -0.05716240778565407, 0.019551819190382957, -0.009624827653169632 ]
37,709
healpy.pixelfunc
order2nside
Give the nside parameter for the given resolution order. Parameters ---------- order : int the resolution order Returns ------- nside : int the nside parameter corresponding to order Notes ----- Raise a ValueError exception if order produces an nside out of range. Examples -------- >>> import healpy as hp >>> hp.order2nside(7) 128 >>> print(hp.order2nside(np.arange(8))) [ 1 2 4 8 16 32 64 128] >>> hp.order2nside(31) Traceback (most recent call last): ... ValueError: 2147483648 is not a valid nside parameter (must be a power of 2, less than 2**30)
def order2nside(order): """Give the nside parameter for the given resolution order. Parameters ---------- order : int the resolution order Returns ------- nside : int the nside parameter corresponding to order Notes ----- Raise a ValueError exception if order produces an nside out of range. Examples -------- >>> import healpy as hp >>> hp.order2nside(7) 128 >>> print(hp.order2nside(np.arange(8))) [ 1 2 4 8 16 32 64 128] >>> hp.order2nside(31) Traceback (most recent call last): ... ValueError: 2147483648 is not a valid nside parameter (must be a power of 2, less than 2**30) """ nside = 1 << order check_nside(nside, nest=True) return nside
(order)
[ -0.06100177392363548, 0.06047860532999039, 0.014648796990513802, -0.016009042039513588, 0.042865168303251266, 0.03440723195672035, 0.012163733132183552, -0.00792604498565197, 0.022374292835593224, -0.03465138003230095, 0.02080477960407734, -0.010227998718619347, 0.019339898601174355, -0.05838591977953911, 0.007184885907918215, 0.04412078112363815, 0.05123591050505638, 0.022426610812544823, -0.013044404797255993, 0.004322702996432781, 0.021362828090786934, 0.0049570482224226, 0.013750686310231686, -0.05650250241160393, -0.02464136853814125, -0.04115614295005798, 0.019357338547706604, -0.00043815598473884165, -0.050015177577733994, -0.0396215058863163, 0.020543193444609642, 0.016009042039513588, -0.0052753109484910965, 0.028303567320108414, 0.01232940424233675, 0.02765832282602787, 0.0245367344468832, 0.033116742968559265, -0.08112642914056778, 0.03545357659459114, -0.015189407393336296, -0.04467882961034775, 0.04223736375570297, -0.0035379459150135517, -0.06511738896369934, 0.014169222675263882, 0.038958825170993805, -0.05154981464147568, -0.01885160617530346, 0.013401905074715614, 0.028041983023285866, -0.0490734688937664, 0.00935604702681303, 0.004065477289259434, 0.004512352403253317, 0.06281543523073196, 0.011056353338062763, -0.008771838620305061, 0.06281543523073196, 0.028321007266640663, -0.028041983023285866, 0.022513804957270622, 0.027030518278479576, -0.008981107734143734, -0.011204585433006287, 0.035139672458171844, -0.03569772094488144, 0.037982236593961716, -0.04056321457028389, 0.0027074115350842476, 0.008998546749353409, 0.005863878410309553, -0.020211851224303246, 0.01686355471611023, 0.04537639021873474, 0.051828838884830475, 0.02087453566491604, 0.03255869448184967, 0.055839817970991135, 0.03259357437491417, -0.0398307740688324, -0.0037559340707957745, 0.06281543523073196, 0.07205812633037567, 0.016139835119247437, 0.04446956142783165, 0.051689326763153076, 0.045097365975379944, 0.018537703901529312, -0.04349297657608986, -0.05720006301999092, -0.01436977181583643, -0.0018289197469130158, 0.011928305961191654, -0.050015177577733994, 0.029419666156172752, 0.018154043704271317, -0.06229226291179657, -0.05144517868757248, -0.054828353226184845, -0.02574002929031849, -0.006474244873970747, 0.03878443315625191, -0.006574519444257021, -0.007232843432575464, -0.08342838287353516, 0.027326980605721474, 0.02176392637193203, -0.0790337473154068, -0.007001776248216629, 0.022217342630028725, 0.007045373786240816, 0.02387405000627041, -0.030082350596785545, 0.023193927481770515, 0.01588696800172329, 0.02851283736526966, 0.034110769629478455, 0.048829320818185806, 0.016532214358448982, -0.05053834989666939, -0.0003509607631713152, -0.04875956475734711, -0.006221378687769175, 0.011448732577264309, 0.041086386889219284, -0.010463425889611244, 0.004555950406938791, 0.0060731470584869385, 0.03627321124076843, 0.09779815375804901, -0.03749394416809082, -0.03372710943222046, -0.014770870096981525, -0.0025504601653665304, 0.018485385924577713, -0.014552881941199303, -0.03280284255743027, 0.03867979720234871, 0.00027452869107946754, -0.015233004465699196, 0.03065783903002739, 0.025931857526302338, 0.014247698709368706, 0.03053576499223709, 0.07331374287605286, 0.0005111819482408464, -0.00039973558159545064, 0.06815177947282791, 0.02774551883339882, 0.01573873683810234, 0.025408687070012093, 0.026245761662721634, 0.0006163612124510109, -0.003784272586926818, -0.05207298323512077, 0.018241239711642265, -0.04670175909996033, -0.025181978940963745, 0.044922977685928345, 0.011666719801723957, -0.026420151814818382, 0.025059906765818596, -0.015294041484594345, 0.00008992006769403815, 0.001124818343669176, 0.011832390911877155, -0.03187857195734978, 0.03676150366663933, 0.030413692817091942, -0.028146617114543915, -0.023455513641238213, -0.038889069110155106, -0.03728467598557472, -0.008052478544414043, -0.012032940052449703, 0.009966413490474224, -0.00466058449819684, -0.03166930377483368, 0.009678669273853302, 0.02260100096464157, -0.022426610812544823, -0.012242208234965801, -0.0032807202078402042, -0.009347327053546906, 0.04719005152583122, 0.029088325798511505, -0.011649280786514282, 0.042830292135477066, -0.022949781268835068, 0.050677862018346786, 0.03651735931634903, -0.029297593981027603, -0.009757145307958126, 0.047922492027282715, -0.03861004114151001, -0.002155901864171028, 0.001195664401166141, -0.014308735728263855, 0.017613433301448822, 0.036238331347703934, 0.05011981353163719, -0.0012338123051449656, 0.017351849004626274, 0.0392029695212841, 0.07617374509572983, 0.008763119578361511, -0.021170999854803085, 0.03815662860870361, -0.008610527962446213, 0.03857516497373581, -0.012529953382909298, -0.016410140320658684, -0.013663490302860737, 0.01567769981920719, 0.02471112459897995, -0.04453931748867035, 0.03679638355970383, 0.020403681322932243, 0.01881672814488411, -0.003727595554664731, 0.04830615222454071, 0.03815662860870361, 0.02361246570944786, -0.01373324729502201, -0.03182625398039818, -0.002589697949588299, -0.015093492344021797, 0.005366865545511246, 0.021048925817012787, -0.018485385924577713, 0.026280639693140984, 0.0016730582574382424, 0.006609397474676371, 0.09710059314966202, -0.012181172147393227, -0.10484353452920914, -0.03534894064068794, -0.018188921734690666, 0.0688493475317955, -0.03679638355970383, -0.011762634851038456, -0.049631517380476, -0.01860745996236801, 0.003710156539455056, 0.06239689886569977, -0.0001032037180266343, 0.000010763159480120521, 0.008562570437788963, 0.05120103061199188, -0.04841078445315361, -0.06560568511486053, -0.0061777811497449875, -0.010812207125127316, 0.005179395899176598, 0.05329371616244316, -0.08217277377843857, 0.013506539165973663, -0.006936379708349705, -0.0035924429539591074, -0.04719005152583122, 0.030030032619833946, -0.04150492325425148, -0.025321491062641144, 0.021205877885222435, 0.007982722483575344, -0.02169417031109333, -0.015041175298392773, 0.010384950786828995, 0.011902146972715855, -0.005345067009329796, 0.05646762251853943, 0.028216373175382614, 0.0023695300333201885, 0.008030680008232594, -0.057688355445861816, 0.03756370022892952, 0.04153980314731598, -0.02680381014943123, 0.02558307722210884, 0.044085901230573654, 0.011134829372167587, -0.06717519462108612, 0.044085901230573654, -0.036970771849155426, 0.042132727801799774, 0.02057807147502899, -0.022897465154528618, 0.018415629863739014, -0.013140319846570492, 0.02171161025762558, 0.04335346445441246, -0.004651864990592003, 0.01593056693673134, -0.01688099466264248, -0.009940254501998425, -0.046039074659347534, -0.012233489193022251, 0.003295979229733348, 0.08447472751140594, -0.03362247720360756, 0.004608267452567816, 0.006478604860603809, 0.005488939117640257, 0.08014984428882599, 0.037947360426187515, 0.0199153870344162, -0.01237300131469965, 0.03627321124076843, -0.022426610812544823, -0.04827127233147621, -0.0024501855950802565, -0.010463425889611244, 0.01482318714261055, 0.06351299583911896, 0.02282770909368992, -0.036168575286865234, -0.00888955220580101, 0.040911994874477386, 0.08405619114637375, -0.0000968003150774166, 0.030239302664995193, -0.023368319496512413, 0.016305506229400635, -0.03749394416809082, 0.07219763845205307, -0.05643274635076523, 0.03482577204704285, 0.07366251945495605, -0.02092685177922249, -0.01776166632771492, -0.044922977685928345, -0.03477345407009125, 0.005323268007487059, 0.01784886047244072, -0.03062296099960804, 0.08063814043998718, -0.030884547159075737, 0.029105763882398605, 0.01043726783245802, 0.02469368651509285, -0.018572581931948662, -0.0197061188519001, 0.019130630418658257, 0.014082027599215508, -0.023525269702076912, -0.02870466560125351, -0.02357758767902851, 0.01771806925535202, 0.08454448729753494, -0.027239786460995674, -0.004130873363465071, -0.006997416261583567, -0.02652478590607643, 0.020543193444609642, 0.024955270811915398, 0.03648247942328453, -0.022339414805173874, -0.03135539963841438, 0.0008054658537730575, -0.031913451850414276, -0.026420151814818382, 0.008126594126224518, 0.011108671315014362, -0.0198281928896904, -0.008479734882712364, 0.016157273203134537, -0.046841271221637726, -0.0045428709127008915, 0.019427094608545303, -0.0694771483540535, -0.06455934047698975, -0.002019659150391817, 0.0026071369647979736, 0.016410140320658684, 0.07170934975147247, -0.042969804257154465, -0.02847795933485031, 0.021188437938690186, -0.050817374140024185, -0.03735443204641342, -0.03526174649596214, -0.003991361241787672, 0.049980297684669495, -0.03151235356926918, -0.02376941591501236, 0.017299531027674675, 0.02085709571838379, -0.036238331347703934, -0.029192959889769554, -0.0495617613196373, 0.023368319496512413, 0.0393424816429615, -0.025129662826657295, -0.006496043875813484, 0.008710802532732487, -0.05064298212528229, 0.005353786516934633, 0.03234942629933357, -0.0196363627910614, 0.012948489747941494, -0.027449054643511772, 0.002879622159525752, 0.04349297657608986, -0.015512029640376568, 0.015154529362916946, -0.032052963972091675, 0.030186984688043594, 0.038051992654800415, -0.09263619780540466, -0.06490811705589294, 0.012024221010506153, 0.008601807989180088, -0.03425028175115585, 0.03554077073931694, 0.01439593080431223, -0.0019531729631125927, 0.03194832801818848, -0.0019673421047627926, -0.0693725124001503, 0.01772678829729557, -0.060792505741119385, 0.08196350187063217, 0.006094945594668388, 0.06623348593711853, -0.05643274635076523, 0.03833101689815521, -0.03679638355970383, -0.021519780158996582, 0.10428547859191895, -0.08112642914056778, 0.03672662749886513, -0.036238331347703934, -0.017613433301448822, 0.06040884926915169, -0.00846229586750269, 0.036238331347703934, 0.019252704456448555, -0.00010436177399242297, 0.010184401646256447, -0.03840077295899391, 0.0991235226392746, -0.03569772094488144, 0.01792733743786812, -0.006714032031595707, -0.049840785562992096, 0.01597416400909424, -0.013053123839199543, 0.04366736486554146, -0.07191861420869827, 0.0025831584352999926, -0.03322137892246246, 0.04185370355844498, -0.013053123839199543, 0.012250928208231926, -0.03857516497373581, -0.05608396604657173, 0.0006387049797922373, -0.004634425975382328, -0.020543193444609642, -0.00893750973045826, -0.029628936201334, -0.03588955104351044, -0.01040238980203867, -0.022182462736964226, -0.05071273818612099, -0.018380751833319664, 0.004268205724656582, 0.03390150144696236, 0.0014071128098294139, 0.028129177168011665, 0.04544614627957344, 0.010541901923716068, -0.014082027599215508, 0.024972710758447647, -0.0026441949885338545, -0.006661714520305395, -0.007568545173853636, -0.01439593080431223, -0.04736444354057312, -0.059606652706861496, 0.017299531027674675, -0.04701566323637962, -0.0072982399724423885, -0.037877604365348816, -0.0492827370762825, -0.09431035071611404, 0.008178911171853542, 0.014160503633320332, -0.05266591161489487, 0.04045858234167099, -0.020020022988319397, 0.002428386826068163, -0.04844566434621811, 0.08642789721488953, 0.04157467931509018, -0.002622396219521761, 0.02354270964860916, -0.02560051530599594, -0.02284514717757702, -0.003878007410094142, 0.0019749717321246862, 0.07380203157663345, 0.003790812101215124, -0.013436783105134964, -0.0247285645455122, -0.01327983196824789, 0.01425641868263483, 0.014622638002038002, 0.025896979495882988, 0.014343613758683205, -0.0011259082239121199, 0.06710544228553772, -0.018398191779851913, 0.07408105581998825, 0.059746164828538895, -0.029890520498156548, 0.0395168736577034, 0.022182462736964226, 0.04771322384476662, 0.03057064302265644, -0.09486839920282364, 0.01129178050905466, 0.08231228590011597, 0.004056757315993309, 0.014029710553586483, -0.005606652703136206, -0.03627321124076843, 0.005776683334261179, 0.029192959889769554, 0.008126594126224518, 0.02561795525252819, 0.03247150033712387, 0.03372710943222046, -0.009050863794982433, -0.021327950060367584, -0.03423284366726875, 0.06741934269666672, 0.07076764106750488, 0.023124171420931816, -0.0246588084846735, -0.02078733965754509, 0.004039318300783634, 0.01177135482430458, 0.03517455235123634, 0.043074436485767365, 0.010908122174441814, -0.013122880831360817, 0.00936476606875658, -0.02877442166209221, -0.021205877885222435, -0.0001771152892615646, 0.041993215680122375, -0.03271564468741417, 0.06564056128263474, -0.021136121824383736, -0.002012029755860567, 0.03634296730160713, 0.0036382204852998257, -0.026036491617560387, -0.04426029324531555, -0.040040045976638794, 0.01972355879843235, -0.07617374509572983, -0.04073760658502579, -0.006487324368208647, 0.015110931359231472, -0.11614403128623962, -0.002059987047687173, 0.027379298582673073, -0.009539157152175903, -0.003348296508193016, 0.04642273485660553, 0.022461488842964172, -0.042097851634025574, 0.008946229703724384, 0.05238688737154007, -0.018502825871109962, 0.03238430246710777, -0.029855642467737198, -0.013340868055820465, -0.01790989749133587, -0.009434523060917854, 0.015494590625166893, -0.016349103301763535, 0.03738930821418762, 0.024972710758447647, -0.020020022988319397, 0.03658711537718773, 0.02083965763449669, 0.012704343535006046, -0.07938252389431, 0.06598933786153793, -0.01429129671305418, 0.027274664491415024, -0.010480864904820919, -0.06588470935821533, -0.0006953818956390023, 0.03465138003230095, -0.018520263954997063, -0.006243177689611912, 0.07519716024398804, 0.0006446996703743935, 0.009277570992708206, 0.09284546971321106, -0.019322460517287254, -0.0034333118237555027, -0.05514225736260414, -0.053886644542217255, -0.05461908504366875, 0.005968512501567602, 0.036168575286865234, -0.0003141752677038312, -0.030797351151704788, -0.03766833618283272, 0.038889069110155106, 0.059711284935474396, -0.0693725124001503, -0.07484837621450424, -0.057758111506700516, -0.04621346667408943, 0.01872953213751316, 0.024065880104899406, -0.07380203157663345, 0.015538187697529793, 0.01862489804625511, 0.011788793839514256, -0.028268689289689064, 0.002984256250783801, -0.008645405992865562, -0.013053123839199543, 0.027919908985495567, 0.006286775227636099, -0.07652252167463303, -0.05723494291305542, -0.008130954578518867, -0.0297858864068985, -0.035959307104349136, -0.05008493363857269, 0.028861617669463158, 0.04614371061325073, 0.04269078001379967, -0.025129662826657295, 0.023368319496512413, -0.0027313902974128723, -0.03126820549368858, 0.00222347816452384, -0.003734135301783681, -0.0492478609085083, -0.028164055198431015, -0.007067172322422266, -0.002504682634025812, -0.012835136614739895, -0.01764831133186817, 0.00936476606875658, 0.03658711537718773, 0.04527175799012184, -0.02274051308631897, 0.014552881941199303, -0.07631325721740723, 0.02947198413312435, 0.026472467929124832, -0.05329371616244316, 0.007577264681458473, -0.08217277377843857, 0.05549103766679764, 0.0022267478052526712, -0.06564056128263474, -0.03329113498330116, -0.09354303032159805, 0.03271564468741417, 0.04157467931509018, 0.017299531027674675, -0.04548102617263794, -0.025059906765818596, -0.008649765513837337, -0.024484416469931602, 0.012521233409643173, 0.036866139620542526, 0.01883416809141636, -0.08154496550559998, 0.00015926751075312495, 0.01872953213751316, -0.06424544006586075, 0.007838849909603596, -0.01668916456401348, -0.009242692962288857, 0.02275795117020607, -0.040981750935316086, -0.02779783494770527, -0.02469368651509285, 0.02870466560125351, -0.012155013158917427, 0.026367833837866783, 0.039691261947155, -0.06316421926021576, 0.013698369264602661, 0.03330857306718826, 0.006478604860603809, 0.018276117742061615, 0.004355401266366243, -0.0496663972735405, 0.0394471175968647, -0.0296986922621727, -0.008536411449313164, -0.0198281928896904, -0.00370361702516675, 0.004002260509878397, 0.00790424644947052, 0.05667689070105553, -0.08231228590011597, -0.03194832801818848, -0.0043379622511565685, -0.009539157152175903, -0.06424544006586075, 0.05849055200815201, -0.03475601598620415, 0.0687447115778923, -0.08098691701889038, 0.005314548499882221, -0.03227967023849487, 0.008837235160171986, 0.023263683542609215, -0.050887130200862885, -0.020142095163464546, 0.02387405000627041, 0.05318908393383026, 0.03071015514433384, -0.07596447318792343, -0.030413692817091942, -0.01865977607667446, -0.020020022988319397, -0.007625221740454435, -0.022391732782125473, -0.002253996441140771, 0.03194832801818848, 0.02083965763449669, 0.0590137243270874, -0.01436977181583643, -0.02968125231564045, 0.04059809446334839, 0.02169417031109333, 0.016192151233553886, -0.01864233799278736, 0.017011787742376328, 0.016410140320658684, 0.0041330535896122456, -0.016985628753900528, 0.0043880995362997055, -0.016253188252449036, 0.004813176114112139, 0.0397261418402195, 0.029262715950608253, -0.03289003670215607, -0.027361860498785973, -0.023420635610818863, 0.022269658744335175, 0.026088809594511986, -0.018310995772480965, -0.0692330002784729, -0.044783465564250946, -0.024153076112270355, -0.005737445317208767, 0.04248151183128357, -0.0009771314216777682, -0.03250637650489807, 0.03484321013092995, -0.025495881214737892 ]
37,710
healpy.visufunc
orthview
Plot a healpix map (given as an array) in Orthographic projection. Parameters ---------- map : float, array-like or None An array containing the map. If None, will display a blank map, useful for overplotting. fig : int or None, optional The figure number to use. Default: create a new figure rot : scalar or sequence, optional Describe the rotation to apply. In the form (lon, lat, psi) (unit: degrees) : the point at longitude *lon* and latitude *lat* will be at the center. An additional rotation of angle *psi* around this direction is applied. coord : sequence of character, optional Either one of 'G', 'E' or 'C' to describe the coordinate system of the map, or a sequence of 2 of these to rotate the map from the first to the second coordinate system. half_sky : bool, optional Plot only one side of the sphere. Default: False unit : str, optional A text describing the unit of the data. Default: '' xsize : int, optional The size of the image. Default: 800 title : str, optional The title of the plot. Default: 'Orthographic view' nest : bool, optional If True, ordering scheme is NESTED. Default: False (RING) min : float, optional The minimum range value max : float, optional The maximum range value flip : {'astro', 'geo'}, optional Defines the convention of projection : 'astro' (default, east towards left, west towards right) or 'geo' (east towards roght, west towards left) remove_dip : bool, optional If :const:`True`, remove the dipole+monopole remove_mono : bool, optional If :const:`True`, remove the monopole gal_cut : float, scalar, optional Symmetric galactic cut for the dipole/monopole fit. Removes points in latitude range [-gal_cut, +gal_cut] format : str, optional The format of the scale label. Default: '%g' format2 : str, optional Format of the pixel value under mouse. Default: '%g' cbar : bool, optional Display the colorbar. Default: True notext : bool, optional If True, no text is printed around the map norm : {'hist', 'log', None} Color normalization, hist= histogram equalized color mapping, log= logarithmic color mapping, default: None (linear color mapping) cmap : a color map The colormap to use (see matplotlib.cm) badcolor : str Color to use to plot bad values bgcolor : str Color to use for background hold : bool, optional If True, replace the current Axes by an OrthographicAxes. use this if you want to have multiple maps on the same figure. Default: False sub : int, scalar or sequence, optional Use only a zone of the current figure (same syntax as subplot). Default: None reuse_axes : bool, optional If True, reuse the current Axes (should be a OrthographicAxes). This is useful if you want to overplot with a partially transparent colormap, such as for plotting a line integral convolution. Default: False margins : None or sequence, optional Either None, or a sequence (left,bottom,right,top) giving the margins on left,bottom,right and top of the axes. Values are relative to figure (0-1). Default: None return_projected_map : bool if True returns the projected map in a 2d numpy array alpha : float, array-like or None An array containing the alpha channel, supports masked maps, see the `ma` function. If None, no transparency will be applied. See Also -------- mollview, gnomview, cartview, azeqview
def orthview( map=None, fig=None, rot=None, coord=None, unit="", xsize=800, half_sky=False, title="Orthographic view", nest=False, min=None, max=None, flip="astro", remove_dip=False, remove_mono=False, gal_cut=0, format="%g", format2="%g", cbar=True, cmap=None, badcolor="gray", bgcolor="white", notext=False, norm=None, hold=False, margins=None, sub=None, reuse_axes=False, return_projected_map=False, alpha=None, ): """Plot a healpix map (given as an array) in Orthographic projection. Parameters ---------- map : float, array-like or None An array containing the map. If None, will display a blank map, useful for overplotting. fig : int or None, optional The figure number to use. Default: create a new figure rot : scalar or sequence, optional Describe the rotation to apply. In the form (lon, lat, psi) (unit: degrees) : the point at longitude *lon* and latitude *lat* will be at the center. An additional rotation of angle *psi* around this direction is applied. coord : sequence of character, optional Either one of 'G', 'E' or 'C' to describe the coordinate system of the map, or a sequence of 2 of these to rotate the map from the first to the second coordinate system. half_sky : bool, optional Plot only one side of the sphere. Default: False unit : str, optional A text describing the unit of the data. Default: '' xsize : int, optional The size of the image. Default: 800 title : str, optional The title of the plot. Default: 'Orthographic view' nest : bool, optional If True, ordering scheme is NESTED. Default: False (RING) min : float, optional The minimum range value max : float, optional The maximum range value flip : {'astro', 'geo'}, optional Defines the convention of projection : 'astro' (default, east towards left, west towards right) or 'geo' (east towards roght, west towards left) remove_dip : bool, optional If :const:`True`, remove the dipole+monopole remove_mono : bool, optional If :const:`True`, remove the monopole gal_cut : float, scalar, optional Symmetric galactic cut for the dipole/monopole fit. Removes points in latitude range [-gal_cut, +gal_cut] format : str, optional The format of the scale label. Default: '%g' format2 : str, optional Format of the pixel value under mouse. Default: '%g' cbar : bool, optional Display the colorbar. Default: True notext : bool, optional If True, no text is printed around the map norm : {'hist', 'log', None} Color normalization, hist= histogram equalized color mapping, log= logarithmic color mapping, default: None (linear color mapping) cmap : a color map The colormap to use (see matplotlib.cm) badcolor : str Color to use to plot bad values bgcolor : str Color to use for background hold : bool, optional If True, replace the current Axes by an OrthographicAxes. use this if you want to have multiple maps on the same figure. Default: False sub : int, scalar or sequence, optional Use only a zone of the current figure (same syntax as subplot). Default: None reuse_axes : bool, optional If True, reuse the current Axes (should be a OrthographicAxes). This is useful if you want to overplot with a partially transparent colormap, such as for plotting a line integral convolution. Default: False margins : None or sequence, optional Either None, or a sequence (left,bottom,right,top) giving the margins on left,bottom,right and top of the axes. Values are relative to figure (0-1). Default: None return_projected_map : bool if True returns the projected map in a 2d numpy array alpha : float, array-like or None An array containing the alpha channel, supports masked maps, see the `ma` function. If None, no transparency will be applied. See Also -------- mollview, gnomview, cartview, azeqview """ # Create the figure import pylab if map is None: map = np.zeros(12) + np.inf cbar = False # Ensure that the nside is valid nside = pixelfunc.get_nside(map) pixelfunc.check_nside(nside, nest=nest) if not (hold or sub or reuse_axes): f = pylab.figure(fig, figsize=(8.5, 5.4)) if not margins: margins = (0.02, 0.05, 0.02, 0.05) extent = (0.0, 0.0, 1.0, 1.0) elif hold: f = pylab.gcf() left, bottom, right, top = np.array(f.gca().get_position()).ravel() if not margins: margins = (0.0, 0.0, 0.0, 0.0) extent = (left, bottom, right - left, top - bottom) f.delaxes(f.gca()) elif reuse_axes: f = pylab.gcf() else: # using subplot syntax f = pylab.gcf() if hasattr(sub, "__len__"): nrows, ncols, idx = sub else: nrows, ncols, idx = sub // 100, (sub % 100) // 10, (sub % 10) if idx < 1 or idx > ncols * nrows: raise ValueError("Wrong values for sub: %d, %d, %d" % (nrows, ncols, idx)) c, r = (idx - 1) % ncols, (idx - 1) // ncols if not margins: margins = (0.01, 0.0, 0.0, 0.02) extent = ( c * 1.0 / ncols, 1.0 - (r + 1) * 1.0 / nrows, 1.0 / ncols, 1.0 / nrows, ) if not reuse_axes: extent = ( extent[0] + margins[0], extent[1] + margins[1], extent[2] - margins[2] - margins[0], extent[3] - margins[3] - margins[1], ) # Starting to draw : turn interactive off wasinteractive = pylab.isinteractive() pylab.ioff() try: if reuse_axes: ax = f.gca() else: ax = PA.HpxOrthographicAxes( f, extent, coord=coord, rot=rot, format=format2, flipconv=flip ) f.add_axes(ax) if remove_dip: map = pixelfunc.remove_dipole( map, gal_cut=gal_cut, nest=nest, copy=True ) elif remove_mono: map = pixelfunc.remove_monopole( map, gal_cut=gal_cut, nest=nest, copy=True ) img = ax.projmap( map, nest=nest, xsize=xsize, half_sky=half_sky, coord=coord, vmin=min, vmax=max, cmap=cmap, badcolor=badcolor, bgcolor=bgcolor, norm=norm, alpha=alpha, ) if cbar: im = ax.get_images()[0] b = im.norm.inverse(np.linspace(0, 1, im.cmap.N + 1)) v = np.linspace(im.norm.vmin, im.norm.vmax, im.cmap.N) mappable = plt.cm.ScalarMappable( norm=matplotlib.colors.Normalize(vmin=im.norm.vmin, vmax=im.norm.vmax), cmap=cmap, ) if matplotlib.__version__ >= "0.91.0": cb = f.colorbar( mappable, ax=ax, orientation="horizontal", shrink=0.5, aspect=25, ticks=PA.BoundaryLocator(), pad=0.05, fraction=0.1, boundaries=b, values=v, format=format, ) else: # for older matplotlib versions, no ax kwarg cb = f.colorbar( mappable, orientation="horizontal", shrink=0.5, aspect=25, ticks=PA.BoundaryLocator(), pad=0.05, fraction=0.1, boundaries=b, values=v, format=format, ) cb.solids.set_rasterized(True) ax.set_title(title) if not notext:
(map=None, fig=None, rot=None, coord=None, unit='', xsize=800, half_sky=False, title='Orthographic view', nest=False, min=None, max=None, flip='astro', remove_dip=False, remove_mono=False, gal_cut=0, format='%g', format2='%g', cbar=True, cmap=None, badcolor='gray', bgcolor='white', notext=False, norm=None, hold=False, margins=None, sub=None, reuse_axes=False, return_projected_map=False, alpha=None)
[ 0.042426954954862595, -0.04289786517620087, 0.0301608107984066, 0.018466489389538765, -0.020271651446819305, -0.012647358700633049, -0.048616085201501846, -0.016044653952121735, -0.04987185075879097, -0.039579056203365326, 0.025092896074056625, 0.017154661938548088, 0.06014222651720047, 0.06422346830368042, -0.005280944984406233, 0.00011457463551778346, -0.0054715522564947605, 0.009894764050841331, -0.012983724474906921, -0.04126088693737984, 0.04404151067137718, -0.06552407890558243, 0.05157610774040222, -0.006688075605779886, -0.053863395005464554, -0.04083482176065445, 0.002009786432608962, -0.00361593347042799, 0.031842637807130814, -0.006015343591570854, -0.05458097532391548, -0.05955919250845909, -0.007809295319020748, -0.02502562291920185, -0.004260635003447533, -0.000623678439296782, 0.050410039722919464, 0.0008500246913172305, 0.014486158266663551, 0.05812402814626694, 0.01242311391979456, -0.023433491587638855, 0.01972225494682789, -0.029017165303230286, 0.028748072683811188, 0.013813426718115807, -0.046194251626729965, 0.024038949981331825, 0.009849915280938148, 0.01927376724779606, -0.0397808738052845, -0.07368656247854233, -0.05144156143069267, 0.023455915972590446, 0.004697910510003567, 0.030945664271712303, 0.010898255743086338, 0.06673499941825867, 0.07682597637176514, -0.08875574916601181, -0.030385054647922516, -0.020608019083738327, -0.02261500060558319, -0.027851097285747528, 0.021280750632286072, -0.01898225024342537, 0.056868262588977814, -0.029779596254229546, 0.03498205542564392, -0.03164082020521164, -0.03661903738975525, 0.07884416729211807, 0.011363561265170574, -0.03560993820428848, 0.020305288955569267, -0.021908633410930634, 0.007994296960532665, 0.01599980518221855, 0.02547411248087883, -0.016347384080290794, -0.01702011562883854, -0.0035374481230974197, 0.02112377993762493, 0.032492946833372116, 0.015540105290710926, 0.016930418089032173, 0.05067913234233856, -0.016919204965233803, -0.026572907343506813, 0.0009376200032420456, 0.020260440185666084, -0.015517680905759335, 0.0518900491297245, 0.011044014245271683, -0.037448737770318985, -0.028658375144004822, -0.017692847177386284, 0.047405168414115906, -0.00919400155544281, -0.0097153689712286, 0.003212294541299343, -0.050589434802532196, -0.030183235183358192, 0.0046194251626729965, 0.0016145564150065184, 0.007820507511496544, -0.016470717266201973, 0.036686308681964874, -0.024756530299782753, 0.03628266975283623, -0.025653507560491562, 0.03552024066448212, 0.006962774321436882, -0.024532286450266838, -0.014587067998945713, 0.017872242256999016, -0.03872692957520485, -0.04087967053055763, -0.0430772602558136, -0.01521495170891285, -0.05767554044723511, 0.009238850325345993, 0.006508680526167154, -0.051755502820014954, 0.051037922501564026, 0.0355650894343853, -0.007629900239408016, 0.011111287400126457, -0.03722449392080307, -0.0230522770434618, 0.01024794764816761, -0.05413248762488365, -0.026774726808071136, -0.018477700650691986, 0.03554266318678856, -0.02953292615711689, 0.01929619163274765, -0.04397423565387726, -0.06090465560555458, 0.04982700198888779, -0.004532530438154936, 0.012411901727318764, -0.022480454295873642, 0.05911070108413696, -0.020518319681286812, 0.007966266013681889, 0.025092896074056625, -0.025541385635733604, 0.03650691360235214, -0.023994101211428642, 0.022188937291502953, -0.01596616767346859, -0.0284565556794405, 0.0036832066252827644, 0.013869487680494785, -0.08960787951946259, 0.04343605041503906, 0.007730809971690178, 0.01731163263320923, 0.09211941063404083, 0.006009737495332956, -0.027918370440602303, 0.0319996103644371, -0.00015302897372748703, -0.004616622347384691, -0.03677600622177124, 0.026729878038167953, -0.03560993820428848, 0.011116893030703068, 0.02277197130024433, -0.016089502722024918, -0.08252177387475967, -0.036080848425626755, -0.016347384080290794, 0.041059065610170364, 0.03552024066448212, -0.03996026888489723, 0.007192624267190695, -0.036394789814949036, 0.0014190436340868473, 0.024666832759976387, 0.007209442555904388, -0.005676174536347389, 0.08610967546701431, -0.022379545494914055, 0.055836740881204605, 0.05247308313846588, 0.00335244694724679, 0.05220399051904678, 0.017681634053587914, -0.011828867718577385, 0.02231227234005928, -0.029129287227988243, -0.03666388615965843, 0.05045488849282265, -0.050096094608306885, 0.020843474194407463, -0.05094822496175766, 0.07068169116973877, -0.0017322844360023737, -0.07879932224750519, -0.03935481235384941, -0.012524023652076721, -0.021034082397818565, -0.042292408645153046, 0.02063044346868992, 0.020563170313835144, 0.028142614290118217, 0.05592643842101097, 0.031102634966373444, 0.03285173699259758, -0.012019474990665913, -0.028591101989150047, -0.021348023787140846, 0.0030328992288559675, -0.0009250062284991145, -0.05260762944817543, -0.010601132176816463, -0.020428622141480446, 0.06700409203767776, -0.05561249703168869, 0.06198102608323097, 0.006239587441086769, -0.004717532079666853, 0.0035430542193353176, -0.025810478255152702, 0.0792926549911499, 0.04713607579469681, 0.04193361848592758, -0.046777285635471344, 0.00421578623354435, 0.0021625524386763573, -0.020406197756528854, -0.028860194608569145, 0.007534596603363752, -0.06449256092309952, 0.004050406161695719, 0.024621983990073204, -0.01866830885410309, 0.0029936565551906824, 0.0031450213864445686, -0.018107697367668152, -0.02758200466632843, 0.05256278067827225, -0.049961548298597336, 0.015360710211098194, -0.02744745835661888, 0.04289786517620087, -0.006867470685392618, -0.007175805978477001, -0.0227831844240427, -0.008369904942810535, -0.014441309496760368, 0.01657162792980671, 0.040162090212106705, -0.01841042749583721, -0.06857379525899887, -0.03935481235384941, 0.024509862065315247, -0.031102634966373444, -0.009199608117341995, 0.0011401402298361063, -0.010763709433376789, -0.0009439268615096807, 0.09355457127094269, -0.03451114147901535, 0.005785493645817041, -0.020394986495375633, -0.025115320459008217, -0.0005147099145688117, 0.0690222829580307, 0.0885315090417862, -0.04536454752087593, 0.026640180498361588, 0.015618590638041496, 0.05579189211130142, 0.053728848695755005, -0.04839184135198593, 0.06861864775419235, 0.036417216062545776, 0.01234462857246399, -0.05561249703168869, -0.07198230177164078, 0.0284565556794405, -0.022682273760437965, -0.04404151067137718, 0.009760217741131783, 0.08288056403398514, 0.038502685725688934, -0.004725940991193056, 0.029353531077504158, 0.04807789996266365, 0.0021457341499626637, -0.0051323832012712955, 0.0013440621551126242, -0.03619297221302986, -0.0168631449341774, -0.004790411330759525, -0.08229752629995346, -0.022940155118703842, 0.05381854623556137, -0.03749358654022217, 0.06834955513477325, -0.04231483116745949, 0.03312082961201668, 0.038031771779060364, -0.02140408381819725, -0.017603149637579918, 0.05485006794333458, 0.015887683257460594, 0.013891912065446377, 0.011251439340412617, -0.0587519109249115, 0.03076626919209957, -0.027694126591086388, 0.012378265149891376, 0.03303113207221031, -0.037000250071287155, 0.03915299102663994, 0.04803305119276047, -0.03179778903722763, -0.027940794825553894, -0.005692992825061083, -0.04691183194518089, 0.059155549854040146, -0.06709378957748413, 0.04265119880437851, 0.01643708162009716, 0.09929521381855011, 0.014811311848461628, -0.06148768961429596, 0.028254736214876175, -0.03316567838191986, -0.004826850723475218, -0.028232311829924583, -0.07243078947067261, -0.004456848371773958, -0.006475043948739767, -0.04157482832670212, -0.03451114147901535, 0.02032771334052086, 0.00034267277806065977, -0.033995382487773895, 0.044063933193683624, -0.02125832624733448, 0.028905043378472328, -0.015775561332702637, -0.0003454758261796087, -0.01974467933177948, -0.06615196168422699, 0.003775707446038723, 0.018601035699248314, -0.006682469509541988, -0.009978855028748512, -0.011963414028286934, 0.10700920969247818, 0.03666388615965843, -0.01657162792980671, -0.03146142512559891, 0.013959185220301151, 0.07121987640857697, -0.004341923166066408, -0.0808623656630516, -0.015495256520807743, -0.07619809359312057, 0.006256405729800463, -0.00890248455107212, -0.016324959695339203, 0.03646206483244896, -0.035654786974191666, 0.00013936409959569573, -0.023321369662880898, 0.011806443333625793, 0.019027099013328552, 0.018477700650691986, 0.01139159221202135, 0.01250159926712513, 0.009317335672676563, -0.031125059351325035, -0.003571084700524807, 0.0033356286585330963, -0.021202264353632927, -0.01069082971662283, -0.002491910709068179, -0.05489491671323776, -0.027402609586715698, 0.002470887964591384, 0.037448737770318985, -0.035497814416885376, -0.03305355831980705, -0.01734526827931404, -0.0035486603155732155, 0.050096094608306885, -0.012950087897479534, 0.009283699095249176, 0.035475391894578934, 0.004305483773350716, 0.05772038921713829, -0.0358341820538044, 0.001892058295197785, 0.0455663688480854, -0.038659654557704926, 0.030945664271712303, -0.004981018602848053, 0.009917188435792923, -0.0542670339345932, -0.007444899063557386, -0.035632360726594925, 0.020002558827400208, -0.02368015982210636, 0.05377369746565819, -0.012232506647706032, -0.02365773543715477, 0.015125254169106483, -0.035766907036304474, -0.009782642126083374, -0.056285228580236435, -0.0013685887679457664, -0.003341234754770994, -0.002173764631152153, 0.017289208248257637, 0.03585660457611084, -0.00015530645032413304, 0.05547795072197914, 0.04056572914123535, -0.049782153218984604, 0.010987953282892704, 0.01776012033224106, -0.0009172978461720049, 0.038973595947027206, -0.029645048081874847, -0.05646462365984917, 0.03890632465481758, -0.0057798875495791435, -0.004689501598477364, 0.0039270720444619656, 0.012154021300375462, 0.03870450332760811, 0.01762557402253151, 0.02623654156923294, 0.03267234191298485, -0.007719597779214382, 0.004426014609634876, -0.037471164017915726, 0.011122499592602253, 0.04893002659082413, -0.028680799528956413, 0.002326530870050192, 0.009507942944765091, 0.0064974683336913586, 0.07790234684944153, 0.049513060599565506, -0.03361416608095169, -0.004874502774327993, 0.07063683867454529, -0.06960532069206238, -0.049199119210243225, 0.015584954060614109, 0.0021120975725352764, 0.02894989214837551, -0.01930740289390087, 0.02350076474249363, -0.018623460084199905, -0.026729878038167953, 0.028703223913908005, 0.050096094608306885, 0.048616085201501846, -0.008700665086507797, -0.03327780216932297, -0.006749742664396763, 0.0010623557027429342, -0.0035458572674542665, -0.018186183646321297, 0.000182198200491257, 0.03392810747027397, 0.0202155914157629, -0.014631916768848896, 0.05220399051904678, -0.02578805387020111, -0.01809648610651493, -0.02863595075905323, 0.02020437829196453, 0.00950233731418848, -0.02005862072110176, -0.019195280969142914, 0.04018451273441315, 0.04128330945968628, -0.007069290149956942, -0.040610577911138535, -0.0008233957341872156, -0.03240324929356575, -0.020921960473060608, -0.060949504375457764, 0.0385923832654953, -0.02533956617116928, 0.04536454752087593, 0.013185543939471245, -0.04866093397140503, -0.016224049031734467, -0.043637871742248535, 0.05157610774040222, -0.022985003888607025, 0.024509862065315247, -0.006306861061602831, -0.022704698145389557, 0.018511338159441948, -0.006648832932114601, 0.004487681668251753, 0.010180674493312836, 0.018477700650691986, -0.026617756113409996, -0.05754099413752556, 0.06624165922403336, -0.062339816242456436, 0.03260507062077522, 0.011627048254013062, -0.029420804232358932, -0.015315861441195011, -0.025272293016314507, -0.005847160704433918, 0.02592260017991066, 0.009945218451321125, -0.007557020988315344, 0.03271719068288803, -0.017076175659894943, 0.0050174579955637455, 0.0230522770434618, 0.027806248515844345, 0.012310991995036602, -0.004933366551995277, -0.05166580528020859, -0.0416196770966053, -0.043794840574264526, 0.04193361848592758, 0.0161343514919281, 0.008381117135286331, -0.045409396290779114, -0.08108660578727722, 0.0482124462723732, -0.04428817704319954, -0.013521909713745117, 0.022357121109962463, 0.07090593129396439, -0.05063428357243538, 0.03973602503538132, 0.025698356330394745, 0.058527667075395584, -0.05067913234233856, 0.0397808738052845, -0.0164034441113472, 0.019554071128368378, 0.014654341153800488, 0.020697716623544693, -0.0016369807999581099, 0.013555546291172504, 0.11678624153137207, 0.038054198026657104, -0.03749358654022217, -0.06014222651720047, -0.023612886667251587, 0.00269232876598835, 0.03119233250617981, 0.009294911287724972, 0.01882527954876423, 0.006077010650187731, 0.023590462282299995, 0.02168438956141472, 0.058393120765686035, 0.0150804053992033, -0.021168628707528114, -0.005146398674696684, 0.005659356247633696, -0.021056506782770157, 0.01024794764816761, 0.0016369807999581099, -0.00040118643664754927, 0.06817016005516052, 0.007506566122174263, 0.030676571652293205, -0.036865703761577606, -0.010062946937978268, -0.003924268763512373, 0.02863595075905323, 0.022121664136648178, 0.03677600622177124, 0.0645374059677124, 0.041395433247089386, 0.09400305896997452, 0.006430195178836584, -0.07821628451347351, -0.0015192526625469327, -0.03917541727423668, 0.048167597502470016, 0.00038296659477055073, -0.02906201407313347, -0.019060734659433365, -0.03031778149306774, 0.0007596263312734663, 0.004902533255517483, 0.0626986026763916, -0.00956400390714407, -0.01733405701816082, -0.025249868631362915, -0.04776395857334137, -0.05893130600452423, -0.028591101989150047, 0.079561747610569, 0.04893002659082413, -0.05942464619874954, -0.03964632749557495, 0.003949496429413557, 0.01228856761008501, -0.0112962881103158, -0.04191119223833084, -0.03150627389550209, -0.13149665296077728, -0.043480899184942245, 0.07422474771738052, 0.03782995417714119, 0.055253706872463226, 0.004364347551018, -0.0026292602997273207, -0.05368399992585182, 0.03587903082370758, -0.03798692300915718, 0.0036327517591416836, 0.07211685180664062, 0.018511338159441948, -0.006082616746425629, 0.0376729816198349, 0.014138580299913883, 0.01883649080991745, -0.05233853682875633, -0.04249422624707222, -0.008622179739177227, -0.012142809107899666, -0.01885891519486904, 0.020742565393447876, 0.04673243686556816, 0.07041259855031967, 0.012378265149891376, -0.06130829453468323, 0.04686698317527771, 0.01513646636158228, 0.0674525797367096, 0.044848788529634476, 0.0016650112811475992, 0.0069851987063884735, 0.059155549854040146, -0.028232311829924583, 0.01484494935721159, 0.03137172758579254, 0.010500222444534302, -0.0022648638114333153, -0.006032161880284548, 0.017367692664265633, -0.028120189905166626, -0.050858527421951294, -0.03601357713341713, 0.00780368922278285, 0.009569610469043255, -0.024980774149298668, 0.0006219265633262694, -0.015271012671291828, 0.044669393450021744, -0.05556764826178551, -0.0037644952535629272, -0.0016636097570881248, -0.008521270006895065, 0.021000444889068604, -0.002497516805306077, -0.053594302386045456, -0.029779596254229546, 0.02681957557797432, -0.01913922093808651, -0.02080983854830265, 0.055522799491882324, 0.02968989871442318, -0.007949447259306908, -0.0007638309034518898, 0.028546253219246864, 0.013611607253551483, -0.027492307126522064, 0.03666388615965843, 0.026909273117780685, 0.03630509227514267, 0.010298402979969978, -0.04354817420244217, 0.02381470613181591, -0.006189132574945688, 0.014744038693606853, -0.0008402140229009092, 0.04536454752087593, -0.020989233627915382, 0.023769857361912727, 0.019184069707989693, -0.08552663773298264, -0.0067665609531104565, 0.012602509930729866, 0.00395790534093976, -0.0033356286585330963, -0.024352891370654106, -0.01626889780163765, 0.0442657545208931, -0.02198711782693863, 0.0051323832012712955, -0.0313493013381958, 0.00022809812799096107, 0.002512933686375618, -0.059917982667684555, -0.026752302423119545, 0.07633263617753983, 0.04011724144220352, -0.030250508338212967, -0.0006611692369915545, -0.08202843368053436, -0.05471552163362503, 0.04298756271600723, -0.00903703086078167, -0.058841608464717865, 0.04119361191987991, 0.028703223913908005, -0.001679026521742344, 0.049961548298597336, 0.04713607579469681, -0.0062227691523730755, -0.019643768668174744, -0.050275493413209915, -0.05812402814626694, -0.007478535640984774, -0.02908443845808506, -0.026146844029426575, -0.03574448451399803, -0.006374134216457605, -0.0331881046295166, 0.05049973726272583, -0.023725008592009544, -0.07494232803583145, -0.0716683641076088, -0.031887486577034, -0.010735678486526012, -0.0822078287601471, -0.02110135555267334, -0.03634994104504585, 0.005830342415720224, 0.016201624646782875, -0.0014463734114542603, 0.0024849032051861286, -0.017132237553596497, 0.046328797936439514, 0.03603599965572357, 0.043637871742248535, 0.007596263661980629, 0.02455471083521843, -0.004625031258910894, 0.02502562291920185, -0.0031590366270393133, 0.03646206483244896, 0.043996661901474, -0.014531007036566734, -0.04269604757428169, 0.021370448172092438, -0.06346103549003601, -0.027155941352248192, 0.07458353787660599, 0.048616085201501846, -0.03471296280622482, -0.010943104512989521 ]
37,711
healpy.pixelfunc
pix2ang
pix2ang : nside,ipix,nest=False,lonlat=False -> theta[rad],phi[rad] (default RING) Parameters ---------- nside : int or array-like The healpix nside parameter, must be a power of 2, less than 2**30 ipix : int or array-like Pixel indices nest : bool, optional if True, assume NESTED pixel ordering, otherwise, RING pixel ordering lonlat : bool, optional If True, return angles will be longitude and latitude in degree, otherwise, angles will be co-latitude and longitude in radians (default) Returns ------- theta, phi : float, scalar or array-like The angular coordinates corresponding to ipix. Scalar if all input are scalar, array otherwise. Usual numpy broadcasting rules apply. See Also -------- ang2pix, vec2pix, pix2vec Examples -------- >>> import healpy as hp >>> hp.pix2ang(16, 1440) (1.5291175943723188, 0.0) >>> hp.pix2ang(16, [1440, 427, 1520, 0, 3068]) (array([ 1.52911759, 0.78550497, 1.57079633, 0.05103658, 3.09055608]), array([ 0. , 0.78539816, 1.61988371, 0.78539816, 0.78539816])) >>> hp.pix2ang([1, 2, 4, 8], 11) (array([ 2.30052398, 0.84106867, 0.41113786, 0.2044802 ]), array([ 5.49778714, 5.89048623, 5.89048623, 5.89048623])) >>> hp.pix2ang([1, 2, 4, 8], 11, lonlat=True) (array([ 315. , 337.5, 337.5, 337.5]), array([-41.8103149 , 41.8103149 , 66.44353569, 78.28414761]))
def pix2ang(nside, ipix, nest=False, lonlat=False): """pix2ang : nside,ipix,nest=False,lonlat=False -> theta[rad],phi[rad] (default RING) Parameters ---------- nside : int or array-like The healpix nside parameter, must be a power of 2, less than 2**30 ipix : int or array-like Pixel indices nest : bool, optional if True, assume NESTED pixel ordering, otherwise, RING pixel ordering lonlat : bool, optional If True, return angles will be longitude and latitude in degree, otherwise, angles will be co-latitude and longitude in radians (default) Returns ------- theta, phi : float, scalar or array-like The angular coordinates corresponding to ipix. Scalar if all input are scalar, array otherwise. Usual numpy broadcasting rules apply. See Also -------- ang2pix, vec2pix, pix2vec Examples -------- >>> import healpy as hp >>> hp.pix2ang(16, 1440) (1.5291175943723188, 0.0) >>> hp.pix2ang(16, [1440, 427, 1520, 0, 3068]) (array([ 1.52911759, 0.78550497, 1.57079633, 0.05103658, 3.09055608]), array([ 0. , 0.78539816, 1.61988371, 0.78539816, 0.78539816])) >>> hp.pix2ang([1, 2, 4, 8], 11) (array([ 2.30052398, 0.84106867, 0.41113786, 0.2044802 ]), array([ 5.49778714, 5.89048623, 5.89048623, 5.89048623])) >>> hp.pix2ang([1, 2, 4, 8], 11, lonlat=True) (array([ 315. , 337.5, 337.5, 337.5]), array([-41.8103149 , 41.8103149 , 66.44353569, 78.28414761])) """ check_nside(nside, nest=nest) if nest: theta, phi = pixlib._pix2ang_nest(nside, ipix) else: theta, phi = pixlib._pix2ang_ring(nside, ipix) if lonlat: return thetaphi2lonlat(theta, phi) else: return theta, phi
(nside, ipix, nest=False, lonlat=False)
[ 0.0040522473864257336, -0.05722149834036827, 0.09325823187828064, -0.018018364906311035, 0.01733984798192978, 0.0019990301225334406, -0.012901224195957184, 0.0025844855699688196, 0.03228604421019554, -0.044555872678756714, 0.048174623399972916, -0.061443377286195755, 0.03175830841064453, 0.050436340272426605, -0.03562207892537117, 0.007609743159264326, -0.007949001155793667, 0.02512393333017826, -0.09046877175569534, -0.026707137003540993, 0.04063555970788002, -0.04874005168676376, 0.007642726879566908, -0.024143854156136513, -0.03594249114394188, 0.007496657315641642, 0.06547677516937256, -0.033850401639938354, -0.009013894014060497, -0.009188234806060791, 0.004049891140311956, -0.025425495579838753, 0.05774923413991928, -0.031079793348908424, -0.006705055478960276, -0.018235111609101295, 0.006158473435789347, 0.03456661105155945, -0.07030177861452103, 0.0016279667615890503, 0.011101272888481617, -0.07655920088291168, -0.008580397814512253, 0.004591761622577906, -0.01346665434539318, 0.021033989265561104, -0.09159963577985764, -0.03375616297125816, -0.013900150544941425, 0.02404961548745632, -0.014946195296943188, -0.04708145931363106, -0.0021533453837037086, 0.01743408665060997, 0.02148633450269699, 0.01625610701739788, 0.0056967055425047874, 0.03628174960613251, 0.05507286638021469, 0.00941440649330616, -0.01305200532078743, -0.014361917972564697, 0.0170005913823843, -0.02491660788655281, 0.02203291654586792, 0.036639854311943054, -0.004714271519333124, -0.027951082214713097, -0.01925288699567318, 0.009188234806060791, -0.03775186464190483, 0.0325499102473259, 0.008486159145832062, -0.023578424006700516, 0.02107168547809124, 0.018885357305407524, 0.02600977197289467, 0.034265048801898956, 0.03177715837955475, 0.003420850494876504, -0.06928399950265884, -0.0013817691942676902, 0.016859233379364014, 0.06457208842039108, 0.05307501554489136, 0.07878322154283524, 0.016510551795363426, -0.035471297800540924, -0.014352493919432163, -0.00406402675434947, -0.025840144604444504, -0.07610685378313065, 0.07237502187490463, 0.03795918822288513, 0.02878037840127945, -0.007751100696623325, -0.02372920513153076, 0.025802448391914368, 0.042218759655952454, -0.007845339365303516, -0.03860000893473625, -0.057711537927389145, -0.03965548053383827, -0.012137893587350845, 0.06494904309511185, 0.009617019444704056, -0.007760524749755859, 0.03488701954483986, 0.06577833741903305, -0.05737227946519852, -0.029364656656980515, -0.004174756817519665, 0.016322074458003044, -0.027197174727916718, 0.008952639065682888, 0.005159547086805105, 0.03871309757232666, 0.022541802376508713, 0.019450785592198372, -0.014201712794601917, -0.011129544116556644, 0.021844439208507538, 0.004980494733899832, 0.028497664257884026, 0.041879504919052124, 0.018442437052726746, 0.012901224195957184, 0.01956387236714363, -0.018348198384046555, 0.031381357461214066, -0.013805911876261234, -0.02461504563689232, -0.00380958360619843, -0.01862148940563202, -0.025821296498179436, -0.03328496962785721, 0.021637115627527237, 0.0009924471378326416, -0.005988844204694033, 0.016124173998832703, -0.006563697941601276, 0.01688750460743904, 0.03349229320883751, 0.0019943180959671736, 0.02482236921787262, 0.04331192746758461, 0.0333792082965374, 0.009371999651193619, 0.05752306059002876, -0.04907931014895439, -0.014870804734528065, -0.035565536469221115, -0.03049551695585251, 0.03486817330121994, 0.016953472048044205, -0.04726993292570114, -0.02523701824247837, 0.02608516253530979, 0.02224024012684822, 0.006521290633827448, -0.016953472048044205, -0.030307039618492126, -0.020166996866464615, 0.010498147457838058, 0.007067873142659664, 0.02363496646285057, -0.048928529024124146, 0.015869731083512306, 0.02363496646285057, -0.011619582772254944, -0.05948321893811226, -0.06694689393043518, -0.0079584252089262, -0.021260162815451622, 0.05857853218913078, -0.019790044054389, 0.02512393333017826, 0.03173946216702461, -0.03238028287887573, 0.026462117210030556, 0.040371689945459366, -0.049456264823675156, 0.01827280782163143, 0.020449712872505188, -0.023465339094400406, 0.05443204566836357, 0.06864318251609802, -0.009042165242135525, 0.01584145985543728, -0.004346741829067469, 0.020732427015900612, 0.03507549688220024, -0.018442437052726746, 0.047345325350761414, 0.024671588093042374, -0.008867824450135231, 0.02384229190647602, 0.04832540452480316, -0.06687150150537491, 0.031607527285814285, 0.008976198732852936, -0.022824518382549286, 0.0019931402057409286, -0.019846586510539055, -0.008095070719718933, 0.012967190705239773, -0.031927939504384995, -0.028704987838864326, -0.0059464373625814915, -0.01839531771838665, 0.0744105651974678, -0.024143854156136513, -0.009032742120325565, -0.04696837067604065, -0.02651865966618061, 0.0967262014746666, 0.05401739850640297, 0.06566525250673294, -0.04161563515663147, 0.03130596503615379, 0.009362575598061085, -0.015963969752192497, 0.013542044907808304, -0.013805911876261234, -0.0005798600614070892, 0.01214731764048338, 0.0025562141090631485, 0.05537442862987518, -0.008698196150362492, -0.009339015930891037, 0.03403887525200844, 0.0232014711946249, 0.016953472048044205, -0.023258013650774956, -0.008787722326815128, 0.04621446505188942, 0.002921387553215027, -0.010620657354593277, 0.005635450594127178, 0.05190645903348923, 0.004440980032086372, 0.024520806968212128, -0.06133028864860535, 0.01385303121060133, -0.03969317302107811, 0.016388041898608208, 0.05307501554489136, -0.05586446821689606, -0.01134629175066948, -0.04108790308237076, -0.05801310017704964, 0.04564903676509857, 0.03258760645985603, -0.02001621574163437, -0.025105085223913193, 0.03366192430257797, -0.06853009760379791, 0.032776083797216415, -0.009485085494816303, 0.002357135759666562, 0.03136250749230385, -0.025218170136213303, -0.052245717495679855, -0.05582677200436592, 0.016180716454982758, 0.01556816790252924, 0.03767647594213486, 0.0022758550476282835, -0.04696837067604065, 0.017735648900270462, -0.02372920513153076, 0.027197174727916718, -0.030947860330343246, -0.006705055478960276, 0.04651602730154991, 0.02502969466149807, 0.09129807353019714, 0.036319442093372345, 0.010667776688933372, 0.019846586510539055, -0.02942119911313057, -0.02868613973259926, -0.02257949858903885, 0.03175830841064453, -0.044329699128866196, -0.040070127695798874, 0.022937603294849396, 0.12326370179653168, 0.02695215493440628, -0.02921387553215027, 0.08051721006631851, 0.045083604753017426, -0.06215958669781685, 0.021033989265561104, 0.05752306059002876, 0.0547713041305542, -0.07116877287626266, -0.02974160946905613, 0.012882376089692116, -0.07169650495052338, 0.021354399621486664, 0.019752349704504013, 0.009216506034135818, -0.02171250618994236, 0.019488481804728508, 0.027724910527467728, -0.020732427015900612, -0.025708209723234177, 0.02148633450269699, -0.013560892082750797, -0.01234521809965372, -0.08865939825773239, 0.01883823797106743, -0.03200332820415497, -0.015153519809246063, -0.034265048801898956, -0.016077054664492607, -0.040371689945459366, 0.06095333769917488, 0.033529989421367645, -0.003138135652989149, 0.05179337412118912, 0.05801310017704964, 0.026160553097724915, 0.05808849260210991, -0.0010071719298139215, 0.03654561564326286, 0.08609611541032791, 0.04662911593914032, 0.01785815879702568, -0.017179643735289574, 0.0271783284842968, -0.0291950274258852, -0.05296192690730095, -0.055562905967235565, -0.019714653491973877, -0.012364066205918789, -0.0659291222691536, -0.05582677200436592, -0.012656204402446747, -0.011431106366217136, -0.042218759655952454, 0.005333888344466686, 0.042294152081012726, 0.01733984798192978, -0.021769048646092415, -0.04972013086080551, 0.01230752281844616, -0.010714895091950893, 0.08375900983810425, 0.016925200819969177, 0.026028620079159737, -0.029025398194789886, -0.0015313724288716912, -0.03871309757232666, 0.021410943940281868, -0.030834773555397987, -0.04074864462018013, -0.014305374585092068, -0.008566262200474739, -0.019186919555068016, -0.005762672517448664, 0.03371846675872803, -0.0359613373875618, 0.007336452137678862, -0.0022617194335907698, -0.0002659287129063159, 0.010328518226742744, -0.040899425745010376, 0.04353809729218483, 0.027234870940446854, 0.013457230292260647, -0.05356505513191223, -0.006973634473979473, 0.0005448152078315616, -0.0012533694971352816, 0.01839531771838665, -0.0007191560580395162, -0.06419513374567032, -0.030966708436608315, 0.009800784289836884, -0.0007168001029640436, -0.00019790044461842626, 0.07693615555763245, 0.014201712794601917, -0.010281398892402649, 0.08172345906496048, -0.001508990884758532, -0.02619824931025505, -0.015200639143586159, -0.061594158411026, 0.0030910165514796972, 0.016293803229928017, -0.05669376626610756, -0.0003248276771046221, -0.02619824931025505, 0.003632886800915003, 0.03846807777881622, 0.02757412940263748, -0.032870322465896606, -0.018527250736951828, -0.05420587584376335, 0.041238684207201004, -0.017924126237630844, -0.03558438643813133, -0.006191456690430641, 0.0310044027864933, 0.0021074041724205017, -0.010385061614215374, -0.10011877864599228, -0.04500821605324745, 0.07701154798269272, 0.025312408804893494, -0.005211378447711468, 0.035018954426050186, 0.05186876282095909, -0.07848165929317474, 0.0032912727911025286, -0.06023712456226349, 0.03305879980325699, -0.047646887600421906, -0.038354989141225815, -0.004412708804011345, -0.004309046547859907, 0.06411974132061005, -0.02770606242120266, -0.021147076040506363, 0.014192288741469383, -0.03251221403479576, 0.09182580560445786, 0.04406583309173584, 0.03068399243056774, 0.03571631759405136, -0.03511319309473038, 0.013259329833090305, 0.017255034297704697, 0.09785705804824829, 0.006808717735111713, 0.04022090882062912, -0.006662648171186447, 0.030401278287172318, 0.06170724332332611, 0.011968265287578106, 0.012976614758372307, -0.042859580367803574, -0.0363759845495224, -0.06008634343743324, 0.03270069137215614, 0.03581055626273155, -0.0451589971780777, 0.04802384227514267, -0.052886538207530975, 0.09288127720355988, -0.01037563756108284, 0.0213920958340168, -0.0391654409468174, -0.025858990848064423, 0.025934381410479546, -0.03635713830590248, 0.03939161077141762, -0.01186460256576538, 0.05680685117840767, 0.023352252319455147, -0.0017952397465705872, 0.006445900071412325, -0.04259571433067322, -0.0009659426286816597, -0.015992240980267525, -0.03794034197926521, 0.014550394378602505, -0.003152271267026663, 0.005296193063259125, 0.02107168547809124, 0.027347955852746964, 0.052886538207530975, -0.002203998388722539, -0.018329350277781487, 0.014098051004111767, -0.03584825247526169, -0.053414274007081985, -0.079160176217556, -0.022202545776963234, 0.0024926031474024057, -0.007656862493604422, 0.00009357569069834426, -0.003823719220235944, -0.026914460584521294, 0.02063818834722042, -0.040145520120859146, -0.09665080904960632, -0.03626289963722229, 0.011647854931652546, 0.0049852062948048115, -0.008311818353831768, -0.024520806968212128, 0.018348198384046555, 0.004843848757445812, -0.030853621661663055, -0.025312408804893494, 0.050549428910017014, 0.009838479571044445, -0.02864844538271427, 0.03775186464190483, 0.0211847722530365, -0.03198448196053505, 0.00045676130685023963, -0.008834841661155224, -0.006238576024770737, 0.002380695194005966, 0.04587520658969879, -0.013042581267654896, -0.003321900265291333, 0.04489513114094734, -0.03311534225940704, 0.013042581267654896, 0.006667360197752714, -0.01797124557197094, 0.010356789454817772, 0.05103946849703789, -0.009800784289836884, -0.0065778340213000774, 0.01128032524138689, -0.005197242833673954, 0.032361432909965515, 0.016435161232948303, 0.02461504563689232, 0.04538516700267792, -0.0266128983348608, -0.031927939504384995, -0.049456264823675156, 0.008208156563341618, -0.026349030435085297, -0.004320826381444931, 0.0020178777631372213, -0.04696837067604065, -0.025538580492138863, 0.002817725297063589, -0.028083015233278275, 0.05970939248800278, -0.009023318067193031, -0.027423346415162086, 0.010488723404705524, -0.0635543167591095, 0.02031777985394001, 0.06321505457162857, 0.018093755468726158, -0.050850991159677505, -0.034830477088689804, 0.05254727974534035, -0.002032013377174735, 0.0002906662703026086, -0.008175172843039036, -0.018159721046686172, 0.013871878385543823, -0.008231716230511665, 0.04448048025369644, -0.05959630385041237, 0.012854104861617088, -0.06121720373630524, 0.02642442099750042, -0.04203028604388237, -0.015426810830831528, -0.020732427015900612, -0.04493282362818718, -0.019865434616804123, 0.007482521701604128, 0.0335865318775177, 0.011318020522594452, 0.017679106444120407, -0.022805670276284218, 0.012552542611956596, 0.0314190499484539, -0.007788795977830887, -0.038675401359796524, -0.028704987838864326, 0.004346741829067469, 0.02150518074631691, -0.07795392721891403, 0.049456264823675156, -0.021693658083677292, 0.03038243018090725, 0.023446490988135338, -0.016397465020418167, 0.04029630124568939, 0.038675401359796524, 0.07625763863325119, 0.0650998204946518, 0.09431369602680206, 0.05051173269748688, -0.03605557605624199, -0.0344158299267292, -0.044329699128866196, 0.07015099376440048, 0.004801441915333271, -0.01112012006342411, -0.00812805350869894, -0.05495978146791458, -0.0020803106017410755, 0.018461285158991814, -0.06106642261147499, -0.03305879980325699, -0.004306690767407417, -0.04538516700267792, -0.06106642261147499, -0.020807817578315735, 0.013834183104336262, 0.06234806403517723, -0.08933791518211365, -0.0688316598534584, -0.039090048521757126, 0.02930811420083046, -0.02052510343492031, 0.007510792929679155, -0.01699116639792919, -0.03464199975132942, -0.018376469612121582, 0.010026955977082253, 0.03190908953547478, -0.04248262941837311, 0.030514363199472427, -0.06807775050401688, -0.007769948337227106, 0.011487649753689766, 0.008815993554890156, -0.01186460256576538, -0.06110411882400513, 0.0335865318775177, 0.038863878697156906, 0.02942119911313057, -0.021769048646092415, 0.012656204402446747, -0.022202545776963234, -0.00898562278598547, -0.020468560978770256, 0.0037671762984246016, -0.012929495424032211, 0.007944289594888687, -0.07052794843912125, -0.01411689817905426, 0.08436213433742523, -0.004226588178426027, -0.025538580492138863, 0.023691510781645775, 0.030193952843546867, 0.0611795075237751, -0.028403425589203835, -0.00898562278598547, 0.01337241567671299, -0.05201954394578934, -0.06344122439622879, 0.0532257966697216, 0.04044708237051964, -0.010893948376178741, -0.008047951385378838, -0.07976330071687698, 0.022183697670698166, -0.03057090751826763, 0.02224024012684822, -0.019092680886387825, -0.0020814884919673204, 0.026462117210030556, 0.025727057829499245, -0.03292686492204666, 0.022843364626169205, -0.027347955852746964, 0.04451817646622658, -0.011619582772254944, -0.004881544504314661, 0.015313724987208843, -0.009819631464779377, 0.016095902770757675, 0.043500401079654694, 0.014305374585092068, 0.029666218906641006, 0.018979594111442566, 0.008066799491643906, 0.05688224360346794, -0.008834841661155224, 0.010498147457838058, 0.03882618248462677, -0.05978478118777275, -0.02857305482029915, 0.04131407290697098, 0.032776083797216415, -0.029496589675545692, 0.02653750777244568, 0.07787853479385376, 0.010818557813763618, -0.011836331337690353, -0.039090048521757126, -0.012646780349314213, -0.014088626950979233, 0.011101272888481617, 0.017811039462685585, 0.08172345906496048, -0.04342501237988472, -0.04150255024433136, 0.052358802407979965, -0.03724297881126404, -0.03486817330121994, 0.06449669599533081, -0.04399044066667557, -0.008269411511719227, 0.01723618619143963, -0.006865260656923056, -0.014295951463282108, 0.0003389634075574577, -0.039617784321308136, -0.031701765954494476, 0.05024786666035652, -0.0532257966697216, 0.010978762991726398, -0.003597547300159931, -0.07606916129589081, 0.035678621381521225, -0.0133064491674304, 0.017490629106760025, 0.018159721046686172, -0.007482521701604128, -0.008881960064172745, 0.025613971054553986, -0.02823379635810852, 0.0166896041482687, -0.03004317171871662, -0.041125595569610596, -0.020506255328655243, 0.05725919455289841, 0.034830477088689804, -0.10999494791030884, -0.01438076514750719, -0.04323653504252434, -0.010827981866896152, 0.013334720395505428, 0.01555874478071928, -0.0367906354367733, 0.013645706698298454, -0.026443269103765488, 0.0041323499754071236, -0.012759867124259472, -0.031588681042194366, 0.06773849576711655, 0.005084156524389982, -0.0033760874066501856, 0.016491703689098358, -0.030438972637057304, -0.017094828188419342, 0.025406647473573685, -0.07516447454690933, 0.009989260695874691, 0.008358937688171864, 0.03826075419783592, 0.07682307064533234, 0.0014088626485317945, -0.0436134897172451, 0.04010782390832901, 0.006045387592166662, 0.008542702533304691, 0.027347955852746964, -0.02685791812837124, 0.0029543708078563213, -0.05816388130187988, 0.038223057985305786, -0.03714874014258385, 0.009715969674289227, 0.015389115549623966, 0.02031777985394001, -0.03562207892537117, 0.004250147845596075 ]
37,712
healpy.pixelfunc
pix2vec
pix2vec : nside,ipix,nest=False -> x,y,z (default RING) Parameters ---------- nside : int, scalar or array-like The healpix nside parameter, must be a power of 2, less than 2**30 ipix : int, scalar or array-like Healpix pixel number nest : bool, optional if True, assume NESTED pixel ordering, otherwise, RING pixel ordering Returns ------- x, y, z : floats, scalar or array-like The coordinates of vector corresponding to input pixels. Scalar if all input are scalar, array otherwise. Usual numpy broadcasting rules apply. See Also -------- ang2pix, pix2ang, vec2pix Examples -------- >>> import healpy as hp >>> hp.pix2vec(16, 1504) (0.99879545620517241, 0.049067674327418015, 0.0) >>> hp.pix2vec(16, [1440, 427]) (array([ 0.99913157, 0.5000534 ]), array([ 0. , 0.5000534]), array([ 0.04166667, 0.70703125])) >>> hp.pix2vec([1, 2], 11) (array([ 0.52704628, 0.68861915]), array([-0.52704628, -0.28523539]), array([-0.66666667, 0.66666667]))
def pix2vec(nside, ipix, nest=False): """pix2vec : nside,ipix,nest=False -> x,y,z (default RING) Parameters ---------- nside : int, scalar or array-like The healpix nside parameter, must be a power of 2, less than 2**30 ipix : int, scalar or array-like Healpix pixel number nest : bool, optional if True, assume NESTED pixel ordering, otherwise, RING pixel ordering Returns ------- x, y, z : floats, scalar or array-like The coordinates of vector corresponding to input pixels. Scalar if all input are scalar, array otherwise. Usual numpy broadcasting rules apply. See Also -------- ang2pix, pix2ang, vec2pix Examples -------- >>> import healpy as hp >>> hp.pix2vec(16, 1504) (0.99879545620517241, 0.049067674327418015, 0.0) >>> hp.pix2vec(16, [1440, 427]) (array([ 0.99913157, 0.5000534 ]), array([ 0. , 0.5000534]), array([ 0.04166667, 0.70703125])) >>> hp.pix2vec([1, 2], 11) (array([ 0.52704628, 0.68861915]), array([-0.52704628, -0.28523539]), array([-0.66666667, 0.66666667])) """ check_nside(nside, nest=nest) if nest: return pixlib._pix2vec_nest(nside, ipix) else: return pixlib._pix2vec_ring(nside, ipix)
(nside, ipix, nest=False)
[ -0.00829307734966278, -0.050061702728271484, 0.023358453065156937, -0.0715639740228653, 0.01836882159113884, 0.030176695436239243, 0.019682850688695908, -0.010135473683476448, 0.04179159924387932, 0.02751188352704048, 0.02131849341094494, -0.07380609214305878, -0.02639082446694374, 0.012469480745494366, -0.0122948894277215, 0.050539530813694, 0.023358453065156937, -0.01920502260327339, -0.0750558003783226, 0.02885347791016102, 0.045099638402462006, -0.017192630097270012, 0.04208564758300781, 0.018010450527071953, 0.007590118795633316, -0.005462863948196173, 0.06377170234918594, -0.03649872913956642, 0.006588517222553492, -0.024203840643167496, 0.018028829246759415, 0.041607815772295, -0.0011032549664378166, -0.007539579179137945, -0.03548793867230415, 0.057339396327733994, 0.012065164744853973, 0.008104703389108181, -0.040725674480199814, -0.005706372670829296, -0.032749615609645844, -0.03929218649864197, 0.0479666106402874, 0.006887159775942564, -0.0015747658908367157, -0.013140277937054634, -0.012395968660712242, -0.025269765406847, -0.05303893983364105, -0.004128160886466503, -0.00560988811776042, -0.007902544923126698, 0.026519469916820526, -0.013673240318894386, 0.008127675391733646, -0.006280685309320688, -0.015740767121315002, 0.04906928911805153, 0.04462181031703949, 0.04502612724900246, -0.029110770672559738, -0.016292106360197067, 0.010493844747543335, -0.010374387726187706, 0.010503033176064491, 0.0013886884553357959, 0.005614482332020998, 0.013222979381680489, -0.050245482474565506, 0.03719709441065788, -0.057853978127241135, 0.019425557926297188, -0.02209036983549595, 0.010990050621330738, 0.07608496397733688, 0.018139097839593887, 0.07494553178548813, -0.004661123268306255, 0.01801964081823826, -0.014546195976436138, 0.013994855806231499, 0.008407940156757832, 0.010117094963788986, 0.07211531698703766, 0.05127464979887009, 0.09328678250312805, 0.031812336295843124, -0.02861456386744976, -0.03804248198866844, 0.016696423292160034, -0.05373730510473251, -0.00876171700656414, -0.016512643545866013, 0.040725674480199814, -0.02997453697025776, -0.004530179779976606, 0.01216624304652214, 0.02560056932270527, 0.005223949905484915, 0.0032483134418725967, -0.014812677167356014, -0.023248184472322464, 0.0034688496962189674, -0.010705191642045975, 0.034385260194540024, 0.04829741269350052, -0.0018607736565172672, 0.025324899703264236, 0.009574944153428078, -0.0065747336484491825, 0.04906928911805153, 0.0717109963297844, -0.008458479307591915, -0.01656777784228325, -0.01846071146428585, 0.009138465858995914, -0.006078527309000492, 0.06689596176147461, 0.007461472414433956, -0.01918664388358593, -0.020344458520412445, -0.02321142889559269, -0.0021651594433933496, 0.030176695436239243, -0.033723652362823486, -0.005710966885089874, -0.03188585117459297, 0.023101160302758217, 0.017578568309545517, 0.11975111812353134, -0.04576124623417854, -0.03743600845336914, -0.022935757413506508, -0.03561658412218094, -0.003241421654820442, -0.05575888603925705, 0.04498936980962753, -0.011743549257516861, 0.033025287091732025, 0.011026807129383087, -0.019499069079756737, 0.08872903883457184, 0.012607315555214882, 0.02517787553369999, -0.014454306103289127, 0.026703249663114548, 0.07608496397733688, 0.014141879975795746, 0.05234057456254959, -0.000545310031156987, -0.04234293848276138, 0.021116334944963455, -0.008453885093331337, 0.023193050175905228, 0.058809634298086166, -0.05480322986841202, -0.025655703619122505, -0.056751299649477005, 0.05241408944129944, 0.025269765406847, -0.04601854085922241, -0.03925543278455734, -0.03366851806640625, -0.012028408236801624, 0.03980677202343941, 0.03320906683802605, -0.009492242708802223, 0.06652840226888657, 0.002821024740114808, 0.04789309576153755, -0.02971724420785904, -0.018635302782058716, -0.0621911883354187, -0.007576335221529007, 0.042967788875103, -0.031389642506837845, -0.022035235539078712, 0.003363176016137004, 0.03050749935209751, -0.004998818971216679, 0.021189846098423004, -0.09541863203048706, 0.046128809452056885, -0.022715222090482712, -0.025380033999681473, 0.04601854085922241, 0.03091181442141533, -0.01705479435622692, -0.028026467189192772, -0.018515845760703087, 0.0022788734640926123, 0.022329283878207207, -0.035579830408096313, 0.025729216635227203, -0.004472748376429081, -0.013305679894983768, -0.03613116964697838, 0.04362940043210983, -0.039953798055648804, -0.023689256981015205, 0.002993318485096097, -0.024736803025007248, 0.0037422224413603544, -0.04370291158556938, -0.04693743959069252, 0.024608157575130463, -0.03015831671655178, -0.07138019800186157, 0.011146264150738716, 0.02896374650299549, 0.03580036759376526, -0.013222979381680489, 0.02852267399430275, -0.05274489149451256, -0.009574944153428078, 0.06410250067710876, -0.044070471078157425, 0.02912914752960205, -0.07601145654916763, 0.002586705144494772, 0.033705271780490875, -0.06891754269599915, -0.0369214229285717, 0.038593824952840805, -0.06314684450626373, 0.0004683521401602775, 0.01532726176083088, 0.047819584608078, -0.02005041018128395, -0.009951693005859852, 0.026188666000962257, 0.017532622441649437, 0.022825490683317184, -0.0037927620578557253, -0.03666413202881813, -0.01995852030813694, 0.004801255650818348, 0.06564625352621078, 0.034385260194540024, 0.0402478463947773, -0.02071201801300049, -0.0025568408891558647, -0.029312927275896072, 0.005683400202542543, 0.028375649824738503, 0.07454121112823486, 0.01712830737233162, 0.0004025933158118278, -0.02175956591963768, 0.04734175652265549, -0.01597968116402626, 0.015400773845613003, -0.006937699392437935, 0.018148286268115044, 0.0357084758579731, 0.0039857313968241215, -0.08975820988416672, -0.0032184491865336895, -0.011421933770179749, -0.02646433562040329, -0.02817349135875702, -0.03596576675772667, 0.0009183262591250241, -0.025471923872828484, 0.0387408472597599, -0.03796897083520889, 0.016806691884994507, 0.012065164744853973, -0.032767992466688156, 0.05094384774565697, 0.03822626173496246, 0.0021249575074762106, 0.04840768128633499, -0.019388802349567413, 0.01339756976813078, 0.008035785518586636, 0.012956498190760612, 0.013608917593955994, 0.042710497975349426, 0.04017433151602745, -0.006524194031953812, 0.014252147637307644, -0.04451154172420502, 0.051605455577373505, -0.012947308830916882, -0.03980677202343941, 0.035690099000930786, 0.0721888318657875, -0.012000841088593006, -0.03194098547101021, 0.060426902025938034, 0.07468824088573456, -0.05844207480549812, -0.05359027907252312, 0.035579830408096313, 0.07740818709135056, -0.028228625655174255, -0.016062382608652115, 0.058552343398332596, -0.0009717373177409172, 0.00676310807466507, -0.014242959208786488, -0.011486257426440716, 0.0022363741882145405, 0.037472765892744064, 0.06663867086172104, -0.024700047448277473, -0.058883149176836014, -0.019995275884866714, -0.05877288058400154, -0.012019219808280468, -0.05079682171344757, -0.07303421944379807, -0.023946547880768776, 0.01600724831223488, 0.050245482474565506, -0.04083593934774399, -0.031812336295843124, 0.031058838590979576, 0.030268585309386253, 0.02749350480735302, 0.052303820848464966, 0.03172044828534126, 0.05550159513950348, 0.04528341814875603, 0.019682850688695908, -0.038851115852594376, 0.04326183721423149, 0.020436348393559456, 0.023413585498929024, 0.035083621740341187, 0.011899761855602264, -0.03980677202343941, 0.0015403070719912648, -0.00021981824829708785, -0.01383864227682352, -0.00010617609223118052, -0.0047415271401405334, 0.013461893424391747, -0.0012336240615695715, -0.01995852030813694, -0.04513639584183693, 0.0022065099328756332, -0.030819924548268318, -0.004417614545673132, -0.052303820848464966, -0.021465517580509186, -0.01691695861518383, 0.0043050493113696575, 0.04241644963622093, 0.017698025330901146, -0.012827851809561253, 0.048775240778923035, 0.04120350256562233, -0.05891990289092064, 0.015740767121315002, -0.016650477424263954, -0.08211295306682587, -0.008651448413729668, 0.0003954143903683871, -0.020601751282811165, 0.04745202511548996, 0.005086114630103111, -0.06208092346787453, 0.01588779129087925, -0.03796897083520889, 0.02688703127205372, -0.05064979940652847, -0.044143982231616974, 0.0636981874704361, -0.0015104428166523576, 0.02620704472064972, -0.06388197094202042, -0.00976791325956583, 0.042012132704257965, -0.032510701566934586, -0.055391326546669006, 0.007328231818974018, -0.03655386343598366, -0.008899551816284657, -0.012037597596645355, 0.01738559827208519, 0.046128809452056885, 0.015060780569911003, 0.04609205201268196, 0.030470741912722588, 0.06005934253334999, 0.022292528301477432, -0.01862611435353756, -0.024957340210676193, -0.0806427150964737, 0.033374469727277756, 0.04256347566843033, -0.019462313503026962, 0.027695663273334503, -0.09100791066884995, 0.003177098697051406, 0.07060831785202026, 0.0426737405359745, -0.04756229370832443, -0.043298594653606415, 0.04157106205821037, -0.016411563381552696, 0.01451862882822752, -0.04462181031703949, -0.031224241480231285, -0.03175720199942589, -0.02056499384343624, -0.0010808567749336362, -0.08497992157936096, -0.016815880313515663, 0.02629893459379673, 0.01656777784228325, -0.056052934378385544, 0.04359264299273491, 0.0401008203625679, -0.04035811126232147, 0.059066928923130035, -0.03818950802087784, 0.04502612724900246, -0.04171808436512947, -0.06127228960394859, 0.04649636894464493, 0.022219015285372734, -0.010484655387699604, -0.04223266988992691, -0.01605319231748581, 0.0070112114772200584, 0.012111109681427479, 0.04984116554260254, 0.0021479299757629633, 0.04366615414619446, 0.043555885553359985, -0.052377332001924515, 0.003510200185701251, -0.018359633162617683, 0.025067606940865517, 0.004661123268306255, -0.025269765406847, 0.05818478390574455, -0.0022639413364231586, 0.06458032876253128, -0.0037537089083343744, 0.006790675222873688, -0.039770014584064484, 0.0075166067108511925, -0.053222719579935074, 0.09630078077316284, 0.03127937391400337, -0.053847573697566986, 0.05094384774565697, -0.059140440076589584, 0.07733467221260071, -0.030029671266674995, 0.02990102395415306, -0.05325947701931, -0.05241408944129944, 0.012837041169404984, -0.014693220146000385, 0.01396728865802288, 0.015713199973106384, 0.023670878261327744, -0.0338890515267849, -0.05219355225563049, -0.033356089144945145, -0.05664103105664253, -0.007043372839689255, -0.019737984985113144, 0.015097536146640778, -0.03394418582320213, -0.01785423792898655, 0.03348473832011223, 0.017211006954312325, -0.04487910494208336, 0.11188533157110214, 0.022163880988955498, -0.01623697206377983, -0.02896374650299549, -0.050576288253068924, -0.040982965379953384, -0.05586915463209152, -0.04745202511548996, -0.024038439616560936, -0.009749534539878368, -0.03690304607152939, -0.028302136808633804, 0.01044789981096983, 0.0802016407251358, -0.02115309052169323, -0.05223030969500542, -0.030121561139822006, 0.0037651951424777508, -0.016108326613903046, -0.008449290879070759, 0.0019733388908207417, 0.04495261609554291, 0.01352621614933014, 0.0008051866316236556, -0.012956498190760612, 0.038667336106300354, 0.014408361166715622, -0.05454593896865845, 0.061897143721580505, 0.0042935628443956375, -0.0358554981648922, 0.037031691521406174, 0.02536165527999401, -0.004746121354401112, 0.051017358899116516, -0.03478957712650299, 0.004470451269298792, -0.0013794994447380304, -0.0088903633877635, -0.05656751990318298, 0.04590827226638794, 0.02868807502090931, -0.045430444180965424, 0.029919402673840523, 0.02896374650299549, 0.00202158116735518, 0.02672162838280201, -0.001402472029440105, 0.013002443127334118, 0.035579830408096313, 0.03015831671655178, 0.020528238266706467, -0.030103182420134544, -0.03822626173496246, 0.010714381001889706, -0.024442754685878754, -0.027309725061058998, -0.01396728865802288, -0.007351204287260771, -0.02585786208510399, 0.011449500918388367, -0.0008293077698908746, 0.02688703127205372, -0.020344458520412445, 0.07130668312311172, -0.050245482474565506, -0.014371604658663273, 0.011072752065956593, -0.048517949879169464, 0.07564389705657959, 0.00016827366198413074, 0.016126705333590508, -0.04822390154004097, 0.0012474075192585588, 0.029404817149043083, -0.04326183721423149, -0.010925727896392345, 0.010980862192809582, -0.007953084073960781, -0.027989711612462997, -0.00046978791942819953, 0.031573422253131866, -0.04759904742240906, 0.021208224818110466, -0.06318360567092896, 0.008081730455160141, -0.03822626173496246, 0.002522381953895092, 0.021116334944963455, -0.03863057866692543, -0.038924627006053925, -0.006133661139756441, 0.02585786208510399, -0.03357662633061409, 0.04936333745718002, -0.051678966730833054, 0.016383996233344078, 0.03118748590350151, -0.013360814191401005, 0.02201685681939125, 0.028394026681780815, 0.015051591210067272, 0.030286962166428566, -0.10159364342689514, 0.06424953043460846, -0.040394868701696396, -0.007640658412128687, -0.03263934701681137, 0.020326079800724983, 0.00659311143681407, -0.033797163516283035, 0.07457797229290009, 0.02115309052169323, 0.05182599276304245, 0.07998110353946686, 0.05303893983364105, 0.04682717099785805, -0.009602511301636696, 0.04734175652265549, 0.04601854085922241, -0.041166745126247406, -0.055207546800374985, -0.030562633648514748, 0.04649636894464493, -0.006537977606058121, -0.019554203376173973, -0.04756229370832443, 0.032161518931388855, 0.01221218891441822, 0.0055409702472388744, 0.003691683057695627, -0.04649636894464493, 0.03521227091550827, -0.08071622252464294, -0.025655703619122505, -0.03504686802625656, 0.01694452576339245, -0.0012726773275062442, 0.0030300745274871588, 0.05234057456254959, -0.023964926600456238, 0.051605455577373505, 0.006547166500240564, 0.017964506521821022, -0.02758539468050003, -0.007700386922806501, -0.045540712773799896, -0.03240043297410011, 0.02536165527999401, -0.0520465262234211, 0.0003115647123195231, -0.054435670375823975, 0.04057864844799042, 0.013268924318253994, 0.01464727520942688, 0.008270105347037315, 0.015299694612622261, -0.03006642684340477, 0.029110770672559738, -0.002314480720087886, -0.01443592831492424, -0.004920712672173977, -0.013709996826946735, -0.046386100351810455, -0.028412405401468277, 0.12225053459405899, 0.0930662527680397, 0.024295730516314507, 0.030342096462845802, 0.02861456386744976, 0.03436687961220741, -0.03399932011961937, -0.0016827366780489683, 0.0030277774203568697, 0.008513613604009151, -0.021686052903532982, 0.043482374399900436, 0.012147865258157253, 0.003340203547850251, -0.013792697340250015, -0.04601854085922241, -0.003429796313866973, -0.05792749300599098, -0.03690304607152939, -0.024608157575130463, 0.011835439130663872, 0.04462181031703949, 0.040137577801942825, -0.006409331224858761, 0.012469480745494366, -0.07924598455429077, 0.012157054618000984, 0.021649297326803207, 0.004638150800019503, -0.05550159513950348, 0.012515425682067871, 0.0297356229275465, 0.03341122344136238, -0.02071201801300049, 0.01827693171799183, 0.023082781583070755, 0.0020238785073161125, 0.020748775452375412, -0.02159416303038597, -0.019995275884866714, 0.03451390564441681, -0.04671690613031387, -0.004569232929497957, 0.04833417013287544, 0.03254745900630951, -0.06465384364128113, 0.013121900148689747, 0.0037537089083343744, -0.013057577423751354, -0.03749114274978638, -0.06373494118452072, -0.00933603011071682, -0.012745150364935398, -0.024350864812731743, -0.006216362118721008, -0.01977474056184292, -0.05987555906176567, -0.009248734451830387, 0.02475518174469471, -0.01121977623552084, 0.005279083736240864, 0.011265721172094345, -0.029000502079725266, -0.007328231818974018, 0.0556853748857975, -0.003105883952230215, -0.003041560761630535, 0.019168265163898468, -0.0543254017829895, 0.003328717313706875, 0.06388197094202042, 0.009574944153428078, -0.030342096462845802, 0.004920712672173977, -0.051899503916502, 0.02920266054570675, 0.012533803470432758, -0.022127125412225723, 0.0161910280585289, -0.00008564440213376656, 0.027438370510935783, 0.03774843364953995, -0.014500251039862633, -0.029570220038294792, -0.038924627006053925, -0.05252435803413391, -0.034054454416036606, 0.009648456238210201, 0.058368563652038574, -0.03194098547101021, -0.01053060032427311, -0.026262179017066956, -0.009832235984504223, 0.027787553146481514, -0.00920738372951746, -0.01761532388627529, -0.021888211369514465, -0.04881199821829796, -0.0016402375185862184, 0.0020537427626550198, -0.05925070866942406, 0.018469901755452156, 0.0036595214623957872, -0.0026096776127815247, -0.004801255650818348, -0.06957915425300598, 0.021024445071816444, 0.03458741679787636, -0.07009373605251312, -0.013232167810201645, -0.020969310775399208, 0.017780726775527, 0.033098798245191574, -0.021777942776679993, -0.03355824947357178, 0.040394868701696396, -0.03745438531041145, 0.006960671860724688, 0.03907165303826332, -0.041240256279706955, -0.01750505529344082, -0.044327761977910995, -0.0027130539529025555, -0.0529654286801815, 0.022733600810170174, -0.009202789515256882, 0.035157136619091034, 0.02912914752960205, 0.01472997572273016 ]
37,713
healpy.pixelfunc
pix2xyf
pix2xyf : nside,ipix,nest=False -> x,y,face (default RING) Parameters ---------- nside : int or array-like The healpix nside parameter, must be a power of 2 ipix : int or array-like Pixel indices nest : bool, optional if True, assume NESTED pixel ordering, otherwise, RING pixel ordering Returns ------- x, y : int, scalars or array-like Pixel indices within face face : int, scalars or array-like Face number See Also -------- xyf2pix Examples -------- >>> import healpy as hp >>> hp.pix2xyf(16, 1440) (8, 8, 4) >>> hp.pix2xyf(16, [1440, 427, 1520, 0, 3068]) (array([ 8, 8, 8, 15, 0]), array([ 8, 8, 7, 15, 0]), array([4, 0, 5, 0, 8])) >>> hp.pix2xyf([1, 2, 4, 8], 11) (array([0, 1, 3, 7]), array([0, 0, 2, 6]), array([11, 3, 3, 3]))
def pix2xyf(nside, ipix, nest=False): """pix2xyf : nside,ipix,nest=False -> x,y,face (default RING) Parameters ---------- nside : int or array-like The healpix nside parameter, must be a power of 2 ipix : int or array-like Pixel indices nest : bool, optional if True, assume NESTED pixel ordering, otherwise, RING pixel ordering Returns ------- x, y : int, scalars or array-like Pixel indices within face face : int, scalars or array-like Face number See Also -------- xyf2pix Examples -------- >>> import healpy as hp >>> hp.pix2xyf(16, 1440) (8, 8, 4) >>> hp.pix2xyf(16, [1440, 427, 1520, 0, 3068]) (array([ 8, 8, 8, 15, 0]), array([ 8, 8, 7, 15, 0]), array([4, 0, 5, 0, 8])) >>> hp.pix2xyf([1, 2, 4, 8], 11) (array([0, 1, 3, 7]), array([0, 0, 2, 6]), array([11, 3, 3, 3])) """ check_nside(nside, nest=nest) if nest: return pixlib._pix2xyf_nest(nside, ipix) else: return pixlib._pix2xyf_ring(nside, ipix)
(nside, ipix, nest=False)
[ 0.019919797778129578, -0.03505592420697212, 0.05696587264537811, -0.03209807723760605, -0.005034724250435829, 0.03385087475180626, 0.019061658531427383, -0.005354244261980057, 0.019189465790987015, -0.020504062995314598, 0.053971514105796814, -0.07741516083478928, -0.03987611085176468, 0.045171014964580536, 0.002875681035220623, 0.01216915249824524, -0.022238600999116898, 0.03465424105525017, -0.07380001991987228, -0.005860912147909403, 0.04027779400348663, -0.042030591517686844, 0.003060546237975359, 0.015510420314967632, -0.008252748288214207, -0.025890259072184563, 0.06032539904117584, 0.009019596502184868, -0.009512570686638355, 0.002569854725152254, -0.0013454079162329435, 0.004633042030036449, 0.03567670285701752, -0.012141765095293522, -0.05291253328323364, 0.026511041447520256, -0.016414204612374306, 0.042505305260419846, -0.06291807442903519, 0.01420495193451643, 0.02006586454808712, -0.03724691644310951, 0.005139709450304508, 0.030199216678738594, -0.02678491547703743, 0.02621890790760517, -0.036370519548654556, -0.013830657117068768, -0.05287601798772812, 0.0015599429607391357, -0.033814359456300735, -0.0828196182847023, -0.019445082172751427, 0.010352452285587788, 0.03129471465945244, -0.031148647889494896, -0.03363177552819252, 0.03721040114760399, 0.06317369639873505, 0.0088735306635499, -0.017071504145860672, -0.0364435538649559, 0.030546123161911964, -0.03200678899884224, 0.008937434293329716, 0.014049756340682507, 0.010589810088276863, -0.01924424059689045, -0.07062307745218277, 0.031933754682540894, -0.0556877925992012, 0.04549966752529144, -0.0029304560739547014, -0.012808192521333694, 0.06503603607416153, 0.003455381840467453, 0.09151056408882141, 0.03352222591638565, 0.013584169559180737, 0.01656940020620823, -0.018596071749925613, 0.01924424059689045, -0.01880604214966297, 0.0790218934416771, 0.023699264973402023, 0.11159468442201614, 0.08216232061386108, -0.02192820981144905, -0.0081842802464962, 0.040423858910799026, -0.06229729577898979, -0.06463436037302017, 0.006262594368308783, 0.002442046767100692, -0.00938476249575615, -0.03779466822743416, 0.012342605739831924, 0.06069056689739227, 0.015300449915230274, -0.011867890134453773, -0.03191549703478813, -0.08055558800697327, -0.0241374634206295, -0.011813115328550339, 0.05141535401344299, 0.003916403744369745, -0.007412867154926062, 0.05517655983567238, 0.013383328914642334, -0.011101041920483112, -0.005879170261323452, -0.004884093534201384, 0.023242807015776634, 0.022877641022205353, 0.01519089937210083, -0.0026177826803177595, 0.013775882311165333, 0.03940139710903168, 0.024210495874285698, -0.03083825670182705, -0.017902256920933723, -0.005984155461192131, -0.055943410843610764, 0.01717192493379116, -0.022567249834537506, 0.026821432635188103, 0.0224759578704834, 0.024886053055524826, 0.04765414446592331, 0.05094063654541969, 0.005463794339448214, -0.006728181149810553, -0.0004342050233390182, -0.04162890836596489, -0.017226699739694595, -0.03783118352293968, 0.027898671105504036, -0.007408302277326584, -0.01316422875970602, -0.018167002126574516, -0.026730140671133995, 0.08311174809932709, 0.021398719400167465, 0.05010075494647026, -0.01727234572172165, 0.04871312528848648, 0.030546123161911964, 0.02528773620724678, 0.03954746201634407, 0.004334062337875366, -0.019171208143234253, 0.014871379360556602, -0.04206710681319237, 0.0067373099736869335, 0.03281015157699585, -0.03248150274157524, -0.052949048578739166, 0.0066323247738182545, 0.02271331660449505, 0.02295067347586155, -0.02981579303741455, -0.04487888514995575, -0.004130938556045294, -0.004619348328560591, 0.015126995742321014, 0.03260931000113487, -0.046923812478780746, -0.004938868340104818, 0.04612044617533684, 0.06693489849567413, -0.03291970118880272, -0.011931794695556164, -0.019098173826932907, -0.009822961874306202, 0.061311349272727966, -0.018258292227983475, -0.013830657117068768, -0.010124223306775093, 0.02866552025079727, 0.03432559221982956, 0.03326661139726639, -0.07617359608411789, 0.02923152782022953, 0.0022606048732995987, -0.013638944365084171, 0.07595449686050415, 0.013520265929400921, -0.008759415708482265, 0.006436048075556755, -0.041555874049663544, 0.013867173343896866, 0.037155624479055405, -0.01587558537721634, -0.00003084653144469485, -0.021289169788360596, -0.013136841356754303, -0.010042061097919941, 0.05477488040924072, -0.0051488387398421764, -0.00023964009596966207, 0.012233056128025055, -0.0010418638121336699, 0.023827072232961655, -0.05926641821861267, -0.06437873840332031, 0.03574973717331886, -0.010507647879421711, -0.015802552923560143, -0.026036325842142105, 0.02227511815726757, 0.0817241221666336, -0.02842816151678562, -0.043199121952056885, -0.032518018037080765, -0.007600014563649893, 0.04677774757146835, 0.002403247868642211, 0.03040005825459957, -0.08413421362638474, 0.033449191600084305, 0.03330312669277191, -0.061274830251932144, -0.02550683543086052, 0.01727234572172165, -0.0046672760508954525, 0.0015359788667410612, 0.0302905086427927, 0.01810309663414955, -0.023516681045293808, -0.03889016434550285, 0.02713182382285595, 0.02329758182168007, 0.010818038135766983, 0.006248900666832924, 0.005495746154338121, 0.0032613875810056925, 0.004870399832725525, 0.03859803080558777, 0.042395755648612976, 0.0733618214726448, 0.00811124686151743, 0.01960940659046173, -0.015163511969149113, -0.026967499405145645, 0.04305305331945419, 0.06879724562168121, 0.061420898884534836, -0.020449288189411163, -0.02853771112859249, 0.01717192493379116, -0.0214534942060709, 0.010818038135766983, 0.0012255879119038582, 0.022786349058151245, -0.008503800258040428, 0.019755473360419273, -0.11006098985671997, -0.01316422875970602, -0.007166380062699318, 0.001764207612723112, -0.001574777765199542, 0.007695870473980904, -0.01598513498902321, -0.00974079966545105, 0.02132568694651127, -0.02121613547205925, -0.014159305952489376, -0.03003489226102829, -0.0261093582957983, 0.03918229788541794, 0.03350396826863289, 0.03595057874917984, 0.05068502202630043, 0.003514721291139722, 0.018121356144547462, -0.0063264984637498856, 0.014725313521921635, 0.006294546648859978, 0.05451926216483116, -0.005787878762930632, -0.012899483554065228, -0.037265174090862274, -0.0384884811937809, 0.06397705525159836, -0.003889016341418028, -0.030199216678738594, 0.05532262846827507, 0.09625772386789322, -0.007170944474637508, -0.057111941277980804, 0.045061465352773666, 0.025232961401343346, -0.03899971395730972, 0.011566628701984882, 0.019408565014600754, 0.04677774757146835, -0.013702848926186562, -0.028355129063129425, 0.004461870528757572, -0.05419061332941055, 0.004884093534201384, 0.0005888299201615155, -0.016980212181806564, 0.011749211698770523, 0.061274830251932144, 0.02446611225605011, -0.04856706038117409, -0.034982889890670776, 0.0031609670259058475, -0.03489159792661667, -0.00006846860196674243, -0.04717943072319031, -0.06247987970709801, -0.051670968532562256, 0.0076776123605668545, -0.00992338266223669, -0.041592393070459366, -0.018933849409222603, 0.03279189392924309, 0.034489914774894714, 0.032645829021930695, 0.04845751076936722, 0.028318611904978752, 0.06054449826478958, 0.03301099315285683, 0.048749640583992004, -0.015939489006996155, 0.045755282044410706, -0.006545598153024912, 0.017546219751238823, 0.011612274684011936, 0.02494082786142826, -0.04739852994680405, -0.006641454063355923, -0.053058598190546036, -0.018148742616176605, 0.015574323944747448, -0.03027224913239479, 0.017591865733265877, 0.0009020738070830703, -0.02262202464044094, -0.05890125408768654, -0.016067298129200935, -0.03260931000113487, -0.01043461449444294, -0.0443311370909214, -0.08223535120487213, 0.004295263439416885, 0.036936525255441666, 0.08742070943117142, 0.03918229788541794, -0.04677774757146835, 0.005098628345876932, -0.012570834718644619, -0.031239939853549004, 0.03158684819936752, -0.0384884811937809, -0.063575379550457, 0.005491181742399931, -0.020485805347561836, -0.043783385306596756, 0.020102379843592644, -0.04078902676701546, -0.02227511815726757, 0.019572889432311058, 0.005390760954469442, 0.027679571881890297, 0.00029355910373851657, -0.02943236753344536, 0.05937596783041954, 0.015336966142058372, 0.02678491547703743, -0.080774687230587, -0.014058885164558887, 0.032171111553907394, -0.03001663275063038, -0.016907179728150368, 0.02923152782022953, -0.04276092350482941, 0.021617818623781204, -0.009704282507300377, -0.01153011154383421, 0.007645660080015659, 0.046339549124240875, 0.023005448281764984, 0.017591865733265877, 0.015327837318181992, 0.04265137389302254, -0.0037224094849079847, -0.0375390499830246, -0.044367652386426926, 0.035311538726091385, 0.04305305331945419, -0.04173845797777176, 0.008887223899364471, -0.05864563584327698, 0.014013240113854408, 0.07087869197130203, 0.046339549124240875, -0.06653322279453278, -0.035548895597457886, -0.00046587176620960236, 0.04648561403155327, 0.0012449873611330986, -0.001346549135632813, 0.030582640320062637, -0.02561638504266739, -0.00939389131963253, -0.00773695157840848, -0.08128592371940613, 0.03492811322212219, 0.0375390499830246, -0.011475336737930775, -0.035439345985651016, 0.039583977311849594, 0.06715399771928787, -0.08413421362638474, 0.050173789262771606, -0.02970624342560768, 0.03040005825459957, -0.03522024676203728, -0.07734213024377823, -0.008964821696281433, 0.004916045349091291, -0.01656940020620823, -0.045755282044410706, -0.022914158180356026, 0.005212742835283279, -0.0017242674948647618, 0.08661734312772751, -0.016605917364358902, -0.006230642553418875, 0.012315218336880207, -0.0031997659243643284, -0.008677253499627113, -0.034727271646261215, 0.049114808440208435, -0.005450100637972355, -0.019992830231785774, 0.01843174733221531, -0.022640284150838852, 0.03746601566672325, 0.021197877824306488, 0.0037178448401391506, -0.07007532566785812, -0.01995631493628025, -0.02828209660947323, 0.06653322279453278, 0.006746439263224602, -0.026949239894747734, 0.04670471325516701, -0.05707542225718498, 0.08070165663957596, 0.016085555776953697, 0.004879528656601906, -0.07741516083478928, -0.04301653802394867, 0.004952562041580677, 0.0058837346732616425, 0.052255235612392426, -0.008969386108219624, 0.02285938337445259, -0.01668808050453663, -0.052364785224199295, -0.04612044617533684, -0.05291253328323364, 0.000037336783861974254, -0.01611294411122799, -0.012999904341995716, -0.05382544919848442, -0.021070070564746857, 0.028501195833086967, -0.011548370122909546, -0.03529328107833862, 0.06602198630571365, 0.02875681221485138, 0.027040531858801842, 0.006130221765488386, -0.00858139805495739, -0.04849402606487274, -0.0533142164349556, -0.04166542366147041, -0.014396663755178452, -0.05035637319087982, -0.0036151420790702105, -0.035530637949705124, -0.00754067488014698, 0.05276646837592125, -0.06919892877340317, -0.04345473647117615, -0.004062470048666, -0.036808717995882034, -0.01763751171529293, -0.022329892963171005, 0.017016729339957237, 0.027898671105504036, 0.03529328107833862, 0.01500831637531519, -0.009106324054300785, -0.007978874258697033, -0.03346744924783707, -0.043089572340250015, 0.05064850300550461, 0.005806137342005968, -0.019755473360419273, 0.024849535897374153, 0.00031352913356386125, 0.020376255735754967, 0.02364449016749859, -0.019408565014600754, 0.007554368581622839, -0.030765224248170853, 0.007330704480409622, -0.040642961859703064, 0.0315503291785717, -0.023224549368023872, -0.004989078734070063, 0.013967594131827354, 0.02738744020462036, -0.0008461577817797661, 0.041117675602436066, 0.02990708313882351, 0.031477298587560654, 0.05419061332941055, 0.043673835694789886, 0.02039451338350773, 0.027551764622330666, -0.005276646465063095, 0.008841577917337418, -0.03626096993684769, 0.011329270899295807, -0.008681817911565304, 0.043892934918403625, 0.004069317132234573, 0.006212383974343538, -0.07610056549310684, -0.008220796473324299, -0.005240130238234997, 0.03580451384186745, -0.05002772435545921, -0.013794139958918095, 0.038561515510082245, -0.09735321998596191, 0.058134403079748154, 0.0317876897752285, -0.02596329338848591, -0.027533505111932755, -0.022658541798591614, 0.06299111247062683, -0.05367938056588173, -0.0011303024366497993, 0.009950770065188408, 0.02355319820344448, -0.033120542764663696, 0.008827884681522846, 0.048859190195798874, -0.05495746061205864, 0.07299665361642838, -0.07843762636184692, -0.0394379124045372, -0.06755568087100983, 0.014615763910114765, 0.02842816151678562, -0.05291253328323364, -0.02329758182168007, -0.04403900355100632, 0.031276457011699677, -0.03363177552819252, 0.004098986741155386, -0.039839595556259155, -0.011676178313791752, 0.05952203646302223, 0.006609502248466015, 0.013666332699358463, 0.013611556962132454, 0.01286296732723713, 0.02875681221485138, -0.135330468416214, 0.05638160929083824, -0.056308574974536896, -0.016523754224181175, -0.01682501658797264, -0.003649376332759857, -0.009530829265713692, -0.007266800384968519, 0.09107236564159393, 0.03465424105525017, 0.05057547241449356, 0.06627760082483292, 0.004692381247878075, 0.02539728581905365, -0.031605105847120285, 0.04093509167432785, 0.042505305260419846, -0.02645626664161682, -0.022402925416827202, -0.04962604120373726, 0.039583977311849594, 0.016633305698633194, -0.014122789725661278, -0.07668483257293701, 0.05276646837592125, -0.029249785467982292, -0.04754459485411644, 0.010653713718056679, -0.0375390499830246, 0.02819080464541912, -0.06770174950361252, -0.04867660999298096, -0.04765414446592331, 0.035092439502477646, 0.005258388351649046, 0.02970624342560768, 0.03980308026075363, -0.05382544919848442, 0.040058694779872894, 0.04371035471558571, -0.00319063663482666, -0.05404454842209816, 0.011210591532289982, -0.055614762008190155, -0.0016329761128872633, 0.03408823162317276, -0.003069675527513027, 0.0380137674510479, -0.030418315902352333, 0.021855177357792854, 0.015227416530251503, 0.006614066660404205, 0.011877019889652729, 0.011584887281060219, 0.01705324649810791, -0.0047882371582090855, -0.006677970755845308, -0.020814454182982445, -0.0023712958209216595, 0.007787161972373724, -0.06423267722129822, -0.05280298367142677, 0.07748819887638092, 0.005386196542531252, 0.027204856276512146, 0.03826938197016716, -0.01587558537721634, 0.02715008147060871, -0.023261064663529396, 0.022056017071008682, -0.03675394505262375, 0.016277268528938293, -0.0473254956305027, 0.02459392137825489, 0.012999904341995716, -0.008444460108876228, -0.019664181396365166, -0.004190278239548206, 0.025452060624957085, -0.026383234187960625, -0.0345446914434433, -0.0027821073308587074, -0.010297677479684353, 0.053423766046762466, 0.032499760389328, 0.009941640309989452, 0.02121613547205925, -0.09319032728672028, 0.046083930879831314, 0.03638877719640732, -0.021709110587835312, -0.054920945316553116, -0.018367841839790344, 0.0032613875810056925, 0.05466533079743385, -0.03516547381877899, 0.0013145970879122615, 0.015711260959506035, -0.01844087615609169, -0.013757623732089996, -0.007933228276669979, -0.058024853467941284, 0.046193480491638184, -0.02943236753344536, 0.00637670885771513, 0.043783385306596756, 0.055030494928359985, -0.051999617367982864, 0.01704411581158638, 0.04403900355100632, 0.010416355915367603, -0.04721594601869583, -0.0347820483148098, -0.011210591532289982, -0.0015873303636908531, 0.0088735306635499, -0.008348604664206505, 0.03629748523235321, -0.0869094729423523, -0.040423858910799026, 0.05287601798772812, -0.005660071037709713, -0.02320628985762596, -0.0023941185791045427, -0.008471847511827946, 0.04670471325516701, 0.04024127870798111, 0.004555444233119488, -0.02169085294008255, 0.0010812332620844245, -0.040533408522605896, -0.0375390499830246, 0.06971016526222229, -0.02065012976527214, -0.04349125549197197, -0.01671546697616577, -0.045755282044410706, -0.002115679671987891, 0.004370579030364752, -0.018185259774327278, 0.0011622544843703508, 0.009841219522058964, 0.013757623732089996, 0.08720161020755768, 0.014971800148487091, -0.01830393821001053, -0.00037714786594733596, -0.018860816955566406, -0.010197256691753864, 0.019280757755041122, 0.03574973717331886, -0.07401911914348602, -0.03690000995993614, 0.04641257971525192, -0.029614951461553574, -0.024849535897374153, 0.00812037568539381, -0.008462718687951565, 0.00029327382799237967, 0.014615763910114765, 0.04524404928088188, 0.015355224721133709, -0.06065404787659645, 0.03629748523235321, -0.01926249824464321, -0.008056472055613995, 0.016989341005682945, -0.0389631986618042, 0.04579179733991623, 0.047471560537815094, -0.08004435896873474, -0.019664181396365166, 0.01889733411371708, 0.025360768660902977, 0.054336678236722946, -0.008887223899364471, -0.02180040255188942, 0.028555970638990402, -0.012315218336880207, 0.007326140068471432, 0.04334518685936928, -0.022530732676386833, -0.012160022743046284, -0.030783481895923615, 0.02793518826365471, -0.02910371869802475, 0.00464217085391283, 0.025232961401343346, 0.017710544168949127, 0.012853838503360748, 0.032499760389328 ]
37,715
healpy.sphtfunc
pixwin
Return the pixel window function for the given nside. Parameters ---------- nside : int The nside for which to return the pixel window function pol : bool, optional If True, return also the polar pixel window. Default: False lmax : int, optional Maximum l of the power spectrum (default: 3*nside-1) Returns ------- pw or pwT,pwP : array or tuple of 2 arrays The temperature pixel window function, or a tuple with both temperature and polarisation pixel window functions.
def pixwin(nside, pol=False, lmax=None): """Return the pixel window function for the given nside. Parameters ---------- nside : int The nside for which to return the pixel window function pol : bool, optional If True, return also the polar pixel window. Default: False lmax : int, optional Maximum l of the power spectrum (default: 3*nside-1) Returns ------- pw or pwT,pwP : array or tuple of 2 arrays The temperature pixel window function, or a tuple with both temperature and polarisation pixel window functions. """ if lmax is None: lmax = 3 * nside - 1 datapath = DATAPATH if not pixelfunc.isnsideok(nside): raise ValueError("Wrong nside value (must be a power of two).") fname = os.path.join(datapath, "pixel_window_n%04d.fits" % nside) if not os.path.isfile(fname): raise ValueError("No pixel window for this nside " "or data files missing") # return hfitslib._pixwin(nside,datapath,pol) ## BROKEN -> seg fault... pw = pf.getdata(fname) pw_temp, pw_pol = pw.field(0), pw.field(1) if pol: return pw_temp[: lmax + 1], pw_pol[: lmax + 1] else: return pw_temp[: lmax + 1]
(nside, pol=False, lmax=None)
[ 0.0287970919162035, -0.06125498563051224, 0.04650304466485977, -0.01677262969315052, -0.002863398753106594, 0.026984814554452896, -0.0014792715664952993, -0.01669107750058174, -0.01359208207577467, -0.01102770958095789, 0.022182278335094452, -0.041066210716962814, 0.015259377658367157, 0.006587629206478596, -0.024212028831243515, 0.02475571259856224, 0.00981348380446434, 0.01632862165570259, -0.05016384646296501, 0.0009185982053168118, 0.03706107661128044, -0.025607483461499214, 0.03098994679749012, 0.03162424638867378, 0.0119429100304842, 0.024791957810521126, 0.015839306637644768, -0.014199195429682732, -0.045814380049705505, -0.05038131773471832, -0.029268283396959305, 0.03162424638867378, 0.09713808447122574, -0.033798977732658386, -0.020678088068962097, 0.019880685955286026, 0.03385334461927414, 0.020551228895783424, -0.09373100101947784, -0.023197153583168983, 0.0008800873183645308, -0.05926147848367691, 0.01926451176404953, -0.0011270100949332118, -0.03405269607901573, 0.008957182057201862, 0.0400150902569294, -0.020496860146522522, -0.008984366431832314, 0.052773524075746536, -0.01373706478625536, -0.041718631982803345, -0.03579248487949371, 0.0070950668305158615, 0.005645244847983122, 0.011770742945373058, -0.06346596032381058, -0.03684360533952713, 0.043784625828266144, -0.03802158311009407, -0.01971757970750332, 0.0008715922595001757, 0.01831306517124176, 0.012287242338061333, 0.03521255403757095, -0.04614058881998062, 0.014244502410292625, -0.027854707092046738, -0.032131683081388474, 0.0429147332906723, -0.01632862165570259, 0.04276975244283676, 0.007901530712842941, -0.021638594567775726, -0.012903416529297829, -0.03568374738097191, 0.06632936000823975, -0.0108827268704772, 0.02337838150560856, 0.024592608213424683, -0.010728683322668076, 0.07270857691764832, 0.008775954134762287, 0.06477080285549164, 0.009179186075925827, 0.05523822084069252, 0.02557123824954033, -0.011734497733414173, 0.0029064402915537357, 0.009238084778189659, -0.0449807308614254, 0.005486670415848494, 0.02468322217464447, 0.014027029275894165, -0.0288514606654644, -0.05396962910890579, -0.021584225818514824, 0.05744919925928116, 0.020841192454099655, -0.027492251247167587, -0.06092877313494682, -0.07089629769325256, -0.037985339760780334, 0.023015925660729408, 0.08350975066423416, -0.007566259242594242, 0.0019515964668244123, 0.04334967955946922, -0.07267232984304428, -0.005282789468765259, 0.026676727458834648, -0.01991693116724491, -0.05364341661334038, 0.03947140648961067, 0.03994259983301163, 0.027709724381566048, -0.04324094578623772, 0.06788791716098785, 0.06310350447893143, -0.027673479169607162, -0.045379430055618286, -0.0119429100304842, -0.04980139061808586, -0.01794154942035675, 0.010592762380838394, 0.06426336616277695, 0.06313975155353546, -0.044074591249227524, 0.009278861805796623, 0.09793548285961151, -0.01627425290644169, 0.022435996681451797, -0.03017442300915718, 0.006832286715507507, -0.03031940385699272, -0.011109261773526669, 0.014480098150670528, 0.011507962830364704, 0.029721353203058243, -0.05875404179096222, -0.0037627413403242826, 0.08539452403783798, 0.005205767694860697, 0.08677185326814651, -0.015359052456915379, 0.049257706850767136, 0.044654522091150284, 0.04338592663407326, 0.10163252800703049, 0.030011316761374474, -0.007819977588951588, -0.018439924344420433, -0.02535376325249672, 0.03140677139163017, 0.041138701140880585, -0.030446264892816544, 0.018865810707211494, 0.015703385695815086, -0.025154413655400276, -0.04675676301121712, -0.02520878240466118, -0.04392961040139198, 0.014715693891048431, -0.03276598080992699, 0.010049079544842243, 0.013465222902595997, -0.01361926645040512, -0.0009095368441194296, 0.09039641171693802, 0.03178735077381134, 0.0035543295089155436, -0.06665556877851486, -0.012006339617073536, -0.017008226364850998, -0.0031125869136303663, 0.0348500981926918, -0.06063880771398544, -0.07669559121131897, -0.018992669880390167, 0.008100881241261959, 0.05342594534158707, -0.0674167275428772, -0.034542012959718704, 0.024230152368545532, -0.02513629011809826, 0.041718631982803345, 0.03628179803490639, -0.023994555696845055, -0.014761000871658325, -0.004186361096799374, -0.057992883026599884, 0.05186738446354866, -0.01926451176404953, -0.008929997682571411, 0.019228266552090645, -0.03662613034248352, 0.004684737883508205, 0.05172240361571312, 0.019246388226747513, -0.0017545112641528249, 0.001477006240747869, 0.018004978075623512, 0.007738425396382809, -0.011063954792916775, 0.0036608008667826653, -0.013012153096497059, 0.0007758813444525003, -0.012024462223052979, -0.012984969653189182, 0.03010193072259426, 0.06444459408521652, -0.04059501737356186, -0.03127991035580635, 0.01337460894137621, -0.0016956122126430273, 0.038420286029577255, -0.0062704808078706264, 0.019880685955286026, -0.07314352691173553, -0.008359130471944809, -0.009029673412442207, 0.011399226263165474, -0.0002057218225672841, 0.019065160304307938, 0.038637757301330566, -0.0077067106030881405, 0.014688510447740555, -0.005908024962991476, 0.028325898572802544, -0.017089778557419777, -0.03568374738097191, 0.04382087290287018, 0.020678088068962097, -0.034614503383636475, 0.0025190659798681736, 0.010248430073261261, -0.03947140648961067, -0.01713508553802967, 0.04893149435520172, 0.024574484676122665, 0.01830400340259075, -0.02366834506392479, 0.01596616581082344, 0.0058717792853713036, -0.0059669241309165955, 0.03628179803490639, 0.011834172531962395, -0.00697726896032691, 0.02256285585463047, 0.023324012756347656, 0.012432224117219448, -0.009274330921471119, -0.023342136293649673, 0.004625838715583086, 0.017307251691818237, 0.04871402308344841, -0.0704251080751419, -0.01625613123178482, 0.010565578937530518, -0.017189452424645424, 0.02872459962964058, 0.01656421832740307, 0.005214828997850418, -0.002917767036706209, -0.0009724001865833998, -0.03860151395201683, -0.0217654537409544, 0.02220040187239647, -0.03860151395201683, 0.023632099851965904, 0.03098994679749012, 0.04936644434928894, 0.001438495353795588, -0.020623719319701195, -0.01602959632873535, -0.05313597992062569, 0.04755416512489319, 0.04262477159500122, 0.056216850876808167, -0.05755793675780296, -0.0242482740432024, 0.01205164659768343, -0.017316313460469246, 0.08640939742326736, -0.016056779772043228, -0.03010193072259426, 0.02615116536617279, 0.02446574717760086, 0.031116805970668793, -0.040341299027204514, -0.011662006378173828, 0.03606432303786278, -0.011172691360116005, -0.020261263474822044, 0.047880373895168304, 0.04396585375070572, 0.0022562856320291758, -0.052048612385988235, 0.0012663289671763778, -0.0075526670552790165, 0.015476850792765617, -0.01574869267642498, -0.03216792643070221, 0.026187412440776825, 0.058210358023643494, -0.01025749184191227, 0.0020637311972677708, -0.052990999072790146, 0.010746805928647518, -0.03356338292360306, -0.005599937867373228, -0.016165517270565033, -0.01515970192849636, -0.02761911042034626, 0.01428074762225151, -0.012540961615741253, 0.0025190659798681736, 0.02029750868678093, -0.0008296833257190883, 0.06502452492713928, 0.044364556670188904, 0.017896242439746857, 0.04385711997747421, 0.05023633688688278, 0.03479573130607605, 0.014788185246288776, -0.022182278335094452, -0.055201977491378784, 0.012685943394899368, -0.0012787884334102273, -0.0809725672006607, 0.04005133733153343, -0.019463861361145973, 0.024737589061260223, -0.03466887027025223, 0.02308841608464718, 0.03017442300915718, -0.012133198790252209, 0.012223812751471996, -0.0313342809677124, 0.010384351015090942, -0.03896396979689598, -0.024646975100040436, -0.0001523445826023817, -0.0008359130588360131, -0.014217318035662174, -0.026241779327392578, 0.008458806201815605, 0.04269726201891899, -0.019572598859667778, 0.04958391562104225, -0.045379430055618286, -0.03903646022081375, 0.018503354862332344, 0.0008755566086620092, 0.07966772466897964, -0.016093024984002113, 0.020351877436041832, -0.01773313619196415, -0.016727322712540627, -0.03646302595734596, 0.019898807629942894, 0.002666313434019685, 0.0003126178926322609, -0.014634141698479652, 0.02299780398607254, 0.050526298582553864, 0.035049449652433395, -0.10424220561981201, 0.007838101126253605, -0.04842405766248703, -0.04682925343513489, -0.03987010940909386, -0.011915725655853748, 0.025843078270554543, 0.0023695530835539103, 0.0006150417029857635, -0.0224903654307127, -0.0005555763491429389, -0.04614058881998062, 0.024628853425383568, 0.005119684152305126, 0.03098994679749012, 0.04081249237060547, 0.005060785450041294, 0.026042429730296135, -0.04893149435520172, 0.0041025434620678425, -0.009568826295435429, -0.055636923760175705, -0.05103373900055885, 0.015250315889716148, 0.03751414641737938, 0.031225543469190598, 0.008014798164367676, -0.011290489695966244, 0.009904096834361553, 0.027945321053266525, 0.008726117201149464, -0.03477760776877403, -0.010864604264497757, -0.020406246185302734, -0.035049449652433395, 0.02535376325249672, 0.013945476152002811, 0.01661858521401882, -0.03289283812046051, -0.008137126453220844, -0.02805405855178833, -0.11091139167547226, -0.0168541818857193, 0.007389562204480171, -0.0386740043759346, -0.036154936999082565, 0.05734046548604965, 0.05589064210653305, -0.09663064032793045, 0.06643810123205185, 0.009940342977643013, -0.01728006638586521, 0.0003123347123619169, -0.09496334940195084, 0.038927722722291946, 0.02152985893189907, 0.00047119217924773693, -0.038420286029577255, 0.01508721150457859, -0.03626367449760437, -0.038927722722291946, 0.10967904329299927, -0.010837419889867306, -0.01691761240363121, -0.02013440430164337, -0.018421802669763565, 0.007081474643200636, -0.0652419924736023, 0.032784100621938705, 0.058210358023643494, -0.012731250375509262, 0.009541641920804977, 0.0231609083712101, 0.05164991319179535, 0.001555160735733807, 0.016863243654370308, -0.023849572986364365, -0.03900021314620972, -0.026984814554452896, -0.022309137508273125, -0.0697001963853836, -0.007539074867963791, 0.030373772606253624, 0.00695914588868618, 0.03744165599346161, 0.03311031311750412, 0.02600618451833725, -0.05396962910890579, -0.08285733312368393, 0.013003092259168625, -0.020188773050904274, 0.030899332836270332, 0.0010126101551577449, 0.01596616581082344, 0.020460614934563637, -0.05911649763584137, -0.00753001356497407, -0.03932642564177513, -0.02328776754438877, -0.038710251450538635, 0.03189608454704285, -0.03178735077381134, 0.02234538272023201, 0.07850787043571472, -0.047952864319086075, -0.020496860146522522, 0.08894658833742142, -0.006859470624476671, -0.051976121962070465, 0.05009135231375694, 0.021366752684116364, -0.06622062623500824, -0.0948183685541153, 0.006537791341543198, 0.006990861147642136, -0.02087743766605854, -0.05824660137295723, -0.08039263635873795, -0.06730799376964569, -0.016174577176570892, -0.02118552476167679, -0.02461072988808155, 0.033599626272916794, 0.023215277120471, -0.0037174345925450325, 0.02600618451833725, -0.05755793675780296, 0.038420286029577255, 0.033798977732658386, -0.0013410854153335094, 0.023758959025144577, -0.0048161279410123825, -0.0036902502179145813, -0.024936940521001816, 0.002738804556429386, 0.01256814505904913, -0.02622365765273571, -0.01766064576804638, -0.03561125695705414, 0.00045646741637028754, 0.040413789451122284, -0.007974021136760712, 0.022037295624613762, -0.059152740985155106, 0.011190813966095448, -0.04835156723856926, 0.03729667514562607, -0.06332097947597504, 0.031841717660427094, 0.047880373895168304, 0.004387977067381144, 0.0011813784949481487, 0.020243141800165176, 0.0033164680935442448, 0.028905827552080154, 0.06147245690226555, 0.04697423428297043, 0.04081249237060547, 0.003971153404563665, -0.02410329319536686, 0.010900849476456642, 0.03501320257782936, 0.01260439120233059, 0.04048628360033035, 0.023559609428048134, -0.0027569273952394724, 0.014471037313342094, -0.045016977936029434, -0.062016140669584274, -0.006873062811791897, 0.055636923760175705, -0.015286562032997608, -0.033074066042900085, -0.007788263261318207, 0.04447329416871071, 0.037840355187654495, 0.037695374339818954, 0.0005159327993169427, -0.03947140648961067, -0.02694856747984886, 0.008889221586287022, -0.05781165510416031, 0.06270480901002884, -0.02270783856511116, 0.05143243819475174, -0.019010791555047035, -0.0000602086765866261, 0.07727551460266113, 0.06132747605443001, 0.0005705842631869018, -0.08307480812072754, -0.054694537073373795, -0.04117494821548462, -0.01749754138290882, 0.029612615704536438, -0.024212028831243515, -0.059225231409072876, -0.07916028797626495, 0.05005510896444321, 0.034397028386592865, -0.018050285056233406, -0.00244430941529572, -0.024665098637342453, 0.12091516703367233, 0.059007760137319565, -0.031388647854328156, 0.012106014415621758, -0.0056588370352983475, 0.04842405766248703, -0.07510078698396683, -0.005885371472686529, -0.04276975244283676, -0.055999379605054855, -0.002464697463437915, 0.029485756531357765, -0.0344332754611969, -0.04110245779156685, 0.06176242232322693, -0.024628853425383568, 0.007969491183757782, 0.01612021028995514, 0.02446574717760086, 0.03736916556954384, -0.01655515655875206, 0.04081249237060547, 0.006510607432574034, 0.01549497339874506, -0.007462053094059229, -0.0851045548915863, 0.02027938701212406, 0.01736162044107914, -0.001971984514966607, -0.0669092908501625, -0.002836214378476143, -0.0435309074819088, -0.021928559988737106, 0.023849572986364365, -0.04389336332678795, 0.018195267766714096, -0.035575009882450104, -0.04102996736764908, -0.015105334110558033, 0.019445739686489105, 0.012250997126102448, 0.02747412957251072, 0.010873666033148766, 0.010674315504729748, 0.047807883471250534, -0.02183794602751732, -0.004811597056686878, 0.03582872822880745, -0.03041001781821251, -0.031116805970668793, 0.03338215500116348, 0.03744165599346161, -0.008558481000363827, 0.02834402211010456, -0.041501156985759735, 0.025879325345158577, -0.019083283841609955, -0.003805783111602068, -0.0024329826701432467, -0.010284675285220146, -0.022526610642671585, 0.05531071498990059, -0.055419448763132095, -0.07502829283475876, 0.04476325586438179, 0.02790907584130764, -0.05926147848367691, -0.048097848892211914, 0.04345841705799103, -0.004852373152971268, 0.07626064121723175, 0.0758981853723526, -0.055564433336257935, 0.07201991230249405, 0.002999319462105632, -0.006102845072746277, 0.0019266776507720351, -0.004304159432649612, -0.04556065797805786, -0.001097560627385974, -0.03639053553342819, 0.009695685468614101, -0.010384351015090942, 0.01868458278477192, -0.001956127118319273, 0.02336025796830654, -0.04367589205503464, 0.038420286029577255, -0.004290567245334387, 0.02723853290081024, 0.01625613123178482, -0.007267233449965715, 0.018575845286250114, -0.05034507438540459, 0.0020761906635016203, -0.00026362977223470807, -0.03423392400145531, -0.04769914597272873, -0.059152740985155106, 0.03657176345586777, 0.0013240952976047993, -0.006732611451297998, -0.027655357494950294, 0.002598352963104844, 0.01124518271535635, -0.04885900393128395, 0.008164310827851295, -0.059877652674913406, -0.008653625845909119, -0.0009616398019716144, 0.007394092623144388, 0.007416746113449335, 0.00499735539779067, 0.0358830988407135, 0.05897151306271553, 0.00830929260700941, 0.011063954792916775, -0.038420286029577255, -0.03017442300915718, -0.009496334940195084, -0.004725513979792595, 0.019300756976008415, 0.048025358468294144, -0.02029750868678093, -0.0872792899608612, 0.0006988595705479383, 0.06879405677318573, 0.027292901650071144, -0.025154413655400276, -0.004088951274752617, 0.025897447019815445, 0.034904468804597855, -0.014643203467130661, -0.004988294094800949, -0.014471037313342094, 0.007335193920880556, -0.05991389974951744, -0.025988060981035233, 0.03954389691352844, -0.059007760137319565, -0.02453823946416378, 0.00922449305653572, -0.009165594354271889, -0.02687607705593109, 0.013537714257836342, -0.03682548180222511, -0.0024329826701432467, 0.015522157773375511, -0.03262099623680115, 0.04008758068084717, 0.030283158645033836, -0.01705353334546089, 0.0007464318769052625, -0.004340405110269785, 0.05458580330014229, 0.036299921572208405, 0.02696669101715088, -0.04943893477320671, -0.014135765843093395, 0.01516876369714737, -0.050888754427433014, -0.005414179526269436, 0.033798977732658386, 0.04885900393128395, 0.012876232154667377, 0.07419464737176895, 0.013220565393567085, 0.002188325161114335, -0.029775721952319145, 0.03758663684129715, 0.005205767694860697, -0.003597371047362685, -0.015132518485188484, -0.04095747321844101, 0.012087891809642315, 0.0175790935754776, -0.052121102809906006, 0.019572598859667778, 0.042081087827682495, 0.0625598207116127, -0.002566638169810176, 0.05378840118646622, -0.003268895670771599, 0.005106092430651188, 0.008087288588285446, 0.012894355691969395, 0.006927431095391512, -0.01347428373992443, 0.02973947674036026, -0.027818461880087852, 0.0807550922036171, -0.019101405516266823, 0.06212487816810608, -0.03544814884662628, -0.0041025434620678425, -0.03421580046415329, -0.035049449652433395 ]
37,718
healpy.visufunc
projplot
projplot is a wrapper around :func:`matplotlib.Axes.plot` to take into account the spherical projection. You can call this function as:: projplot(theta, phi) # plot a line going through points at coord (theta, phi) projplot(theta, phi, 'bo') # plot 'o' in blue at coord (theta, phi) projplot(thetaphi) # plot a line going through points at coord (thetaphi[0], thetaphi[1]) projplot(thetaphi, 'bx') # idem but with blue 'x' Parameters ---------- theta, phi : float, array-like Coordinates of point to plot. Can be put into one 2-d array, first line is then *theta* and second line is *phi*. See *lonlat* parameter for unit. fmt : str A format string (see :func:`matplotlib.Axes.plot` for details) lonlat : bool, optional If True, theta and phi are interpreted as longitude and latitude in degree, otherwise, as colatitude and longitude in radian coord : {'E', 'G', 'C', None} The coordinate system of the points, only used if the coordinate coordinate system of the Axes has been defined and in this case, a rotation is performed rot : None or sequence rotation to be applied =(lon, lat, psi) : lon, lat will be position of the new Z axis, and psi is rotation around this axis, all in degree. if None, no rotation is performed direct : bool if True, the rotation to center the projection is not taken into account Notes ----- Other keywords are passed to :func:`matplotlib.Axes.plot`. See Also -------- projscatter, projtext
def projplot(*args, **kwds): import pylab f = pylab.gcf() wasinteractive = pylab.isinteractive() pylab.ioff() ret = None try: for ax in f.get_axes(): if isinstance(ax, PA.SphericalProjAxes): ret = ax.projplot(*args, **kwds) finally: pylab.draw() if wasinteractive: pylab.ion() # pylab.show() return ret
(*args, **kwds)
[ 0.018325522541999817, -0.014871970750391483, 0.029255744069814682, 0.04693937674164772, -0.024030212312936783, 0.01432952843606472, -0.00338574661873281, -0.030521443113684654, 0.06928801536560059, 0.024030212312936783, 0.03460784628987312, -0.03920052573084831, 0.052110664546489716, 0.054425086826086044, -0.043974023312330246, -0.054316598922014236, -0.009004549123346806, 0.0010182101977989078, -0.02444608509540558, 0.017692673951387405, 0.00943850353360176, -0.007698166184127331, 0.05945172160863876, -0.02893027849495411, -0.0018476955592632294, -0.014600750058889389, 0.07247034460306168, -0.004606242757290602, 0.02139032445847988, 0.04288913682103157, -0.031624410301446915, 0.0063601406291127205, -0.02319846674799919, 0.01741241104900837, 0.029653534293174744, 0.0819450095295906, -0.002906588837504387, 0.015540983527898788, -0.03251039981842041, 0.005564558319747448, -0.03534918278455734, 0.0025653019547462463, 0.018641948699951172, -0.032022200524806976, -0.02849632315337658, -0.05044717341661453, -0.04563751444220543, 0.05923474580049515, -0.010505307465791702, 0.05004938319325447, 0.017358167096972466, 0.025928761810064316, -0.03090115264058113, -0.023758990690112114, 0.009574114345014095, 0.02634463459253311, 0.0192567165941, 0.0900454893708229, 0.04469728097319603, -0.07984756678342819, 0.020974451676011086, -0.021806197240948677, 0.00026387578691355884, -0.01431144680827856, 0.021046778187155724, 0.02952696569263935, 0.053014736622571945, -0.03632558137178421, 0.015215517953038216, -0.03019597753882408, -0.0362170934677124, 0.03171481937170029, -0.053521014750003815, -0.06415288895368576, 0.037283897399902344, 0.022583698853850365, -0.02374090999364853, -0.006617801263928413, -0.02936423197388649, 0.023487769067287445, -0.05818602070212364, -0.016689153388142586, -0.021372243762016296, -0.0027393356431275606, -0.014383772388100624, -0.005957829300314188, 0.011156238615512848, -0.023686666041612625, 0.0033134210389107466, -0.03829645738005638, 0.0007373830885626376, 0.004289817996323109, 0.05182136222720146, 0.029472721740603447, -0.0542442724108696, -0.01299150288105011, 0.02826126478612423, 0.03196795657277107, -0.03873040899634361, 0.005180328153073788, 0.024934284389019012, -0.04158727452158928, -0.03157016634941101, -0.007946785539388657, 0.012810688465833664, -0.03191371262073517, 0.01694229431450367, 0.01305478811264038, 0.014853890053927898, 0.06852860003709793, -0.0423828586935997, 0.08708013594150543, 0.01945561170578003, -0.016951335594058037, -0.032293424010276794, 0.020865963771939278, -0.06147684156894684, -0.026001088321208954, -0.00858867634087801, -0.03354104235768318, -0.08020919561386108, 0.11499785631895065, -0.005650444887578487, 0.015559065155684948, 0.04780728369951248, 0.01654450222849846, 0.022420965135097504, -0.019799159839749336, -0.018207993358373642, -0.022258233278989792, 0.035837382078170776, -0.02169770933687687, -0.01362435333430767, -0.04259983450174332, 0.05254461616277695, -0.0037225130945444107, -0.0010244257282465696, -0.06350196152925491, -0.03404732048511505, 0.05558229610323906, -0.010749406181275845, 0.047662634402513504, -0.03833261877298355, 0.03977913409471512, -0.03160632774233818, 0.040864016860723495, 0.0556546226143837, -0.02346968837082386, -0.006554516032338142, -0.004909106530249119, 0.05789671838283539, -0.04997705668210983, -0.01354298647493124, -0.044407978653907776, 0.007069836836308241, -0.07680989056825638, 0.06415288895368576, 0.007634881418198347, 0.011318971402943134, 0.0347524955868721, -0.03706691786646843, 0.013967899605631828, 0.019708752632141113, 0.059415560215711594, 0.020468171685934067, -0.023487769067287445, 0.012883014976978302, -0.022692186757922173, -0.032763540744781494, 0.012901095673441887, -0.013470660895109177, 0.011644436977803707, -0.01887700706720352, -0.0014193918323144317, -0.014682115986943245, 0.013985981233417988, -0.006129602901637554, 0.013850370422005653, 0.034571681171655655, -0.024735387414693832, -0.00676245242357254, -0.020468171685934067, 0.02052241563796997, 0.07098767161369324, 0.034734416753053665, 0.09706108272075653, -0.007485709618777037, 0.011074871756136417, -0.029418475925922394, -0.027971962466835976, 0.014989500865340233, 0.0409725047647953, -0.01454650517553091, -0.023180386051535606, -0.009049752727150917, 0.0023505850695073605, 0.0028523446526378393, -0.013316968455910683, 0.0014171316288411617, -0.004321460146456957, -0.010423940606415272, -0.031027723103761673, -0.0633934736251831, -0.013407375663518906, -0.028966441750526428, 0.007359139621257782, 0.027411438524723053, -0.009601236321032047, 0.044950418174266815, 0.05829451233148575, 0.06769685447216034, -0.021209510043263435, -0.02610957622528076, -0.043178439140319824, -0.012792607769370079, 0.04740949347615242, 0.018768517300486565, -0.025060852989554405, 0.04075552895665169, 0.0714939534664154, -0.023994049057364464, -0.004059279803186655, 0.029942838475108147, 0.03317941352725029, -0.0030308987479656935, -0.04165960103273392, 0.10270249098539352, 0.09264921396970749, 0.02319846674799919, -0.10313644260168076, 0.012421938590705395, -0.0031597288325428963, -0.008177324198186398, -0.01949177496135235, 0.0314616784453392, -0.09785666316747665, 0.032763540744781494, 0.0059126256965100765, -0.02303573489189148, 0.0371030829846859, 0.00012826510646846145, 0.017493776977062225, -0.020648986101150513, 0.0860675796866417, -0.04921763762831688, 0.018967414274811745, 0.007815695367753506, -0.019003575667738914, 0.04502274468541145, 0.0027212542481720448, 0.019130146130919456, 0.04863902926445007, -0.026236146688461304, 0.04845821484923363, -0.0209563709795475, -0.02350585162639618, -0.02610957622528076, -0.005406345706433058, 0.046686235815286636, -0.02287300117313862, -0.004337281454354525, -0.004940749146044254, -0.04325076565146446, -0.020703230053186417, 0.08331920206546783, 0.006812176667153835, -0.01969067007303238, -0.03352295979857445, 0.029816268011927605, 0.022583698853850365, -0.009135639294981956, 0.07442314177751541, -0.013027666136622429, 0.007359139621257782, 0.038115642964839935, 0.02035968378186226, 0.0010481575736775994, -0.04118948429822922, 0.050302520394325256, 0.03807947784662247, 0.033866506069898605, -0.047228679060935974, -0.062055446207523346, 0.01875043660402298, -0.012042228132486343, -0.00558263948187232, 0.053954970091581345, 0.0595240481197834, 0.025386318564414978, 0.024066375568509102, 0.025693703442811966, 0.03419197350740433, 0.0031393871176987886, -0.04928996041417122, -0.018804680556058884, 0.022854920476675034, -0.02869522012770176, -0.01328984647989273, -0.0509534515440464, -0.021372243762016296, 0.03086499124765396, -0.02936423197388649, 0.005370182916522026, -0.02755608968436718, 0.03742854669690132, 0.020902125164866447, -0.009384258650243282, -0.02233055792748928, 0.050013218075037, 0.029454639181494713, -0.04950693994760513, 0.013208480551838875, -0.039092037826776505, 0.02216782607138157, -0.055799275636672974, 0.001597945811226964, -0.012033187784254551, -0.025928761810064316, 0.012629874981939793, -0.030557606369256973, -0.012575630098581314, -0.042238205671310425, -0.008692644536495209, -0.022818757221102715, 0.041297972202301025, 0.015206477604806423, -0.061549168080091476, 0.023379281163215637, 0.07427848875522614, 0.060247305780649185, -0.028912195935845375, 0.06183847039937973, -0.03373993560671806, 0.004827740136533976, -0.013723800890147686, -0.0685647577047348, 0.04787961021065712, 0.0017685892526060343, 0.029490802437067032, -0.02779114805161953, -0.040900181978940964, -0.07731616497039795, -0.05449741333723068, 0.02079363726079464, -0.05279775708913803, 0.07087918370962143, -0.020847881212830544, 0.005108002107590437, 0.03493331000208855, -0.09141968190670013, -0.022674106061458588, 0.03683185949921608, -0.0078111751936376095, 0.011309931054711342, -0.07294046133756638, 0.12418322265148163, 0.020847881212830544, 0.03536726534366608, -0.029942838475108147, 0.03373993560671806, 0.03742854669690132, -0.0032117129303514957, -0.039887621998786926, -0.006581638474017382, -0.025151260197162628, -0.000889380055014044, -0.01407638844102621, -0.015785083174705505, 0.06744371354579926, -0.023180386051535606, -0.017936771735548973, 0.013606271706521511, -0.011020627804100513, -0.009185363538563251, -0.02846016176044941, 0.06653963774442673, 0.035602323710918427, 0.0029178897384554148, -0.04936228692531586, -0.06614185124635696, -0.06455068290233612, -0.11290041357278824, 0.013588190078735352, -0.0065002720803022385, -0.05113426595926285, 0.044878095388412476, 0.0010662389686331153, -0.0005113652441650629, 0.0011233084369450808, -0.004231053404510021, -0.012557548470795155, -0.0670459195971489, 0.04292530193924904, 0.014962377957999706, 0.027339112013578415, 0.005184848327189684, -0.007205447647720575, 0.03220301494002342, -0.007277773227542639, 0.010496266186237335, -0.032926272600889206, -0.011680600233376026, 0.013814208097755909, -0.02366858348250389, -0.015540983527898788, -0.04028541222214699, 0.01330792810767889, -0.03558424115180969, 0.02704980969429016, 0.0073410579934716225, 0.06270638108253479, -0.00218898244202137, -0.02229439653456211, -0.06664812564849854, 0.010568592697381973, 0.06241707503795624, -0.06220009922981262, -0.006120562087744474, 0.06737138330936432, 0.00574085209518671, 0.014058306813240051, -0.026778588071465492, -0.015486739575862885, -0.0017075644573196769, 0.05594392493367195, 0.011834291741251945, 0.022276313975453377, -0.0031981519423425198, 0.0414426252245903, 0.04867519438266754, -0.02634463459253311, -0.03625325486063957, 0.015929734334349632, 0.020305439829826355, 0.011834291741251945, 0.0021347380243241787, -0.017972934991121292, 0.057535089552402496, -0.020938288420438766, 0.03985145688056946, 0.014871970750391483, 0.04158727452158928, -0.053557176142930984, -0.07586965709924698, -0.006672045215964317, 0.008611277677118778, 0.022854920476675034, -0.004321460146456957, -0.06541859358549118, 0.021480731666088104, 0.059813350439071655, 0.08057082444429398, 0.009144680574536324, -0.07406151294708252, 0.06393591314554214, -0.04137029871344566, -0.018126627430319786, -0.036108601838350296, -0.0020443310495465994, -0.00099843367934227, 0.010351615026593208, 0.005587160121649504, 0.0016137671191245317, -0.018027178943157196, 0.03695842996239662, 0.003889766288921237, -0.006188367493450642, 0.002906588837504387, -0.049000658094882965, -0.0657440572977066, -0.007842817343771458, 0.005252653732895851, -0.06277870386838913, -0.03534918278455734, 0.01894933171570301, 0.032926272600889206, -0.036886103451251984, 0.06541859358549118, 0.009266729466617107, -0.009962864220142365, -0.1152871623635292, 0.014790604822337627, 0.06483998894691467, 0.06368277221918106, -0.019057821482419968, 0.026272308081388474, 0.07825640588998795, -0.015016622841358185, -0.040466226637363434, -0.02932806871831417, 0.058475326746702194, 0.00842142291367054, -0.019961891695857048, 0.04017692431807518, -0.022782593965530396, 0.01717735268175602, 0.021842360496520996, -0.05051949992775917, -0.01330792810767889, 0.027664579451084137, 0.040900181978940964, -0.032727375626564026, 0.03493331000208855, -0.00582673866301775, 0.013461620546877384, -0.025892598554491997, -0.03782634064555168, 0.03137126937508583, -0.00677149323746562, 0.022258233278989792, -0.019600262865424156, -0.050013218075037, -0.008222527801990509, -0.033197496086359024, 0.048530541360378265, 0.04205739125609398, -0.010532429441809654, 0.003114525228738785, -0.031895630061626434, 0.0009283681283704937, -0.012919177301228046, -0.00021005529561080039, -0.001496237819083035, 0.06614185124635696, -0.029219580814242363, -0.003290819237008691, -0.016110548749566078, 0.03717540577054024, -0.017195433378219604, 0.012783566489815712, -0.010206963866949081, -0.04028541222214699, -0.051315080374479294, 0.010035189799964428, -0.017692673951387405, 0.024355677887797356, -0.062489401549100876, -0.0031167855486273766, 0.035909708589315414, -0.028948359191417694, -0.015848368406295776, 0.011535948142409325, 0.018099505454301834, -0.018488256260752678, 0.05814985930919647, -0.01124664582312107, 0.014166795648634434, -0.009800131432712078, 0.06389975547790527, 0.032564643770456314, 0.03417389094829559, 0.0026489286683499813, 0.006554516032338142, -0.015061826445162296, 0.033902671188116074, 0.07200022786855698, -0.01297342125326395, -0.02625422738492489, -0.09959248453378677, -0.025693703442811966, 0.005908105056732893, -0.009171802550554276, 0.054895203560590744, 0.04064704105257988, -0.055799275636672974, -0.04140646010637283, 0.02952696569263935, 0.05160438269376755, 0.04701170325279236, -0.03735622018575668, 0.01513415202498436, -0.01949177496135235, -0.027809230610728264, 0.008832775987684727, 0.06125986576080322, 0.007345578633248806, 0.093227818608284, 0.004967871122062206, -0.013823248445987701, 0.010206963866949081, 0.01173484418541193, -0.023578176274895668, 0.01855154149234295, 0.00009238477650796995, -0.028207020834088326, 0.06191079691052437, -0.02912917360663414, -0.00019211512699257582, 0.022059336304664612, -0.022981489077210426, -0.011626355350017548, 0.03285394608974457, 0.020865963771939278, 0.017222555354237556, -0.024355677887797356, -0.020395847037434578, -0.02303573489189148, 0.017059823498129845, 0.025621376931667328, -0.0016341087175533175, -0.05648636817932129, 0.018135668709874153, 0.0107132438570261, -0.03525877743959427, -0.039887621998786926, -0.030051326379179955, -0.022005092352628708, 0.02477155067026615, -0.04961542785167694, -0.014962377957999706, 0.001008039340376854, -0.014654994010925293, -0.012340571731328964, -0.06650348007678986, -0.0107132438570261, -0.05514834448695183, -0.02005229890346527, 0.031353190541267395, -0.0019087203545495868, 0.035674650222063065, -0.011554029770195484, 0.00967356190085411, -0.027773067355155945, 0.013027666136622429, -0.0014126112218946218, 0.02893027849495411, 0.068456269800663, -0.02621806412935257, 0.014184877276420593, -0.017457615584135056, -0.01218687929213047, 0.01818087138235569, -0.04259983450174332, -0.04165960103273392, 0.004231053404510021, -0.03977913409471512, -0.02846016176044941, 0.0005783230299130082, -0.02979818731546402, 0.023451607674360275, -0.022023174911737442, -0.042672161012887955, -0.00969164352864027, -0.0036637485027313232, 0.09279386699199677, 0.031859468668699265, -0.02940039522945881, 0.003914628177881241, 0.08100477606058121, -0.02386748045682907, 0.015206477604806423, -0.030159814283251762, 0.003580122021958232, 0.026326553896069527, 0.02263794280588627, 0.016083426773548126, -0.027881555259227753, -0.011074871756136417, -0.002960833255201578, -0.01965450868010521, 0.04115331918001175, -0.03692226856946945, -0.001095056184567511, 0.00009146657976089045, 0.057571254670619965, -0.05221915245056152, -0.07753314822912216, 0.012557548470795155, -0.021372243762016296, 0.024482248350977898, -0.015595228411257267, -0.0261819027364254, 0.014763482846319675, 0.044552627950906754, -0.01787348836660385, 0.01891317032277584, 0.03337830677628517, -0.01965450868010521, -0.03113621287047863, 0.006834778003394604, -0.0033495838288217783, -0.053954970091581345, -0.04328692704439163, 0.015016622841358185, -0.05200217664241791, -0.009556032717227936, 0.032329585403203964, -0.029255744069814682, 0.07319360226392746, 0.04599914327263832, -0.011056791059672832, 0.0347524955868721, 0.06889022141695023, 0.01617383398115635, 0.030141733586788177, 0.0017459874507039785, -0.050881125032901764, -0.011888536624610424, -0.017719795927405357, -0.011933740228414536, -0.004782536532729864, -0.019708752632141113, 0.0020488514564931393, 0.05880079045891762, -0.031425513327121735, 0.003277258016169071, 0.019365204498171806, 0.017620347440242767, 0.0017143449513241649, -0.04010459780693054, -0.04780728369951248, -0.010532429441809654, 0.06617800891399384, -0.01720447465777397, 0.030449118465185165, -0.054461248219013214, -0.009045232087373734, 0.005157726351171732, -0.022312477231025696, -0.010469144210219383, -0.004922667518258095, 0.0020578920375555754, 0.006970388814806938, 0.028008125722408295, 0.025639459490776062, -0.01677052117884159, -0.013452579267323017, -0.028315510600805283, -0.016399851068854332, 0.008751409128308296, -0.03493331000208855, -0.02327079325914383, -0.01771075464785099, -0.011092953383922577, -0.011581151746213436, 0.03786250203847885, -0.04335925355553627, -0.05200217664241791, -0.07579732686281204, -0.025693703442811966, -0.03464400768280029, -0.0007797614089213312, 0.002005907939746976, -0.06639499217271805, 0.03305284306406975, -0.00033337625791318715, -0.04256367310881615, 0.004633364733308554, -0.0074043432250618935, -0.03779017552733421, 0.03930901736021042, 0.06578022241592407, 0.02149881236255169, -0.026543529704213142, -0.0049317083321511745, -0.029219580814242363, -0.01041490025818348, 0.03963448107242584, 0.010857895016670227, -0.015007581561803818, -0.06277870386838913, 0.0690348744392395, -0.04498658329248428, 0.022746430709958076, 0.02366858348250389, -0.01914822869002819, -0.032094527035951614, 0.006093439646065235 ]
37,719
healpy.visufunc
projscatter
Projscatter is a wrapper around :func:`matplotlib.Axes.scatter` to take into account the spherical projection. You can call this function as:: projscatter(theta, phi) # plot points at coord (theta, phi) projplot(thetaphi) # plot points at coord (thetaphi[0], thetaphi[1]) Parameters ---------- theta, phi : float, array-like Coordinates of point to plot. Can be put into one 2-d array, first line is then *theta* and second line is *phi*. See *lonlat* parameter for unit. lonlat : bool, optional If True, theta and phi are interpreted as longitude and latitude in degree, otherwise, as colatitude and longitude in radian coord : {'E', 'G', 'C', None}, optional The coordinate system of the points, only used if the coordinate coordinate system of the axes has been defined and in this case, a rotation is performed rot : None or sequence, optional rotation to be applied =(lon, lat, psi) : lon, lat will be position of the new Z axis, and psi is rotation around this axis, all in degree. if None, no rotation is performed direct : bool, optional if True, the rotation to center the projection is not taken into account Notes ----- Other keywords are passed to :func:`matplotlib.Axes.plot`. See Also -------- projplot, projtext
def projscatter(*args, **kwds): import pylab f = pylab.gcf() wasinteractive = pylab.isinteractive() pylab.ioff() ret = None try: for ax in f.get_axes(): if isinstance(ax, PA.SphericalProjAxes): ret = ax.projscatter(*args, **kwds) finally: pylab.draw() if wasinteractive: pylab.ion() # pylab.show() return ret
(*args, **kwds)
[ -0.0052542854100465775, -0.022755131125450134, 0.021303819492459297, 0.045796941965818405, -0.020587123930454254, 0.002895904006436467, 0.004546546842902899, -0.05776578187942505, 0.10592782497406006, 0.029492083936929703, 0.020569205284118652, -0.052318885922431946, 0.04468606039881706, 0.040529217571020126, -0.018033890053629875, -0.028363285586237907, -0.023453911766409874, -0.003187062218785286, -0.021303819492459297, 0.005142301321029663, 0.03698156774044037, 0.018813297152519226, 0.050921328365802765, -0.07242223620414734, 0.012945340946316719, 0.019637499004602432, 0.03599610924720764, 0.012918464839458466, 0.010069593787193298, 0.023149315267801285, -0.012354065664112568, 0.0033595175482332706, -0.02854246087372303, 0.006262140814214945, -0.0006590253324247897, 0.06683199852705002, 0.011897170916199684, 0.015964427962899208, -0.02085588499903679, -0.01078629121184349, -0.039274998009204865, 0.00845254585146904, 0.004981044679880142, -0.026571543887257576, -0.015265647321939468, -0.050992995500564575, -0.03841496258974075, 0.05228305235505104, -0.048269547522068024, 0.03676655888557434, 0.009594782255589962, 0.016036096960306168, -0.010410024784505367, -0.030835891142487526, 0.06016672030091286, -0.006521943490952253, 0.02133965492248535, 0.09610907733440399, 0.03759076073765755, -0.0558307021856308, 0.0682295635342598, -0.0158927571028471, -0.008188264444470406, 0.012461570091545582, 0.0044860756024718285, -0.004551026504486799, 0.03984835743904114, -0.013420152477920055, 0.00795085821300745, -0.004112049471586943, -0.04368268698453903, 0.029062066227197647, -0.04289431869983673, -0.043252669274806976, 0.011682162061333656, 0.027288241311907768, 0.015453780069947243, -0.016555702313780785, 0.003632758278399706, 0.004053817596286535, -0.0807000920176506, -0.02730615809559822, -0.03676655888557434, 0.009684368968009949, -0.044327713549137115, 0.004062776453793049, -0.005769411567598581, -0.028739552944898605, -0.01674383506178856, -0.0286858007311821, -0.029886268079280853, 0.03737575188279152, 0.0379849448800087, 0.020354196429252625, -0.03809244930744171, 0.023005975410342216, 0.05561569333076477, 0.02970709279179573, -0.028363285586237907, 0.023292655125260353, 0.049201253801584244, -0.05110049992799759, -0.003984387964010239, -0.010212933644652367, 0.019135812297463417, -0.021751755848526955, 0.02691197581589222, 0.027628671377897263, -0.008775060065090656, 0.0767582580447197, -0.03266346827149391, 0.08643366396427155, 0.031158404424786568, -0.030620882287621498, -0.05575903132557869, 0.00025546332472003996, -0.0573716014623642, -0.008725786581635475, -0.04124591499567032, -0.032376788556575775, -0.0651835948228836, 0.08471359312534332, 0.004020222462713718, 0.007892626337707043, 0.011135680601000786, 0.04837705194950104, 0.026428204029798508, -0.006862374488264322, -0.02784368023276329, -0.006965399719774723, 0.004990003537386656, -0.030620882287621498, -0.026320699602365494, -0.019279150292277336, 0.077546626329422, -0.023310571908950806, -0.00841223169118166, -0.07163387537002563, -0.017621789127588272, 0.0318213514983654, -0.01132381334900856, 0.05314308777451515, -0.019332902505993843, 0.05264139920473099, -0.00034043111372739077, 0.023238902911543846, 0.05411062762141228, -0.03981252387166023, -0.009433525614440441, -0.02071254514157772, 0.055329013615846634, -0.016779670491814613, -0.00938873179256916, -0.05500650033354759, -0.015122308395802975, -0.03271722048521042, 0.051853034645318985, -0.030764222145080566, 0.013115555979311466, 0.0162958987057209, -0.06149260699748993, -0.016080889850854874, -0.008062842302024364, 0.07202805578708649, 0.019798755645751953, -0.02653570845723152, 0.006024734582751989, -0.011064010672271252, -0.02418852597475052, -0.002985491184517741, 0.003321442985907197, 0.0244393702596426, 0.01132381334900856, -0.0015431384090334177, 0.016770711168646812, -0.019798755645751953, -0.006091924849897623, -0.017720334231853485, 0.045402757823467255, -0.043467678129673004, -0.016224229708313942, -0.03830745816230774, 0.03468813747167587, 0.04332433640956879, 0.01551649160683155, 0.06801455467939377, 0.004945209715515375, 0.013339524157345295, -0.03538691624999046, -0.03063879907131195, 0.03312932327389717, 0.04837705194950104, -0.024098938331007957, 0.002936218399554491, -0.027592837810516357, 0.0024434891529381275, -0.024994811043143272, -0.023453911766409874, -0.003386393655091524, 0.010929630137979984, -0.04156842827796936, 0.002391976537182927, -0.038773313164711, 0.0021097769495099783, -0.01652882620692253, 0.022916389629244804, 0.037339918315410614, -0.011861336417496204, 0.009048300795257092, 0.05966503173112869, 0.06844457238912582, -0.014692289754748344, 0.0004608138115145266, -0.05593820661306381, 0.014916257932782173, 0.04117424786090851, 0.029187487438321114, -0.022916389629244804, 0.013276813551783562, 0.06937627494335175, -0.0010660869302228093, -0.051064666360616684, 0.017433656379580498, 0.04740951210260391, -0.007054986897855997, -0.04070839285850525, 0.08428357541561127, 0.05264139920473099, 0.020425867289304733, -0.10721787810325623, 0.02110672928392887, -0.030352121219038963, 0.010840043425559998, -0.020031683146953583, 0.020837966352701187, -0.105497807264328, 0.044793568551540375, -0.006893729791045189, -0.0442202091217041, 0.022629709914326668, -0.0224863700568676, 0.021357571706175804, -0.04443521797657013, 0.07496651262044907, -0.036193203181028366, 0.02651779167354107, 0.010060635395348072, -0.013796418905258179, 0.030656717717647552, -0.0034423856995999813, 0.016403404995799065, 0.05396728962659836, -0.047517016530036926, 0.029438331723213196, -0.04203428328037262, -0.09016048908233643, -0.019798755645751953, 0.010401066392660141, 0.03499273583292961, -0.008098676800727844, -0.04697949439287186, 0.0012553397100418806, -0.04271514341235161, -0.010875877924263477, 0.06554194539785385, -0.000871234864462167, -0.03239470720291138, -0.013017010875046253, 0.03776993602514267, 0.037805769592523575, -0.0012116660363972187, 0.07661491632461548, 0.002391976537182927, 0.018419114872813225, 0.020497536286711693, 0.035010650753974915, -0.021124646067619324, -0.03117632307112217, 0.06378603726625443, 0.014737083576619625, 0.06188679113984108, -0.03278889134526253, -0.08055675029754639, 0.01768450066447258, -0.019440408796072006, -0.02365100383758545, 0.06070424243807793, 0.02963542379438877, 0.024618543684482574, 0.041389256715774536, 0.015310441143810749, 0.03085380792617798, -0.0041098096407949924, -0.07095301151275635, -0.012855753302574158, 0.02388392947614193, -0.010024799965322018, 0.001272137276828289, -0.01969125121831894, -0.02590859867632389, 0.022916389629244804, -0.01690509170293808, -0.0016159279039129615, -0.004842184484004974, 0.06328435242176056, 0.027091149240732193, -0.010580240748822689, -0.04131758585572243, -0.0057738907635211945, 0.02488730661571026, -0.03436562418937683, 0.010651909746229649, -0.03599610924720764, 0.009052779525518417, -0.052533894777297974, -0.004136685747653246, 0.013679955154657364, -0.020210856571793556, 0.023776425048708916, -0.021751755848526955, -0.009290185756981373, -0.07561153918504715, -0.022826801985502243, -0.01542690396308899, 0.06081174686551094, 0.036945734173059464, -0.042320962995290756, -0.0006998995086178184, 0.07718827575445175, 0.06636615097522736, -0.013921840116381645, 0.04705116152763367, -0.042392630130052567, 0.03302181884646416, 0.0026696964632719755, -0.04647780582308769, 0.010096469894051552, 0.007561154197901487, 0.055257342755794525, -0.04228512570261955, -0.036641135811805725, -0.054253969341516495, -0.0666528269648552, 0.008380875922739506, -0.06120593100786209, 0.051960539072752, -0.00331696355715394, 0.0023740590550005436, 0.03527941182255745, -0.08134511858224869, 0.006750390399247408, 0.020802132785320282, 0.012855753302574158, 0.04518774896860123, -0.053465601056814194, 0.16340693831443787, 0.025012727826833725, 0.02279096655547619, -0.004761556163430214, 0.00606504874303937, 0.06220930442214012, 0.00655329879373312, 0.025729425251483917, -0.022235525771975517, -0.029527919366955757, -0.0015655352035537362, -0.0012586992233991623, -0.019565830007195473, 0.0814167857170105, -0.013894964009523392, -0.01627798192203045, 0.026894057169556618, 0.001727911876514554, 0.0020974588114768267, -0.04289431869983673, 0.030370038002729416, 0.014719165861606598, -0.01233614794909954, -0.04289431869983673, -0.046585310250520706, -0.061456773430109024, -0.09954922646284103, 0.03001168929040432, 0.0023986955638974905, -0.012371983379125595, 0.041675932705402374, 0.013670996762812138, -0.014907298609614372, -0.008309206925332546, -0.007211764343082905, -0.0005257644806988537, -0.06292600184679031, 0.05493482947349548, -0.017164895310997963, 0.017030514776706696, -0.019422490149736404, -0.00880193617194891, 0.03302181884646416, -0.03329057991504669, 0.015623996034264565, -0.02062295749783516, -0.008259933441877365, 0.029438331723213196, -0.03381018340587616, -0.042392630130052567, -0.044793568551540375, -0.005558881442993879, -0.04755285009741783, -0.000774368760176003, 0.046585310250520706, 0.03560192510485649, 0.026876140385866165, 0.003043722826987505, -0.06464607268571854, 0.033935606479644775, 0.045402757823467255, -0.07919502258300781, 0.03228720277547836, 0.03751908987760544, 0.03080005571246147, 0.02343599498271942, -0.07890834659337997, -0.02264762669801712, 0.017433656379580498, 0.05031213536858559, 0.008707869797945023, 0.00517813628539443, -0.01136860717087984, 0.03588860481977463, 0.027359910309314728, -0.029975855723023415, -0.036641135811805725, 0.004490555264055729, 0.016385486349463463, 0.037124909460544586, 0.005505129229277372, -0.015149184502661228, 0.06428772956132889, -0.03216177970170975, 0.03769826516509056, 0.012784084305167198, 0.027897432446479797, -0.04948793351650238, -0.05726409703493118, -0.028667882084846497, 0.00903934147208929, 0.00014074979117140174, 0.008936316706240177, -0.022558040916919708, 0.00903934147208929, 0.08277851343154907, 0.08392522484064102, 0.024941058829426765, -0.07374812662601471, 0.06636615097522736, -0.02411685697734356, -0.031606338918209076, -0.040995072573423386, -0.013258895836770535, 0.002559952437877655, -0.002701051998883486, -0.015149184502661228, -0.014943134039640427, -0.016269022598862648, 0.05500650033354759, -0.056583233177661896, -0.021160481497645378, -0.00560367526486516, -0.033469751477241516, -0.08342353999614716, 0.012237602844834328, 0.005245326552540064, -0.030119193717837334, -0.022163856774568558, 0.018490783870220184, 0.038199953734874725, -0.05744326859712601, 0.049523767083883286, -0.007072904147207737, 0.00021654889860656112, -0.10263101756572723, -0.002148971427232027, 0.05930668115615845, 0.055257342755794525, -0.02535315789282322, 0.03631862252950668, 0.052856408059597015, -0.004403207451105118, -0.009711245074868202, -0.00211537629365921, 0.04783952981233597, 0.026929892599582672, -0.0011271181283518672, 0.012112180702388287, -0.023400159552693367, 0.020676709711551666, 0.009209557436406612, -0.04181927442550659, -0.01721864752471447, 0.048735398799180984, 0.02861412987112999, -0.03561984375119209, 0.043001823127269745, -0.035404834896326065, 0.0076552205719053745, -0.03560192510485649, -0.0178457573056221, 0.018741628155112267, -0.007126656360924244, 0.04977461323142052, 0.010212933644652367, -0.06066840514540672, -0.010920671746134758, -0.032985981553792953, 0.07303143292665482, 0.029814597219228745, -0.0008505178266204894, 0.037734102457761765, -0.03884498029947281, -0.013769542798399925, -0.007193846628069878, 0.004519670736044645, -0.0020280287135392427, 0.09331395477056503, -0.02024669200181961, -0.01213905680924654, 0.007399897091090679, 0.017702417448163033, -0.0364261269569397, 0.0005072871572338045, -0.018705792725086212, -0.02807660773396492, -0.05575903132557869, -0.010804207995533943, 0.01613464206457138, 0.007601468358188868, -0.044936906546354294, 0.001757027697749436, 0.05869748815894127, -0.027574919164180756, -0.0004308581119403243, 0.00285111041739583, 0.026177359744906425, -0.0027615234721451998, 0.013420152477920055, -0.0442202091217041, -0.0022083227522671223, -0.03031628578901291, 0.023131398484110832, 0.021285902708768845, 0.02528148889541626, 0.0015364193823188543, -0.022755131125450134, -0.002757044043391943, 0.03388185426592827, 0.07123968750238419, -0.028202028945088387, -0.03495689854025841, -0.12277020514011383, 0.016027137637138367, 0.004434563219547272, -0.0003961430920753628, 0.08177513629198074, 0.028596213087439537, -0.040135037153959274, -0.03608569875359535, 0.014817711897194386, 0.051458850502967834, 0.011888212524354458, -0.08041340857744217, 0.02288055419921875, 0.00849286001175642, -0.030155029147863388, 0.04336017370223999, 0.058661654591560364, 0.009514153935015202, 0.09331395477056503, -0.03474188968539238, -0.020963389426469803, 0.010974423959851265, 0.001361724454909563, -0.040206704288721085, 0.008138990961015224, 0.006960920058190823, -0.019655417650938034, 0.07098884135484695, -0.03359517455101013, -0.019332902505993843, 0.02537107653915882, -0.017657624557614326, -0.012291355058550835, 0.043467678129673004, 0.020837966352701187, 0.004963126964867115, -0.016071932390332222, -0.01373370736837387, -0.013545574620366096, 0.01365307904779911, 0.03359517455101013, 0.0012497404823079705, -0.0658644586801529, 0.03002960793673992, 0.03078213892877102, -0.02288055419921875, -0.01954791322350502, -0.050598811358213425, -0.05217554792761803, 0.005652948282659054, -0.023328488692641258, 0.01628694124519825, 0.012963258661329746, -0.00471228314563632, -0.011816542595624924, -0.055185675621032715, 0.013500780798494816, -0.026643212884664536, -0.018634123727679253, 0.03653363138437271, 0.01961958222091198, 0.010374190285801888, 0.004380811005830765, 0.018508702516555786, -0.036802396178245544, 0.02227136120200157, -0.024994811043143272, 0.034723974764347076, 0.045331090688705444, -0.036193203181028366, 0.00655329879373312, -0.02040794864296913, -0.0357094332575798, 0.03063879907131195, -0.007740328554064035, -0.03452688083052635, -0.001455790945328772, -0.034473128616809845, -0.03549442067742348, 0.028793305158615112, -0.05110049992799759, 0.029832515865564346, -0.0054558562114834785, -0.01798909716308117, 0.008730266243219376, -0.0011567939072847366, 0.05020463094115257, -0.010427942499518394, -0.010983382351696491, -0.023059727624058723, 0.0752531886100769, -0.014333941042423248, 0.0013796418206766248, -0.018195146694779396, 0.004748118110001087, 0.027861598879098892, 0.024600626900792122, -0.012766166590154171, -0.05575903132557869, -0.013464946299791336, 0.00849286001175642, -0.03126591071486473, 0.0659361332654953, -0.020067518576979637, 0.03216177970170975, 0.001350525999441743, 0.019422490149736404, -0.03499273583292961, -0.06654532253742218, -0.003746981965377927, -0.020587123930454254, 0.058052461594343185, -0.02139340713620186, -0.0042531490325927734, 0.009406648576259613, 0.03934666886925697, 0.01217489130795002, 0.0122196851298213, 0.024869387969374657, -0.02614152617752552, -0.05188886821269989, 0.009738121181726456, -0.025783177465200424, -0.046728648245334625, -0.02064087614417076, 0.042858485132455826, -0.061313435435295105, -0.022056352347135544, 0.04543859511613846, -0.03667697310447693, 0.05729993060231209, 0.026696965098381042, 0.009245391935110092, 0.05593820661306381, 0.04740951210260391, 0.001717833336442709, 0.01368891354650259, 0.008900481276214123, -0.029796680435538292, -0.035548172891139984, 0.006051610689610243, 0.007202805485576391, -0.015462739393115044, -0.015758376568555832, -0.020210856571793556, 0.05475565418601036, -0.033792268484830856, 0.017505325376987457, 0.01645715720951557, 0.00461373757570982, 0.04425604268908501, -0.030728386715054512, -0.04038587957620621, -0.022468453273177147, 0.05203220620751381, 0.00015551767137367278, -0.014316024258732796, -0.08414023369550705, -0.007399897091090679, 0.003097475040704012, 0.00782991573214531, 0.00794637855142355, 0.008752662688493729, -0.004275545943528414, 0.012067386880517006, 0.025944434106349945, 0.013249937444925308, -0.027037397027015686, 0.02008543536067009, -0.01947624236345291, -0.009980007074773312, -0.013276813551783562, -0.03599610924720764, -0.01480875350534916, 0.0029922102112323046, 0.05608154460787773, 0.00653538154438138, 0.05156635493040085, -0.042607638984918594, -0.049667105078697205, -0.08593197911977768, -0.04171176999807358, -0.033308494836091995, 0.010410024784505367, -0.0031400290317833424, -0.0829935222864151, 0.015077514573931694, 0.0023046289570629597, -0.0224863700568676, 0.0028175152838230133, 0.001366203767247498, -0.05400312319397926, 0.043861862272024155, 0.0751815214753151, 0.0006534261628985405, -0.012192809022963047, 0.005021358840167522, -0.03744742274284363, -0.010472736321389675, 0.03862997144460678, 0.0003023565805051476, -0.028058690950274467, -0.05762244388461113, 0.03375643119215965, -0.03166009113192558, 0.010956506244838238, 0.032072193920612335, -0.010454818606376648, -0.01807868294417858, 0.028363285586237907 ]
37,720
healpy.visufunc
projtext
Projtext is a wrapper around :func:`matplotlib.Axes.text` to take into account the spherical projection. Parameters ---------- theta, phi : float, array-like Coordinates of point to plot. Can be put into one 2-d array, first line is then *theta* and second line is *phi*. See *lonlat* parameter for unit. text : str The text to be displayed. lonlat : bool, optional If True, theta and phi are interpreted as longitude and latitude in degree, otherwise, as colatitude and longitude in radian coord : {'E', 'G', 'C', None}, optional The coordinate system of the points, only used if the coordinate coordinate system of the axes has been defined and in this case, a rotation is performed rot : None or sequence, optional rotation to be applied =(lon, lat, psi) : lon, lat will be position of the new Z axis, and psi is rotation around this axis, all in degree. if None, no rotation is performed direct : bool, optional if True, the rotation to center the projection is not taken into account Notes ----- Other keywords are passed to :func:`matplotlib.Axes.text`. See Also -------- projplot, projscatter
def projtext(*args, **kwds): import pylab f = pylab.gcf() wasinteractive = pylab.isinteractive() pylab.ioff() ret = None try: for ax in f.get_axes(): if isinstance(ax, PA.SphericalProjAxes): ret = ax.projtext(*args, **kwds) finally: pylab.draw() if wasinteractive: pylab.ion() # pylab.show() return ret
(*args, **kwds)
[ 0.03478479012846947, -0.0313720777630806, 0.04489850625395775, 0.054141271859407425, -0.02664404734969139, -0.02020966075360775, -0.005981135182082653, -0.019178736954927444, 0.14127209782600403, 0.01912541314959526, 0.027266155928373337, -0.04400977864861488, 0.016183724626898766, 0.008985034190118313, -0.055776529014110565, -0.025488700717687607, 0.007603062782436609, -0.02907915972173214, -0.03195863589644432, -0.030270054936408997, 0.027088411152362823, -0.017036903649568558, 0.05289705470204353, -0.04589388146996498, 0.0049502113834023476, -0.03729100152850151, 0.04681815952062607, -0.029025835916399956, 0.008762852288782597, 0.018876569345593452, -0.003386051394045353, -0.017410168424248695, -0.04141469672322273, 0.008962815627455711, -0.01058474276214838, 0.07664384692907333, -0.0009448282653465867, -0.017259085550904274, -0.001299763796851039, -0.020422955974936485, -0.03764649108052254, 0.005243491381406784, 0.026875115931034088, -0.015606052242219448, -0.027141734957695007, -0.05229271948337555, -0.028776992112398148, 0.03345169872045517, -0.04774243384599686, 0.05879820138216019, 0.019623100757598877, -0.005856713280081749, -0.01776565983891487, -0.009971520863473415, -0.01201559416949749, 0.03581571206450462, 0.0065765827894210815, 0.07970107346773148, 0.03286513686180115, -0.08844614773988724, 0.057269591838121414, -0.01229109987616539, 0.017543477937579155, 0.034482620656490326, -0.025488700717687607, 0.005887818988412619, 0.08581551164388657, -0.03259852156043053, 0.03250964730978012, -0.04216122627258301, -0.03058999590575695, 0.01817447505891323, -0.06036236509680748, -0.06768547743558884, 0.003925953060388565, 0.026519624516367912, -0.03126543015241623, 0.023142460733652115, 0.029932338744401932, 0.04699590429663658, -0.060824502259492874, 0.006061120890080929, -0.01400634367018938, -0.019214285537600517, 0.0105758560821414, -0.06004242226481438, 0.00525682233273983, -0.01567715033888817, 0.037326548248529434, -0.03881961107254028, -0.004099254962056875, -0.02033408172428608, 0.04557393863797188, 0.05531439185142517, -0.058229416608810425, 0.005656749941408634, 0.035033632069826126, 0.0037215459160506725, -0.05129734426736832, 0.022307056933641434, 0.010015957057476044, 0.005247935187071562, -0.0017874529585242271, -0.020458504557609558, 0.03647337108850479, -0.028759218752384186, -0.00900725182145834, -0.021400555968284607, 0.048524513840675354, 0.07010281831026077, -0.042943306267261505, 0.03935284912586212, 0.04603607952594757, -0.0685742050409317, -0.006705448031425476, -0.029576847329735756, -0.08041205257177353, -0.022218184545636177, -0.038144178688526154, -0.03471369296312332, -0.03309620916843414, 0.06046900898218155, -0.01733018457889557, 0.015135027468204498, -0.01270880177617073, 0.04173463582992554, 0.030821064487099648, -0.006469935178756714, 0.013997456058859825, -0.05968692898750305, 0.0519016794860363, -0.013153165578842163, 0.0012197783216834068, -0.023249108344316483, 0.06537478417158127, -0.0014619565336033702, 0.021880468353629112, -0.041023656725883484, -0.015863783657550812, 0.04912884905934334, 0.02006746456027031, 0.015552729368209839, -0.035691291093826294, 0.029274679720401764, -0.027657195925712585, 0.03167424350976944, 0.03800198435783386, -0.05982912704348564, -0.01964087411761284, -0.0057633970864117146, 0.058513808995485306, -0.049484338611364365, -0.014041892252862453, -0.047813531011343, 0.028705894947052002, -0.07685714215040207, 0.0649481937289238, -0.014059667475521564, 0.01994304172694683, 0.08474904298782349, 0.011757862754166126, 0.0138019360601902, -0.01229109987616539, 0.07671494781970978, 0.01509947795420885, -0.00027842161944136024, 0.010087056085467339, -0.013810823671519756, -0.026555173099040985, -0.007438648026436567, 0.008038539439439774, -0.0024173385463654995, -0.03970833867788315, 0.019711973145604134, -0.009260538965463638, 0.016477005556225777, -0.03576238825917244, 0.055527687072753906, 0.025968613103032112, -0.0050257532857358456, -0.02623523212969303, -0.011429034173488617, -0.0015730474842712283, 0.03999273106455803, 0.05435456708073616, 0.05648751184344292, 0.002621745690703392, 0.05364358425140381, -0.01816558837890625, -0.06441496312618256, 0.0352291539311409, 0.017694562673568726, -0.016592539846897125, 0.019765296950936317, -0.0061499932780861855, 0.0037526513915508986, -0.0031705349683761597, -0.034589268267154694, -0.05517219379544258, -0.013615303672850132, -0.02472439594566822, -0.03757539391517639, -0.035033632069826126, 0.012273324653506279, -0.02335575595498085, -0.020813995972275734, 0.017827870324254036, 0.041983481496572495, -0.020778445526957512, 0.02211153693497181, 0.051261793822050095, -0.014939507469534874, -0.02513320930302143, -0.02879476733505726, 0.007158698979765177, 0.02772829495370388, 0.027746068313717842, 0.007883011363446712, 0.04066816344857216, 0.05915369465947151, -0.03414490446448326, -0.002735058544203639, 0.07195136696100235, 0.024511100724339485, -0.012202226556837559, -0.02923913113772869, 0.08090974390506744, 0.09491608291864395, 0.03860631585121155, -0.1061495989561081, 0.02824375592172146, -0.007305338978767395, -0.03114100731909275, -0.014646227471530437, 0.019694197922945023, -0.11809409409761429, 0.020938416942954063, -0.024671072140336037, 0.001379749272018671, -0.008278495632112026, 0.003965945914387703, 0.024759944528341293, -0.03828637674450874, 0.07593286782503128, -0.026324104517698288, 0.012886546552181244, 0.027408352121710777, -0.0257908683270216, 0.044862959533929825, 0.0009376073721796274, 0.015170576050877571, 0.04585833102464676, -0.023124685510993004, 0.02731947973370552, -0.03620675206184387, -0.025293180719017982, -0.018912117928266525, 0.005781171377748251, 0.041556891053915024, -0.004803571384400129, -0.0014719547471031547, -0.02387121692299843, -0.0556698814034462, 0.012104466557502747, 0.10778485238552094, 0.01440627034753561, -0.043476544320583344, -0.003348280442878604, -0.001027591060847044, -0.0030416694935411215, -0.02211153693497181, 0.07465309649705887, -0.012833223678171635, 0.02237815596163273, 0.013757499866187572, 0.035051409155130386, -0.01331313606351614, 0.0063766189850866795, 0.062459759414196014, 0.018503304570913315, 0.04550284147262573, -0.00963380467146635, -0.05335919186472893, -0.02362237311899662, 0.01967642456293106, -0.01951645314693451, 0.03881961107254028, 0.037895336747169495, 0.012104466557502747, 0.006238866131752729, 0.027106184512376785, 0.026306331157684326, 0.026679595932364464, -0.05382132902741432, -0.0185566283762455, 0.005998909939080477, -0.026057487353682518, -0.027888264507055283, -0.05502999946475029, -0.033949386328458786, 0.03483811393380165, -0.016876932233572006, -0.027674971148371696, -0.010878022760152817, 0.005772284232079983, 0.021542752161622047, -0.0055367713794112206, 0.001986305695027113, 0.060682304203510284, -0.01638813316822052, -0.04393868148326874, -0.039104003459215164, -0.030092308297753334, 0.03306065872311592, -0.03126543015241623, 0.029683494940400124, 0.006407724227756262, -0.006678786128759384, 0.004361429717391729, -0.048524513840675354, -0.0023395747411996126, -0.07991436868906021, 0.010780262760818005, -0.024066736921668053, 0.05602537468075752, 0.0021440547425299883, -0.06942738592624664, 0.005656749941408634, 0.07276900112628937, 0.02648407593369484, 0.0025773094967007637, 0.0816207230091095, -0.01598820462822914, -0.013677514158189297, -0.033256176859140396, -0.05254156142473221, 0.03471369296312332, 0.008638430386781693, 0.0000036104549963056343, -0.048133473843336105, -0.027372803539037704, -0.05502999946475029, -0.07120483368635178, 0.0407392643392086, -0.0012264437973499298, 0.10870913416147232, -0.0322430282831192, 0.0006565473740920424, 0.056843001395463943, -0.07529298216104507, -0.017010241746902466, 0.01691248267889023, -0.010175928473472595, 0.0023106911685317755, -0.07557737827301025, 0.10337676852941513, 0.028759218752384186, -0.009918197058141232, -0.04575168341398239, -0.0011753420112654567, 0.029416875913739204, 0.000706538266967982, -0.039779435843229294, 0.016574764624238014, -0.038855161517858505, -0.0009492719545960426, -0.014361834153532982, 0.03960169106721878, 0.0559898242354393, 0.030536672100424767, 0.003366054967045784, 0.02582641690969467, 0.0024973240215331316, 0.026715144515037537, -0.0203696321696043, 0.06509039551019669, -0.0009798218961805105, -0.0276038721203804, -0.06839645653963089, -0.06949847936630249, -0.05915369465947151, -0.09527157247066498, -0.01709022745490074, 0.0034749240148812532, -0.031585369259119034, 0.04983983188867569, 0.0011281282640993595, -0.012255550362169743, 0.023373529314994812, -0.026928439736366272, -0.02227150835096836, -0.06022016704082489, 0.055385489016771317, -0.01229109987616539, 0.03482033684849739, 0.01733018457889557, -0.00252398569136858, 0.02593306452035904, -0.002701731165871024, 0.03087438829243183, -0.03204751014709473, -0.0031638694927096367, -0.023835668340325356, -0.044436369091272354, -0.030892163515090942, 0.005896706134080887, 0.02116948552429676, -0.02660849690437317, 0.018085602670907974, 0.046889256685972214, 0.021649399772286415, 0.02378234453499317, -0.015126139856874943, -0.058904848992824554, -0.014575129374861717, 0.0229647159576416, -0.05353693664073944, 0.0037393204402178526, 0.0034749240148812532, -0.0005043527926318347, -0.014939507469534874, -0.030821064487099648, -0.014788423664867878, -0.010451434180140495, 0.06302854418754578, 0.007451978977769613, 0.010389222763478756, -0.027195056900382042, 0.06011351943016052, 0.049377694725990295, -0.049377694725990295, -0.05940253660082817, -0.004368095193058252, 0.004354764241725206, 0.0049502113834023476, 0.03697105869650841, -0.024902140721678734, 0.05239936709403992, -0.0028683675918728113, 0.004981317091733217, 0.033540572971105576, 0.017383508384227753, -0.03263406828045845, -0.01776565983891487, 0.019765296950936317, 0.006070008035749197, -0.00324163306504488, -0.016636976972222328, -0.047315847128629684, 0.02564867213368416, 0.056309767067432404, 0.08119413256645203, 0.004463633056730032, -0.03807308152318001, 0.07970107346773148, -0.04397423192858696, 0.03647337108850479, -0.027372803539037704, 0.012486619874835014, 0.028741443529725075, -0.01882324554026127, 0.023995639756321907, 0.01398856844753027, 0.00217071664519608, 0.05830051749944687, -0.03085661493241787, -0.015108365565538406, 0.014619565568864346, -0.04415197670459747, -0.06395281851291656, 0.011126866564154625, -0.01159789226949215, -0.07056495547294617, -0.033949386328458786, 0.05015977472066879, 0.028457051143050194, -0.05623866990208626, 0.05136844143271446, 0.006541033275425434, -0.005199055187404156, -0.072662353515625, 0.003292734967544675, 0.04767133668065071, 0.03218970447778702, -0.04983983188867569, 0.023711245507001877, 0.07387101650238037, -0.03373609110713005, -0.011375710368156433, -0.0459294319152832, 0.040881458669900894, 0.06057565659284592, 0.017579028382897377, 0.01937425695359707, -0.047849081456661224, 0.004785797093063593, -0.016201499849557877, -0.04105920344591141, -0.027799392119050026, 0.029416875913739204, 0.03782423585653305, 0.005483448039740324, 0.016974693164229393, -0.0313720777630806, 0.015366096049547195, -0.016014866530895233, -0.021756045520305634, 0.032847363501787186, 0.025701995939016342, 0.029292454943060875, -0.026999536901712418, -0.042267873883247375, -0.011695652268826962, -0.051439542323350906, 0.04461411386728287, 0.016876932233572006, 0.0005782282678410411, 0.00020093571220058948, -0.03211860731244087, 0.004919106140732765, -0.02703508734703064, 0.02554202452301979, -0.05940253660082817, 0.012166677974164486, 0.0011109092738479376, 0.002262922003865242, -0.014317397959530354, 0.019623100757598877, -0.006740997079759836, 0.022218184545636177, -0.00271506211720407, -0.03581571206450462, -0.0050257532857358456, -0.00006894580292282626, -0.004372538533061743, 0.021258357912302017, -0.031052134931087494, 0.00970490276813507, 0.08929932862520218, 0.004148134961724281, -0.010486982762813568, -0.005692298989742994, 0.014850634150207043, -0.03087438829243183, 0.06693894416093826, 0.0002027409354923293, 0.032829590141773224, -0.023586824536323547, 0.058513808995485306, 0.06701004505157471, 0.006292189937084913, -0.028439275920391083, -0.029790140688419342, 0.016477005556225777, 0.010229252278804779, 0.09107678383588791, 0.0011509018950164318, -0.01446848176419735, -0.07458200305700302, -0.03130097687244415, 0.0106558408588171, -0.006994284223765135, 0.08233170211315155, 0.03341614827513695, -0.03382496535778046, -0.010078168474137783, 0.016823608428239822, 0.07628835737705231, 0.02961239591240883, -0.05037306621670723, 0.0448274090886116, -0.034589268267154694, -0.02090286836028099, -0.0013697510585188866, 0.02678624354302883, 0.009118342772126198, 0.06690339744091034, -0.018467754125595093, 0.017143551260232925, 0.010815812274813652, 0.03167424350976944, -0.011117979884147644, 0.016432568430900574, 0.015410532243549824, 0.006834313739091158, 0.059047047048807144, 0.006167768035084009, -0.00942939706146717, -0.019089864566922188, -0.020707348361611366, -0.017134664580225945, 0.019196512177586555, 0.04365428909659386, 0.02676846832036972, 0.006789877079427242, -0.02417338453233242, -0.008989477530121803, 0.04162799194455147, 0.01720576174557209, -0.047031451016664505, -0.05471005663275719, 0.012193339876830578, -0.0031216549687087536, 0.007500858977437019, -0.043369896709918976, 0.002863924019038677, 0.0008737301104702055, 0.0007365327910520136, -0.038037531077861786, 0.004483629483729601, -0.012993194162845612, -0.012522168457508087, -0.016325922682881355, -0.08396696299314499, -0.02566644735634327, -0.04315660148859024, -0.025186533108353615, 0.011846736073493958, 0.010629178956151009, 0.015383871272206306, 0.003879294963553548, 0.034198228269815445, -0.05876265466213226, 0.021507201716303825, 0.016192613169550896, 0.04109475389122963, 0.04070371389389038, -0.029559072107076645, 0.006607688032090664, -0.021382780745625496, -0.023053588345646858, 0.028723668307065964, -0.022769195958971977, -0.02746167592704296, -0.006305520888417959, 0.0035593530628830194, -0.05847826227545738, -0.0011820073705166578, -0.03846412152051926, -0.0037815349642187357, -0.039246201515197754, -0.020689573138952255, -0.021222809329628944, -0.006696560885757208, 0.05844271183013916, 0.013650852255523205, -0.04557393863797188, -0.03238522633910179, 0.06804096698760986, 0.001663031056523323, -0.00023634593526367098, -0.008171848021447659, 0.021347232162952423, 0.014877296052873135, 0.014512917958199978, 0.04980428144335747, -0.03650892153382301, -0.02033408172428608, -0.022147085517644882, -0.0037370985373854637, 0.02129390835762024, -0.018085602670907974, 0.0005662859766744077, -0.00039270639535970986, 0.05417682230472565, -0.07084934413433075, -0.041983481496572495, 0.008820619434118271, 0.02141832932829857, 0.012353310361504555, 0.006465491838753223, 0.004121473059058189, 0.012975419871509075, 0.009811550378799438, 0.007247571833431721, 0.05581207945942879, 0.06469935178756714, -0.04201903194189072, 0.002788382116705179, 0.01622816175222397, 0.004999091383069754, -0.07074269652366638, -0.03714880347251892, 0.02076067216694355, -0.05328809469938278, -0.016485892236232758, 0.029790140688419342, 0.012122241780161858, 0.07372882217168808, -0.002072956645861268, -0.03825082629919052, 0.03254519775509834, 0.07056495547294617, 0.0064521608874201775, 0.07835020869970322, -0.0049146623350679874, -0.01951645314693451, -0.03265184536576271, 0.007305338978767395, -0.0009603810030966997, -0.0071764737367630005, -0.034073807299137115, -0.022324832156300545, -0.002110727597028017, -0.02758609689772129, -0.011020219884812832, 0.029736818745732307, 0.009136117063462734, -0.0050657461397349834, -0.06089559942483902, -0.039779435843229294, 0.001738572958856821, 0.047315847128629684, 0.008625099435448647, 0.038144178688526154, -0.009758226573467255, -0.010940234176814556, 0.013162052258849144, -0.031247654929757118, -0.03099881112575531, 0.017143551260232925, 0.0283859521150589, 0.015437194146215916, -0.0020851765293627977, -0.015348321758210659, 0.006394393276423216, -0.03686441108584404, -0.025506475940346718, -0.003326062113046646, 0.01166899036616087, -0.049662087112665176, 0.0014808420091867447, -0.01914318837225437, -0.005314589478075504, -0.04201903194189072, 0.046747058629989624, -0.014415157958865166, -0.08780626207590103, -0.09491608291864395, -0.029132483527064323, -0.056451961398124695, 0.017543477937579155, -0.009367186576128006, -0.04617827385663986, 0.03348724916577339, 0.02307136356830597, -0.02826153114438057, 0.044720761477947235, 0.003237189492210746, -0.02525763213634491, 0.05357248708605766, 0.07465309649705887, 0.018645500764250755, -0.0257908683270216, 0.010869136080145836, -0.019480904564261436, 0.015606052242219448, 0.009864874184131622, -0.0019129856955260038, 0.008647317066788673, -0.051972776651382446, 0.04628492146730423, -0.02811933495104313, 0.025470927357673645, 0.015934882685542107, -0.03386051207780838, -0.06046900898218155, 0.04699590429663658 ]
37,721
healpy.newvisufunc
projview
Plot a healpix map (given as an array) in the chosen projection. See examples of using this function in the documentation under "Other tutorials". Overplot points or lines using :func:`newprojplot`. .. warning:: this function is work in progress, the aim is to reimplement the healpy plot functions using the new features of matplotlib and remove most of the custom projection code. Please report bugs or submit feature requests via Github. The interface will change in future releases. Parameters ---------- m : float, array-like or None An array containing the map, supports masked maps, see the `ma` function. If None, will display a blank map, useful for overplotting. fig : int or None, optional The figure number to use. Default: create a new figure rot : scalar or sequence, optional Describe the rotation to apply. In the form (lon, lat, psi) (unit: degrees) : the point at longitude *lon* and latitude *lat* will be at the center. An additional rotation of angle *psi* around this direction is applied. coord : sequence of character, optional Either one of 'G', 'E' or 'C' to describe the coordinate system of the map, or a sequence of 2 of these to rotate the map from the first to the second coordinate system. default: 'G' unit : str, optional A text describing the unit of the data. Default: '' xsize : int, optional The size of the image. Default: 800 width : float, optional Sets the width of the figure. Use override_plot_properties for more. Overrides the default width of the figure nest : bool, optional If True, ordering scheme is NESTED. Default: False (RING) min : float, optional The minimum range value max : float, optional The maximum range value flip : {'astro', 'geo'}, optional Defines the convention of projection : 'astro' (default, east towards left, west towards right) or 'geo' (east towards roght, west towards left) It creates the `healpy_flip` attribute on the Axes to save the convention in the figure. format : str, optional The format of the scale label. Default: '%g' cbar : bool, optional Display the colorbar. Default: True cmap : str, optional Specify the colormap. default: Viridis norm : {'hist', 'log', 'symlog', 'symlog2', None} Color normalization: hist = histogram equalized color mapping. log = logarithmic color mapping. symlog = symmetric logarithmic, linear between -linthresh and linthresh. symlog2 = similar to symlog, used for plack log colormap. default: None (linear color mapping) norm_dict : dict, optional Parameters for normalization: default is set to {"linthresh": 1, "base": 10, "linscale": 0.1} where linthresh determines the linear regime of symlog norm, and linscale sets the size of the linear regime on the cbar. default: None graticule : bool add graticule graticule_labels : bool longitude and latitude labels rot_graticule : bool rotate also the graticule when rotating the map graticule_coord : str Either one of 'G', 'E' or 'C' to describe the coordinate system of the graticule override_rot_graticule_properties : dict Override the following rotated graticule properties: "g_linestyle", "g_linewidth", "g_color", "g_alpha", "t_step", "p_step". return_only_data : bool, optional Return array of data projection_type : {'aitoff', 'hammer', 'lambert', 'mollweide', 'cart', '3d', 'polar'} type of the plot cb_orientation : {'horizontal', 'vertical'} color bar orientation xlabel : str set x axis label ylabel : str set y axis label longitude_grid_spacing : float set x axis grid spacing latitude_grid_spacing : float set y axis grid spacing override_plot_properties : dict Override the following plot properties: "cbar_shrink", "cbar_pad", "cbar_label_pad", "cbar_tick_direction", "vertical_tick_rotation" "figure_width": width, "figure_size_ratio": ratio. title : str set title of the plot rlabel : str set label at top right corner of axis llabel : str set label at top left corner of axis xtick_label_color : str Change the color of the graticule xticks ytick_label_color : str Change the color of the graticule yticks graticule_color : str Change the color of the graticule fontname : str Change the fontname of the text fontsize: dict Override fontsize of labels: "xlabel", "ylabel", "title", "xtick_label", "ytick_label", "cbar_label", "cbar_tick_label". phi_convention : string convention on x-axis (phi), 'counterclockwise' (default), 'clockwise', 'symmetrical' (phi as it is truly given) if `flip` is "geo", `phi_convention` should be set to 'clockwise'. custom_xtick_labels : list override x-axis tick labels custom_ytick_labels : list override y-axis tick labels cbar_ticks : list custom ticks on the colorbar show_tickmarkers : bool, optional Preserve tickmarkers for the full bar with labels specified by ticks default: None extend : str, optional Whether to extend the colorbar to mark where min or max tick is less than the min or max of the data. Options are "min", "max", "neither", or "both" invRot : bool invert rotation sub : int, scalar or sequence, optional Use only a zone of the current figure (same syntax as subplot). Default: 111 reuse_axes : bool, optional If True, reuse the current Axes (should be a MollweideAxes). This is useful if you want to overplot with a partially transparent colormap, such as for plotting a line integral convolution. Default: False margins : None or sequence, optional Either None, or a sequence (left,bottom,right,top) giving the margins on left,bottom,right and top of the axes. Values are relative to figure (0-1). Default: None hold : bool, optional If True, replace the current Axes by new axis. use this if you want to have multiple maps on the same figure. Default: False remove_dip : bool, optional If :const:`True`, remove the dipole+monopole remove_mono : bool, optional If :const:`True`, remove the monopole gal_cut : float, scalar, optional Symmetric galactic cut for the dipole/monopole fit. Removes points in latitude range [-gal_cut, +gal_cut] kwargs : dict any leftover arguments will be passed to pcolormesh
def projview( m=None, fig=None, rot=None, coord=None, unit="", xsize=1000, width=None, nest=False, min=None, max=None, flip="astro", format="%g", cbar=True, cmap="viridis", norm=None, norm_dict=None, graticule=False, graticule_labels=False, rot_graticule=False, graticule_coord=None, override_rot_graticule_properties=None, return_only_data=False, projection_type="mollweide", cb_orientation="horizontal", xlabel=None, ylabel=None, longitude_grid_spacing=60, latitude_grid_spacing=30, override_plot_properties=None, title=None, rlabel=None, llabel=None, xtick_label_color="black", ytick_label_color="black", graticule_color=None, fontname=None, fontsize=None, phi_convention="counterclockwise", custom_xtick_labels=None, custom_ytick_labels=None, cbar_ticks=None, show_tickmarkers=False, extend=None, invRot=True, sub=111, reuse_axes=False, margins=None, hold=False, remove_dip=False, remove_mono=False, gal_cut=0, **kwargs, ): """Plot a healpix map (given as an array) in the chosen projection. See examples of using this function in the documentation under "Other tutorials". Overplot points or lines using :func:`newprojplot`. .. warning:: this function is work in progress, the aim is to reimplement the healpy plot functions using the new features of matplotlib and remove most of the custom projection code. Please report bugs or submit feature requests via Github. The interface will change in future releases. Parameters ---------- m : float, array-like or None An array containing the map, supports masked maps, see the `ma` function. If None, will display a blank map, useful for overplotting. fig : int or None, optional The figure number to use. Default: create a new figure rot : scalar or sequence, optional Describe the rotation to apply. In the form (lon, lat, psi) (unit: degrees) : the point at longitude *lon* and latitude *lat* will be at the center. An additional rotation of angle *psi* around this direction is applied. coord : sequence of character, optional Either one of 'G', 'E' or 'C' to describe the coordinate system of the map, or a sequence of 2 of these to rotate the map from the first to the second coordinate system. default: 'G' unit : str, optional A text describing the unit of the data. Default: '' xsize : int, optional The size of the image. Default: 800 width : float, optional Sets the width of the figure. Use override_plot_properties for more. Overrides the default width of the figure nest : bool, optional If True, ordering scheme is NESTED. Default: False (RING) min : float, optional The minimum range value max : float, optional The maximum range value flip : {'astro', 'geo'}, optional Defines the convention of projection : 'astro' (default, east towards left, west towards right) or 'geo' (east towards roght, west towards left) It creates the `healpy_flip` attribute on the Axes to save the convention in the figure. format : str, optional The format of the scale label. Default: '%g' cbar : bool, optional Display the colorbar. Default: True cmap : str, optional Specify the colormap. default: Viridis norm : {'hist', 'log', 'symlog', 'symlog2', None} Color normalization: hist = histogram equalized color mapping. log = logarithmic color mapping. symlog = symmetric logarithmic, linear between -linthresh and linthresh. symlog2 = similar to symlog, used for plack log colormap. default: None (linear color mapping) norm_dict : dict, optional Parameters for normalization: default is set to {"linthresh": 1, "base": 10, "linscale": 0.1} where linthresh determines the linear regime of symlog norm, and linscale sets the size of the linear regime on the cbar. default: None graticule : bool add graticule graticule_labels : bool longitude and latitude labels rot_graticule : bool rotate also the graticule when rotating the map graticule_coord : str Either one of 'G', 'E' or 'C' to describe the coordinate system of the graticule override_rot_graticule_properties : dict Override the following rotated graticule properties: "g_linestyle", "g_linewidth", "g_color", "g_alpha", "t_step", "p_step". return_only_data : bool, optional Return array of data projection_type : {'aitoff', 'hammer', 'lambert', 'mollweide', 'cart', '3d', 'polar'} type of the plot cb_orientation : {'horizontal', 'vertical'} color bar orientation xlabel : str set x axis label ylabel : str set y axis label longitude_grid_spacing : float set x axis grid spacing latitude_grid_spacing : float set y axis grid spacing override_plot_properties : dict Override the following plot properties: "cbar_shrink", "cbar_pad", "cbar_label_pad", "cbar_tick_direction", "vertical_tick_rotation" "figure_width": width, "figure_size_ratio": ratio. title : str set title of the plot rlabel : str set label at top right corner of axis llabel : str set label at top left corner of axis xtick_label_color : str Change the color of the graticule xticks ytick_label_color : str Change the color of the graticule yticks graticule_color : str Change the color of the graticule fontname : str Change the fontname of the text fontsize: dict Override fontsize of labels: "xlabel", "ylabel", "title", "xtick_label", "ytick_label", "cbar_label", "cbar_tick_label". phi_convention : string convention on x-axis (phi), 'counterclockwise' (default), 'clockwise', 'symmetrical' (phi as it is truly given) if `flip` is "geo", `phi_convention` should be set to 'clockwise'. custom_xtick_labels : list override x-axis tick labels custom_ytick_labels : list override y-axis tick labels cbar_ticks : list custom ticks on the colorbar show_tickmarkers : bool, optional Preserve tickmarkers for the full bar with labels specified by ticks default: None extend : str, optional Whether to extend the colorbar to mark where min or max tick is less than the min or max of the data. Options are "min", "max", "neither", or "both" invRot : bool invert rotation sub : int, scalar or sequence, optional Use only a zone of the current figure (same syntax as subplot). Default: 111 reuse_axes : bool, optional If True, reuse the current Axes (should be a MollweideAxes). This is useful if you want to overplot with a partially transparent colormap, such as for plotting a line integral convolution. Default: False margins : None or sequence, optional Either None, or a sequence (left,bottom,right,top) giving the margins on left,bottom,right and top of the axes. Values are relative to figure (0-1). Default: None hold : bool, optional If True, replace the current Axes by new axis. use this if you want to have multiple maps on the same figure. Default: False remove_dip : bool, optional If :const:`True`, remove the dipole+monopole remove_mono : bool, optional If :const:`True`, remove the monopole gal_cut : float, scalar, optional Symmetric galactic cut for the dipole/monopole fit. Removes points in latitude range [-gal_cut, +gal_cut] kwargs : dict any leftover arguments will be passed to pcolormesh """ geographic_projections = ["aitoff", "hammer", "lambert", "mollweide"] # Set min and max values if ticks are specified and min and max are not if min is None and cbar_ticks is not None: min = np.min(cbar_ticks) if max is None and cbar_
(m=None, fig=None, rot=None, coord=None, unit='', xsize=1000, width=None, nest=False, min=None, max=None, flip='astro', format='%g', cbar=True, cmap='viridis', norm=None, norm_dict=None, graticule=False, graticule_labels=False, rot_graticule=False, graticule_coord=None, override_rot_graticule_properties=None, return_only_data=False, projection_type='mollweide', cb_orientation='horizontal', xlabel=None, ylabel=None, longitude_grid_spacing=60, latitude_grid_spacing=30, override_plot_properties=None, title=None, rlabel=None, llabel=None, xtick_label_color='black', ytick_label_color='black', graticule_color=None, fontname=None, fontsize=None, phi_convention='counterclockwise', custom_xtick_labels=None, custom_ytick_labels=None, cbar_ticks=None, show_tickmarkers=False, extend=None, invRot=True, sub=111, reuse_axes=False, margins=None, hold=False, remove_dip=False, remove_mono=False, gal_cut=0, **kwargs)
[ 0.04697902500629425, -0.01459329854696989, 0.02150649018585682, 0.026973498985171318, -0.018559344112873077, -0.022437743842601776, -0.050046686083078384, -0.02035611681640148, -0.029339980334043503, -0.032319992780685425, 0.01893184706568718, -0.0010065759997814894, 0.06740088015794754, 0.06450851261615753, 0.004111212678253651, 0.006283225491642952, -0.04470019415020943, -0.005305408965796232, 0.013026600703597069, -0.035497210919857025, 0.022372009232640266, -0.07997828722000122, 0.0755520910024643, -0.0029663180466741323, -0.022415831685066223, -0.03922222927212715, -0.0060148052871227264, 0.030829986557364464, 0.007345950696617365, -0.006776242516934872, -0.06446468830108643, -0.02769659087061882, -0.019129052758216858, -0.018559344112873077, 0.006694072857499123, -0.005702561233192682, 0.06740088015794754, -0.02217480167746544, -0.036198392510414124, 0.0025061690248548985, -0.013651088811457157, -0.007641761098057032, 0.004015348386019468, -0.013760647736489773, 0.05377170443534851, 0.007817056030035019, -0.046234022825956345, 0.027587030082941055, 0.009915116243064404, 0.02817865088582039, -0.013914030976593494, -0.05346493795514107, -0.04908256605267525, 0.03884972631931305, 0.006179144140332937, 0.02760894224047661, 0.04393327981233597, 0.057102303951978683, 0.07831298559904099, -0.05968790501356125, 0.005740907043218613, 0.00046768123866058886, -0.011229828000068665, -0.057759661227464676, -0.007170655764639378, 0.011525638401508331, 0.0812491774559021, -0.038740165531635284, 0.030413661152124405, -0.016872132197022438, -0.027367912232875824, 0.05894290283322334, 0.027017323300242424, -0.054998766630887985, 0.043473128229379654, -0.018942803144454956, -0.011284607462584972, -0.0007826642249710858, 0.002492473926395178, -0.013727779500186443, -0.02137501910328865, 0.013201895169913769, 0.01794581301510334, 0.0023760672193020582, 0.012128214351832867, 0.006053151097148657, 0.047022849321365356, 0.018844198435544968, -0.02077244222164154, -0.03100528009235859, 0.01648867502808571, -0.02150649018585682, 0.028200563043355942, 0.03972620144486427, -0.04301298037171364, -0.04141341522336006, -0.0018173148855566978, 0.046453140676021576, -0.017003603279590607, 0.007148744072765112, 0.018033459782600403, -0.04833756014704704, -0.036066919565200806, -0.017836254090070724, -0.008173123933374882, -0.021714651957154274, -0.0349494144320488, 0.06139703094959259, -0.01384829543530941, 0.013377190567553043, -0.030041160061955452, 0.0416763573884964, 0.013837339356541634, -0.015327345579862595, 0.004705571569502354, 0.035694420337677, -0.035212356597185135, -0.06450851261615753, 0.002837585750967264, 0.01394689828157425, -0.03760075196623802, 0.014176973141729832, -0.003683931427076459, -0.04570813849568367, 0.010944973677396774, 0.035782065242528915, 0.0014434437034651637, 0.024848047643899918, -0.03455500304698944, -0.026666732504963875, 0.026688644662499428, -0.058592312037944794, -0.03023836575448513, -0.02903321385383606, 0.050616394728422165, -0.017222721129655838, 0.03455500304698944, -0.04281577467918396, -0.03871825709939003, 0.06696264445781708, 0.014341311529278755, 0.026951586827635765, -0.015195874497294426, 0.051668163388967514, -0.0181977991014719, -0.00514654815196991, 0.02890174277126789, -0.021210679784417152, -0.026622910052537918, -0.012303508818149567, 0.017496619373559952, -0.03847722336649895, 0.00339086027815938, -0.020158911123871803, 0.005362927448004484, -0.06674352288246155, 0.024278340861201286, 0.03326220437884331, 0.016532497480511665, 0.0982527807354927, 0.007187089882791042, -0.01394689828157425, 0.030786162242293358, 0.03834575414657593, 0.004765829537063837, -0.04402092471718788, 0.04388945549726486, -0.04597108066082001, -0.011459902860224247, 0.043757982552051544, -0.0038154025096446276, -0.056970834732055664, -0.06056438013911247, -0.011207915842533112, 0.007844445295631886, 0.04364842548966408, -0.021232591941952705, -0.004541232716292143, -0.04973991960287094, 0.0005118473200127482, -0.011273651383817196, 0.007263781502842903, 0.022021418437361717, 0.07362385094165802, -0.008008784614503384, 0.050616394728422165, 0.057672012597322464, 0.004535754676908255, 0.0416763573884964, 0.00019908978720195591, 0.013190939091145992, -0.007148744072765112, -0.01070394366979599, -0.015097270719707012, 0.02846350520849228, -0.04768020659685135, 0.03773222118616104, -0.028310121968388557, 0.05727760121226311, -0.03370044007897377, -0.043845631182193756, -0.03275822848081589, 0.023292306810617447, -0.02445363439619541, -0.04038355499505997, -0.011525638401508331, 0.04314444959163666, 0.003840053454041481, 0.06025761365890503, 0.05732142552733421, 0.042289890348911285, 0.0144837386906147, -0.011383211240172386, -0.024694666266441345, 0.005162981804460287, -0.026688644662499428, -0.006053151097148657, -0.004869910888373852, 0.0022473351564258337, 0.06867177039384842, -0.01585322991013527, 0.06380733102560043, 0.018789419904351234, -0.0013017014134675264, -0.01883324235677719, -0.03720633685588837, 0.02909894846379757, 0.023840103298425674, 0.043473128229379654, -0.07029324769973755, 0.0430787168443203, -0.013081380166113377, -0.029712481424212456, -0.008600404486060143, -0.02874835953116417, -0.10482633858919144, 0.01211725827306509, 0.03650515899062157, -0.06328144669532776, 0.023862015455961227, -0.004012609366327524, -0.004374154843389988, -0.03280205279588699, 0.09053980559110641, -0.025067167356610298, -0.0015516335843130946, 0.0013338844291865826, 0.047022849321365356, 0.018778463825583458, 0.015732714906334877, -0.03459882736206055, -0.00907150935381651, -0.02153935842216015, 0.018778463825583458, 0.025045255199074745, -0.049696095287799835, -0.05727760121226311, -0.003744188928976655, 0.05009051039814949, -0.03262675926089287, -0.028616888448596, -0.04500696063041687, 0.030567044392228127, 0.01752948760986328, 0.08694625645875931, -0.027674678713083267, -0.008742831647396088, -0.005773774813860655, -0.011876227334141731, -0.008616838604211807, 0.016225731000304222, 0.08041652292013168, -0.029077038168907166, 0.02289789356291294, 0.009597394615411758, -0.004596012644469738, 0.03343749791383743, -0.06595470011234283, 0.060301437973976135, 0.025834081694483757, 0.006009327247738838, -0.03674618899822235, -0.045313723385334015, 0.01105453260242939, -0.04187356308102608, -0.01190909557044506, -0.031399693340063095, 0.03306499496102333, 0.02931806817650795, 0.0024322164244949818, -0.01310329232364893, -0.02165987342596054, -0.02537393383681774, -0.021802300587296486, 0.0706000104546547, -0.06082732230424881, 0.019172877073287964, -0.008457977324724197, -0.06740088015794754, -0.046102553606033325, 0.06705029308795929, -0.0409751757979393, 0.07471944391727448, -0.040164437144994736, 0.02791570872068405, 0.05561229959130287, -0.0032128263264894485, -0.04895109310746193, 0.035650596022605896, 0.01603948138654232, -0.00007035760791040957, 0.013870206661522388, -0.017047425732016563, 0.009361841715872288, -0.001970697892829776, 0.015020580030977726, 0.03201322630047798, -0.015458816662430763, 0.05350876227021217, 0.0310929287225008, -0.03153116628527641, -0.07542061805725098, -0.009882248938083649, -0.03370044007897377, 0.03376617655158043, -0.02642570249736309, 0.01029309630393982, 0.028134826570749283, 0.08598213642835617, -0.009531659074127674, -0.05460435524582863, 0.03045748360455036, -0.030216453596949577, -0.01208439003676176, -0.0010243793949484825, -0.07809386402368546, -0.01645580679178238, -0.019764497876167297, -0.001015477697364986, -0.07445649802684784, 0.03052322007715702, -0.0011079184478148818, -0.03933178633451462, 0.04491931200027466, -0.06459616124629974, 0.039244141429662704, 0.00554370041936636, 0.0029224941972643137, -0.027455559000372887, 0.004354982171207666, 0.013968810439109802, 0.01718985289335251, -0.03188175708055496, 0.015239697881042957, -0.027236441150307655, 0.0642893984913826, 0.048425208777189255, -0.0196001585572958, 0.003160785650834441, 0.02903321385383606, 0.045883432030677795, 0.0018282707314938307, -0.04881962388753891, 0.026403790339827538, -0.05416611582040787, -0.011569461785256863, -0.028857918456196785, 0.009345407597720623, 0.07748033106327057, -0.034642647951841354, 0.0459272563457489, -0.0303698368370533, 0.013212851248681545, 0.007099442649632692, -0.011613285169005394, 0.015371168963611126, 0.003281300887465477, 0.02172560803592205, -0.061353206634521484, -0.026688644662499428, 0.005239673424512148, -0.02684202790260315, -0.04851285740733147, 0.01526161003857851, -0.010950451716780663, -0.033371761441230774, 0.027521295472979546, 0.006244880147278309, -0.044524896889925, -0.022065242752432823, -0.012719834223389626, -0.018384050577878952, 0.0522816963493824, 0.012369244359433651, -0.007674628868699074, 0.03385382145643234, 0.004489192273467779, 0.047373440116643906, -0.024826137349009514, 0.015097270719707012, 0.06279938668012619, -0.07121354341506958, 0.03589162603020668, -0.042289890348911285, -0.0020542368292808533, -0.07226531207561493, 0.019961703568696976, -0.05289522930979729, 0.02655717357993126, 0.005401273258030415, 0.0776994526386261, 0.004456324502825737, -0.019512509927153587, -0.011777624487876892, -0.05320199579000473, -0.018909934908151627, -0.08922509104013443, -0.049476977437734604, 0.006069585215300322, -0.015612199902534485, -0.009942506439983845, 0.0038154025096446276, 0.016828307881951332, 0.027455559000372887, 0.04211459308862686, -0.026250407099723816, 0.010610817931592464, 0.03205705061554909, -0.02508907951414585, 0.047724030911922455, -0.03166263550519943, -0.028441593050956726, 0.03652707114815712, -0.007345950696617365, -0.01021092664450407, 0.01864699274301529, 0.008994818665087223, 0.03159690275788307, -0.009597394615411758, -0.0032128263264894485, 0.02401539869606495, -0.047943148761987686, -0.02627231925725937, -0.06889088451862335, -0.025198638439178467, 0.02309509925544262, -0.07647238671779633, -0.022854069247841835, 0.010413611307740211, 0.014341311529278755, 0.057672012597322464, 0.09457158297300339, -0.01915096491575241, -0.019205745309591293, 0.08449213206768036, -0.03586971387267113, -0.04321018606424332, 0.010862804017961025, 0.007751320023089647, -0.019841188564896584, 0.00047726769116707146, 0.002176121575757861, -0.006080540828406811, -0.02592173032462597, 0.06209820881485939, 0.034927502274513245, 0.025330109521746635, -0.006841978058218956, -0.06196673959493637, -0.027587030082941055, 0.010347875766456127, -0.042706213891506195, -0.020290382206439972, 0.005965503863990307, -0.001818684278987348, 0.03304308280348778, -0.04781167581677437, 0.0706000104546547, -0.015984700992703438, -0.03148734197020531, 0.0013297760160639882, -0.0060969749465584755, 0.02458510547876358, 0.012676010839641094, -0.005083551164716482, 0.03058895654976368, 0.05066021904349327, -0.04535754770040512, -0.026863940060138702, -0.019939791411161423, -0.0720900148153305, 0.009055076166987419, -0.034292060881853104, 0.05149286985397339, -0.018241623416543007, 0.05977555364370346, 0.031246311962604523, -0.06442086398601532, 0.0033497754484415054, -0.023401865735650063, 0.04180782660841942, -0.008556581102311611, 0.03306499496102333, -0.010764201171696186, 0.0012982776388525963, -0.015743670985102654, -0.015743670985102654, 0.010583427734673023, 0.0034922026097774506, 0.01911809667944908, -0.026338055729866028, -0.05670789256691933, 0.06512204557657242, -0.0522816963493824, -0.0008442913531325758, -0.0062941815704107285, -0.045751962810754776, -0.010588905774056911, -0.059381138533353806, -0.02394966222345829, 0.004144080448895693, 0.03731589764356613, -0.026118936017155647, 0.011722845025360584, -0.03604500740766525, 0.0522816963493824, 0.02261303924024105, -0.011492770165205002, -0.022875981405377388, 0.041435327380895615, -0.030983369797468185, -0.038740165531635284, -0.02550540491938591, 0.03586971387267113, 0.0211887676268816, 0.007154222112149, -0.05009051039814949, -0.04982756823301315, 0.03052322007715702, -0.05250081419944763, -0.0033086908515542746, 0.027017323300242424, 0.06109026446938515, -0.05030962824821472, 0.02550540491938591, 0.01797868125140667, 0.07818151265382767, -0.03597927466034889, 0.01928243599832058, -0.0047822631895542145, 0.039660464972257614, 0.02565878815948963, 0.0016995385522022843, -0.01116409245878458, 0.059950847178697586, 0.08663949370384216, 0.03280205279588699, -0.03983575850725174, -0.02833203412592411, -0.02194472774863243, -0.011049055494368076, 0.0257902592420578, -0.016181908547878265, 0.022437743842601776, -0.026162760332226753, 0.029778216034173965, 0.019260523840785027, 0.0586361363530159, -0.01744184084236622, -0.039309874176979065, 0.033941470086574554, -0.01051221415400505, -0.021243548020720482, 0.011854316107928753, -0.00008109955524560064, -0.015601243823766708, 0.06139703094959259, 0.006551646161824465, 0.01194196380674839, -0.06411410123109818, 0.023358041420578957, 0.02868262305855751, 0.061221733689308167, -0.018340226262807846, 0.012413068674504757, 0.05030962824821472, 0.02769659087061882, 0.04960845038294792, 0.007104920223355293, -0.052106402814388275, 0.016795439645648003, -0.004105734638869762, 0.041369590908288956, -0.014713813550770283, -0.038038987666368484, -0.016302423551678658, 0.004776785150170326, 0.02988777682185173, 0.023927750065922737, 0.057233776897192, -0.0009771320037543774, -0.010939495638012886, -0.03448926657438278, -0.03801707550883293, -0.06165997311472893, -0.04119429737329483, 0.05740907043218613, 0.036768101155757904, -0.02379627898335457, -0.03637368604540825, 0.005053422413766384, -0.02565878815948963, -0.03218851983547211, -0.041851650923490524, -0.02095869369804859, -0.12428406625986099, -0.04925785958766937, 0.06700646877288818, 0.03483985736966133, 0.05688318610191345, -0.007460988126695156, 0.007997828535735607, -0.031202487647533417, 0.036483246833086014, -0.00902220793068409, -0.004722005687654018, 0.02734600007534027, 0.006217489950358868, -0.00014799064956605434, 0.022985540330410004, 0.0036538024432957172, 0.004297463223338127, -0.0278937965631485, -0.051536694169044495, -0.0027800672687590122, 0.010994275100529194, -0.01505344733595848, 0.029230419546365738, 0.028923654928803444, 0.029778216034173965, 0.028353946283459663, -0.02087104693055153, 0.037907518446445465, 0.01880037598311901, 0.0005262269987724721, 0.04268430173397064, 0.017737649381160736, -0.00752672366797924, 0.07371149212121964, -0.028441593050956726, -0.023314218968153, 0.036702364683151245, 0.005319104064255953, 0.000048702531785238534, -0.037272073328495026, -0.003078616224229336, -0.06380733102560043, -0.030501307919621468, -0.05561229959130287, -0.02600937709212303, 0.003927700687199831, 0.011536593548953533, 0.008775699883699417, -0.013519616797566414, 0.025812169536948204, -0.06814588606357574, 0.01585322991013527, 0.035782065242528915, 0.012007699348032475, 0.030216453596949577, -0.013201895169913769, -0.0734485536813736, 0.004420717712491751, 0.0029197551775723696, -0.0010079455096274614, 0.00046117615420371294, 0.03799516335129738, 0.006726940628141165, -0.008238859474658966, 0.025834081694483757, 0.03218851983547211, 0.027740413323044777, -0.054867297410964966, 0.07515767961740494, 0.037118688225746155, 0.07612179964780807, -0.008523712866008282, -0.034861769527196884, 0.038542959839105606, 0.04987139254808426, 0.05517406016588211, 0.04402092471718788, 0.03871825709939003, -0.0017187114572152495, 0.06323762983083725, 0.0420488566160202, -0.10438809543848038, -0.029164684936404228, 0.024694666266441345, 0.0021802301052957773, -0.00038174568908289075, -0.036833833903074265, -0.01752948760986328, 0.04917021095752716, -0.01969876140356064, -0.019808320328593254, 0.022919805720448494, 0.018877066671848297, -0.02982204034924507, -0.059162020683288574, -0.0035004194360226393, 0.08826097100973129, 0.03810472413897514, -0.034511178731918335, -0.005149287171661854, -0.09176686406135559, -0.058460839092731476, 0.023007452487945557, -0.004428934771567583, -0.03722824901342392, 0.03164072334766388, 0.02719261683523655, -0.016477718949317932, 0.047022849321365356, 0.05399082228541374, -0.0055984798818826675, -0.008249814622104168, -0.06525351852178574, -0.05469200015068054, -0.021550314500927925, -0.010709421709179878, 0.028704535216093063, -0.016795439645648003, 0.04689138010144234, 0.011229828000068665, 0.047724030911922455, -0.019238611683249474, -0.01394689828157425, -0.08861155807971954, 0.015195874497294426, -0.016510585322976112, -0.04754873365163803, -0.043692246079444885, -0.04706667363643646, -0.024738488718867302, 0.028069091960787773, 0.013804471120238304, 0.02528628520667553, -0.023708632215857506, 0.03576015308499336, 0.030961457639932632, 0.04053694009780884, -0.022919805720448494, 0.013037556782364845, -0.04285959526896477, -0.00938375387340784, 0.014001677744090557, 0.03367852792143822, 0.0437798947095871, -0.02309509925544262, -0.029690569266676903, 0.024278340861201286, -0.05350876227021217, -0.010402655228972435, 0.05364023149013519, 0.0579349547624588, -0.03315264359116554, 0.028989389538764954 ]
37,722
healpy.fitsfunc
read_alm
Read alm from a fits file. In the fits file, the alm are written with explicit index scheme, index = l**2+l+m+1, while healpix cxx uses index = m*(2*lmax+1-m)/2+l. The conversion is done in this function. Parameters ---------- filename : str or HDUList or HDU or pathlib.Path instance The name of the fits file to read hdu : int, or tuple of int, optional The header to read. Start at 0. Default: hdu=1 return_mmax : bool, optional If true, both the alms and mmax is returned in a tuple. Default: return_mmax=False Returns ------- alms[, mmax] : complex array or tuple of a complex array and an int The alms read from the file and optionally mmax read from the file
def read_alm(filename, hdu=1, return_mmax=False): """Read alm from a fits file. In the fits file, the alm are written with explicit index scheme, index = l**2+l+m+1, while healpix cxx uses index = m*(2*lmax+1-m)/2+l. The conversion is done in this function. Parameters ---------- filename : str or HDUList or HDU or pathlib.Path instance The name of the fits file to read hdu : int, or tuple of int, optional The header to read. Start at 0. Default: hdu=1 return_mmax : bool, optional If true, both the alms and mmax is returned in a tuple. Default: return_mmax=False Returns ------- alms[, mmax] : complex array or tuple of a complex array and an int The alms read from the file and optionally mmax read from the file """ alms = [] lmaxtot = None mmaxtot = None opened_file = False if isinstance(filename, allowed_paths): filename = pf.open(filename) opened_file = True for unit in np.atleast_1d(hdu): idx, almr, almi = [_get_hdu(filename, hdu=unit).data.field(i) for i in range(3)] l = np.floor(np.sqrt(idx - 1)).astype(int) m = idx - l ** 2 - l - 1 if (m < 0).any(): raise ValueError("Negative m value encountered !") lmax = l.max() mmax = m.max() if lmaxtot is None: lmaxtot = lmax mmaxtot = mmax else: if lmaxtot != lmax or mmaxtot != mmax: raise RuntimeError( "read_alm: harmonic expansion order in {} HDUs {} does not " "match".format(filename, unit, hdu) ) alm = almr * (0 + 0j) i = Alm.getidx(lmax, l, m) alm.real[i] = almr alm.imag[i] = almi alms.append(alm) if opened_file: filename.close() if len(alms) == 1: alm = alms[0] else: alm = np.array(alms) if return_mmax: return alm, mmax else: return alm
(filename, hdu=1, return_mmax=False)
[ -0.00008542198338545859, 0.05486122518777847, 0.02756441943347454, 0.054593607783317566, 0.06480123847723007, 0.012405900284647942, -0.02376045286655426, -0.058990150690078735, -0.07588817179203033, 0.04453890398144722, -0.0033404177520424128, 0.017385464161634445, -0.03412100672721863, 0.05034998804330826, 0.0022890702821314335, 0.05539645627140999, -0.03834551200270653, 0.04843844473361969, -0.0020274280104786158, 0.026627764105796814, 0.02383691444993019, -0.016592174768447876, -0.010857552289962769, 0.0024348252918571234, -0.016639962792396545, -0.020721103996038437, 0.04729152098298073, -0.003392985090613365, -0.016831116750836372, -0.04419482499361038, -0.025289686396718025, 0.004695222247391939, -0.000997585360892117, 0.021619528532028198, -0.0362810455262661, -0.039110127836465836, 0.03914835676550865, -0.007665278855711222, -0.14275386929512024, 0.01154570747166872, 0.017366349697113037, 0.0032328935340046883, 0.11851553618907928, 0.03446508198976517, -0.04090697690844536, 0.029323037713766098, -0.024238338693976402, -0.034560658037662506, -0.02211652882397175, 0.005013016052544117, 0.0053236414678394794, -0.07959656417369843, 0.000144485617056489, 0.023741338402032852, -0.0036462643183767796, 0.03930127993226051, -0.03012588433921337, 0.010542147792875767, 0.055014148354530334, -0.0452270582318306, -0.04155689850449562, -0.0792907178401947, 0.07290617376565933, -0.037447087466716766, -0.01607605814933777, 0.010838436894118786, -0.03119634836912155, 0.021791566163301468, -0.025691110640764236, 0.0417480543255806, -0.03136838600039482, 0.031750693917274475, 0.027182111516594887, -0.005615151487290859, 0.037791162729263306, 0.038288164883852005, 0.016142962500452995, -0.015244538895785809, 0.014661518856883049, 0.00001274049463972915, -0.03220946341753006, 0.046565137803554535, 0.04270382225513458, 0.063616082072258, -0.05776676535606384, -0.01618119329214096, 0.09183042496442795, -0.01502471137791872, 0.006255517713725567, -0.047635599970817566, 0.02085491083562374, 0.0075792595744132996, 0.0330505408346653, 0.05138222128152847, -0.03194184973835945, -0.014642403461039066, -0.06526000797748566, 0.0442330576479435, 0.016716424375772476, 0.00949557963758707, -0.05604637786746025, -0.013696190901100636, 0.1051347479224205, 0.03685450926423073, 0.004680885933339596, -0.018064061179757118, 0.013189632445573807, -0.00456141447648406, 0.032171234488487244, 0.0260925330221653, -0.06445715576410294, -0.0077895293943583965, -0.0041623804718256, 0.001213828451000154, -0.014011594466865063, 0.014260095544159412, 0.01544525008648634, 0.014565941877663136, -0.017509713768959045, 0.02938038296997547, 0.007894664071500301, -0.043583132326602936, -0.013036709278821945, -0.021638642996549606, 0.05726976692676544, -0.039530664682388306, -0.01894337125122547, -0.05099990963935852, 0.03956889733672142, -0.006174277048557997, -0.0236075296998024, 0.017079617828130722, 0.005471786018460989, 0.0009420312708243728, -0.02400895394384861, -0.04725329205393791, 0.0447300560772419, -0.035554662346839905, 0.008697510696947575, -0.03295496478676796, -0.03136838600039482, 0.05612283945083618, 0.024811800569295883, -0.014269652776420116, -0.029781807214021683, -0.0010997334029525518, 0.05803438276052475, -0.040027666836977005, -0.024639762938022614, 0.004926996771246195, -0.050464678555727005, -0.057652074843645096, 0.019373467192053795, 0.00997824314981699, 0.050388216972351074, -0.04817083105444908, -0.051038142293691635, 0.014747537672519684, -0.02930392138659954, -0.0026474841870367527, -0.028520191088318825, 0.00554824760183692, -0.006824200972914696, 0.031253695487976074, -0.039530664682388306, -0.04182451590895653, -0.02922745980322361, 0.018656639382243156, 0.013170517049729824, 0.051955681294202805, -0.012157400138676167, -0.015340115875005722, -0.08471949398517609, -0.028501074761152267, -0.023779569193720818, -0.019124966114759445, -0.042856745421886444, 0.009486021474003792, 0.03188450261950493, 0.007779971696436405, -0.046985674649477005, 0.01605694368481636, 0.0008972295327112079, 0.02028144896030426, -0.012740420177578926, 0.05390545353293419, 0.011067821644246578, -0.00745023088529706, -0.0038708702195435762, -0.019124966114759445, 0.0004178508825134486, -0.016439251601696014, -0.01365796010941267, -0.04832375422120094, -0.003944942727684975, -0.027679111808538437, 0.005892324727028608, 0.04778852313756943, 0.03635750710964203, 0.0006971150869503617, -0.04878252372145653, 0.01879044622182846, 0.022326797246932983, 0.011125167831778526, 0.0070822592824697495, 0.0021576518192887306, 0.01829344592988491, 0.0011224328773096204, -0.053026143461465836, 0.05080875754356384, -0.004764515906572342, -0.0007753687677904963, -0.06441892683506012, 0.011316321790218353, 0.03914835676550865, -0.0075171347707509995, -0.02962888404726982, 0.03519146889448166, 0.033968083560466766, 0.034885622560977936, -0.0812787190079689, 0.0033547542989253998, -0.012864670716226101, 0.03658689185976982, 0.010198070667684078, 0.01312272809445858, 0.04354490339756012, 0.05264383554458618, 0.027927612885832787, 0.0477120615541935, -0.015282769687473774, -0.049547139555215836, 0.028004074469208717, -0.03327992558479309, -0.007636605761945248, 0.08158456534147263, 0.005419218447059393, 0.04232151433825493, -0.011029590852558613, 0.013629286549985409, 0.017567060887813568, -0.0168980211019516, -0.016964925453066826, 0.04576228931546211, -0.07443540543317795, -0.004159990698099136, -0.01304626651108265, 0.013505036942660809, -0.050197064876556396, 0.0017132185166701674, -0.030737577006220818, 0.04056289792060852, 0.051688067615032196, 0.06266031414270401, -0.009920896962285042, -0.03626193106174469, -0.05375253036618233, -0.04327728599309921, 0.015349673107266426, -0.10391136258840561, 0.06873901188373566, -0.06518354266881943, 0.06912131607532501, 0.036892738193273544, -0.08655457198619843, -0.0016427304362878203, 0.05730799585580826, -0.011956688016653061, -0.005495680030435324, -0.007091816980391741, 0.05172629654407501, 0.04568582773208618, -0.05321729928255081, -0.055931687355041504, 0.00280518620274961, 0.08884841948747635, 0.12692631781101227, -0.02376045286655426, -0.03914835676550865, 0.07378547638654709, -0.020797565579414368, 0.016037827357649803, -0.0064323353581130505, 0.04859137162566185, -0.030928730964660645, 0.03385338932275772, -0.04958537220954895, -0.001979639520868659, -0.016496598720550537, 0.010580378584563732, 0.06655985116958618, 0.000838091189507395, -0.05176452919840813, -0.03111988678574562, 0.08900134265422821, -0.013132286258041859, -0.010838436894118786, -0.04327728599309921, 0.020549064502120018, -0.04178628325462341, -0.04893544688820839, -0.008415558375418186, 0.08242564648389816, -0.035898737609386444, -0.05099990963935852, -0.03666335344314575, -0.03387250378727913, -0.055931687355041504, 0.009041588753461838, 0.010494359768927097, 0.022804683074355125, 0.030431730672717094, -0.025710225105285645, -0.016200309619307518, -0.05314083769917488, 0.003995120525360107, 0.0019378246506676078, 0.04346844181418419, 0.04580051824450493, -0.008716626092791557, -0.012319881469011307, 0.040448207408189774, 0.00204773829318583, -0.05654338002204895, 0.08433718234300613, -0.012893343344330788, 0.017576618120074272, 0.014002037234604359, 0.06208685040473938, -0.04484475031495094, -0.06369253993034363, -0.007650942541658878, -0.04079228267073631, -0.013361671008169651, 0.025519071146845818, -0.0365295484662056, 0.020893141627311707, -0.02806141972541809, 0.027526188641786575, -0.043086130172014236, 0.014556383714079857, 0.0083247609436512, -0.023970723152160645, 0.007421557791531086, 0.032496195286512375, 0.013141843490302563, 0.028921613469719887, -0.010264975018799305, -0.0497000627219677, 0.033165235072374344, 0.004582919180393219, -0.046909213066101074, -0.020147640258073807, -0.0022138033527880907, 0.03540173918008804, 0.050044141709804535, -0.03087138570845127, -0.026207225397229195, -0.010236301459372044, 0.027105649933218956, -0.007134826388210058, -0.05314083769917488, -0.0477120615541935, -0.016085617244243622, -0.027717342600226402, -0.04071582108736038, -0.019277889281511307, -0.023989837616682053, 0.03983651101589203, -0.0243530310690403, 0.011144283227622509, -0.005022573750466108, 0.016238540410995483, 0.004320082254707813, -0.012195630930364132, 0.017949368804693222, -0.006059584673494101, 0.040104128420352936, -0.06663631647825241, 0.07030647248029709, 0.027583535760641098, 0.04866783320903778, -0.009012915194034576, 0.02234591357409954, 0.008716626092791557, -0.03725593164563179, -0.019325679168105125, -0.021963605657219887, -0.09534765779972076, 0.018083177506923676, 0.07539117336273193, 0.024066299200057983, -0.014107171446084976, -0.009356992319226265, -0.004432385321706533, 0.026838034391403198, -0.01465196069329977, 0.058837227523326874, -0.06720978021621704, -0.015712866559624672, -0.015693750232458115, -0.051955681294202805, 0.003206609981134534, -0.009806204587221146, -0.07126224786043167, -0.01774865761399269, 0.04568582773208618, 0.004382207524031401, -0.025691110640764236, 0.007751298602670431, 0.027277689427137375, 0.06250739097595215, -0.03668247163295746, -0.00626985402777791, 0.0012096469290554523, 0.016869349405169487, 0.0010298426495864987, -0.039454203099012375, -0.02393249236047268, 0.05661984160542488, 0.024295685812830925, -0.026876265183091164, -0.06491593271493912, 0.03731327876448631, -0.013973363675177097, -0.046909213066101074, -0.0599076934158802, 0.037447087466716766, -0.09909427911043167, -0.037294164299964905, 0.02485003136098385, 0.06503061950206757, 0.020090295001864433, -0.06522177904844284, -0.01784423366189003, 0.006504017859697342, -0.03045084699988365, 0.023569298908114433, 0.0003709584125317633, -0.061895694583654404, 0.048973679542541504, -0.004711948335170746, 0.0009569651447236538, 0.037714701145887375, -0.004974785260856152, -0.04667982831597328, -0.002322522224858403, 0.02773645892739296, -0.029342152178287506, -0.03832639381289482, 0.009304425679147243, 0.028176112100481987, 0.009729743003845215, -0.002931825816631317, 0.07130047678947449, -0.022250335663557053, -0.01814052276313305, 0.009414338506758213, 0.026685111224651337, 0.0392630510032177, 0.01452771108597517, 0.0061933924444019794, 0.07145339995622635, -0.025557301938533783, 0.031005194410681725, 0.030240576714277267, 0.028023188933730125, 0.010494359768927097, -0.045915212482213974, -0.02980092354118824, 0.007995019666850567, -0.04033351317048073, 0.015158519148826599, -0.005877988412976265, 0.020835796371102333, -0.056925687938928604, 0.053523145616054535, 0.05256737396121025, 0.02194448933005333, -0.01117295678704977, 0.07290617376565933, -0.06598639488220215, -0.004535130690783262, -0.0049174390733242035, 0.033738698810338974, 0.03909101337194443, -0.007536250166594982, -0.05375253036618233, -0.03979828208684921, -0.05233798921108246, -0.01725165732204914, 0.0044825635850429535, -0.01598048210144043, 0.01022674422711134, 0.026302803307771683, -0.010570821352303028, 0.06847139447927475, -0.011411898769438267, -0.002323716878890991, 0.02540437877178192, 0.011316321790218353, -0.0599076934158802, -0.03234327211976051, -0.03496208414435387, 0.0083247609436512, 0.05126752704381943, -0.0032161676790565252, -0.051458682864904404, 0.02483091689646244, 0.008061924017965794, -0.06396015733480453, -0.01814052276313305, 0.003163600107654929, 0.02542349323630333, 0.010006916709244251, 0.053026143461465836, -0.00016233163478318602, 0.0072781918570399284, 0.01051347516477108, 0.048056136816740036, -0.02565287984907627, -0.035229697823524475, -0.04977652430534363, 0.018723543733358383, -0.05142045021057129, -0.013371228240430355, -0.02052995003759861, 0.00964372418820858, 0.014145402237772942, -0.006848095450550318, -0.005925776902586222, -0.013141843490302563, -0.013629286549985409, 0.02806141972541809, -0.00846334733068943, -0.0161525197327137, -0.022231221199035645, -0.024276569485664368, -0.0760410949587822, -0.02624545618891716, 0.004200611263513565, 0.012931574136018753, -0.0032759031746536493, -0.05149691179394722, 0.0018338845111429691, -0.01779644563794136, -0.010341436602175236, 0.011058264411985874, 0.10804029554128647, -0.005228064488619566, 0.005228064488619566, -0.018226543441414833, -0.004124149680137634, -0.03161688521504402, 0.04809436947107315, 0.0022054403088986874, 0.02922745980322361, -0.05172629654407501, -0.06801262497901917, -0.032649118453264236, 0.002671378431841731, 0.03209477290511131, -0.030106769874691963, 0.01970798708498478, -0.03635750710964203, -0.03253442794084549, 0.033585771918296814, 0.03781028091907501, -0.028271690011024475, -0.019899141043424606, -0.045915212482213974, 0.021906258538365364, -0.05107637122273445, -0.013820440508425236, -0.031081655994057655, 0.024066299200057983, 0.01159349549561739, -0.060137078166007996, 0.03247708082199097, 0.000838091189507395, 0.05788145959377289, 0.012214746326208115, -0.024219222366809845, 0.005763296037912369, 0.037045661360025406, 0.015674635767936707, 0.012100053951144218, 0.042665593326091766, -0.01784423366189003, 0.008649722672998905, -0.028864268213510513, -0.02733503468334675, 0.004872039891779423, 0.000736540590878576, -0.02716299705207348, 0.029284806922078133, -0.023129645735025406, -0.013419017195701599, -0.014088056050240993, 0.04583875089883804, -0.020300565287470818, -0.027526188641786575, -0.08013179153203964, -0.035153236240148544, 0.002322522224858403, 0.005099035333842039, 0.07137693464756012, -0.05554937943816185, -0.04090697690844536, -0.018226543441414833, -0.03769558668136597, 0.024448608979582787, 0.00013888539979234338, -0.013084497302770615, -0.006026132497936487, -0.020491719245910645, 0.020491719245910645, -0.006910220254212618, 0.0487060621380806, 0.008233962580561638, -0.025977840647101402, 0.014604172669351101, -0.011325879953801632, -0.00882176123559475, 0.053102605044841766, -0.03909101337194443, 0.022154759615659714, 0.01333299744874239, 0.020396141335368156, 0.03882339596748352, 0.0064084408804774284, 0.03087138570845127, 0.03758089244365692, 0.023569298908114433, 0.003964058123528957, -0.009882666170597076, 0.023970723152160645, -0.006647383328527212, 0.01457549910992384, 0.033490195870399475, -0.02393249236047268, 0.006427556276321411, 0.01970798708498478, -0.048476677387952805, 0.03400631248950958, 0.04362136498093605, 0.006690393202006817, 0.01879044622182846, 0.03228592500090599, -0.018226543441414833, 0.005801526829600334, 0.011316321790218353, -0.03675893321633339, -0.0021624306682497263, 0.014470364898443222, -0.06071053817868233, 0.04866783320903778, -0.0022747337352484465, -0.06713331490755081, 0.020587295293807983, -0.0201285257935524, -0.021065181121230125, 0.008310424163937569, -0.04633575305342674, 0.018475042656064034, -0.04155689850449562, 0.017567060887813568, 0.025232339277863503, 0.007756077218800783, 0.04247443750500679, -0.009686733596026897, 0.009428675286471844, 0.0397600494325161, 0.03979828208684921, 0.03542085364460945, 0.028921613469719887, 0.04430951923131943, -0.013266094028949738, 0.06323377043008804, 0.0226135291159153, -0.010245859622955322, 0.06629224121570587, 0.008816982619464397, 0.035898737609386444, -0.020090295001864433, 0.07584994286298752, 0.008912559598684311, -0.0010196876246482134, -0.016639962792396545, -0.012119169346988201, -0.00949557963758707, -0.005041689146310091, -0.0006012393278069794, -0.016095174476504326, 0.03337550535798073, 0.011574380099773407, -0.023951606824994087, 0.04385074973106384, -0.016334116458892822, 0.04526528716087341, 0.0357840470969677, 0.015521712601184845, 0.0028935950249433517, 0.027124766260385513, -0.022384144365787506, 0.017433252185583115, -0.016611291095614433, 0.06430423259735107, -0.08632519096136093, -0.026627764105796814, -0.015493039041757584, 0.07558232545852661, 0.0018601682968437672, 0.01789202354848385, 0.06602462381124496, -0.0546700693666935, 0.002269954886287451, 0.047979675233364105, -0.010159839875996113, 0.017442811280488968, 0.004427606705576181, 0.05291145294904709, 0.020988719537854195, -0.009356992319226265, -0.04893544688820839, -0.010389224626123905, -0.010704629123210907, 0.0033284705132246017, 0.0004435372247826308, -0.005887546110898256, -0.021753335371613503, -0.016334116458892822, 0.028118766844272614, 0.053102605044841766, -0.04495944082736969, -0.005419218447059393, 0.003952110651880503, 0.0035028986167162657, 0.017729541286826134, -0.016716424375772476, 0.030240576714277267, 0.015483480878174305, -0.010503917001187801, 0.019555063918232918, -0.056734535843133926, -0.015273211523890495, -0.0006809864426031709, 0.040448207408189774, -0.05489945411682129, 0.018828677013516426, 0.015378346666693687, -0.04629752039909363, 0.029112767428159714, 0.08211980015039444, 0.05379075929522514, -0.023703107610344887, 0.033413734287023544, -0.05199391394853592, 0.06831847131252289, -0.036223698407411575, -0.01894337125122547, 0.004391765221953392, -0.015435692854225636, 0.03459889069199562, -0.07451186329126358, 0.0007455009617842734, -0.028367267921566963, -0.026513071730732918 ]
37,723
healpy.fitsfunc
read_cl
Reads Cl from a healpix file, as IDL fits2cl. Parameters ---------- filename : str or HDUList or HDU or pathlib.Path instance the fits file name Returns ------- cl : array the cl array
def read_cl(filename): """Reads Cl from a healpix file, as IDL fits2cl. Parameters ---------- filename : str or HDUList or HDU or pathlib.Path instance the fits file name Returns ------- cl : array the cl array """ opened_file = False if isinstance(filename, allowed_paths): filename = pf.open(filename) opened_file = True fits_hdu = _get_hdu(filename, hdu=1) cl = np.array([fits_hdu.data.field(n) for n in range(len(fits_hdu.columns))]) if opened_file: filename.close() if len(cl) == 1: return cl[0] else: return cl
(filename)
[ -0.012927371077239513, -0.022273752838373184, 0.00991934072226286, 0.015460921451449394, 0.019015053287148476, 0.024744635447859764, -0.018889717757701874, 0.006047395523637533, 0.03273024037480354, -0.013366042636334896, -0.010125246830284595, -0.05102909728884697, -0.05256892368197441, 0.021754510700702667, -0.017546847462654114, -0.04515627399086952, -0.0022660947870463133, 0.0012309650192037225, -0.033410631120204926, -0.010420679114758968, 0.010259534232318401, 0.0037264670245349407, 0.030330978333950043, -0.017457323148846626, -0.02152174524962902, 0.0184779055416584, 0.05016966164112091, 0.028880678117275238, -0.02555035799741745, -0.04594409093260765, -0.043365780264139175, 0.04254215210676193, -0.04683934152126312, 0.03126203641295433, -0.0614139661192894, 0.0010401654290035367, 0.05407293885946274, -0.024726731702685356, -0.04332996904850006, -0.0022403565235435963, -0.016141308471560478, 0.003451178316026926, 0.03135156258940697, -0.009534384123980999, -0.06184368580579758, -0.003683942835777998, -0.0243507269769907, -0.06732259690761566, -0.0755588710308075, 0.03867468610405922, 0.024368632584810257, -0.05622153356671333, -0.06782393902540207, -0.034843023866415024, 0.0025648835580796003, 0.009453811682760715, 0.011745644733309746, 0.03643656522035599, -0.006951595656573772, 0.01008943747729063, -0.026642560958862305, -0.055576954036951065, 0.010304296389222145, -0.02003563567996025, 0.04050098732113838, -0.02130688540637493, 0.024655111134052277, 0.046409621834754944, 0.06947119534015656, 0.0030169833917170763, -0.003482511965557933, 0.03760038688778877, 0.023741958662867546, -0.01869276352226734, -0.006119015626609325, -0.006409971043467522, 0.03636494651436806, -0.011665072292089462, 0.04923860356211662, 0.005581866949796677, -0.08150331676006317, 0.00022339218412525952, 0.08873691409826279, 0.007806556764990091, -0.043365780264139175, -0.029256682842969894, 0.11452003568410873, 0.03953412175178528, -0.06202273443341255, 0.033070437610149384, 0.01093992218375206, -0.006781498435884714, -0.0310650821775198, 0.019355246797204018, 0.0023679290898144245, 0.011226401664316654, 0.015111775137484074, 0.07921148091554642, 0.03661561384797096, 0.04042936861515045, -0.061378154903650284, -0.026338176801800728, 0.08107359707355499, 0.04025031998753548, -0.04050098732113838, 0.02245280332863331, 0.029811736196279526, 0.08623021841049194, 0.0006865427712909877, -0.0031982711516320705, -0.03425216302275658, -0.012139554135501385, 0.053535789251327515, -0.003695133375003934, 0.011942598968744278, -0.01093992218375206, -0.033768728375434875, 0.09296248108148575, -0.0592653714120388, 0.018513714894652367, -0.03317786753177643, -0.046409621834754944, -0.02660674974322319, -0.0003720871754921973, 0.020447447896003723, 0.04128880798816681, -0.05665124952793121, -0.026356080546975136, 0.013357089832425117, 0.0006009347853250802, -0.01164716761559248, -0.02682160958647728, 0.025639884173870087, 0.010017817839980125, 0.023115286603569984, -0.04035774990916252, 0.028486769646406174, -0.055720191448926926, 0.03077860362827778, -0.00016016533481888473, 0.0439029298722744, 0.026373986154794693, 0.023974724113941193, -0.00318484241142869, 0.02329433523118496, 0.028271909803152084, 0.05335674062371254, -0.09969474375247955, -0.05378646031022072, 0.023061571642756462, -0.01914038695394993, -0.025174355134367943, 0.04751972854137421, 0.014834248460829258, 0.014377672225236893, -0.036239612847566605, -0.03170965984463692, -0.0328734815120697, -0.032998815178871155, -0.027931716293096542, -0.02012515999376774, 0.05009803920984268, -0.01290946640074253, -0.013786808587610722, -0.04436845704913139, -0.05704515799880028, -0.08050063997507095, -0.03999964892864227, -0.031226227059960365, 0.036740951240062714, -0.016705315560102463, -0.024261202663183212, -0.02109202742576599, 0.043509021401405334, 0.03298091143369675, -0.027698952704668045, -0.05031289905309677, 0.020984597504138947, 0.04418940842151642, -0.02929249219596386, -0.02266766130924225, -0.008567516691982746, 0.032067760825157166, 0.06152139604091644, 0.018155615776777267, 0.0453353226184845, 0.05690192058682442, -0.03636494651436806, 0.0398206003010273, 0.02871953323483467, 0.043867118656635284, 0.04458331689238548, -0.013142230920493603, -0.005657962989062071, 0.05392969772219658, -0.08336543291807175, -0.006759117357432842, 0.05378646031022072, -0.046696100383996964, -0.015586256049573421, -0.014843200333416462, 0.04623057320713997, 0.02689323015511036, 0.004453855566680431, -0.009265809319913387, 0.035827796906232834, 0.01820933073759079, 0.011718787252902985, -0.04028613120317459, 0.030939746648073196, 0.006280160043388605, 0.01869276352226734, -0.051494624465703964, 0.034484926611185074, 0.0422198623418808, 0.009659718722105026, -0.06492333859205246, -0.010402773506939411, 0.005438627675175667, 0.015147584490478039, 0.04254215210676193, 0.03613218292593956, -0.01749313250184059, 0.039784789085388184, -0.08981121331453323, 0.00032788433600217104, 0.034968361258506775, 0.06825365871191025, 0.03967736288905144, 0.024046342819929123, -0.06757326424121857, -0.031799186021089554, 0.015792163088917732, -0.025711502879858017, 0.04426102712750435, 0.013097468763589859, -0.01919410191476345, 0.07591697573661804, 0.019462676718831062, 0.04791363701224327, -0.007873700000345707, -0.009462764486670494, 0.024941589683294296, 0.04254215210676193, -0.03240795433521271, -0.008142274804413319, -0.01273936964571476, 0.03353596478700638, -0.044440075755119324, 0.0487014539539814, -0.03649028018116951, -0.07272989302873611, 0.04426102712750435, 0.021700795739889145, -0.024028437212109566, -0.07136911898851395, -0.07104682922363281, -0.07799394428730011, 0.0020579497795552015, -0.05983833223581314, -0.03643656522035599, -0.031799186021089554, 0.060303859412670135, 0.023455480113625526, -0.04469074681401253, 0.030957652255892754, 0.01605178415775299, 0.014896915294229984, 0.034484926611185074, -0.012050028890371323, 0.059802521020174026, 0.053535789251327515, -0.009623908437788486, -0.007282836828380823, 0.0001232363865710795, -0.052962832152843475, 0.05188853293657303, -0.0003681704693008214, 0.03545179218053818, 0.0494176521897316, 0.0017334226286038756, 0.009543335996568203, -0.028039146214723587, -0.014243384823203087, -0.000337955862050876, -0.014717865735292435, -0.08214789628982544, -0.036114275455474854, -0.0374213382601738, 0.03777943551540375, 0.00868389941751957, 0.017188748344779015, -0.03760038688778877, -0.011915741488337517, 0.08787747472524643, -0.009135998785495758, -0.02413586713373661, -0.011065256781876087, 0.021199457347393036, -0.00827656127512455, -0.053679030388593674, -0.009135998785495758, -0.00921209529042244, -0.053822267800569534, -0.04759134724736214, -0.11201334744691849, -0.03803010657429695, -0.02984754554927349, -0.043294161558151245, 0.042936060577631, 0.04737648740410805, 0.02809286117553711, -0.025532454252243042, -0.02187984436750412, 0.01809294894337654, 0.00027039265842176974, 0.026911133900284767, 0.024028437212109566, 0.06019642949104309, -0.03201404586434364, -0.029596876353025436, -0.00566243939101696, -0.0024373107589781284, -0.004559047054499388, -0.04841497540473938, 0.032640717923641205, 0.01725141517817974, -0.02809286117553711, 0.04820011556148529, 0.02025049366056919, 0.009203142486512661, 0.005787773989140987, -0.04683934152126312, -0.03487883508205414, 0.05969509109854698, -0.059730902314186096, 0.048092685639858246, 0.016955984756350517, -0.006750165019184351, -0.028003336861729622, 0.01150392834097147, -0.027143899351358414, -0.03650818392634392, 0.002600693376734853, -0.022685566917061806, 0.009785053320229053, 0.01270355936139822, -0.032855577766895294, -0.019462676718831062, -0.005702725611627102, 0.005877298768609762, -0.0695786252617836, -0.010895160026848316, 0.009659718722105026, 0.006329398602247238, 0.04565761238336563, -0.023813579231500626, 0.01464624609798193, 0.01538034901022911, 0.0028849344234913588, 0.003578751115128398, -0.04383130744099617, -0.0053177690133452415, -0.07835204899311066, -0.055576954036951065, -0.0008336990722455084, 0.011539737693965435, -0.034055206924676895, -0.015165489166975021, 0.02540711872279644, -0.05024128034710884, 0.015371396206319332, 0.001725589158013463, 0.03774362802505493, -0.022040989249944687, -0.02773476205766201, 0.006141396705061197, -0.011280116625130177, -0.05754649639129639, -0.011638214811682701, 0.01899714767932892, 0.03799429535865784, 0.011665072292089462, 0.030886031687259674, -0.05371483787894249, 0.010125246830284595, -0.04637381061911583, 0.01270355936139822, -0.07598859071731567, 0.014198622666299343, 0.0487014539539814, -0.001177250174805522, -0.03756457939743996, -0.026839515194296837, -0.025801027193665504, 0.006978452671319246, 0.05088585615158081, 0.0693279504776001, 0.03298091143369675, -0.03803010657429695, -0.02864791452884674, -0.038209155201911926, 0.03625751659274101, -0.000942807353567332, -0.06155720725655556, 0.0376720055937767, 0.019999824464321136, -0.01531768124550581, -0.0350220762193203, -0.04956089332699776, 0.005093957297503948, 0.08794909715652466, -0.008097511716187, -0.003596656024456024, 0.006329398602247238, 0.015040154568850994, -0.053177691996097565, -0.02857629396021366, 0.009135998785495758, 0.050491947680711746, -0.034198448061943054, -0.03788686543703079, -0.05016966164112091, 0.00670540239661932, -0.0024731208104640245, 0.03364339470863342, 0.01809294894337654, 0.05837012454867363, 0.02420748770236969, -0.003990564960986376, -0.05511142686009407, 0.0686117559671402, 0.026553034782409668, -0.058620795607566833, -0.04494141414761543, -0.07419809699058533, -0.01616816595196724, 0.05285540223121643, -0.006087681744247675, 0.009731338359415531, 0.02046535350382328, 0.046409621834754944, 0.014019573107361794, -0.005304340273141861, -0.051351387053728104, -0.021844035014510155, -0.007448457647114992, -0.02490578033030033, -0.019462676718831062, -0.08508430421352386, -0.026069601997733116, 0.029113443568348885, 0.02180822566151619, -0.01719770021736622, 0.030116120353341103, -0.016275595873594284, -0.07584535330533981, 0.017976565286517143, 0.024189582094550133, 0.032210998237133026, -0.061020057648420334, -0.01182621717453003, 0.036382850259542465, -0.04623057320713997, 0.015407206490635872, -0.04791363701224327, 0.03437749668955803, 0.02266766130924225, -0.03267652541399002, -0.00991038791835308, 0.015129679813981056, -0.025783123448491096, 0.021682890132069588, -0.00023933876946102828, -0.002598455408588052, -0.011665072292089462, 0.02857629396021366, 0.058119457215070724, 0.0007178764208219945, -0.00901961699128151, -0.01698284223675728, -0.050993286073207855, -0.03946250304579735, -0.04594409093260765, 0.02478044666349888, -0.0019673060160130262, -0.006199587602168322, 0.003605608595535159, 0.0163114070892334, -0.07247922569513321, -0.05020546913146973, 0.05192434415221214, -0.0335896797478199, -0.05532628297805786, 0.0676448866724968, 0.03964155167341232, 0.04164690524339676, 0.0027416949160397053, 0.019731251522898674, 0.06757326424121857, -0.050993286073207855, -0.03346434608101845, -0.011271163821220398, -0.025496643036603928, 0.01182621717453003, -0.005783297587186098, 0.021772414445877075, 0.0060518719255924225, 0.015917496755719185, 0.008634660392999649, -0.04931022226810455, -0.0034467021469026804, 0.03946250304579735, 0.0020087112206965685, -0.0042680916376411915, 0.03749295696616173, -0.047949448227882385, 0.05597086250782013, -0.051423005759716034, 0.06961443275213242, -0.019605915993452072, 0.0023276431020349264, 0.006683021318167448, 0.04748391732573509, -0.026588845998048782, -0.015308729372918606, 0.01940896175801754, -0.05016966164112091, -0.007994558662176132, 0.0431867316365242, -0.017770659178495407, -0.07376837730407715, -0.004113661590963602, 0.029686400666832924, -0.04404616728425026, 0.007188836112618446, -0.017663229256868362, 0.00884056743234396, -0.07362513989210129, -0.05414455756545067, -0.0046508098021149635, -0.06528143584728241, 0.07505753636360168, 0.03523693606257439, -0.015201299451291561, -0.026588845998048782, -0.01146811805665493, -0.011298021301627159, 0.02823610045015812, 0.016830649226903915, 0.036884188652038574, -0.01998192071914673, -0.031852900981903076, -0.10277438908815384, 0.041754335165023804, -0.013804713264107704, -0.012345460243523121, -0.04236310347914696, -0.0614139661192894, -0.035326458513736725, -0.0016886602388694882, -0.01059077586978674, 0.003010269021615386, -0.0027282661758363247, -0.020572783425450325, -0.043365780264139175, 0.05955184996128082, 0.04683934152126312, 0.021611269563436508, -0.01616816595196724, 0.0026633606757968664, 0.06581858545541763, 0.030044499784708023, 0.03752876818180084, 0.006830736994743347, 0.026373986154794693, 0.0338224433362484, -0.06843270361423492, 0.05027708783745766, -0.02032211422920227, 0.011718787252902985, -0.018871814012527466, -0.030653268098831177, 0.005237197037786245, 0.02102040685713291, 0.07140492647886276, -0.03953412175178528, -0.003782419953495264, 0.04418940842151642, -0.01288260892033577, 0.04214824363589287, -0.012157458811998367, 0.045979902148246765, 0.024816256016492844, 0.006087681744247675, 0.023455480113625526, -0.03745714947581291, -0.0026208364870399237, -0.0019035196164622903, 0.08837881684303284, -0.015631018206477165, -0.04594409093260765, -0.039426691830158234, 0.02562197856605053, 0.005792250391095877, -0.012264888733625412, 0.03641866147518158, -0.08436810970306396, -0.028039146214723587, -0.021539650857448578, 0.004261377267539501, -0.007506649009883404, -0.018146663904190063, -0.030169835314154625, -0.0004834335413761437, 0.0020669023506343365, 0.04272120073437691, -0.04508465528488159, -0.007994558662176132, 0.0005284756771288812, 0.05188853293657303, -0.0041517093777656555, 0.01414490770548582, -0.0033549393992871046, -0.0009523193584755063, -0.011557643301784992, 0.024153772741556168, 0.011074209585785866, -0.009811910800635815, 0.10420678555965424, 0.02984754554927349, 0.002636503428220749, -0.003918945323675871, 0.017913898453116417, -0.013992715626955032, 0.007309694308787584, 0.01806609146296978, 0.01682169735431671, 0.02590845711529255, 0.07362513989210129, -0.02859419956803322, -0.006181682925671339, 0.04526370391249657, -0.03749295696616173, -0.016427788883447647, -0.030098214745521545, 0.01785123161971569, -0.02504901960492134, 0.04189757630228996, -0.009194189682602882, -0.004415807314217091, 0.04973994195461273, -0.0056490106508135796, 0.008267609402537346, 0.040966518223285675, -0.06281055510044098, -0.019588012248277664, 0.015290824696421623, -0.005044718738645315, 0.018549524247646332, 0.017063414677977562, 0.053106069564819336, 0.03577408194541931, 0.005438627675175667, -0.0376720055937767, -0.04411778971552849, 0.05751068890094757, -0.03273024037480354, -0.026015887036919594, 0.022488612681627274, -0.020572783425450325, 0.02977592498064041, -0.016203977167606354, 0.005273006856441498, 0.030259359627962112, -0.011450213380157948, -0.012488700449466705, 0.03665142506361008, 0.045693423599004745, 0.038209155201911926, 0.013786808587610722, 0.061378154903650284, 0.005832536146044731, 0.00653082923963666, 0.0151744419708848, 0.048522405326366425, 0.003341510659083724, -0.0070993113331496716, 0.012085839174687862, -0.0012690130388364196, 0.005743011366575956, 0.10520946234464645, 0.022900426760315895, -0.002508930629119277, 0.0319066159427166, 0.01849580928683281, -0.01223803125321865, -0.0012231316650286317, -0.04014289006590843, 0.027269233018159866, 0.02245280332863331, -0.025371309369802475, 0.011602405458688736, 0.04304349049925804, -0.0036928951740264893, 0.022273752838373184, -0.013097468763589859, 0.00343998777680099, -0.051064908504486084, 0.011172686703503132, -0.0020400448702275753, 0.0041472334414720535, -0.004026374779641628, 0.027931716293096542, 0.019462676718831062, 0.014511958695948124, -0.05765392631292343, 0.003558608004823327, -0.012506605125963688, -0.004129328299313784, 0.060876816511154175, 0.07072453945875168, 0.05407293885946274, 0.06563953310251236, -0.011862027458846569, 0.03201404586434364, 0.08107359707355499, -0.005407293792814016, -0.007739413063973188, 0.007842366583645344, -0.003225128399208188, -0.05307026207447052, -0.023831482976675034, 0.023867294192314148, -0.001519682351499796, -0.021754510700702667, 0.021969368681311607, 0.005022337660193443, 0.05779716745018959, -0.056364770978689194, 0.006065300665795803, -0.03493255004286766, 0.0027886955067515373, 0.021127836778759956, -0.028880678117275238, -0.012148506008088589, -0.002053473610430956, 0.019731251522898674, 0.009041997604072094, -0.0017613990930840373, -0.01428814698010683, -0.0020165445748716593, 0.048450786620378494, 0.01665160059928894, 0.020232589915394783, -0.07419809699058533, 0.005076052155345678, -0.0014301575720310211, 0.020787643268704414, -0.01341080479323864, 0.00898380670696497, 0.019731251522898674, -0.019444771111011505, 0.033840347081422806, -0.03706323727965355, -0.024189582094550133, -0.011038399301469326, -0.006772546097636223 ]
37,724
healpy.fitsfunc
read_map
Read a healpix map from a fits file. Partial-sky files, if properly identified, are expanded to full size and filled with UNSEEN. .. warning:: Starting from healpy 1.15.0, if you do not specify `dtype`, the map will be read in memory with the same precision it is stored on disk. Previously, by default `healpy` wrote maps in `float32` and then upcast to `float64` when reading to memory. To reproduce the same behaviour of `healpy` 1.14.0 and below, set `dtype=np.float64` in `read_map`. Parameters ---------- filename : str or HDU or HDUList or pathlib.Path instance the fits file name field : int or tuple of int, or None, optional The column to read. Default: 0. By convention 0 is temperature, 1 is Q, 2 is U. Field can be a tuple to read multiple columns (0,1,2) If the fits file is a partial-sky file, field=0 corresponds to the first column after the pixel index column. If None, all columns are read in. dtype : data type or list of data types, optional Force the conversion to some type. Passing a list allows different types for each field. In that case, the length of the list must correspond to the length of the field parameter. If None, keep the dtype of the input FITS file Default: Preserve the data types in the file nest : bool, optional If True return the map in NEST ordering, otherwise in RING ordering; use fits keyword ORDERING to decide whether conversion is needed or not If None, no conversion is performed. partial : bool, optional If True, fits file is assumed to be a partial-sky file with explicit indexing, if the indexing scheme cannot be determined from the header. If False, implicit indexing is assumed. Default: False. A partial sky file is one in which OBJECT=PARTIAL and INDXSCHM=EXPLICIT, and the first column is then assumed to contain pixel indices. A full sky file is one in which OBJECT=FULLSKY and INDXSCHM=IMPLICIT. At least one of these keywords must be set for the indexing scheme to be properly identified. hdu : int, optional the header number to look at (start at 0) h : bool, optional If True, return also the header. Default: False. verbose : bool, deprecated It has no effect memmap : bool, optional Argument passed to astropy.io.fits.open, if True, the map is not read into memory, but only the required pixels are read when needed. Default: False. Returns ------- m | (m0, m1, ...) [, header] : array or a tuple of arrays, optionally with header appended The map(s) read from the file, and the header if *h* is True.
def write_alm( filename, alms, out_dtype=None, lmax=-1, mmax=-1, mmax_in=-1, overwrite=False ): """Write alms to a fits file. In the fits file the alms are written with explicit index scheme, index = l*l + l + m +1, possibly out of order. By default write_alm makes a table with the same precision as the alms. If specified, the lmax and mmax parameters truncate the input data to include only alms for which l <= lmax and m <= mmax. Parameters ---------- filename : str The filename of the output fits file alms : array, complex or list of arrays A complex ndarray holding the alms, index = m*(2*lmax+1-m)/2+l, see Alm.getidx lmax : int, optional The maximum l in the output file mmax : int, optional The maximum m in the output file out_dtype : data type, optional data type in the output file (must be a numpy dtype). Default: *alms*.real.dtype mmax_in : int, optional maximum m in the input array """ if not cb.is_seq_of_seq(alms): alms = [alms] l2max = Alm.getlmax(len(alms[0]), mmax=mmax_in) if lmax != -1 and lmax > l2max: raise ValueError("Too big lmax in parameter") elif lmax == -1: lmax = l2max if mmax_in == -1: mmax_in = l2max if mmax == -1: mmax = lmax if mmax > mmax_in: mmax = mmax_in if out_dtype is None: out_dtype = alms[0].real.dtype l, m = Alm.getlm(lmax) idx = np.where((l <= lmax) * (m <= mmax)) l = l[idx] m = m[idx] idx_in_original = Alm.getidx(l2max, l=l, m=m) index = l ** 2 + l + m + 1 hdulist = pf.HDUList() for alm in alms: out_data = np.empty( len(index), dtype=[("index", "i"), ("real", out_dtype), ("imag", out_dtype)] ) out_data["index"] = index out_data["real"] = alm.real[idx_in_original] out_data["imag"] = alm.imag[idx_in_original] cindex = pf.Column( name="index", format=getformat(np.int32), unit="l*l+l+m+1", array=out_data["index"], ) creal = pf.Column( name="real", format=getformat(out_dtype), unit="unknown", array=out_data["real"], ) cimag = pf.Column( name="imag", format=getformat(out_dtype), unit="unknown", array=out_data["imag"], ) tbhdu = pf.BinTableHDU.from_columns([cindex, creal, cimag]) hdulist.append(tbhdu) # Add str to convert pathlib.Path into str # Due to https://github.com/astropy/astropy/issues/10594 hdulist.writeto(str(filename), overwrite=overwrite)
(filename, field=0, dtype=None, nest=False, partial=False, hdu=1, h=False, verbose=True, memmap=False)
[ -0.004876355174928904, 0.06885464489459991, 0.04233134537935257, 0.022734254598617554, 0.046038903295993805, -0.006544246803969145, -0.06559525430202484, -0.051946550607681274, -0.11187861114740372, 0.029599348083138466, -0.01794702373445034, 0.011560654267668724, -0.040416453033685684, 0.031086446717381477, 0.03646444156765938, 0.07048434019088745, -0.0008645026828162372, 0.004914551042020321, 0.033775445073843, 0.04880938678979874, 0.029680833220481873, -0.003093875478953123, -0.008881841786205769, -0.013903341256082058, -0.006259050220251083, -0.051620613783597946, 0.02230646088719368, 0.0026075132191181183, 0.007160475477576256, -0.031677212566137314, -0.034468065947294235, -0.027378888800740242, 0.05940240994095802, -0.01639881357550621, 0.0010554826585575938, -0.06482114642858505, 0.045753706246614456, -0.0008842372335493565, -0.059891317039728165, 0.010272176004946232, 0.07842911034822464, -0.032940223813056946, 0.08621090650558472, 0.048076022416353226, 0.00552059430629015, 0.05769122764468193, -0.02770482748746872, -0.003987661562860012, 0.0003895991249009967, -0.004303415305912495, -0.029904916882514954, -0.10584873706102371, -0.0009262528619728982, 0.01923041045665741, -0.03308282420039177, 0.05255768820643425, -0.02234720252454281, -0.003694825805723667, 0.06029874086380005, -0.08193295449018478, -0.037055205553770065, -0.032899484038352966, 0.08287002891302109, -0.059850577265024185, 0.002382156904786825, 0.02513805590569973, -0.05198729410767555, 0.019352637231349945, -0.0075016929768025875, 0.04689449444413185, -0.02668626792728901, 0.020259154960513115, 0.0737844705581665, 0.02821410819888115, 0.042209118604660034, 0.05312808230519295, -0.009992072358727455, -0.027623342350125313, -0.001300573581829667, 0.004527498502284288, -0.012334759347140789, 0.015217283740639687, 0.03546625375747681, 0.038847871124744415, -0.02847893349826336, -0.00019209401216357946, 0.042412832379341125, 0.0005334707093425095, 0.020320268347859383, -0.0749252587556839, 0.007160475477576256, 0.013098679482936859, 0.03725891932845116, 0.026217730715870857, -0.05455406382679939, -0.051131702959537506, -0.06490263342857361, 0.01653122529387474, 0.030903104692697525, 0.012538471259176731, -0.03153461217880249, -0.013944083824753761, 0.08409229665994644, 0.05084650591015816, 0.01293571013957262, -0.004693014547228813, 0.0025845954660326242, -0.01885354332625866, 0.02460840530693531, 0.026075132191181183, -0.05280214175581932, 0.03232908993959427, 0.048564933240413666, -0.044205497950315475, 0.0034987530671060085, 0.026523297652602196, 0.017641456797719002, -0.0030327618587762117, -0.015023757703602314, 0.0215119831264019, 0.023141680285334587, -0.06486189365386963, -0.027990024536848068, -0.038807131350040436, 0.08185146749019623, -0.04172021150588989, 0.00016567512648180127, -0.02772519923746586, 0.03481437638401985, -0.0594431534409523, -0.01868038810789585, 0.026034388691186905, -0.007022969890385866, 0.029395636171102524, -0.012324574403464794, -0.010343475267291069, 0.04722043499350548, -0.04974646121263504, -0.0537799596786499, -0.03984605893492699, -0.021369384601712227, 0.03546625375747681, 0.03949974849820137, -0.005938204005360603, 0.00902953278273344, 0.011662510223686695, 0.053739216178655624, -0.033958785235881805, 0.017244217917323112, -0.01065413560718298, -0.031086446717381477, -0.07178809493780136, -0.03330690786242485, -0.012273645959794521, 0.019148925319314003, -0.04432772472500801, -0.03725891932845116, -0.0010344748152419925, -0.047587115317583084, 0.007695219479501247, -0.02381392940878868, -0.020636022090911865, -0.023284276947379112, 0.02874375879764557, -0.0653100535273552, -0.0250973142683506, -0.005197201389819384, 0.028865985572338104, 0.03919418156147003, 0.008051715791225433, -0.004359436221420765, -0.016806237399578094, -0.06571748107671738, -0.01573674939572811, -0.035975534468889236, -0.019128553569316864, -0.034223608672618866, 0.003796681761741638, -0.007705405354499817, 0.010705064050853252, -0.021471241489052773, 0.033429134637117386, -0.028295591473579407, 0.010572651401162148, -0.025789935141801834, 0.020595280453562737, -0.03874601423740387, 0.0017544693546369672, -0.0027271939907222986, -0.017244217917323112, -0.017050690948963165, -0.012630142271518707, 0.0034554642625153065, -0.04840196296572685, -0.020574908703565598, -0.03670889511704445, -0.00929435808211565, 0.037014465779066086, 0.030454939231276512, 0.0005003674887120724, -0.039092324674129486, 0.03644407168030739, 0.04546850919723511, -0.020075814798474312, 0.03230871632695198, -0.015512666665017605, 0.04147575795650482, -0.02923266775906086, -0.046038903295993805, 0.029599348083138466, 0.040640536695718765, 0.0024801932740956545, -0.08087365329265594, -0.006040059961378574, 0.03968309238553047, 0.01282366830855608, -0.0466092973947525, 0.05455406382679939, 0.013648701831698418, 0.017234032973647118, -0.07614753395318985, 0.005642821546643972, -0.015125613659620285, 0.03000677190721035, 0.0007034428999759257, 0.010603208094835281, 0.08079216629266739, 0.020900847390294075, 0.05198729410767555, 0.03558848053216934, -0.02923266775906086, -0.019423935562372208, -0.001339406124316156, -0.02062583714723587, -0.021634209901094437, 0.05414664000272751, -0.024160239845514297, 0.020849918946623802, -0.03100496158003807, 0.010292546823620796, -0.0025438531301915646, -0.037788569927215576, -0.0215119831264019, 0.0017837529303506017, -0.03744225949048996, 0.020208226516842842, -0.016072874888777733, 0.008117921650409698, -0.05129467323422432, 0.00020084726565983146, -0.009783267043530941, 0.009874937124550343, 0.029599348083138466, 0.05031685531139374, 0.022632399573922157, -0.004344157874584198, -0.0692620649933815, -0.050683535635471344, -0.0033841650001704693, -0.05683564022183418, 0.016714567318558693, -0.0381145104765892, 0.06461743265390396, 0.013332948088645935, -0.026971464976668358, -0.01386259961873293, 0.011754180304706097, -0.014860788360238075, -0.0029843803495168686, 0.00678870128467679, -0.027847426012158394, 0.04795379564166069, -0.07256220281124115, -0.05235397443175316, 0.03200314939022064, 0.07973286509513855, 0.12499766051769257, -0.04072202369570732, -0.03668852522969246, 0.0605839379131794, 0.004005486611276865, -0.0009014254319481552, -0.00033135025296360254, 0.028030766174197197, -0.013363504782319069, 0.03689223527908325, -0.06205066666007042, 0.002439450705423951, -0.011509725823998451, -0.04004977270960808, 0.06514708697795868, 0.004150631371885538, -0.025056572631001472, 0.008841099217534065, 0.03534402698278427, -0.03516068682074547, -0.009054997004568577, -0.057283803820610046, 0.02819373644888401, -0.04669078439474106, -0.06046171113848686, -0.023773185908794403, 0.13273872435092926, -0.0310457032173872, -0.03866453096270561, -0.05080576613545418, -0.07268442958593369, -0.04326841980218887, 0.005546058062463999, 0.00833181943744421, 0.01958690583705902, 0.004099703393876553, -0.0271751768887043, -0.014025568962097168, -0.0034121754579246044, 0.017183104529976845, 0.0009790906915441155, 0.014320950955152512, 0.05923943966627121, 0.019169295206665993, -0.013495917432010174, 0.01741737313568592, -0.004153177607804537, -0.0832367092370987, 0.07867356389760971, -0.05125392973423004, 0.048890870064496994, 0.016490483656525612, 0.02432320825755596, -0.07859207689762115, -0.04017199948430061, -0.030454939231276512, 0.005413645412772894, -0.01130601391196251, -0.02668626792728901, -0.017692383378744125, 0.019933216273784637, -0.05663192644715309, 0.02436395175755024, 0.003239020239561796, 0.007185939699411392, 0.04697597771883011, -0.0035955163184553385, 0.037768200039863586, -0.015237655490636826, 0.004201559349894524, 0.002808678662404418, -0.02285648323595524, -0.053209565579891205, 0.02436395175755024, 0.015563594177365303, -0.00711973337456584, -0.018242405727505684, 0.009615205228328705, 0.034508805721998215, 0.026788122951984406, 0.015298768877983093, -0.04033496975898743, -0.041394270956516266, 0.0025654975324869156, -0.03000677190721035, -0.051416900008916855, -0.03954049199819565, -0.021369384601712227, -0.016123801469802856, -0.020707322284579277, 0.020961960777640343, -0.033205050975084305, 0.0832367092370987, -0.026278844103217125, 0.011204157955944538, -0.03459029272198677, 0.0345291793346405, 0.029884545132517815, 0.012151419185101986, 0.033225420862436295, -0.00032180125708691776, 0.03438657894730568, -0.0600135438144207, 0.03387729823589325, 0.0016309688799083233, 0.010384217835962772, 0.01921003870666027, 0.026502925902605057, 0.032980967313051224, -0.015176541171967983, -0.00892767682671547, 0.008988790214061737, -0.08401081711053848, 0.019729504361748695, 0.052394717931747437, 0.032186489552259445, -0.02432320825755596, -0.018334077671170235, -0.0006518783047795296, 0.030210483819246292, -0.04750563204288483, 0.04387955740094185, -0.06702123582363129, -0.006427112501114607, -0.012029191479086876, -0.055246684700250626, -0.004822880961000919, 0.017356259748339653, -0.0656767413020134, -0.018996139988303185, 0.061439529061317444, -0.03287911042571068, -0.015706192702054977, 0.005861811805516481, 0.007206310983747244, 0.07455857843160629, -0.01847667619585991, -0.010735620744526386, 0.026991834864020348, 0.02715480513870716, -0.022408315911889076, -0.06046171113848686, 0.003689733101055026, 0.010267083533108234, 0.039621978998184204, 0.01964801922440529, 0.02354910410940647, 0.0381145104765892, 0.021858293563127518, -0.05826162174344063, -0.07488451898097992, 0.014626518823206425, -0.07631050050258636, -0.010318011045455933, 0.04355361685156822, 0.024180609732866287, -0.004695560783147812, -0.021450869739055634, -0.022489801049232483, 0.03562922403216362, -0.0067275878973305225, 0.004919643979519606, -0.0022230069153010845, -0.039336781948804855, 0.06421001255512238, 0.005591893568634987, -0.018242405727505684, 0.039601605385541916, -0.000624504522420466, -0.014371879398822784, 0.008418397046625614, 0.0011000445811077952, -0.005408552475273609, 0.010613393038511276, 0.0651063472032547, 0.022917596623301506, 0.003959651570767164, -0.016592340543866158, 0.05919869616627693, -0.05968760699033737, 0.006630824413150549, -0.032695770263671875, 0.007155383005738258, 0.03996828943490982, 0.03387729823589325, 0.0034554642625153065, 0.09289265424013138, -0.01651085540652275, 0.06514708697795868, -0.012019005604088306, 0.0054492950439453125, 0.0048356126062572, -0.011193972080945969, -0.020523980259895325, 0.005617357324808836, -0.0185887161642313, 0.018069250509142876, 0.01114304456859827, 0.00801097322255373, -0.010119391605257988, 0.034773632884025574, 0.04031459987163544, 0.009620297700166702, -0.00929435808211565, 0.05109095945954323, -0.030332712456583977, -0.016449742019176483, -0.010603208094835281, 0.04153687134385109, 0.06714346259832382, -0.00832163356244564, -0.05174284055829048, -0.031127188354730606, -0.029293781146407127, -0.01331257726997137, 0.00687018595635891, -0.019678575918078423, 0.01421909499913454, 0.04518331587314606, 0.027562228962779045, 0.0456722229719162, -0.02438432164490223, -0.01812017895281315, 0.034182868897914886, 0.00902953278273344, -0.09207780659198761, -0.051620613783597946, -0.06885464489459991, 0.015329325571656227, 0.013526474125683308, -0.007364187389612198, -0.03994791582226753, -0.022693512961268425, -0.0025069303810596466, -0.059891317039728165, -0.01860908791422844, -0.0020613104570657015, 0.04469440504908562, 0.005525687243789434, 0.07296962291002274, -0.000734636269044131, -0.042698029428720474, 0.013434804044663906, 0.05638747289776802, -0.0310457032173872, -0.01243661530315876, -0.06966949254274368, -0.032451316714286804, -0.029354894533753395, -0.007313259411603212, 0.003895991249009967, 0.019566534087061882, 0.022387944161891937, 0.020656393840909004, -0.018415560945868492, -0.009411492384970188, -0.00924852304160595, 0.0466092973947525, 0.0110411886125803, 0.03615887463092804, -0.007700312417000532, -0.023956527933478355, 0.04343139007687569, -0.049339037388563156, -0.03263465687632561, 0.02951786480844021, 0.015339511446654797, -0.06074690818786621, 0.03181980922818184, 0.011387499049305916, 0.001979825785383582, 0.0063863699324429035, 0.1021004393696785, 0.007883653044700623, -0.01666363887488842, -0.013832042925059795, 0.040946103632450104, -0.02098233252763748, -0.002910534618422389, 0.006014595739543438, 0.061154332011938095, -0.034203238785266876, -0.03921455517411232, -0.00009771808254299685, -0.024486178532242775, 0.048320479691028595, 0.005678471177816391, -0.005826162174344063, 0.008810542523860931, -0.0005271047120913863, 0.0501946285367012, -0.010735620744526386, -0.02515842765569687, -0.0027246475219726562, -0.03253279998898506, 0.021430497989058495, -0.05382070317864418, -0.08392933011054993, -0.019861916080117226, 0.010806920006871223, -0.01498301513493061, -0.030923476442694664, 0.02081936225295067, -0.05333179235458374, 0.027521487325429916, 0.03025122731924057, -0.04612039029598236, -0.002574410056695342, 0.09150741249322891, -0.004448560066521168, -0.017407188192009926, 0.030617907643318176, -0.03917381167411804, 0.01651085540652275, -0.039560865610837936, 0.0021377024240791798, -0.011071745306253433, 0.004710839129984379, -0.001619510119780898, 0.021593468263745308, -0.045998163521289825, -0.017030321061611176, 0.011092116124927998, 0.021206416189670563, 0.010796734131872654, -0.019709132611751556, -0.10258934646844864, -0.007598456460982561, 0.018109994009137154, 0.024262094870209694, 0.046568553894758224, -0.06347665190696716, -0.03815525025129318, 0.00827579852193594, -0.04929829761385918, 0.10104113817214966, 0.00006107379886088893, -0.030047515407204628, -0.04363510385155678, -0.044205497950315475, 0.01626639999449253, 0.013750557787716389, 0.05198729410767555, 0.02285648323595524, -0.00016082104411907494, 0.007476229220628738, -0.0043517970480024815, -0.03514031320810318, 0.011509725823998451, -0.027602970600128174, -0.0030429475009441376, 0.03768671303987503, 0.0366070419549942, 0.012752369046211243, -0.018904469907283783, 0.009340194053947926, 0.009880030527710915, 0.01932208053767681, 0.012049563229084015, -0.015054314397275448, -0.008545717224478722, -0.029028955847024918, 0.026278844103217125, 0.04734266176819801, -0.011132858693599701, -0.001796484924852848, 0.04298322647809982, -0.05687637999653816, 0.04815750941634178, 0.038583047688007355, 0.014086682349443436, 0.010562465526163578, -0.014585777185857296, -0.01976006105542183, -0.005444202106446028, 0.011367127299308777, -0.02974194660782814, -0.0061673796735703945, 0.03968309238553047, -0.04149612784385681, 0.03929603844881058, 0.0064627621322870255, -0.027623342350125313, 0.007598456460982561, -0.018038693815469742, -0.04819825291633606, 0.004616622347384691, -0.06408778578042984, 0.004412910435348749, -0.027378888800740242, 0.04840196296572685, 0.03338839113712311, -0.03102533333003521, 0.03383655846118927, -0.022367574274539948, -0.025952905416488647, 0.04722043499350548, 0.00866285152733326, 0.0626618042588234, -0.010918961837887764, 0.02330464869737625, 0.023671330884099007, 0.04726117476820946, -0.015390438959002495, -0.00892767682671547, 0.038094136863946915, 0.03485511615872383, 0.03047531098127365, 0.00022917595924809575, 0.06457669287919998, 0.013995012268424034, 0.010200876742601395, -0.02847893349826336, 0.005291418172419071, -0.00543910963460803, 0.014107054099440575, -0.008494788780808449, -0.015064500272274017, 0.0522724911570549, 0.015940461307764053, 0.01639881357550621, 0.05357624590396881, -0.00017840712098404765, 0.02587142027914524, 0.054757777601480484, 0.037055205553770065, 0.02330464869737625, 0.025993647053837776, -0.015583964996039867, 0.04489811882376671, 0.015166356228291988, 0.04481663182377815, -0.06710272282361984, -0.03357173129916191, -0.001984918490052223, 0.10275231301784515, 0.02330464869737625, 0.02177680842578411, 0.030149370431900024, -0.06290625780820847, 0.004535137675702572, 0.05060205236077309, -0.029069697484374046, -0.010521722957491875, 0.013343133963644505, 0.03306245058774948, 0.025952905416488647, -0.03615887463092804, -0.0696287527680397, -0.038562674075365067, -0.06074690818786621, 0.033755071461200714, 0.037808939814567566, 0.00009381891140947118, -0.013485732488334179, -0.0015724017284810543, 0.02695109322667122, 0.06559525430202484, -0.030149370431900024, 0.0235898457467556, -0.03846082091331482, -0.0215119831264019, -0.003040401032194495, 0.001066941418685019, 0.028906727209687233, 0.04387955740094185, 0.010694878175854683, 0.016164544969797134, -0.015420995652675629, 0.016582153737545013, 0.0042168376967310905, 0.02464914880692959, -0.05769122764468193, 0.009548998437821865, 0.015634892508387566, -0.030373454093933105, -0.035527367144823074, 0.049909431487321854, 0.061683982610702515, 0.009273987263441086, 0.06897687166929245, -0.044531434774398804, 0.056550443172454834, -0.04616113007068634, -0.007705405354499817, 0.001182166044600308, -0.01805906556546688, 0.01921003870666027, -0.061398785561323166, 0.026849236339330673, -0.029925288632512093, -0.04506108537316322 ]
37,725
healpy.pixelfunc
remove_dipole
Fit and subtract the dipole and the monopole from the given map m. Parameters ---------- m : float, array-like the map to which a dipole is fitted and subtracted, accepts masked arrays nest : bool if ``False`` m is assumed in RING scheme, otherwise map is NESTED bad : float bad values of pixel, default to :const:`UNSEEN`. gal_cut : float [degrees] pixels at latitude in [-gal_cut;+gal_cut] are not taken into account fitval : bool whether to return or not the fitted values of monopole and dipole copy : bool whether to modify input map or not (by default, make a copy) verbose : bool deprecated, no effect Returns ------- res : array or tuple of length 3 if fitval is False, returns map with monopole and dipole subtracted, otherwise, returns map (array, in res[0]), monopole (float, in res[1]), dipole_vector (array, in res[2]) See Also -------- fit_dipole, fit_monopole, remove_monopole
def xyf2pix(nside, x, y, face, nest=False): """xyf2pix : nside,x,y,face,nest=False -> ipix (default:RING) Parameters ---------- nside : int, scalar or array-like The healpix nside parameter, must be a power of 2 x, y : int, scalars or array-like Pixel indices within face face : int, scalars or array-like Face number nest : bool, optional if True, assume NESTED pixel ordering, otherwise, RING pixel ordering Returns ------- pix : int or array of int The healpix pixel numbers. Scalar if all input are scalar, array otherwise. Usual numpy broadcasting rules apply. See Also -------- pix2xyf Examples -------- >>> import healpy as hp >>> hp.xyf2pix(16, 8, 8, 4) 1440 >>> print(hp.xyf2pix(16, [8, 8, 8, 15, 0], [8, 8, 7, 15, 0], [4, 0, 5, 0, 8])) [1440 427 1520 0 3068] """ check_nside(nside, nest=nest) if nest: return pixlib._xyf2pix_nest(nside, x, y, face) else: return pixlib._xyf2pix_ring(nside, x, y, face)
(m, nest=False, bad=-1.6375e+30, gal_cut=0, fitval=False, copy=True, verbose=True)
[ 0.020718824118375778, -0.06357455998659134, 0.05186151713132858, -0.04828867316246033, -0.008807802572846413, 0.04836233705282211, 0.04180598258972168, 0.0210871584713459, 0.015608180314302444, -0.03941180557012558, 0.06346406042575836, -0.05727603659033775, -0.035746876150369644, 0.0354890413582325, 0.001134355552494526, 0.004035566467791796, 0.006883253809064627, 0.019190235063433647, -0.07355643063783646, 0.0029420729260891676, 0.023739168420433998, -0.04232165217399597, 0.01267992053180933, 0.021934328600764275, 0.008623634465038776, -0.016077807173132896, 0.060149047523736954, -0.006804982665926218, -0.0054145194590091705, 0.008817010559141636, -0.013121921569108963, 0.010589621029794216, 0.03375786915421486, 0.002612873911857605, -0.03418145328760147, 0.0354706272482872, -0.014567635022103786, 0.040332645177841187, -0.07771860808134079, 0.014613676816225052, 0.025102006271481514, -0.05374002456665039, 0.00459267245605588, 0.02963252179324627, -0.010202869772911072, 0.028987936675548553, -0.042063817381858826, -0.02215532958507538, -0.04294782131910324, -0.026059675961732864, -0.04836233705282211, -0.05484502762556076, -0.022118495777249336, 0.030792776495218277, 0.031529445201158524, -0.03073752671480179, -0.04736783355474472, 0.028840603306889534, 0.060001712292432785, 0.00512905977666378, -0.029595687985420227, -0.024604754522442818, -0.0010319125140085816, -0.02559925802052021, 0.020350489765405655, -0.009549075737595558, 0.0013973695458844304, -0.040590476244688034, -0.05580269917845726, 0.024328503757715225, -0.04305832087993622, 0.041548147797584534, 0.024660004302859306, 0.010276536457240582, 0.05676036700606346, -0.015313512645661831, 0.09606167674064636, 0.028601184487342834, 0.018103647977113724, 0.015994932502508163, 0.004675548058003187, 0.044273823499679565, 0.0013225516304373741, 0.05676036700606346, 0.0369255468249321, 0.11005838960409164, 0.07274609059095383, -0.004166785627603531, -0.03193461522459984, 0.022984081879258156, -0.04066414386034012, -0.07653994113206863, 0.030221857130527496, -0.0077856737188994884, -0.012210293672978878, -0.029945606365799904, -0.003653419204056263, 0.032873865216970444, 0.03241344913840294, -0.030884860083460808, -0.06051738187670708, -0.08663231134414673, -0.05455036088824272, 0.004240452777594328, 0.02933785505592823, 0.008375008590519428, 0.0077856737188994884, 0.03250553086400032, -0.014005924575030804, 0.009295845404267311, 0.010175244882702827, 0.0038076594937592745, 0.015552930533885956, 0.012431294657289982, 0.02018473856151104, -0.01649218425154686, -0.011363123543560505, 0.043500322848558426, 0.023168249055743217, -0.03852780535817146, -0.02593075856566429, -0.004615693353116512, -0.03193461522459984, 0.015110928565263748, -0.01831544004380703, 0.049504175782203674, 0.012643086723983288, 0.005543436389416456, 0.03860146924853325, 0.049356840550899506, -0.010829038918018341, -0.02060832269489765, -0.0227814968675375, -0.040921978652477264, -0.012173459865152836, -0.06637389957904816, 0.04784667119383812, -0.016234349459409714, -0.006252480670809746, -0.028638018295168877, 0.003034156747162342, 0.08287529647350311, 0.017007851973176003, 0.027735598385334015, -0.011482832953333855, 0.04659433290362358, 0.04534199461340904, 0.027385680004954338, 0.0546608604490757, -0.01426375936716795, -0.020774073898792267, -0.006482689641416073, -0.030369192361831665, 0.016436932608485222, 0.016022557392716408, -0.01802998036146164, -0.03359211981296539, -0.011427582241594791, 0.01625276543200016, 0.02526775747537613, -0.0321371965110302, -0.030627025291323662, -0.016436932608485222, -0.011188165284693241, 0.010037119500339031, 0.04195331782102585, -0.04548932984471321, -0.008361196145415306, 0.06073838472366333, 0.06147505342960358, -0.04924634099006653, -0.04637333005666733, -0.02233949676156044, -0.028987936675548553, 0.05941237881779671, 0.005695374216884375, -0.005363873206079006, -0.02939310483634472, 0.024420587345957756, 0.05797587335109711, 0.04375815764069557, -0.08700064569711685, 0.02171332761645317, 0.000006344240318867378, -0.035212792456150055, 0.07735027372837067, 0.04162181541323662, -0.02589392475783825, 0.008858447894454002, -0.044936828315258026, 0.02305774949491024, 0.052708689123392105, -0.048730675131082535, 0.017366979271173477, -0.01139074843376875, -0.03313170000910759, -0.01184195838868618, 0.05005667731165886, 0.0009732092148624361, -0.012210293672978878, 0.0006319241365417838, -0.009475409053266048, 0.025433506816625595, -0.04615233093500137, -0.039669640362262726, 0.0242180023342371, 0.00459267245605588, -0.028509100899100304, -0.0191718190908432, 0.023555001243948936, 0.05407152697443962, -0.027256764471530914, -0.04865700751543045, -0.034163039177656174, -0.007016775198280811, 0.05989121273159981, 0.00874794740229845, 0.03379470482468605, -0.06202755495905876, 0.03486287593841553, 0.021897494792938232, -0.026741094887256622, -0.03709129989147186, 0.01768927089869976, -0.013508672825992107, -0.010939539410173893, 0.028067100793123245, 0.028324933722615242, 0.0061465841718018055, -0.05344535782933235, 0.004537422209978104, 0.036409880965948105, 0.004505193326622248, 0.013748090714216232, 0.032523948699235916, 0.021584410220384598, 0.019576987251639366, 0.03145577758550644, 0.03766221925616264, 0.07326176017522812, -0.003437022678554058, -0.00548818614333868, -0.022763080894947052, -0.036409880965948105, 0.013987507671117783, 0.06795774400234222, 0.058749374002218246, -0.025341423228383064, -0.030645443126559258, 0.007905382663011551, -0.020829323679208755, 0.00920836627483368, 0.0028476871084421873, 0.019392818212509155, -0.03130844607949257, -0.008715718984603882, -0.10674338042736053, -0.020718824118375778, 0.006289314012974501, 0.006344564259052277, -0.0022330288775265217, 0.023739168420433998, -0.000015611058188369498, -0.024807337671518326, 0.010359412059187889, -0.014567635022103786, -0.02954043820500374, 0.010119994170963764, -0.03541537746787071, 0.020203154534101486, 0.02751459740102291, 0.01356392353773117, 0.06523206830024719, 0.006022271234542131, 0.012477336451411247, -0.026630595326423645, 0.04482632502913475, 0.0040102433413267136, 0.08479063212871552, -0.009166928008198738, -0.017330145463347435, -0.011547290720045567, -0.03600471094250679, 0.05138268321752548, -0.0016482975333929062, -0.054292526096105576, 0.04022214189171791, 0.12420244514942169, -0.03911713883280754, -0.04725733399391174, 0.01907973550260067, 0.027625098824501038, -0.041732314974069595, 0.013941465876996517, 0.0060406881384551525, 0.065195232629776, -0.041548147797584534, -0.02143707685172558, 0.0005760983913205564, -0.04515782743692398, 0.025875508785247803, 0.030221857130527496, -0.03970647603273392, 0.026041259989142418, 0.07259875535964966, 0.023462917655706406, -0.041732314974069595, -0.025783425197005272, 0.017532728612422943, -0.027017345651984215, 0.022413162514567375, -0.06022271513938904, -0.017845813184976578, -0.018103647977113724, 0.01073695532977581, -0.021013490855693817, -0.03801213577389717, -0.012016917578876019, 0.03589421138167381, 0.038048967719078064, 0.03904347121715546, 0.04467899352312088, 0.0345313735306263, 0.0791182816028595, 0.01985323801636696, 0.034347206354141235, -0.026059675961732864, 0.06316938996315002, -0.0008863052353262901, 0.012946962378919125, -0.018103647977113724, -0.0005501998821273446, -0.0393013060092926, -0.021271325647830963, -0.07355643063783646, -0.0503513477742672, 0.009010386653244495, -0.02843543514609337, 0.011713041923940182, 0.022984081879258156, -0.02942993864417076, -0.013315297663211823, 0.0007947970880195498, -0.014125633984804153, 0.0014019737718626857, -0.03729388117790222, -0.07116225361824036, -0.018564065918326378, 0.028895853087306023, 0.06055421382188797, 0.027790848165750504, -0.025065172463655472, 0.042026981711387634, 0.0025461132172495127, -0.028877435252070427, 0.021934328600764275, -0.04129031300544739, -0.051419515162706375, -0.007555464282631874, -0.006666857283562422, -0.055250197649002075, 0.012762795202434063, -0.04828867316246033, -0.03082961030304432, -0.013683632016181946, 0.01498201210051775, 0.012191876769065857, 0.009705618023872375, -0.032597616314888, 0.050609178841114044, 0.00824609212577343, 0.017320936545729637, -0.10534370690584183, -0.035175956785678864, 0.02655692771077156, -0.013490255922079086, -0.0024862587451934814, 0.039669640362262726, -0.019190235063433647, 0.017366979271173477, 0.02329716645181179, 0.013784924522042274, -0.021842245012521744, 0.054771360009908676, 0.026741094887256622, 0.0002972575603052974, -0.014512385241687298, 0.03303961828351021, -0.01840752363204956, -0.036612462252378464, -0.044568490236997604, 0.0354706272482872, 0.041548147797584534, -0.05628153309226036, 0.03230294957756996, -0.06051738187670708, 0.004051681142300367, 0.07867628335952759, 0.036943964660167694, -0.046336498111486435, -0.027625098824501038, -0.004491380415856838, 0.07941295206546783, 0.011114497669041157, 0.007504818495362997, 0.01706310175359249, -0.024531086906790733, -0.02186066098511219, -0.01854564994573593, -0.05086701363325119, 0.022044828161597252, 0.01768927089869976, 0.0009720581583678722, -0.02359183318912983, 0.01952173560857773, 0.08825298398733139, -0.04884117469191551, 0.04567349702119827, -0.035065457224845886, 0.015939680859446526, -0.03904347121715546, -0.074808768928051, -0.0023112997878342867, 0.029522022232413292, -0.019392818212509155, -0.04320565238595009, -0.021602826192975044, 0.0016897352179512382, 0.0055710612796247005, 0.08943165093660355, -0.019871653988957405, -0.007108858786523342, 0.015396388247609138, -0.02263416349887848, 0.006169605068862438, -0.031418945640325546, 0.05385052412748337, -0.01290092058479786, -0.03384995460510254, 0.02233949676156044, -0.008195445872843266, 0.05432936176657677, 0.017772147431969643, 0.005244164727628231, -0.07274609059095383, 0.0009145058575086296, -0.03375786915421486, 0.05653936788439751, -0.005313227418810129, -0.02401541918516159, 0.05193518474698067, -0.05583953112363815, 0.0833909660577774, 0.024236420169472694, 0.012210293672978878, -0.09318866580724716, -0.036262545734643936, 0.022468414157629013, 0.02027682214975357, 0.010506745427846909, 0.005350060760974884, 0.011878792196512222, -0.009286637417972088, -0.0335552878677845, -0.0270910132676363, -0.05838103964924812, -0.011924833990633488, 0.005170497577637434, 0.008370405063033104, -0.03782796859741211, -0.0182141475379467, 0.022836748510599136, -0.021105574443936348, -0.051124848425388336, 0.04965151101350784, 0.017532728612422943, 0.03541537746787071, 0.031768862158060074, -0.008448676206171513, -0.04769933596253395, -0.062101222574710846, -0.007569276727735996, -0.028324933722615242, -0.05134585127234459, -0.01889556646347046, -0.04257948324084282, 0.0040654935874044895, 0.031529445201158524, -0.05978071317076683, -0.048583339899778366, 0.0072654010728001595, -0.0251756738871336, -0.014567635022103786, -0.024420587345957756, -0.013407381251454353, 0.010635662823915482, 0.011869584210216999, 0.010865871794521809, -0.008292133919894695, 0.0011556498939171433, -0.029282603412866592, -0.06405339390039444, 0.033721037209033966, 0.004201317206025124, -0.02314983308315277, 0.03970647603273392, -0.014061175286769867, 0.010110786184668541, 0.03443928807973862, 0.005492790602147579, 0.01889556646347046, -0.016077807173132896, -0.001719662337563932, -0.038380470126867294, 0.036409880965948105, -0.005695374216884375, 0.025875508785247803, 0.017081519588828087, 0.01139074843376875, 0.0013536298647522926, 0.030516525730490685, 0.007771860808134079, 0.0397801399230957, 0.08781097829341888, 0.05639203265309334, 0.03198986500501633, 0.03489970788359642, 0.002335471799597144, -0.0003352420753799379, -0.037901636213064194, 0.0034692520275712013, -0.025396673008799553, 0.015000428073108196, -0.024917839094996452, -0.0013616870855912566, -0.07223042100667953, -0.004553536884486675, -0.009231386706233025, 0.054108358919620514, -0.029522022232413292, -0.008163216523826122, 0.02569134160876274, -0.09458833932876587, 0.04497366026043892, 0.015156970359385014, 0.008936719037592411, -0.039522308856248856, -0.034070953726768494, 0.07259875535964966, -0.057754870504140854, -0.0018658451735973358, 0.00930044986307621, 0.0278092660009861, -0.026538511738181114, 0.009668784216046333, 0.043794989585876465, -0.047146834433078766, 0.028103932738304138, -0.08847398310899734, -0.037901636213064194, -0.06394289433956146, -0.010193660855293274, 0.021842245012521744, -0.03874880447983742, -0.03878563642501831, -0.05234035477042198, 0.036612462252378464, -0.012376043945550919, -0.009917410090565681, -0.02407066896557808, -0.023849667981266975, 0.06633707135915756, 0.00805271603167057, 0.00965957622975111, -0.00025653932243585587, 0.016694767400622368, 0.053519025444984436, -0.13311614096164703, 0.06140138581395149, -0.02589392475783825, -0.017615605145692825, -0.049172673374414444, 0.014254550449550152, -0.007914590649306774, 0.0007101952214725316, 0.08545363694429398, 0.027385680004954338, 0.03292911872267723, 0.06957841664552689, 0.017320936545729637, 0.033481620252132416, -0.017919480800628662, 0.041106145828962326, 0.023518167436122894, -0.03265286609530449, -0.009235991165041924, -0.05591319873929024, 0.035360127687454224, 0.03567320853471756, -0.024328503757715225, -0.05639203265309334, 0.041437648236751556, -0.02915368787944317, -0.03896980360150337, 0.025617673993110657, -0.03874880447983742, 0.03580212593078613, -0.07514026761054993, -0.05086701363325119, -0.05930187925696373, 0.0026451032608747482, 0.006952316500246525, 0.04018530994653702, -0.00016891596897039562, -0.05642886832356453, 0.028877435252070427, 0.04559982940554619, -0.013692840002477169, -0.06316938996315002, 0.017053894698619843, -0.06442172825336456, 0.012495752424001694, 0.01774452067911625, 0.004452244844287634, 0.04232165217399597, -0.018444357439875603, 0.00913009513169527, 0.03624412789940834, -0.01692497730255127, 0.005069205537438393, -0.0033794704359024763, 0.0155805554240942, -0.01220108475536108, -0.027625098824501038, -0.00252309232018888, -0.010433078743517399, 0.005851916503161192, -0.05005667731165886, -0.0565761998295784, 0.08412763476371765, 0.03624412789940834, 0.028509100899100304, 0.04677850008010864, 0.01471496932208538, 0.024457421153783798, -0.04103247821331024, 0.02392333559691906, -0.02281833067536354, -0.009770076721906662, -0.03926447406411171, 0.02009265497326851, 0.007670568767935038, -0.010046327486634254, 0.00282927043735981, 0.0041092331521213055, 0.051566850394010544, -0.029798272997140884, -0.02942993864417076, 0.009328074753284454, -0.026685845106840134, 0.0421743169426918, 0.04213748499751091, -0.0039595975540578365, 0.024531086906790733, -0.11550974100828171, 0.024236420169472694, 0.023555001243948936, -0.025820259004831314, -0.052561353892087936, -0.0005827168934047222, -0.010294953361153603, 0.037901636213064194, -0.0251756738871336, -0.016750017181038857, 0.015700263902544975, -0.011630166321992874, -0.01016603596508503, -0.0036027731839567423, -0.0397801399230957, 0.06368505954742432, -0.012882504612207413, -0.007283817511051893, 0.03652038052678108, 0.044936828315258026, -0.031087443232536316, 0.03270811587572098, 0.035746876150369644, -0.006482689641416073, -0.04471582546830177, -0.015939680859446526, -0.006151188630610704, 0.008140196092426777, 0.016326433047652245, -0.0034692520275712013, 0.023610251024365425, -0.05576586350798607, -0.03532329201698303, 0.052045684307813644, -0.011795916594564915, -0.03246869891881943, 0.004624901805073023, -0.020645156502723694, 0.030332358554005623, 0.027496181428432465, 0.006841816008090973, -0.0017587979091331363, -0.009880577214062214, -0.0227814968675375, 0.0016379380831494927, 0.05337169021368027, -0.04239531606435776, -0.026004426181316376, -0.024125918745994568, -0.07705561071634293, -0.02195274457335472, 0.030074523761868477, -0.003556731389835477, 0.012026126496493816, 0.010893496684730053, 0.0177353136241436, 0.08398029953241348, 0.02617017738521099, 0.0021720232907682657, -0.010497537441551685, -0.044421158730983734, -0.002022387459874153, 0.03127161040902138, 0.02425483614206314, -0.05672353506088257, -0.036943964660167694, 0.0589703768491745, -0.028545934706926346, -0.025912342593073845, 0.03208194673061371, -0.009245199151337147, 0.004514401312917471, 0.03620729595422745, 0.020626740530133247, 0.03038760833442211, -0.06118038296699524, 0.06324306130409241, -0.03359211981296539, -0.007223963271826506, 0.014272967353463173, -0.016280392184853554, 0.0421743169426918, 0.06681590527296066, -0.08316995948553085, -0.016740810126066208, 0.024715254083275795, 0.00548818614333868, 0.04478949308395386, 0.0017380791250616312, -0.0048758299089968204, -0.0002184109325753525, -0.02171332761645317, -0.013250838965177536, 0.0369255468249321, -0.018232565373182297, 0.003305803518742323, -0.038564637303352356, 0.04832550510764122, -0.03322378545999527, 0.013075879774987698, 0.00812638271600008, 0.032192446291446686, 0.031768862158060074, 0.023960169404745102 ]
37,726
healpy.pixelfunc
remove_monopole
Fit and subtract the monopole from the given map m. Parameters ---------- m : float, array-like the map to which a monopole is fitted and subtracted nest : bool if ``False`` m is assumed in RING scheme, otherwise map is NESTED bad : float bad values of pixel, default to :const:`UNSEEN`. gal_cut : float [degrees] pixels at latitude in [-gal_cut;+gal_cut] are not taken into account fitval : bool whether to return or not the fitted value of monopole copy : bool whether to modify input map or not (by default, make a copy) verbose: bool deprecated, no effect Returns ------- res : array or tuple of length 3 if fitval is False, returns map with monopole subtracted, otherwise, returns map (array, in res[0]) and monopole (float, in res[1]) See Also -------- fit_dipole, fit_monopole, remove_dipole
def xyf2pix(nside, x, y, face, nest=False): """xyf2pix : nside,x,y,face,nest=False -> ipix (default:RING) Parameters ---------- nside : int, scalar or array-like The healpix nside parameter, must be a power of 2 x, y : int, scalars or array-like Pixel indices within face face : int, scalars or array-like Face number nest : bool, optional if True, assume NESTED pixel ordering, otherwise, RING pixel ordering Returns ------- pix : int or array of int The healpix pixel numbers. Scalar if all input are scalar, array otherwise. Usual numpy broadcasting rules apply. See Also -------- pix2xyf Examples -------- >>> import healpy as hp >>> hp.xyf2pix(16, 8, 8, 4) 1440 >>> print(hp.xyf2pix(16, [8, 8, 8, 15, 0], [8, 8, 7, 15, 0], [4, 0, 5, 0, 8])) [1440 427 1520 0 3068] """ check_nside(nside, nest=nest) if nest: return pixlib._xyf2pix_nest(nside, x, y, face) else: return pixlib._xyf2pix_ring(nside, x, y, face)
(m, nest=False, bad=-1.6375e+30, gal_cut=0, fitval=False, copy=True, verbose=True)
[ 0.020718824118375778, -0.06357455998659134, 0.05186151713132858, -0.04828867316246033, -0.008807802572846413, 0.04836233705282211, 0.04180598258972168, 0.0210871584713459, 0.015608180314302444, -0.03941180557012558, 0.06346406042575836, -0.05727603659033775, -0.035746876150369644, 0.0354890413582325, 0.001134355552494526, 0.004035566467791796, 0.006883253809064627, 0.019190235063433647, -0.07355643063783646, 0.0029420729260891676, 0.023739168420433998, -0.04232165217399597, 0.01267992053180933, 0.021934328600764275, 0.008623634465038776, -0.016077807173132896, 0.060149047523736954, -0.006804982665926218, -0.0054145194590091705, 0.008817010559141636, -0.013121921569108963, 0.010589621029794216, 0.03375786915421486, 0.002612873911857605, -0.03418145328760147, 0.0354706272482872, -0.014567635022103786, 0.040332645177841187, -0.07771860808134079, 0.014613676816225052, 0.025102006271481514, -0.05374002456665039, 0.00459267245605588, 0.02963252179324627, -0.010202869772911072, 0.028987936675548553, -0.042063817381858826, -0.02215532958507538, -0.04294782131910324, -0.026059675961732864, -0.04836233705282211, -0.05484502762556076, -0.022118495777249336, 0.030792776495218277, 0.031529445201158524, -0.03073752671480179, -0.04736783355474472, 0.028840603306889534, 0.060001712292432785, 0.00512905977666378, -0.029595687985420227, -0.024604754522442818, -0.0010319125140085816, -0.02559925802052021, 0.020350489765405655, -0.009549075737595558, 0.0013973695458844304, -0.040590476244688034, -0.05580269917845726, 0.024328503757715225, -0.04305832087993622, 0.041548147797584534, 0.024660004302859306, 0.010276536457240582, 0.05676036700606346, -0.015313512645661831, 0.09606167674064636, 0.028601184487342834, 0.018103647977113724, 0.015994932502508163, 0.004675548058003187, 0.044273823499679565, 0.0013225516304373741, 0.05676036700606346, 0.0369255468249321, 0.11005838960409164, 0.07274609059095383, -0.004166785627603531, -0.03193461522459984, 0.022984081879258156, -0.04066414386034012, -0.07653994113206863, 0.030221857130527496, -0.0077856737188994884, -0.012210293672978878, -0.029945606365799904, -0.003653419204056263, 0.032873865216970444, 0.03241344913840294, -0.030884860083460808, -0.06051738187670708, -0.08663231134414673, -0.05455036088824272, 0.004240452777594328, 0.02933785505592823, 0.008375008590519428, 0.0077856737188994884, 0.03250553086400032, -0.014005924575030804, 0.009295845404267311, 0.010175244882702827, 0.0038076594937592745, 0.015552930533885956, 0.012431294657289982, 0.02018473856151104, -0.01649218425154686, -0.011363123543560505, 0.043500322848558426, 0.023168249055743217, -0.03852780535817146, -0.02593075856566429, -0.004615693353116512, -0.03193461522459984, 0.015110928565263748, -0.01831544004380703, 0.049504175782203674, 0.012643086723983288, 0.005543436389416456, 0.03860146924853325, 0.049356840550899506, -0.010829038918018341, -0.02060832269489765, -0.0227814968675375, -0.040921978652477264, -0.012173459865152836, -0.06637389957904816, 0.04784667119383812, -0.016234349459409714, -0.006252480670809746, -0.028638018295168877, 0.003034156747162342, 0.08287529647350311, 0.017007851973176003, 0.027735598385334015, -0.011482832953333855, 0.04659433290362358, 0.04534199461340904, 0.027385680004954338, 0.0546608604490757, -0.01426375936716795, -0.020774073898792267, -0.006482689641416073, -0.030369192361831665, 0.016436932608485222, 0.016022557392716408, -0.01802998036146164, -0.03359211981296539, -0.011427582241594791, 0.01625276543200016, 0.02526775747537613, -0.0321371965110302, -0.030627025291323662, -0.016436932608485222, -0.011188165284693241, 0.010037119500339031, 0.04195331782102585, -0.04548932984471321, -0.008361196145415306, 0.06073838472366333, 0.06147505342960358, -0.04924634099006653, -0.04637333005666733, -0.02233949676156044, -0.028987936675548553, 0.05941237881779671, 0.005695374216884375, -0.005363873206079006, -0.02939310483634472, 0.024420587345957756, 0.05797587335109711, 0.04375815764069557, -0.08700064569711685, 0.02171332761645317, 0.000006344240318867378, -0.035212792456150055, 0.07735027372837067, 0.04162181541323662, -0.02589392475783825, 0.008858447894454002, -0.044936828315258026, 0.02305774949491024, 0.052708689123392105, -0.048730675131082535, 0.017366979271173477, -0.01139074843376875, -0.03313170000910759, -0.01184195838868618, 0.05005667731165886, 0.0009732092148624361, -0.012210293672978878, 0.0006319241365417838, -0.009475409053266048, 0.025433506816625595, -0.04615233093500137, -0.039669640362262726, 0.0242180023342371, 0.00459267245605588, -0.028509100899100304, -0.0191718190908432, 0.023555001243948936, 0.05407152697443962, -0.027256764471530914, -0.04865700751543045, -0.034163039177656174, -0.007016775198280811, 0.05989121273159981, 0.00874794740229845, 0.03379470482468605, -0.06202755495905876, 0.03486287593841553, 0.021897494792938232, -0.026741094887256622, -0.03709129989147186, 0.01768927089869976, -0.013508672825992107, -0.010939539410173893, 0.028067100793123245, 0.028324933722615242, 0.0061465841718018055, -0.05344535782933235, 0.004537422209978104, 0.036409880965948105, 0.004505193326622248, 0.013748090714216232, 0.032523948699235916, 0.021584410220384598, 0.019576987251639366, 0.03145577758550644, 0.03766221925616264, 0.07326176017522812, -0.003437022678554058, -0.00548818614333868, -0.022763080894947052, -0.036409880965948105, 0.013987507671117783, 0.06795774400234222, 0.058749374002218246, -0.025341423228383064, -0.030645443126559258, 0.007905382663011551, -0.020829323679208755, 0.00920836627483368, 0.0028476871084421873, 0.019392818212509155, -0.03130844607949257, -0.008715718984603882, -0.10674338042736053, -0.020718824118375778, 0.006289314012974501, 0.006344564259052277, -0.0022330288775265217, 0.023739168420433998, -0.000015611058188369498, -0.024807337671518326, 0.010359412059187889, -0.014567635022103786, -0.02954043820500374, 0.010119994170963764, -0.03541537746787071, 0.020203154534101486, 0.02751459740102291, 0.01356392353773117, 0.06523206830024719, 0.006022271234542131, 0.012477336451411247, -0.026630595326423645, 0.04482632502913475, 0.0040102433413267136, 0.08479063212871552, -0.009166928008198738, -0.017330145463347435, -0.011547290720045567, -0.03600471094250679, 0.05138268321752548, -0.0016482975333929062, -0.054292526096105576, 0.04022214189171791, 0.12420244514942169, -0.03911713883280754, -0.04725733399391174, 0.01907973550260067, 0.027625098824501038, -0.041732314974069595, 0.013941465876996517, 0.0060406881384551525, 0.065195232629776, -0.041548147797584534, -0.02143707685172558, 0.0005760983913205564, -0.04515782743692398, 0.025875508785247803, 0.030221857130527496, -0.03970647603273392, 0.026041259989142418, 0.07259875535964966, 0.023462917655706406, -0.041732314974069595, -0.025783425197005272, 0.017532728612422943, -0.027017345651984215, 0.022413162514567375, -0.06022271513938904, -0.017845813184976578, -0.018103647977113724, 0.01073695532977581, -0.021013490855693817, -0.03801213577389717, -0.012016917578876019, 0.03589421138167381, 0.038048967719078064, 0.03904347121715546, 0.04467899352312088, 0.0345313735306263, 0.0791182816028595, 0.01985323801636696, 0.034347206354141235, -0.026059675961732864, 0.06316938996315002, -0.0008863052353262901, 0.012946962378919125, -0.018103647977113724, -0.0005501998821273446, -0.0393013060092926, -0.021271325647830963, -0.07355643063783646, -0.0503513477742672, 0.009010386653244495, -0.02843543514609337, 0.011713041923940182, 0.022984081879258156, -0.02942993864417076, -0.013315297663211823, 0.0007947970880195498, -0.014125633984804153, 0.0014019737718626857, -0.03729388117790222, -0.07116225361824036, -0.018564065918326378, 0.028895853087306023, 0.06055421382188797, 0.027790848165750504, -0.025065172463655472, 0.042026981711387634, 0.0025461132172495127, -0.028877435252070427, 0.021934328600764275, -0.04129031300544739, -0.051419515162706375, -0.007555464282631874, -0.006666857283562422, -0.055250197649002075, 0.012762795202434063, -0.04828867316246033, -0.03082961030304432, -0.013683632016181946, 0.01498201210051775, 0.012191876769065857, 0.009705618023872375, -0.032597616314888, 0.050609178841114044, 0.00824609212577343, 0.017320936545729637, -0.10534370690584183, -0.035175956785678864, 0.02655692771077156, -0.013490255922079086, -0.0024862587451934814, 0.039669640362262726, -0.019190235063433647, 0.017366979271173477, 0.02329716645181179, 0.013784924522042274, -0.021842245012521744, 0.054771360009908676, 0.026741094887256622, 0.0002972575603052974, -0.014512385241687298, 0.03303961828351021, -0.01840752363204956, -0.036612462252378464, -0.044568490236997604, 0.0354706272482872, 0.041548147797584534, -0.05628153309226036, 0.03230294957756996, -0.06051738187670708, 0.004051681142300367, 0.07867628335952759, 0.036943964660167694, -0.046336498111486435, -0.027625098824501038, -0.004491380415856838, 0.07941295206546783, 0.011114497669041157, 0.007504818495362997, 0.01706310175359249, -0.024531086906790733, -0.02186066098511219, -0.01854564994573593, -0.05086701363325119, 0.022044828161597252, 0.01768927089869976, 0.0009720581583678722, -0.02359183318912983, 0.01952173560857773, 0.08825298398733139, -0.04884117469191551, 0.04567349702119827, -0.035065457224845886, 0.015939680859446526, -0.03904347121715546, -0.074808768928051, -0.0023112997878342867, 0.029522022232413292, -0.019392818212509155, -0.04320565238595009, -0.021602826192975044, 0.0016897352179512382, 0.0055710612796247005, 0.08943165093660355, -0.019871653988957405, -0.007108858786523342, 0.015396388247609138, -0.02263416349887848, 0.006169605068862438, -0.031418945640325546, 0.05385052412748337, -0.01290092058479786, -0.03384995460510254, 0.02233949676156044, -0.008195445872843266, 0.05432936176657677, 0.017772147431969643, 0.005244164727628231, -0.07274609059095383, 0.0009145058575086296, -0.03375786915421486, 0.05653936788439751, -0.005313227418810129, -0.02401541918516159, 0.05193518474698067, -0.05583953112363815, 0.0833909660577774, 0.024236420169472694, 0.012210293672978878, -0.09318866580724716, -0.036262545734643936, 0.022468414157629013, 0.02027682214975357, 0.010506745427846909, 0.005350060760974884, 0.011878792196512222, -0.009286637417972088, -0.0335552878677845, -0.0270910132676363, -0.05838103964924812, -0.011924833990633488, 0.005170497577637434, 0.008370405063033104, -0.03782796859741211, -0.0182141475379467, 0.022836748510599136, -0.021105574443936348, -0.051124848425388336, 0.04965151101350784, 0.017532728612422943, 0.03541537746787071, 0.031768862158060074, -0.008448676206171513, -0.04769933596253395, -0.062101222574710846, -0.007569276727735996, -0.028324933722615242, -0.05134585127234459, -0.01889556646347046, -0.04257948324084282, 0.0040654935874044895, 0.031529445201158524, -0.05978071317076683, -0.048583339899778366, 0.0072654010728001595, -0.0251756738871336, -0.014567635022103786, -0.024420587345957756, -0.013407381251454353, 0.010635662823915482, 0.011869584210216999, 0.010865871794521809, -0.008292133919894695, 0.0011556498939171433, -0.029282603412866592, -0.06405339390039444, 0.033721037209033966, 0.004201317206025124, -0.02314983308315277, 0.03970647603273392, -0.014061175286769867, 0.010110786184668541, 0.03443928807973862, 0.005492790602147579, 0.01889556646347046, -0.016077807173132896, -0.001719662337563932, -0.038380470126867294, 0.036409880965948105, -0.005695374216884375, 0.025875508785247803, 0.017081519588828087, 0.01139074843376875, 0.0013536298647522926, 0.030516525730490685, 0.007771860808134079, 0.0397801399230957, 0.08781097829341888, 0.05639203265309334, 0.03198986500501633, 0.03489970788359642, 0.002335471799597144, -0.0003352420753799379, -0.037901636213064194, 0.0034692520275712013, -0.025396673008799553, 0.015000428073108196, -0.024917839094996452, -0.0013616870855912566, -0.07223042100667953, -0.004553536884486675, -0.009231386706233025, 0.054108358919620514, -0.029522022232413292, -0.008163216523826122, 0.02569134160876274, -0.09458833932876587, 0.04497366026043892, 0.015156970359385014, 0.008936719037592411, -0.039522308856248856, -0.034070953726768494, 0.07259875535964966, -0.057754870504140854, -0.0018658451735973358, 0.00930044986307621, 0.0278092660009861, -0.026538511738181114, 0.009668784216046333, 0.043794989585876465, -0.047146834433078766, 0.028103932738304138, -0.08847398310899734, -0.037901636213064194, -0.06394289433956146, -0.010193660855293274, 0.021842245012521744, -0.03874880447983742, -0.03878563642501831, -0.05234035477042198, 0.036612462252378464, -0.012376043945550919, -0.009917410090565681, -0.02407066896557808, -0.023849667981266975, 0.06633707135915756, 0.00805271603167057, 0.00965957622975111, -0.00025653932243585587, 0.016694767400622368, 0.053519025444984436, -0.13311614096164703, 0.06140138581395149, -0.02589392475783825, -0.017615605145692825, -0.049172673374414444, 0.014254550449550152, -0.007914590649306774, 0.0007101952214725316, 0.08545363694429398, 0.027385680004954338, 0.03292911872267723, 0.06957841664552689, 0.017320936545729637, 0.033481620252132416, -0.017919480800628662, 0.041106145828962326, 0.023518167436122894, -0.03265286609530449, -0.009235991165041924, -0.05591319873929024, 0.035360127687454224, 0.03567320853471756, -0.024328503757715225, -0.05639203265309334, 0.041437648236751556, -0.02915368787944317, -0.03896980360150337, 0.025617673993110657, -0.03874880447983742, 0.03580212593078613, -0.07514026761054993, -0.05086701363325119, -0.05930187925696373, 0.0026451032608747482, 0.006952316500246525, 0.04018530994653702, -0.00016891596897039562, -0.05642886832356453, 0.028877435252070427, 0.04559982940554619, -0.013692840002477169, -0.06316938996315002, 0.017053894698619843, -0.06442172825336456, 0.012495752424001694, 0.01774452067911625, 0.004452244844287634, 0.04232165217399597, -0.018444357439875603, 0.00913009513169527, 0.03624412789940834, -0.01692497730255127, 0.005069205537438393, -0.0033794704359024763, 0.0155805554240942, -0.01220108475536108, -0.027625098824501038, -0.00252309232018888, -0.010433078743517399, 0.005851916503161192, -0.05005667731165886, -0.0565761998295784, 0.08412763476371765, 0.03624412789940834, 0.028509100899100304, 0.04677850008010864, 0.01471496932208538, 0.024457421153783798, -0.04103247821331024, 0.02392333559691906, -0.02281833067536354, -0.009770076721906662, -0.03926447406411171, 0.02009265497326851, 0.007670568767935038, -0.010046327486634254, 0.00282927043735981, 0.0041092331521213055, 0.051566850394010544, -0.029798272997140884, -0.02942993864417076, 0.009328074753284454, -0.026685845106840134, 0.0421743169426918, 0.04213748499751091, -0.0039595975540578365, 0.024531086906790733, -0.11550974100828171, 0.024236420169472694, 0.023555001243948936, -0.025820259004831314, -0.052561353892087936, -0.0005827168934047222, -0.010294953361153603, 0.037901636213064194, -0.0251756738871336, -0.016750017181038857, 0.015700263902544975, -0.011630166321992874, -0.01016603596508503, -0.0036027731839567423, -0.0397801399230957, 0.06368505954742432, -0.012882504612207413, -0.007283817511051893, 0.03652038052678108, 0.044936828315258026, -0.031087443232536316, 0.03270811587572098, 0.035746876150369644, -0.006482689641416073, -0.04471582546830177, -0.015939680859446526, -0.006151188630610704, 0.008140196092426777, 0.016326433047652245, -0.0034692520275712013, 0.023610251024365425, -0.05576586350798607, -0.03532329201698303, 0.052045684307813644, -0.011795916594564915, -0.03246869891881943, 0.004624901805073023, -0.020645156502723694, 0.030332358554005623, 0.027496181428432465, 0.006841816008090973, -0.0017587979091331363, -0.009880577214062214, -0.0227814968675375, 0.0016379380831494927, 0.05337169021368027, -0.04239531606435776, -0.026004426181316376, -0.024125918745994568, -0.07705561071634293, -0.02195274457335472, 0.030074523761868477, -0.003556731389835477, 0.012026126496493816, 0.010893496684730053, 0.0177353136241436, 0.08398029953241348, 0.02617017738521099, 0.0021720232907682657, -0.010497537441551685, -0.044421158730983734, -0.002022387459874153, 0.03127161040902138, 0.02425483614206314, -0.05672353506088257, -0.036943964660167694, 0.0589703768491745, -0.028545934706926346, -0.025912342593073845, 0.03208194673061371, -0.009245199151337147, 0.004514401312917471, 0.03620729595422745, 0.020626740530133247, 0.03038760833442211, -0.06118038296699524, 0.06324306130409241, -0.03359211981296539, -0.007223963271826506, 0.014272967353463173, -0.016280392184853554, 0.0421743169426918, 0.06681590527296066, -0.08316995948553085, -0.016740810126066208, 0.024715254083275795, 0.00548818614333868, 0.04478949308395386, 0.0017380791250616312, -0.0048758299089968204, -0.0002184109325753525, -0.02171332761645317, -0.013250838965177536, 0.0369255468249321, -0.018232565373182297, 0.003305803518742323, -0.038564637303352356, 0.04832550510764122, -0.03322378545999527, 0.013075879774987698, 0.00812638271600008, 0.032192446291446686, 0.031768862158060074, 0.023960169404745102 ]
37,727
healpy.pixelfunc
reorder
Reorder a healpix map from RING/NESTED ordering to NESTED/RING Parameters ---------- map_in : array-like the input map to reorder, accepts masked arrays inp, out : ``'RING'`` or ``'NESTED'`` define the input and output ordering r2n : bool if True, reorder from RING to NESTED n2r : bool if True, reorder from NESTED to RING Returns ------- map_out : array-like the reordered map, as masked array if the input was a masked array Notes ----- if ``r2n`` or ``n2r`` is defined, override ``inp`` and ``out``. See Also -------- nest2ring, ring2nest Examples -------- >>> import healpy as hp >>> hp.reorder(np.arange(48), r2n = True) array([13, 5, 4, 0, 15, 7, 6, 1, 17, 9, 8, 2, 19, 11, 10, 3, 28, 20, 27, 12, 30, 22, 21, 14, 32, 24, 23, 16, 34, 26, 25, 18, 44, 37, 36, 29, 45, 39, 38, 31, 46, 41, 40, 33, 47, 43, 42, 35]) >>> hp.reorder(np.arange(12), n2r = True) array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]) >>> hp.reorder(hp.ma(np.arange(12.)), n2r = True) masked_array(data = [ 0. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11.], mask = False, fill_value = -1.6375e+30) <BLANKLINE> >>> m = [np.arange(12.), np.arange(12.), np.arange(12.)] >>> m[0][2] = hp.UNSEEN >>> m[1][2] = hp.UNSEEN >>> m[2][2] = hp.UNSEEN >>> m = hp.ma(m) >>> hp.reorder(m, n2r = True) masked_array(data = [[0.0 1.0 -- 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0 11.0] [0.0 1.0 -- 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0 11.0] [0.0 1.0 -- 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0 11.0]], mask = [[False False True False False False False False False False False False] [False False True False False False False False False False False False] [False False True False False False False False False False False False]], fill_value = -1.6375e+30) <BLANKLINE>
def accept_ma(f): """Wraps a function in order to convert the input map from a masked to a regular numpy array, and convert back the output from a regular array to a masked array""" @wraps(f) def wrapper(map_in, *args, **kwds): return_ma = is_ma(map_in) m = ma_to_array(map_in) out = f(m, *args, **kwds) return ma(out) if return_ma else out return wrapper
(map_in, inp=None, out=None, r2n=None, n2r=None)
[ 0.05185140296816826, 0.011140087619423866, 0.058894697576761246, 0.04314461350440979, -0.024350693449378014, 0.0034309523180127144, -0.040808647871017456, -0.004862174857407808, 0.015971293672919273, 0.02252792939543724, -0.009573928080499172, 0.024722324684262276, 0.008751030080020428, -0.007755589205771685, 0.01659952662885189, 0.03440243378281593, -0.040844038128852844, 0.058540765196084976, 0.019979601725935936, 0.064663827419281, 0.01824532262980938, -0.03279203176498413, 0.002369148889556527, 0.013237149454653263, -0.0022530141286551952, 0.02983667701482773, 0.00866254698485136, -0.026226544752717018, 0.047816548496484756, -0.016661465167999268, 0.021165281534194946, -0.012900912202894688, 0.030544545501470566, 0.029217291623353958, 0.052346911281347275, -0.061619993299245834, -0.027589192613959312, 0.022297872230410576, -0.11764782667160034, -0.04197663068771362, -0.010556096211075783, -0.07552962005138397, 0.03334062919020653, 0.060239650309085846, 0.004313576500862837, 0.013414116576313972, 0.009706653654575348, 0.034207768738269806, -0.015033367089927197, 0.025695644319057465, -0.007622864097356796, -0.01611286774277687, 0.05960256606340408, 0.05769132077693939, -0.030172914266586304, 0.0681677833199501, -0.0014433891046792269, 0.008565214462578297, 0.01932482235133648, -0.05825761705636978, -0.04431259632110596, 0.012485039420425892, 0.031464774161577225, -0.06590259820222855, 0.048170484602451324, 0.014555555768311024, -0.0482412688434124, 0.000798011664301157, 0.02686362713575363, 0.06303573399782181, -0.03932212293148041, 0.013334481976926327, 0.010998514480888844, 0.013821141794323921, 0.03794177621603012, 0.033022087067365646, 0.017670178785920143, -0.018369199708104134, -0.0033756501507014036, -0.013467207551002502, 0.0014743583742529154, 0.007229112088680267, -0.03840189054608345, 0.06590259820222855, -0.05248848348855972, -0.025111651048064232, 0.011865654028952122, 0.0447373203933239, 0.025854913517832756, -0.024456873536109924, -0.009441202506422997, 0.014741371385753155, 0.011865654028952122, 0.06077055260539055, -0.1018623486161232, 0.03787098824977875, 0.014927187003195286, 0.027306046336889267, 0.006640695966780186, 0.006813238840550184, 0.021466126665472984, 0.04158730059862137, 0.036313679069280624, 0.03238500654697418, 0.05648794397711754, -0.0021070162765681744, 0.03442012891173363, -0.032703544944524765, -0.030084431171417236, 0.06685822457075119, -0.01867004483938217, -0.010069436393678188, -0.05723120644688606, -0.00491084111854434, -0.03390692546963692, 0.031677138060331345, -0.026067275553941727, -0.037906382232904434, -0.02190854400396347, 0.025943398475646973, 0.01080385036766529, 0.036667611449956894, 0.041056402027606964, -0.09966795146465302, 0.025217832997441292, 0.008998784236609936, 0.03438473492860794, -0.012600068002939224, 0.045586761087179184, -0.0013172999024391174, -0.05124971270561218, 0.032597366720438004, 0.003411043668165803, 0.0633188784122467, -0.023642823100090027, 0.011467477306723595, 0.010219858027994633, -0.007521107792854309, -0.026155758649110794, -0.0013615416828542948, -0.030686119571328163, 0.042649105191230774, 0.04024235159158707, -0.009697805158793926, 0.010476460680365562, -0.053939614444971085, 0.047391828149557114, 0.022651806473731995, 0.021006012335419655, -0.020422019064426422, -0.004014944192022085, 0.014997974038124084, 0.016918068751692772, 0.048382844775915146, -0.009582776576280594, 0.041268762201070786, 0.045799121260643005, -0.04271989315748215, 0.04119797423481941, 0.006693786010146141, -0.02732374146580696, 0.052700843662023544, -0.023288888856768608, -0.046365417540073395, 0.0018371412297710776, -0.008963391184806824, 0.029818980023264885, 0.03196028247475624, 0.03254427760839462, 0.0082201287150383, -0.03695075958967209, -0.04700249806046486, 0.012874366715550423, 0.0017774146981537342, 0.030332185328006744, 0.02891644835472107, -0.03192489221692085, -0.020333535969257355, 0.006463728379458189, 0.04834745079278946, -0.007459169253706932, 0.07230881601572037, -0.05871773138642311, 0.00009477425192017108, -0.016077473759651184, 0.011715231463313103, -0.02489929087460041, -0.027040595188736916, -0.004826781339943409, 0.007291050627827644, 0.01417507603764534, 0.02072286419570446, 0.021483823657035828, -0.02980128303170204, -0.0711408331990242, -0.06459304690361023, -0.048170484602451324, 0.017156973481178284, 0.01355569064617157, -0.023625126108527184, -0.037906382232904434, -0.01692691631615162, -0.010520702227950096, 0.03463248908519745, -0.01851077377796173, -0.016944613307714462, 0.008379398845136166, 0.027075987309217453, -0.050648026168346405, -0.00875987857580185, 0.036526039242744446, -0.056877270340919495, -0.030845390632748604, 0.016873827204108238, 0.03036757931113243, -0.015537723898887634, 0.08225437253713608, 0.02732374146580696, -0.0063354275189340115, 0.054718270897865295, -0.05305477976799011, -0.006738027557730675, -0.029199594631791115, 0.020528201013803482, 0.05305477976799011, 0.026120364665985107, 0.00002994963142555207, 0.01636062189936638, 0.04923228546977043, -0.002129137050360441, -0.02819088101387024, 0.003977338783442974, -0.032137252390384674, -0.03978223726153374, 0.01425471156835556, -0.045126646757125854, 0.10249942541122437, -0.05800986289978027, 0.04356933385133743, 0.029358865693211555, 0.02649199590086937, 0.00567180011421442, 0.03594204783439636, 0.04502046853303909, -0.0016092958394438028, 0.0029752617701888084, -0.04799351468682289, 0.049621615558862686, 0.014006957411766052, 0.04378169775009155, -0.05457669869065285, 0.03670300543308258, 0.017077339813113213, 0.05524917319417, 0.035588111728429794, 0.020138872787356377, 0.02123606950044632, -0.025377102196216583, 0.015298818238079548, 0.0013637538067996502, 0.02452765963971615, -0.026067275553941727, 0.057443566620349884, -0.05277163162827492, -0.036154408007860184, -0.03780020400881767, -0.009290779940783978, 0.02274029143154621, 0.05556771531701088, -0.01667916215956211, -0.0854397863149643, 0.031677138060331345, 0.013564539141952991, -0.08211280405521393, -0.003873370587825775, 0.035906653851270676, 0.08940385282039642, 0.0018382472917437553, 0.03355298936367035, 0.01611286774277687, -0.031270112842321396, 0.005499257240444422, -0.059354811906814575, 0.01247619092464447, -0.06721215695142746, -0.0014489192981272936, 0.010308342054486275, 0.06243404373526573, 0.03599513694643974, -0.05475366488099098, 0.017413577064871788, 0.0007543228566646576, 0.003344680881127715, -0.04983397573232651, -0.03886200487613678, -0.05542613938450813, -0.040596283972263336, -0.06353124231100082, 0.0006354229990392923, -0.07145937532186508, 0.0020406534895300865, -0.0398884154856205, 0.034809455275535583, 0.02907571755349636, 0.0058974334970116615, -0.019625667482614517, -0.010396825149655342, -0.02387288026511669, -0.0028558089397847652, 0.04551597312092781, 0.005618710070848465, -0.013210604898631573, -0.06848632544279099, -0.07170712947845459, 0.02958892285823822, 0.04261371120810509, 0.0237136110663414, 0.0417642705142498, 0.03236730769276619, 0.034774065017700195, 0.0309869647026062, 0.006733603775501251, -0.004587875679135323, -0.03004903718829155, 0.0012022712035104632, -0.025430193170905113, 0.043887875974178314, -0.052453089505434036, 0.026155758649110794, 0.01754630170762539, -0.02449226565659046, 0.013166363351047039, -0.013281391933560371, -0.0002980791905429214, -0.03695075958967209, 0.02983667701482773, -0.0033424687571823597, -0.031464774161577225, -0.016643770039081573, 0.003846825333312154, -0.04618845134973526, 0.03794177621603012, -0.03257966786623001, 0.01621904782950878, -0.015670448541641235, 0.04799351468682289, -0.03440243378281593, 0.03378304839134216, 0.0069769336842000484, 0.003776038531213999, 0.05057723820209503, 0.01745781861245632, 0.016316380351781845, 0.006242519710212946, 0.01875852793455124, 0.025642553344368935, 0.0038600980769842863, 0.002220938913524151, -0.05107274651527405, -0.01541384682059288, 0.03305748105049133, -0.003977338783442974, 0.01530766673386097, -0.06402675062417984, 0.03387153148651123, 0.008038736879825592, -0.01683843322098255, -0.03144707903265953, 0.029394259676337242, -0.014838702976703644, 0.02999594807624817, 0.005941675044596195, -0.035747382789850235, -0.023678217083215714, 0.010892333462834358, -0.008574062958359718, 0.004417544696480036, 0.00008226211502915248, -0.08628922700881958, 0.06487619131803513, 0.03581817075610161, 0.0137415062636137, -0.019784938544034958, -0.012883215211331844, 0.03323444724082947, -0.00945889949798584, 0.005698345135897398, 0.0050258697010576725, -0.08076784759759903, -0.01188335008919239, -0.016696859151124954, -0.03864964470267296, 0.020811347290873528, -0.012980547733604908, -0.04371090978384018, -0.019059371203184128, -0.056841880083084106, 0.026828233152627945, -0.01231691986322403, -0.030686119571328163, -0.008702363818883896, -0.005640830844640732, 0.016457954421639442, -0.03995920345187187, -0.013582236133515835, 0.001269739936105907, -0.027606889605522156, -0.0258726105093956, 0.022598717361688614, 0.028650997206568718, 0.034561701118946075, 0.0036831307224929333, 0.053939614444971085, -0.026102667674422264, 0.019820330664515495, 0.04328618943691254, -0.04650698974728584, -0.05284241959452629, -0.03921594098210335, -0.03339371830224991, 0.05861154943704605, -0.04972779378294945, -0.0074281999841332436, 0.013157514855265617, 0.03985302150249481, -0.06728294491767883, -0.0010374704143032432, -0.01705964282155037, -0.04901992529630661, 0.005685072857886553, 0.014705978333950043, -0.07312286645174026, -0.005950523540377617, -0.059142451733350754, -0.01160020288079977, 0.015316515229642391, -0.04679013788700104, -0.008255521766841412, 0.010122526437044144, 0.01090118195861578, 0.040596283972263336, 0.036773793399333954, 0.038897398859262466, -0.012254981324076653, -0.006016886327415705, -0.033641472458839417, -0.0006249155849218369, 0.05316096171736717, 0.013582236133515835, -0.04679013788700104, 0.025093955919146538, -0.015245728194713593, 0.009503141045570374, 0.01319290790706873, 0.09074880182743073, 0.0230411347001791, -0.019112462177872658, -0.08190044015645981, 0.0014610857469961047, 0.05737277865409851, 0.0032982269767671824, -0.013493752107024193, -0.026226544752717018, -0.06455764919519424, 0.035747382789850235, 0.08048470318317413, 0.019165553152561188, -0.010989665985107422, -0.010741911828517914, -0.009335022419691086, 0.06445147097110748, -0.06937115639448166, 0.012723945081233978, -0.029659710824489594, 0.06455764919519424, 0.024297602474689484, -0.033022087067365646, 0.04923228546977043, -0.0022673928178846836, 0.02376670017838478, -0.01775866374373436, 0.016997704282402992, -0.004950658418238163, 0.008963391184806824, 0.0022109844721853733, 0.005286896601319313, 0.030951570719480515, -0.029411956667900085, 0.0010203267447650433, 0.0361013188958168, -0.0336768664419651, 0.03463248908519745, 0.040490105748176575, 0.01865234784781933, 0.015458088368177414, 0.006711482536047697, 0.05882391333580017, 0.007954677566885948, 0.06459304690361023, -0.03346450626850128, -0.03519878536462784, -0.019041676074266434, -0.1342119574546814, 0.016130564734339714, -0.01391847338527441, -0.016042079776525497, -0.08282066881656647, -0.025660250335931778, -0.040029991418123245, 0.02236866019666195, -0.05422276258468628, 0.025129348039627075, 0.007658257614821196, 0.05942559987306595, 0.0005176292033866048, 0.008414792828261852, -0.04077325388789177, -0.07857345789670944, -0.05185140296816826, -0.048064302653074265, 0.002241953741759062, 0.002778385765850544, -0.026686660945415497, -0.04307382553815842, -0.032508883625268936, 0.0028956264723092318, 0.03829571232199669, 0.011750624515116215, -0.0006005825707688928, -0.03797717019915581, -0.03886200487613678, -0.01708618737757206, 0.03618980199098587, 0.049869369715452194, -0.007954677566885948, 0.0008217916474677622, -0.006238095462322235, -0.05153286084532738, -0.03181871026754379, 0.03565889969468117, -0.009211145341396332, 0.015139548107981682, 0.0064681526273489, -0.0017541877459734678, 0.026775144040584564, 0.022103209048509598, -0.034048497676849365, -0.015891658142209053, 0.021359946578741074, -0.035074908286333084, -0.04006538540124893, -0.017953326925635338, 0.07092846930027008, 0.05170982703566551, 0.007729044184088707, -0.019236339256167412, 0.01690037176012993, -0.012989395298063755, -0.05917784571647644, -0.02665126696228981, -0.02732374146580696, 0.0007200354593805969, 0.023996757343411446, 0.00781310349702835, -0.14001648128032684, 0.010219858027994633, 0.02551867626607418, 0.05783289670944214, -0.02160770073533058, -0.015033367089927197, 0.0028093550354242325, -0.028544817119836807, -0.0269521102309227, -0.023908274248242378, -0.04133954644203186, 0.08310382068157196, 0.018006417900323868, -0.09004093706607819, -0.02638581581413746, -0.019395610317587852, -0.041835054755210876, -0.005388652440160513, -0.02686362713575363, 0.002070516813546419, 0.04969240352511406, -0.008237824775278568, -0.028792571276426315, 0.016298683360219002, -0.06034582853317261, 0.03305748105049133, 0.014245863072574139, 0.026120364665985107, -0.017342789098620415, -0.010042890906333923, -0.024244511500000954, 0.002237529493868351, -0.006260216236114502, 0.009830530732870102, 0.04271989315748215, 0.012458493933081627, 0.0005173526587896049, -0.010042890906333923, -0.05645254999399185, -0.055390745401382446, -0.010529550723731518, -0.010848091915249825, -0.006534515414386988, -0.07163634151220322, -0.004738297779113054, -0.04891374707221985, -0.09046565741300583, 0.027642283588647842, 0.011007362976670265, -0.02268720045685768, 0.08182965219020844, -0.011591354385018349, -0.05333792790770531, 0.0014079955872148275, 0.02700520120561123, 0.003187622409313917, 0.015829719603061676, -0.027146775275468826, -0.03535805642604828, -0.022510234266519547, 0.06685822457075119, -0.06976048648357391, 0.017740966752171516, 0.01443167869001627, -0.027766160666942596, 0.007627288345247507, -0.001843777485191822, 0.05163904279470444, 0.04031313955783844, -0.00241560279391706, 0.01835150271654129, 0.002311634598299861, 0.011325903236865997, 0.027288349345326424, -0.042649105191230774, 0.038791220635175705, -0.034154679626226425, -0.04318000748753548, 0.049409255385398865, -0.019731847569346428, 0.05581546947360039, -0.040702465921640396, -0.02964201383292675, 0.018493076786398888, 0.018316110596060753, -0.024368388578295708, -0.036384467035532, 0.01659952662885189, -0.07064532488584518, 0.06108909100294113, 0.056063223630189896, 0.008936845697462559, 0.040808647871017456, 0.03066842257976532, -0.030402973294258118, -0.004556906409561634, -0.07921053469181061, 0.017962174490094185, -0.06519473344087601, -0.03627828508615494, 0.03164174407720566, -0.05252387747168541, -0.030809996649622917, 0.01250273548066616, 0.022333266213536263, 0.03088078461587429, 0.0019510638667270541, 0.02118297852575779, -0.036313679069280624, 0.005109929013997316, 0.03918054699897766, -0.013290240429341793, 0.03726930171251297, 0.011803715489804745, -0.010892333462834358, 0.022563323378562927, 0.012414252385497093, 0.03183640539646149, 0.015528875403106213, 0.09457129240036011, -0.01106045302003622, -0.014201621524989605, 0.018333805724978447, -0.0030283520463854074, -0.02031583897769451, 0.06561945378780365, 0.06445147097110748, -0.05386883020401001, 0.039251334965229034, 0.005950523540377617, -0.009591624140739441, 0.0668228343129158, -0.05089578032493591, 0.038012564182281494, -0.007799831219017506, 0.06399135291576385, 0.008162613958120346, 0.0184576828032732, -0.020475110039114952, 0.025270922109484673, -0.016121715307235718, -0.05967335402965546, -0.06296494603157043, 0.01196298561990261, -0.03486254811286926, 0.00218222732655704, 0.017121581360697746, 0.06477001309394836, 0.07644984871149063, 0.023642823100090027, -0.006056704092770815, -0.03201337531208992, -0.04112718626856804, -0.013060182332992554, 0.06756609678268433, 0.017829449847340584, -0.009883620776236057, -0.013148666359484196, 0.017360486090183258, 0.003935309126973152, -0.02705829218029976, 0.01700655184686184, -0.046683959662914276, -0.04948003962635994, 0.016148261725902557, -0.04424181208014488, 0.05478905886411667, -0.00005875865463167429, -0.0037450692616403103, 0.04891374707221985, -0.028650997206568718, 0.00963586661964655, -0.04509125277400017, 0.03300439193844795, -0.05546153336763382, -0.027129078283905983, 0.03346450626850128, -0.00887933187186718, 0.038897398859262466, 0.05170982703566551, -0.0005320077762007713, 0.0030792299658060074, -0.020333535969257355, 0.03489794209599495, -0.022244783118367195, 0.034490916877985, 0.003645525313913822, 0.001889125327579677, -0.015343059785664082, 0.029872070997953415, 0.04413563013076782, 0.012688551098108292, 0.01627213880419731, -0.03165943920612335, 0.018493076786398888, 0.01989111863076687, -0.036313679069280624, 0.06597338616847992, -0.03440243378281593, 0.02051050402224064, -0.012980547733604908, -0.023695914074778557, -0.010405673645436764, 0.00676457304507494 ]
37,728
healpy.sphtfunc
resize_alm
Returns a resized copy of the input a_lm, either truncated or padded with zeros. Parameters ---------- alm : array or sequence of arrays, complex A complex array of alm, or a sequence of such arrays. Size of each array must be of the form mmax*(lmax-mmax+1)/2+lmax lmax, mmax: int, scalar maximum l and m multipole moments of the input alm lmax_out, mmax_out: int, scalar maximum l and m multipole moments of the output alm Returns ------- array or sequence of arrays, complex A complex array of alm, or a sequence of such arrays. Size of each array will be of the form mmax_out*(lmax_out-mmax_out+1)/2+lmax_out
def resize_alm(alm, lmax, mmax, lmax_out, mmax_out): """Returns a resized copy of the input a_lm, either truncated or padded with zeros. Parameters ---------- alm : array or sequence of arrays, complex A complex array of alm, or a sequence of such arrays. Size of each array must be of the form mmax*(lmax-mmax+1)/2+lmax lmax, mmax: int, scalar maximum l and m multipole moments of the input alm lmax_out, mmax_out: int, scalar maximum l and m multipole moments of the output alm Returns ------- array or sequence of arrays, complex A complex array of alm, or a sequence of such arrays. Size of each array will be of the form mmax_out*(lmax_out-mmax_out+1)/2+lmax_out """ alm = np.array(alm) if alm.ndim < 1 or alm.ndim > 2: raise ValueError("incorrect dimensionality of the input a_lm") if alm.ndim == 2: return [resize_alm(almi, lmax, mmax, lmax_out, mmax_out) for almi in alm] # alm is a 1D array if alm.shape[0] != Alm.getsize(lmax, mmax): raise ValueError("inconsistent number of input a_lm") res = np.zeros(Alm.getsize(lmax_out, mmax_out), dtype=alm.dtype) lmaxmin = min(lmax, lmax_out) mmaxmin = min(mmax, mmax_out) ofs_i, ofs_o = 0, 0 for m in range(0, mmaxmin + 1): nval = lmaxmin - m + 1 res[ofs_o : ofs_o + nval] = alm[ofs_i : ofs_i + nval] ofs_i += lmax - m + 1 ofs_o += lmax_out - m + 1 return res
(alm, lmax, mmax, lmax_out, mmax_out)
[ 0.010050459764897823, 0.06531348079442978, 0.024956868961453438, -0.013058827258646488, -0.015109546482563019, -0.004016798455268145, 0.007873988710343838, -0.059354785829782486, -0.05188707262277603, 0.006534249987453222, -0.047979097813367844, -0.004188498016446829, -0.017711639404296875, 0.01057281345129013, 0.01863059215247631, 0.07220080494880676, -0.006369805429130793, -0.051422759890556335, 0.047321319580078125, 0.022441836073994637, 0.03797700256109238, -0.004706014413386583, -0.0028318308759480715, -0.002841504057869315, -0.03213438764214516, -0.020004188641905785, 0.013948761858046055, 0.012787977233529091, 0.014819350093603134, -0.04031791910529137, 0.026098307222127914, 0.03733857348561287, 0.06337884068489075, -0.010147192515432835, 0.0019697064999490976, -0.04027922451496124, 0.030509289354085922, -0.0011861767852678895, -0.08140969276428223, 0.019907455891370773, 0.008855819702148438, -0.033372558653354645, 0.05954825133085251, 0.06384315341711044, 0.01310719270259142, 0.009445885196328163, -0.02114562690258026, 0.04921726882457733, -0.0024715038016438484, -0.004502877127379179, -0.004152223467826843, -0.0710013285279274, 0.0015646409010514617, 0.04058877006173134, -0.042987722903490067, 0.08148708194494247, 0.0011813401943072677, 0.01461621280759573, 0.06736420094966888, -0.1047801598906517, -0.05080367252230644, -0.05660759657621384, 0.04031791910529137, -0.03768680617213249, 0.004585099406540394, -0.011927061714231968, -0.04043399915099144, 0.026872163638472557, 0.015186931937932968, 0.03849935531616211, -0.040047068148851395, 0.03083817847073078, 0.030006282031536102, 0.004618955310434103, 0.04944942519068718, 0.0739806741476059, 0.0032622884027659893, -0.022615954279899597, -0.031186413019895554, 0.0005208416259847581, 0.0276460200548172, 0.011433728039264679, 0.0012164055369794369, 0.03931190446019173, -0.021435823291540146, -0.04337465018033981, 0.02087477594614029, -0.011095166206359863, 0.010601832531392574, -0.08636237680912018, 0.02590484358370304, 0.03323713317513466, 0.027587981894612312, 0.029038961976766586, -0.049410730600357056, 0.007114642299711704, -0.07502537965774536, -0.01641542837023735, -0.0026794779114425182, -0.017711639404296875, 0.009736080653965473, 0.030122360214591026, 0.014683925546705723, 0.013590853661298752, 0.05146145075559616, 0.02321569249033928, 0.031360529363155365, -0.0551372691988945, 0.03091556392610073, 0.06415269523859024, -0.029870856553316116, 0.05223530903458595, -0.04035660997033119, 0.011162878945469856, -0.014442095533013344, 0.020507194101810455, -0.0074145118705928326, -0.0041981711983680725, 0.01880471035838127, 0.026678700000047684, 0.025363143533468246, -0.05931609496474266, 0.009397518821060658, -0.05297047272324562, 0.051500145345926285, 0.0342431478202343, -0.0010876309825107455, -0.05153883621096611, 0.002735098823904991, -0.0848146602511406, -0.03685491159558296, 0.023989548906683922, -0.05161622166633606, 0.03648732975125313, -0.016957128420472145, 0.00812065601348877, -0.015283663757145405, -0.017885755747556686, 0.005112288985401392, -0.04844341054558754, -0.06515870988368988, 0.09626773744821548, 0.03664210066199303, 0.036796871572732925, -0.014490460976958275, 0.0099343815818429, 0.1107388511300087, 0.06156027689576149, 0.018466148525476456, -0.012981440871953964, -0.026678700000047684, -0.03857674077153206, 0.02774275280535221, -0.007283923681825399, 0.0013748042983934283, 0.02782013826072216, -0.03486223146319389, -0.018011508509516716, -0.057187989354133606, 0.020758697763085365, -0.04875295236706734, -0.016608893871307373, -0.034630075097084045, -0.010292290709912777, -0.027104320004582405, -0.0708465576171875, 0.08264786750078201, 0.004916406702250242, -0.025459876284003258, 0.05076498165726662, 0.013184578157961369, 0.011424055323004723, -0.022596606984734535, -0.05490511283278465, -0.01428732369095087, 0.054247334599494934, -0.004420654848217964, -0.048907723277807236, -0.017914775758981705, 0.010495427995920181, -0.001623889314942062, 0.033952951431274414, 0.014045493677258492, -0.012807323597371578, -0.021358437836170197, 0.013977780938148499, -0.08086799830198288, 0.01837909035384655, -0.027916869148612022, -0.028884191066026688, -0.04283295199275017, -0.023351117968559265, 0.019114254042506218, -0.05854223668575287, -0.08125492185354233, -0.0027883013244718313, -0.04554145038127899, 0.051151908934116364, 0.03542327880859375, 0.012981440871953964, -0.06148289144039154, 0.018766017630696297, 0.025034254416823387, -0.027955561876296997, 0.05831008031964302, -0.024163667112588882, -0.001038660411722958, -0.027587981894612312, -0.006964707747101784, 0.03074144572019577, 0.00818353146314621, 0.0353458933532238, -0.013387715443968773, -0.02095216140151024, 0.03180549666285515, -0.01057281345129013, -0.015022487379610538, 0.025189025327563286, 0.029754778370261192, -0.013561833649873734, -0.07568315416574478, -0.0326760858297348, -0.014055167324841022, 0.02064261958003044, -0.022287065163254738, 0.004152223467826843, 0.03877020627260208, 0.0059103281237185, 0.036719486117362976, 0.012662225402891636, 0.0049913739785552025, -0.05045543611049652, -0.019356083124876022, -0.05831008031964302, -0.015670591965317726, 0.028864843770861626, -0.02095216140151024, -0.020081574097275734, -0.03826719895005226, -0.008154512383043766, -0.02930981107056141, -0.04151739552617073, -0.04894641786813736, 0.02437647618353367, -0.02722040005028248, 0.04755347594618797, -0.03048994205892086, 0.0158640556037426, -0.0037048375234007835, 0.005857125855982304, -0.05138406530022621, 0.023505888879299164, -0.01988811045885086, 0.06117334961891174, 0.04024053364992142, 0.002551307901740074, -0.036390598863363266, -0.03457203507423401, 0.0022671574261039495, -0.0446128211915493, 0.06241152063012123, -0.06732551008462906, 0.05478903278708458, 0.02822641283273697, -0.03492027148604393, -0.026581967249512672, -0.009116996079683304, -0.004294903017580509, -0.00568300811573863, 0.013290983624756336, 0.12265624105930328, 0.06326276063919067, -0.049565501511096954, -0.05699452385306358, 0.022403143346309662, 0.09255322813987732, 0.06860236823558807, -0.03242458403110504, -0.04302641749382019, -0.006253727246075869, 0.009237910620868206, -0.03708706796169281, -0.006800263188779354, 0.036796871572732925, -0.0274912491440773, -0.014509807340800762, -0.02898092195391655, -0.00480274623259902, 0.0031196086201816797, 0.01616392657160759, 0.043993737548589706, -0.022151639685034752, 0.0009304414270445704, 0.015951115638017654, 0.02849726192653179, -0.019984841346740723, -0.005378302186727524, -0.002979347249493003, 0.0051364717073738575, -0.01863059215247631, -0.03728053346276283, -0.002795556327328086, 0.0730520486831665, -0.0183017048984766, 0.026291770860552788, -0.04186563193798065, -0.06620341539382935, -0.07796603441238403, 0.02855530194938183, 0.020932815968990326, 0.010505100712180138, -0.002500523580238223, -0.06926015019416809, -0.05180968716740608, -0.02296418882906437, 0.022577261552214622, 0.04650877043604851, 0.02313830703496933, 0.03497831150889397, 0.004587517585605383, 0.005876472219824791, -0.018669286742806435, -0.023002881556749344, -0.05622066929936409, 0.06419138610363007, -0.0527770072221756, 0.009170198813080788, 0.0395827554166317, 0.008715557865798473, -0.0474373996257782, -0.04202040284872055, -0.025575954467058182, -0.03331451863050461, 0.016753992065787315, -0.014180919155478477, -0.046470075845718384, 0.03799634799361229, -0.06163766235113144, 0.013542487286031246, -0.023447848856449127, 0.003080915892496705, 0.07723087072372437, -0.019394775852560997, 0.023989548906683922, 0.00011298001481918618, 0.03430118411779404, 0.010089152492582798, 0.015680264681577682, -0.03633255884051323, -0.032869551330804825, -0.010418041609227657, -0.0424073301255703, 0.0005205393536016345, 0.001978170359507203, 0.0022333012893795967, 0.04008576273918152, 0.023834777995944023, -0.007051766384392977, -0.016753992065787315, -0.013629546388983727, -0.023486541584134102, -0.001831863191910088, -0.04968158155679703, -0.04109177365899086, -0.005059086252003908, -0.0036516350228339434, -0.03300497680902481, -0.03033517114818096, 0.054672956466674805, -0.01437438279390335, -0.007148498669266701, -0.029290465638041496, 0.04027922451496124, 0.01177229080349207, -0.03497831150889397, 0.057187989354133606, -0.0783916562795639, 0.013919741846621037, -0.05548550561070442, 0.0757218524813652, 0.010785623453557491, -0.025247065350413322, 0.04275556653738022, -0.03250196948647499, 0.05865831673145294, -0.005934511311352253, -0.0007762747118249536, -0.022287065163254738, -0.041130468249320984, 0.003898301627486944, 0.008657518774271011, -0.004435164388269186, 0.010630852542817593, 0.019946148619055748, 0.006689021363854408, 0.03333386406302452, -0.04693439230322838, 0.033856216818094254, -0.07796603441238403, -0.006379478611052036, 0.01469359826296568, 0.036042362451553345, -0.007786930073052645, 0.0019769612699747086, -0.07057570666074753, -0.02356392703950405, 0.057342760264873505, 0.02646588906645775, -0.02805229462683201, 0.05177099257707596, -0.004667321685701609, 0.04778563231229782, 0.023351117968559265, -0.046237919479608536, 0.0501072034239769, 0.03559739515185356, -0.023912163451313972, -0.005063923075795174, -0.008401178754866123, 0.015254644677042961, 0.03776419162750244, 0.021087586879730225, 0.009184707887470722, 0.02130039781332016, 0.00548954401165247, -0.06643557548522949, -0.03925386816263199, -0.016560526564717293, -0.060786422342061996, -0.03331451863050461, 0.05594981834292412, 0.04434197396039963, -0.006732550915330648, -0.03658406063914299, -0.022538568824529648, 0.04855949059128761, 0.002563399262726307, 0.041556090116500854, -0.03931190446019173, -0.03716445341706276, 0.040627460926771164, -0.007419348228722811, -0.015980135649442673, 0.043645501136779785, 0.050068508833646774, -0.008580133318901062, 0.012410721741616726, -0.01787608303129673, -0.04244602471590042, 0.00472777895629406, 0.052506156265735626, 0.007017910480499268, -0.016879742965102196, 0.01111451257020235, 0.04252341017127037, -0.05204184353351593, 0.0030446413438767195, -0.009779610671103, -0.008318956010043621, 0.024686019867658615, 0.00024288814165629447, 0.016028501093387604, 0.09355924278497696, 0.016802357509732246, 0.03397229686379433, 0.02965804748237133, 0.02288680337369442, 0.010543793439865112, -0.04016314819455147, -0.008696211501955986, 0.05312524363398552, -0.03861543536186218, 0.036545369774103165, -0.008996080607175827, 0.06527478992938995, -0.05095844343304634, 0.022848110646009445, 0.01281699724495411, 0.018369415774941444, -0.011336996220052242, 0.03877020627260208, 0.009818303398787975, 0.007341962773352861, 0.01636706292629242, -0.04167216643691063, 0.05699452385306358, -0.022325757890939713, -0.05966432765126228, -0.026775430887937546, 0.04863687604665756, -0.041130468249320984, 0.0551372691988945, -0.042987722903490067, 0.06206328421831131, 0.004485948942601681, -0.024028241634368896, 0.006253727246075869, 0.01928837038576603, 0.03824785351753235, 0.05490511283278465, -0.0006045753252692521, -0.062101975083351135, -0.029425889253616333, -0.04120785370469093, -0.009208891540765762, 0.0840408056974411, -0.07471583783626556, -0.022770725190639496, -0.03907974809408188, 0.047321319580078125, -0.07518015056848526, 0.004718105774372816, -0.02329307794570923, 0.03399164229631424, -0.004986537154763937, 0.028922883793711662, 0.017963141202926636, -0.023080267012119293, 0.043722886592149734, -0.02849726192653179, -0.0005410949233919382, 0.0056007858365774155, -0.10122042149305344, -0.048249948769807816, -0.028593994677066803, 0.004374707117676735, 0.023680005222558975, -0.0012865363387390971, -0.001304673496633768, 0.016560526564717293, -0.010804969817399979, 0.0010803760960698128, 0.0035742493346333504, 0.06496524810791016, 0.00962000247091055, 0.014838696457445621, -0.05362825095653534, -0.050919752568006516, 0.023351117968559265, 0.003772550029680133, -0.04024053364992142, 0.05146145075559616, -0.012758957222104073, -0.005209020804613829, -0.03615844249725342, 0.035113733261823654, 0.032521314918994904, 0.03834458440542221, 0.024105627089738846, 0.002467876533046365, -0.044728901237249374, -0.0007484642555937171, 0.04643138498067856, 0.03966014087200165, -0.033121053129434586, 0.016221964731812477, 0.06090249866247177, -0.08659452944993973, -0.0055427467450499535, -0.012671899050474167, 0.013339350000023842, 0.03116706758737564, 0.025692032650113106, 0.01215921901166439, 0.009310459718108177, 0.030199745669960976, 0.005426668096333742, 0.06163766235113144, -0.03584889695048332, 0.07076916843652725, -0.010921048931777477, -0.03451399505138397, -0.06527478992938995, -0.08133231103420258, -0.012226930819451809, 0.019655952230095863, 0.007424185052514076, -0.028690725564956665, 0.0007768793147988617, 0.007375818677246571, 0.033275824040174484, -0.002449739258736372, -0.030431903898715973, -0.028613340109586716, 0.03401098772883415, -0.01294274814426899, -0.06206328421831131, 0.021919483318924904, -0.04391635209321976, 0.009876342490315437, -0.00408451072871685, 0.08945780247449875, -0.014026147313416004, -0.01867895945906639, -0.00505424989387393, 0.01588340289890766, -0.03497831150889397, 0.0033590204548090696, -0.009044446982443333, 0.025537261739373207, 0.019143272191286087, -0.024705365300178528, -0.05045543611049652, 0.03472680598497391, -0.016405755653977394, -0.0014219611184671521, 0.025711379945278168, -0.08930303156375885, 0.008759086951613426, 0.0013022552011534572, -0.06697726994752884, 0.06662903726100922, 0.014887062832713127, -0.014422749169170856, -0.07378721237182617, -0.04190432280302048, -0.02865203283727169, 0.0003037991118617356, 0.04736001044511795, 0.01248810812830925, 0.004309413023293018, 0.027297785505652428, 0.007540263235569, -0.0524674654006958, 0.003192157717421651, -0.01495477557182312, -0.02981281839311123, -0.02120366506278515, 0.024337783455848694, 0.027704060077667236, 0.011395035311579704, 0.007922355085611343, 0.03213438764214516, -0.03230850398540497, 0.0061521586030721664, -0.0018971574027091265, -0.027123667299747467, 0.0036758179776370525, -0.00469634123146534, -0.0014001964591443539, 0.010930721648037434, -0.023331770673394203, 0.019926803186535835, -0.05138406530022621, 0.030103014782071114, 0.01097908802330494, 0.02406693436205387, 0.02456994168460369, -0.01740209572017193, 0.010746930725872517, -0.013155559077858925, 0.02930981107056141, 0.005126798525452614, 0.0422525592148304, 0.028593994677066803, -0.03826719895005226, 0.02021699957549572, 0.024086281657218933, -0.0209715086966753, -0.018398435786366463, -0.001426797709427774, -0.04151739552617073, -0.026949549093842506, -0.094565249979496, 0.05436341464519501, -0.029928896576166153, 0.0251309871673584, 0.07254903763532639, -0.007172681391239166, 0.018920788541436195, -0.025343798100948334, -0.016937782987952232, 0.035055696964263916, 0.009407191537320614, 0.04670223593711853, -0.01938510313630104, -0.01532235648483038, -0.014712944626808167, 0.02722040005028248, -0.023099614307284355, -0.0003415850515011698, 0.025517914444208145, -0.005552419926971197, 0.00679059000685811, -0.011462748050689697, 0.01365856546908617, -0.0002193097025156021, 0.01745046116411686, -0.02824575826525688, 0.005905491765588522, 0.023080267012119293, -0.01878536492586136, 0.011085493490099907, -0.034630075097084045, 0.010176211595535278, 0.05598851293325424, -0.014471114613115788, 0.030354518443346024, -0.01461621280759573, 0.03865412622690201, 0.0899994969367981, 0.05656890198588371, -0.04975896701216698, 0.003852353896945715, -0.007129152305424213, 0.049836352467536926, 0.009900525212287903, 0.03288889676332474, -0.07781126350164413, -0.009431375190615654, 0.038557395339012146, 0.08086799830198288, 0.05328001454472542, -0.01486771646887064, 0.03656471520662308, -0.06972446292638779, -0.0011486931471154094, 0.013639219105243683, -0.0028608504217118025, 0.02689151093363762, 0.004805164877325296, 0.016425102949142456, 0.02739451639354229, -0.049333345144987106, -0.060012564063072205, 0.015254644677042961, -0.0317281112074852, 0.03768680617213249, 0.02431843802332878, -0.03081883117556572, -0.01533203013241291, 0.047243934124708176, 0.04720523953437805, 0.05386040732264519, -0.0014388893032446504, 0.010089152492582798, -0.04395504295825958, -0.029445236548781395, -0.03933125361800194, -0.005150981713086367, 0.043800272047519684, 0.009010590612888336, 0.08009413629770279, 0.0339336022734642, -0.051074523478746414, 0.012971768155694008, -0.015467454679310322, 0.00743385823443532, -0.01428732369095087, -0.026369156315922737, 0.0002725123194977641, -0.04770824685692787, -0.019501181319355965, 0.01933673769235611, 0.028381183743476868, 0.007545100059360266, 0.029870856553316116, -0.030141707509756088, 0.019694644957780838, -0.019346410408616066, 0.0015537586295977235, -0.011849676258862019, 0.030934909358620644, 0.04387765750288963, -0.04960419610142708, 0.009866668842732906, -0.019423795863986015, -0.06148289144039154 ]
37,729
healpy.pixelfunc
ring2nest
Convert pixel number from RING ordering to NESTED ordering. Parameters ---------- nside : int, scalar or array-like the healpix nside parameter ipix : int, scalar or array-like the pixel number in RING scheme Returns ------- ipix : int, scalar or array-like the pixel number in NESTED scheme See Also -------- nest2ring, reorder Examples -------- >>> import healpy as hp >>> hp.ring2nest(16, 1504) 1130 >>> print(hp.ring2nest(2, np.arange(10))) [ 3 7 11 15 2 1 6 5 10 9] >>> print(hp.ring2nest([1, 2, 4, 8], 11)) [ 11 13 61 253]
def ring2nest(nside, ipix): """Convert pixel number from RING ordering to NESTED ordering. Parameters ---------- nside : int, scalar or array-like the healpix nside parameter ipix : int, scalar or array-like the pixel number in RING scheme Returns ------- ipix : int, scalar or array-like the pixel number in NESTED scheme See Also -------- nest2ring, reorder Examples -------- >>> import healpy as hp >>> hp.ring2nest(16, 1504) 1130 >>> print(hp.ring2nest(2, np.arange(10))) [ 3 7 11 15 2 1 6 5 10 9] >>> print(hp.ring2nest([1, 2, 4, 8], 11)) [ 11 13 61 253] """ check_nside(nside, nest=True) return pixlib._ring2nest(nside, ipix)
(nside, ipix)
[ -0.030471865087747574, 0.0035765930078923702, 0.03820934519171715, -0.03319857642054558, 0.02824092097580433, 0.03955499455332756, -0.014492284506559372, 0.022061560302972794, 0.06508691608905792, -0.02071591094136238, 0.007361230440437794, -0.042742058634757996, -0.01931714452803135, 0.026859860867261887, 0.014244401827454567, -0.016758641228079796, -0.006294449791312218, 0.04486676678061485, -0.045822884887456894, 0.013518460094928741, 0.047699712216854095, -0.04206923395395279, 0.020149322226643562, -0.014704755507409573, -0.03475669398903847, -0.000041186980524798855, 0.07117774337530136, 0.003164930734783411, -0.03774899244308472, -0.006923009641468525, 0.0167497880756855, -0.06490985304117203, 0.020167026668787003, -0.005121433641761541, -0.0367574617266655, 0.048160064965486526, -0.053578075021505356, 0.06090831756591797, -0.053578075021505356, 0.011128162033855915, -0.022628149017691612, -0.024434151127934456, -0.011561957187950611, -0.003249033819884062, -0.028364861384034157, 0.03112698346376419, 0.062112320214509964, -0.03202998638153076, -0.021034616976976395, 0.029480334371328354, -0.03997993841767311, -0.05680054798722267, 0.0022331574000418186, 0.021530382335186005, -0.028417980298399925, -0.02875439263880253, -0.019423378631472588, -0.013456488959491253, 0.052126187831163406, 0.019688967615365982, -0.01926402561366558, -0.02471744641661644, 0.05938560888171196, 0.0208575576543808, -0.04054652526974678, 0.05970431864261627, -0.06522855907678604, 0.015784814953804016, -0.027886802330613136, -0.01707734726369381, 0.004364505875855684, 0.01803346537053585, -0.027373330667614937, -0.0002332199946977198, 0.003355269320309162, 0.05035559833049774, 0.02567356452345848, 0.07107150554656982, 0.044725120067596436, -0.01882137916982174, -0.003164930734783411, 0.02381444349884987, 0.01512084435671568, 0.0731608048081398, 0.012677429243922234, 0.07429398596286774, 0.010791749693453312, 0.04677900671958923, -0.015005756169557571, -0.054144661873579025, -0.01883908547461033, -0.011579662561416626, -0.00827308464795351, -0.011553104035556316, -0.01836102455854416, -0.001101086032576859, 0.010287132114171982, 0.0033486296888440847, 0.0104287788271904, -0.0376073457300663, -0.04019240662455559, -0.06533479690551758, -0.05595066398382187, -0.033889103680849075, -0.022397972643375397, -0.002770974300801754, -0.0017451384337618947, 0.07266504317522049, -0.010287132114171982, 0.02172514796257019, -0.009419542737305164, 0.006993832997977734, -0.03505769371986389, -0.027284802868962288, 0.005851801950484514, 0.03277363255620003, 0.04288370534777641, 0.04295453056693077, 0.06250184774398804, -0.021919911727309227, 0.0027886803727597, 0.021388735622167587, -0.06236020103096962, 0.04072358459234238, -0.017564259469509125, 0.01924632117152214, -0.021618911996483803, 0.06143949553370476, 0.0396612323820591, 0.054746661335229874, 0.000546116556506604, 0.0347035750746727, -0.03696993365883827, -0.05382595583796501, -0.022999972105026245, -0.018644319847226143, -0.04210464656352997, -0.0025983417872339487, 0.0012858915142714977, -0.004979785997420549, -0.014448019675910473, -0.029480334371328354, -0.0006351994234137237, 0.02469974011182785, 0.009348718449473381, 0.01577596366405487, 0.0019974475726485252, 0.005541948601603508, 0.05549031123518944, 0.0261516235768795, -0.012199369259178638, 0.05088677629828453, 0.055738192051649094, 0.039307113736867905, 0.057650431990623474, -0.02029096893966198, -0.028772098943591118, -0.024965329095721245, 0.03357039764523506, 0.01533331535756588, -0.03064892441034317, -0.042352527379989624, 0.019175495952367783, -0.01728096418082714, -0.01357157714664936, 0.008627203293144703, -0.06611385196447372, 0.00315607781521976, 0.014386049471795559, 0.01882137916982174, -0.033942222595214844, -0.02917933464050293, -0.08435093611478806, -0.041290175169706345, 0.02824092097580433, -0.005015198141336441, -0.010340249165892601, 0.02326556108891964, -0.04337947070598602, 0.033889103680849075, 0.011597368866205215, -0.06140408292412758, 0.05896066874265671, 0.04755806550383568, -0.03410157561302185, 0.019033849239349365, 0.0564110167324543, -0.041360996663570404, -0.008432437665760517, -0.04391064867377281, 0.03519934043288231, 0.048655830323696136, -0.037324052304029465, 0.016439933329820633, 0.006511346902698278, -0.037784405052661896, -0.0222209133207798, 0.0345265194773674, -0.0331631638109684, 0.00964971911162138, -0.028400273993611336, 0.03507540002465248, -0.00026309871464036405, -0.021158559247851372, -0.01625402271747589, -0.009295601397752762, -0.041785940527915955, -0.014058489352464676, 0.006980553735047579, 0.022096971049904823, 0.023053091019392014, -0.006135096773505211, 0.02671821229159832, -0.00012490963854361326, 0.0013091304572299123, 0.023478031158447266, -0.040263231843709946, 0.02724939025938511, -0.02413315139710903, -0.021441852673888206, -0.06179361417889595, -0.024912210181355476, 0.016006140038371086, -0.02323014847934246, -0.04886830225586891, 0.0015160682378336787, 0.005032903980463743, -0.005842949263751507, 0.01832561381161213, -0.00047750616795383394, 0.01875055581331253, 0.02075132168829441, -0.013730930164456367, -0.016068110242486, -0.0069761271588504314, -0.024558091536164284, -0.055596545338630676, -0.014961491338908672, 0.06423702836036682, 0.029834453016519547, 0.034809812903404236, -0.024009209126234055, -0.05825243145227432, -0.05095759779214859, 0.051701247692108154, 0.07599375396966934, 0.018538083881139755, -0.014421461150050163, -0.02363738603889942, 0.04989524558186531, -0.0352170467376709, -0.03279133886098862, 0.005232095252722502, -0.01873284950852394, 0.02921474538743496, 0.05290525034070015, -0.13137783110141754, 0.02868356928229332, -0.03548263758420944, -0.018555790185928345, 0.006843332666903734, -0.0020251129753887653, -0.036828286945819855, -0.027621213346719742, 0.008817541413009167, 0.03725322708487511, 0.024522680789232254, -0.01628943346440792, 0.03266739845275879, 0.002202172065153718, 0.04653112217783928, 0.03820934519171715, 0.04061735048890114, -0.011641633696854115, 0.023424914106726646, 0.013040400110185146, -0.004271550104022026, 0.06522855907678604, 0.030896807089447975, 0.0071222009137272835, -0.014474578201770782, 0.006909729912877083, -0.04157346859574318, 0.010552720166742802, 0.01160622201859951, -0.0156431682407856, 0.05502995848655701, 0.0594918467104435, -0.0009882109006866813, -0.0473455935716629, 0.032401807606220245, 0.033393338322639465, -0.066999152302742, 0.04599994421005249, -0.01724555343389511, 0.037784405052661896, -0.04553959146142006, -0.006166081875562668, 0.010189749300479889, 0.005546375177800655, 0.04210464656352997, -0.01214625220745802, -0.010995367541909218, -0.0053870221599936485, 0.05442795529961586, 0.06115620210766792, -0.03913005441427231, 0.011101603507995605, 0.010676661506295204, -0.015705138444900513, -0.03764275833964348, -0.032401807606220245, -0.005789831280708313, -0.052267834544181824, 0.04543335735797882, -0.01977749727666378, 0.004185233730822802, -0.0062634642235934734, 0.03913005441427231, 0.0593147873878479, -0.00566146383062005, 0.050638891756534576, -0.0006888704374432564, 0.04465429484844208, 0.037855226546525955, 0.0700799748301506, 0.03066663071513176, 0.07280668616294861, -0.020060792565345764, 0.033428750932216644, 0.01455425564199686, 0.0010601411340758204, -0.01970667392015457, -0.005679169669747353, -0.03944876044988632, 0.0011420309310778975, 0.0543571338057518, -0.034331753849983215, -0.03895299509167671, -0.011499986052513123, -0.028807509690523148, -0.03220704570412636, -0.017643935978412628, -0.02871898002922535, 0.005510963499546051, -0.015439550392329693, -0.010322543792426586, -0.04362735524773598, 0.011978046037256718, 0.09886978566646576, -0.004709771368652582, 0.02570897713303566, 0.013748636469244957, -0.0047761681489646435, -0.027426449581980705, 0.016829464584589005, 0.0043822117149829865, -0.04539794474840164, -0.02032638154923916, -0.022468795999884605, -0.04394606128334999, 0.03013545274734497, 0.033924516290426254, 0.01361584197729826, -0.011508839204907417, 0.01680290512740612, -0.026948390528559685, -0.00863162986934185, 0.026470329612493515, 0.07287751138210297, -0.025425681844353676, -0.027514979243278503, -0.06345796585083008, -0.0014408181887120008, -0.006334288045763969, -0.024983033537864685, -0.06313925981521606, -0.03920087590813637, 0.019635850563645363, -0.01929943822324276, -0.0223094429820776, 0.004736329894512892, 0.04468970745801926, 0.05485289916396141, 0.0018834657967090607, -0.010393367148935795, 0.07592292875051498, 0.018945319578051567, -0.02234485372900963, -0.06434326618909836, -0.04507923871278763, 0.04592912271618843, 0.04245876520872116, 0.014093901962041855, -0.03994452580809593, -0.01748458296060562, -0.0105969849973917, 0.006984980311244726, 0.01979520358145237, -0.02082214690744877, -0.0054180072620511055, -0.01733408309519291, 0.0376073457300663, -0.009578895755112171, -0.0077640400268137455, -0.004798300564289093, 0.027373330667614937, -0.03608463704586029, 0.056658901274204254, -0.13166111707687378, 0.011030780151486397, 0.03913005441427231, 0.0023261134047061205, -0.0031693573109805584, 0.09228318184614182, 0.012526928447186947, -0.006617582403123379, 0.078968346118927, -0.03404845669865608, -0.011721310205757618, -0.012509223073720932, -0.04164429381489754, 0.008795409463346004, 0.025903740897774696, 0.006042140536010265, -0.06437867879867554, -0.005639331415295601, -0.003979402594268322, -0.020521145313978195, 0.09122083336114883, -0.05896066874265671, 0.005165698006749153, 0.02917933464050293, -0.03905922919511795, 0.031374868005514145, -0.05619854852557182, 0.04755806550383568, -0.006250184960663319, 0.004616815131157637, 0.0030476292595267296, 0.03613775596022606, 0.07464810460805893, 0.029267864301800728, -0.040758997201919556, 0.05347183719277382, -0.0003790170594584197, -0.01382831297814846, 0.0822262316942215, 0.02512468211352825, -0.05595066398382187, 0.041254762560129166, -0.12011686712503433, 0.07139021158218384, 0.02616932988166809, -0.05549031123518944, -0.06590138375759125, 0.0031250924803316593, 0.02569127082824707, 0.009844483807682991, 0.05495913326740265, -0.0013921268982812762, -0.0008875085623003542, -0.0306843351572752, -0.009879895485937595, -0.04684982821345329, -0.03849264234304428, 0.0003878700081259012, -0.04189217463135719, -0.002908195136114955, -0.018892202526330948, 0.01803346537053585, 0.04061735048890114, -0.016218610107898712, -0.021636618301272392, 0.08817541599273682, 0.049222420901060104, 0.03601381555199623, -0.025602741166949272, -0.027479566633701324, -0.0038554612547159195, -0.08576741069555283, -0.02627556584775448, -0.02969280444085598, -0.023938385769724846, -0.07241715490818024, -0.016351405531167984, -0.06749491393566132, 0.04408770799636841, -0.02673591859638691, -0.059562668204307556, -0.03721781447529793, -0.031410276889801025, -0.04302535206079483, 0.01830790750682354, 0.06554726511240005, 0.056092310696840286, 0.0019155577756464481, -0.016935698688030243, -0.012040016241371632, -0.012013457715511322, -0.026789037510752678, -0.009224777109920979, 0.04900994896888733, 0.02367279678583145, -0.006754803471267223, 0.045327119529247284, -0.04791218414902687, 0.0444418266415596, 0.018396437168121338, 0.013128929771482944, 0.014908373355865479, 0.018113141879439354, 0.015563491731882095, -0.013536165468394756, -0.009897601790726185, 0.015395285561680794, 0.003614218207076192, 0.04104229062795639, 0.02073361724615097, -0.007095641922205687, 0.05209077522158623, 0.0025695697404444218, 0.03013545274734497, 0.07117774337530136, 0.027302507311105728, 0.014430314302444458, 0.045327119529247284, 0.0036894683726131916, -0.029816746711730957, -0.0028661435935646296, 0.003326497273519635, 0.031020747497677803, 0.08555494248867035, 0.003879806725308299, -0.014049637131392956, -0.0654764398932457, 0.028842922300100327, 0.03424322232604027, 0.12103758007287979, -0.01639566943049431, -0.03969664126634598, -0.03672204911708832, -0.03557116538286209, 0.010862573981285095, 0.02122938260436058, 0.04893912747502327, 0.032330986112356186, -0.010331396013498306, 0.021937618032097816, -0.04337947070598602, 0.030507277697324753, 0.02526632882654667, 0.02374362014234066, -0.01358928345143795, 0.03257886692881584, 0.014492284506559372, -0.05867737531661987, 0.005524242762476206, -0.010827162303030491, -0.027320213615894318, -0.020379498600959778, 0.02427479811012745, 0.036828286945819855, -0.04709771275520325, 0.029055392369627953, -0.012119692750275135, -0.0072240098379552364, -0.03360581025481224, 0.024327915161848068, 0.003749225754290819, 0.001028049155138433, -0.011508839204907417, 0.05988137423992157, 0.0006667380221188068, 0.01748458296060562, 0.01755540631711483, 0.013102371245622635, -0.09872813522815704, 0.01184525154531002, -0.06416620314121246, -0.019458791241049767, -0.01062354352325201, -0.011721310205757618, -0.041538055986166, -0.0066972593776881695, 0.07712692767381668, 0.004074571654200554, 0.05000147968530655, 0.038386404514312744, 0.013739783316850662, 0.04015699774026871, -0.01806887798011303, 0.08045563846826553, 0.04900994896888733, 0.000971611647401005, -0.027284802868962288, -0.032915279269218445, 0.001357821747660637, 0.024558091536164284, -0.032366398721933365, -0.038350991904735565, 0.03905922919511795, -0.04646029695868492, 0.017564259469509125, 0.045256298035383224, 0.0013511819997802377, 0.014766725711524487, -0.09235400706529617, -0.03070204146206379, -0.015404138714075089, 0.04267123341560364, 0.03118010051548481, -0.016298286616802216, -0.002469973871484399, -0.056729722768068314, 0.011916074901819229, 0.032915279269218445, -0.03647416830062866, -0.03256116062402725, -0.03130404278635979, -0.007569274865090847, 0.015368727035820484, 0.015492668375372887, -0.05881902202963829, 0.01698881760239601, -0.03654498979449272, 0.034862931817770004, -0.010375660844147205, 0.010242867283523083, -0.04486676678061485, -0.004634520970284939, 0.01977749727666378, 0.017378346994519234, -0.07064656913280487, -0.051134657114744186, -0.004136542323976755, 0.015209374018013477, -0.05053265765309334, -0.06664503365755081, 0.08272199332714081, 0.03870511054992676, -0.03420780971646309, -0.024593504145741463, -0.0217959713190794, 0.006719391327351332, -0.0654764398932457, 0.025461094453930855, -0.0026536728255450726, -0.09263730049133301, -0.023106208071112633, 0.012447251938283443, 0.01711275801062584, -0.04245876520872116, -0.04189217463135719, -0.002855077385902405, 0.053613483905792236, -0.0033862546551972628, -0.003503556363284588, -0.035872165113687515, -0.008848526515066624, 0.07585210353136063, 0.01010121963918209, -0.042812883853912354, 0.02372591570019722, -0.035323284566402435, 0.05209077522158623, 0.0067282444797456264, -0.022380266338586807, -0.0075914072804152966, -0.004935521632432938, -0.010605838149785995, 0.012668576091527939, 0.021388735622167587, -0.006170508451759815, -0.002076017437502742, -0.0267536249011755, -0.01759081892669201, 0.05796913802623749, -0.02177826501429081, 0.01931714452803135, -0.09660342335700989, -0.004904536064714193, 0.01528905052691698, 0.008804261684417725, -0.02080444060266018, -0.017714759334921837, -0.004515006206929684, -0.022397972643375397, -0.04610618203878403, -0.032419513911008835, 0.01554578635841608, -0.004043586552143097, -0.008476702496409416, 0.030896807089447975, -0.0041232630610466, -0.07967657595872879, -0.01285448856651783, 0.05637560784816742, -0.05304689705371857, -0.02227403037250042, 0.03813852369785309, -0.03420780971646309, 0.015731697902083397, -0.00357437995262444, 0.020414909347891808, -0.017254406586289406, -0.016590435057878494, -0.007095641922205687, -0.02969280444085598, 0.06898221373558044, -0.046247828751802444, -0.00852982047945261, -0.01586449146270752, -0.007029244676232338, -0.03704075515270233, 0.02126479335129261, 0.01755540631711483, 0.03257886692881584, -0.06696373969316483, -0.01875055581331253, 0.009968425147235394, 0.012943017296493053, 0.007201877422630787, -0.011384897865355015, -0.030542688444256783, 0.023442620411515236, 0.05970431864261627, 0.07344409823417664, -0.07078821212053299, -0.038811348378658295, -0.023495737463235855, -0.01535987388342619, 0.010092366486787796, -0.03302151709794998, 0.017856406047940254, -0.009693983942270279, 0.01533331535756588, 0.05000147968530655, -0.003302151570096612, -0.07967657595872879, 0.012040016241371632, -0.014740167185664177, -0.02524862252175808, -0.002830731915310025, -0.0010601411340758204, 0.017838701605796814, 0.08675894141197205, -0.04348570480942726, -0.011181280016899109, -0.027090037241578102, 0.03796146437525749, 0.07057574391365051, 0.006365273613482714, -0.022114677354693413, 0.013580430299043655, -0.026859860867261887, 0.02223861776292324, 0.04465429484844208, -0.014120460487902164, -0.02574438787996769, 0.002465547528117895, -0.029303275048732758, -0.00905214436352253, -0.017750171944499016, 0.0005364336539059877, 0.040794409811496735, 0.03594299033284187, -0.028364861384034157 ]
37,731
healpy.zoomtool
set_g_clim
Set min/max value of the gnomview part of a mollzoom.
def set_g_clim(vmin, vmax): """Set min/max value of the gnomview part of a mollzoom.""" import pylab f = pylab.gcf() if not hasattr(f, "zoomtool"): raise TypeError("The current figure has no zoomtool") f.zoomtool.save_min = vmin f.zoomtool.save_max = vmax f.zoomtool._range_status = 2 f.zoomtool.draw_gnom()
(vmin, vmax)
[ 0.06890609115362167, 0.004719228949397802, 0.045354556292295456, 0.030599158257246017, -0.05184907093644142, 0.028814950957894325, -0.015495842322707176, -0.030385052785277367, -0.006200121250003576, 0.014425317756831646, -0.029867634177207947, 0.005945871584117413, 0.01903749443590641, 0.025674745440483093, 0.012908740900456905, 0.013444003649055958, -0.026638217270374298, -0.068870410323143, 0.07111851125955582, -0.019537072628736496, 0.07083303481340408, -0.03953803703188896, 0.008372393436729908, 0.000475602806545794, -0.018323810771107674, -0.009848825633525848, -0.00015110007370822132, 0.030795421451330185, -0.016530683264136314, -0.045818448066711426, -0.05092128366231918, -0.026638217270374298, 0.023551538586616516, -0.01825244352221489, 0.03143773600459099, -0.005557806231081486, 0.046282343566417694, -0.018207836896181107, -0.12803472578525543, 0.024318747222423553, -0.034702837467193604, -0.022677278146147728, 0.029385898262262344, 0.02513948269188404, 0.05538180097937584, -0.006391923408955336, 0.03889572247862816, 0.03523809835314751, 0.021981436759233475, 0.014987342990934849, 0.004565340932458639, -0.03316841647028923, -0.041857507079839706, 0.004692465532571077, -0.04274960979819298, 0.054525379091501236, 0.05830790102481842, 0.06840651482343674, 0.023123329505324364, -0.047531288117170334, -0.07090440392494202, -0.021035807207226753, -0.028047742322087288, -0.07222472131252289, 0.012123689986765385, 0.04228571802377701, -0.013702713884413242, 0.014255817979574203, -0.013238819316029549, 0.0201793871819973, -0.05266980454325676, 0.0402517206966877, -0.030884630978107452, -0.032097890973091125, 0.05613116919994354, 0.04182182252407074, -0.06537336111068726, 0.06308957934379578, -0.0269593745470047, -0.010526823811233044, 0.04314213618636131, 0.017663653939962387, 0.02638842910528183, -0.004986859858036041, -0.028351057320833206, -0.01254297886043787, -0.008760458789765835, 0.0199117548763752, 0.06587293744087219, -0.030634842813014984, -0.022552382200956345, 0.019269440323114395, 0.017128391191363335, 0.06323231011629105, -0.035898253321647644, 0.04314213618636131, -0.03800361976027489, 0.04410560801625252, -0.028190478682518005, 0.02644195593893528, 0.04624665901064873, 0.01841302216053009, -0.004464979283511639, -0.04856612905859947, -0.016726944595575333, -0.02481832541525364, 0.014104160480201244, 0.005981555674225092, -0.008408077992498875, 0.04531887173652649, -0.05762990191578865, 0.0269058495759964, -0.007725618313997984, -0.006275949999690056, -0.013069319538772106, 0.06922724843025208, -0.042642559856176376, -0.03359662741422653, 0.036433517932891846, 0.01567426323890686, -0.07101146131753922, -0.0034992769360542297, 0.029243160039186478, 0.014291501604020596, 0.013774082064628601, 0.011731164529919624, 0.045247502624988556, 0.07136829942464828, -0.003702230518683791, -0.022249067202210426, 0.057130325585603714, -0.07707776129245758, -0.032829418778419495, 0.0014095238875597715, 0.05841495469212532, -0.026923691853880882, -0.04952960088849068, 0.03097384236752987, 0.01860928349196911, 0.048994336277246475, -0.06066305562853813, 0.03138421103358269, -0.05252707004547119, 0.052134543657302856, -0.03604099154472351, 0.02910042367875576, 0.07151103764772415, 0.04403424263000488, -0.031366366893053055, -0.012783846817910671, -0.02174948900938034, 0.026638217270374298, 0.02424737997353077, -0.06958409398794174, -0.023872695863246918, -0.000804008508566767, -0.041643403470516205, -0.0030175410211086273, 0.04364171624183655, 0.0398235097527504, -0.03878867253661156, 0.024907536804676056, 0.054418329149484634, 0.005936950445175171, 0.017101628705859184, -0.012917662039399147, 0.0025045813526958227, -0.026531165465712547, -0.035594940185546875, 0.07893333584070206, 0.018189994618296623, -0.053847383707761765, -0.020375650376081467, -0.04410560801625252, 0.06094852834939957, 0.024639906361699104, 0.0020473781041800976, 0.009732851758599281, -0.000041503732063574716, 0.07140398025512695, 0.02481832541525364, 0.011989874765276909, 0.024265222251415253, 0.04178613796830177, 0.004146052058786154, 0.0029930081218481064, 0.010749850422143936, -0.022356119006872177, -0.03536299243569374, -0.05670211464166641, 0.06451693922281265, 0.028922002762556076, -0.02201712131500244, -0.08278723061084747, -0.004723689518868923, -0.005040386226028204, -0.0015489151701331139, -0.056238219141960144, 0.013319108635187149, 0.003142435336485505, -0.03133068233728409, -0.002201265888288617, -0.010062930174171925, -0.03425678238272667, 0.03265099599957466, -0.018948283046483994, 0.022980593144893646, 0.03154478967189789, 0.07079735398292542, 0.029243160039186478, 0.013354793190956116, 0.0201793871819973, -0.004458288662135601, -0.014666185714304447, -0.006927185691893101, -0.048887286335229874, 0.024836167693138123, 0.049672335386276245, -0.009741772897541523, 0.04271392896771431, -0.025424957275390625, -0.032365523278713226, 0.014728632755577564, 0.003347619203850627, -0.008296565152704716, -0.02956431731581688, 0.02612079679965973, -0.024782642722129822, 0.04371308535337448, -0.06023484468460083, 0.015085474587976933, 0.0003033152606803924, -0.0010755425319075584, -0.028029900044202805, -0.040965404361486435, -0.002995238406583667, 0.038610249757766724, 0.024889694526791573, 0.015183606185019016, 0.021981436759233475, -0.02305196039378643, 0.006717541255056858, -0.020589753985404968, 0.08271586149930954, -0.0034345993772149086, 0.03925256431102753, -0.0341140478849411, 0.023712117224931717, 0.008064617402851582, 0.09527668356895447, -0.011597348377108574, -0.05948547646403313, -0.06612273305654526, 0.036165885627269745, 0.04282097890973091, 0.04135793074965477, -0.109550341963768, 0.015772394835948944, -0.016718024387955666, -0.04631802812218666, -0.026424113661050797, -0.00993803609162569, -0.043463293462991714, 0.059378426522016525, 0.05506064370274544, -0.01285521499812603, 0.04382013529539108, -0.011178059503436089, -0.01116021815687418, -0.007640868425369263, 0.1029844582080841, 0.09320700168609619, -0.033810731023550034, -0.02232043631374836, 0.006811212282627821, 0.015638578683137894, -0.013836529105901718, -0.05573864281177521, 0.024729115888476372, -0.03932393342256546, 0.0330970473587513, -0.024782642722129822, 0.0032985536381602287, 0.030759736895561218, -0.0335787832736969, 0.0007900694035924971, 0.0301352646201849, -0.019697651267051697, -0.039395302534103394, 0.00235292362049222, -0.015522604808211327, 0.019233757629990578, 0.014122002758085728, 0.0010303797898814082, 0.047281499952077866, -0.08043207228183746, 0.050564441829919815, 0.015763472765684128, -0.09791730344295502, -0.01559397391974926, 0.06462399661540985, -0.09413478523492813, -0.028047742322087288, 0.03359662741422653, 0.0546681173145771, 0.021927909925580025, 0.03318626061081886, -0.018448704853653908, 0.024889694526791573, 0.020678965374827385, -0.05163496360182762, 0.0031112118158489466, -0.06462399661540985, -0.03338252380490303, -0.03878867253661156, 0.028511635959148407, 0.014532369561493397, 0.03582688793540001, -0.01116021815687418, -0.02883279323577881, 0.005820977035909891, -0.035434361547231674, -0.026299217715859413, -0.02085738629102707, -0.01928728260099888, -0.014452080242335796, -0.028119109570980072, 0.05516769737005234, -0.0016169380396604538, 0.044676557183265686, -0.04043014347553253, 0.030278000980615616, -0.027423270046710968, 0.040287405252456665, 0.038717303425073624, -0.03573767468333244, 0.03896709159016609, -0.04171477258205414, -0.025103799998760223, -0.03721856698393822, 0.029385898262262344, 0.022177699953317642, -0.028547320514917374, -0.0030220013577491045, -0.0271199531853199, 0.06426715105772018, -0.006445449776947498, -0.035541411489248276, -0.05805811285972595, -0.032204944640398026, -0.05341917276382446, 0.02524653635919094, -0.02310548722743988, -0.031063051894307137, -0.019073178991675377, 0.02137480489909649, 0.0603775829076767, -0.06258999556303024, 0.017048101872205734, -0.03348957374691963, -0.010687402449548244, 0.04157203435897827, -0.02191006764769554, -0.013212056830525398, -0.00993803609162569, -0.0001259399577975273, 0.012444847263395786, -0.05891453102231026, 0.08428595960140228, -0.009349247440695763, 0.002475587883964181, -0.012837372720241547, -0.0017875528428703547, 0.00443375576287508, -0.03739698976278305, 0.022445330396294594, -0.05174201726913452, -0.0055176615715026855, -0.05245570093393326, 0.045354556292295456, -0.008537433110177517, -0.05163496360182762, 0.006311634089797735, -0.04564002901315689, 0.018484389409422874, 0.002901567379012704, 0.054418329149484634, -0.0015801388071849942, 0.002323930151760578, -0.014532369561493397, 0.03414973244071007, -0.016914287582039833, 0.05324074998497963, 0.05188475549221039, -0.012658951804041862, -0.029582159593701363, 0.02331959269940853, 0.011285112239420414, 0.039181195199489594, 0.009929114952683449, -0.026406271383166313, 0.06351778656244278, -0.013898976147174835, -0.01139216497540474, -0.01987607218325138, -0.051242440938949585, 0.023301750421524048, -0.018270283937454224, 0.03227631375193596, -0.021927909925580025, 0.031152263283729553, -0.015299579128623009, -0.0332576259970665, -0.029385898262262344, 0.015932973474264145, -0.04792381450533867, -0.05959253013134003, -0.030688369646668434, 0.013774082064628601, 0.009786377660930157, -0.0267987959086895, 0.018234601244330406, 0.00011917948722839355, 0.003534961026161909, 0.04860181361436844, -0.05688053369522095, 0.011847137473523617, -0.04139361530542374, -0.01705702394247055, 0.0024666667450219393, 0.014951658435165882, 0.025478482246398926, 0.06819240748882294, -0.009322484023869038, -0.011606269516050816, -0.020161544904112816, -0.0025670286267995834, 0.017422785982489586, 0.018734179437160492, -0.0034056061413139105, 0.032615311443805695, -0.04678191989660263, -0.010830139741301537, -0.055881377309560776, 0.019073178991675377, -0.029350213706493378, -0.047424234449863434, 0.010241351090371609, 0.02283785678446293, -0.030848948284983635, -0.028743581846356392, 0.043677400797605515, -0.05705895647406578, 0.015121158212423325, 0.1205410584807396, -0.017610127106308937, -0.08457143604755402, 0.02774442732334137, 0.014924895949661732, 0.016494998708367348, 0.010669561102986336, -0.0024889693595469, -0.024943221360445023, -0.01689644530415535, -0.01730681210756302, 0.07272429764270782, 0.068121038377285, 0.02628137543797493, -0.04171477258205414, -0.05109970271587372, -0.00969716813415289, -0.02801205776631832, -0.025960218161344528, -0.021410489454865456, -0.011418928392231464, 0.0025424957275390625, -0.02858300320804119, 0.05448969826102257, 0.0335787832736969, -0.003432369092479348, 0.006472212728112936, 0.026584692299365997, 0.060627371072769165, 0.01301579363644123, -0.010633876547217369, 0.05516769737005234, 0.0034524414222687483, -0.024854009971022606, -0.06137673929333687, 0.024729115888476372, 0.013265582732856274, 0.001991621684283018, -0.0679069384932518, 0.026245692744851112, 0.049565285444259644, 0.03102736920118332, 0.016022183001041412, -0.03332899510860443, 0.08057481050491333, -0.002303857821971178, -0.03484557196497917, 0.008385775610804558, -0.03868161886930466, -0.020518386736512184, -0.0006562538328580558, 0.03431031107902527, -0.024318747222423553, 0.06241157650947571, -0.021249910816550255, 0.01914454624056816, 0.02085738629102707, -0.036897409707307816, -0.00498239928856492, 0.05552453547716141, -0.00393194705247879, -0.06266136467456818, -0.052384331822395325, -0.004224111326038837, -0.006267028860747814, -0.024158168584108353, -0.009161905385553837, 0.00581651646643877, -0.0019447861704975367, -0.055203378200531006, -0.012221821583807468, -0.00933140516281128, -0.02075033262372017, -0.011508137919008732, 0.0013559976359829307, 0.048316337168216705, 0.04285666346549988, -0.010062930174171925, 0.026210008189082146, 0.07101146131753922, -0.0023261604364961386, -0.0003897378337569535, -0.033239785581827164, -0.024158168584108353, 0.004647860303521156, -0.04885160177946091, -0.0016303196316584945, 0.00009387997852172703, 0.07108282297849655, 0.05673779919743538, 0.0013515371829271317, 0.013675950467586517, 0.033453889191150665, -0.01960843987762928, 0.030028212815523148, -0.015469078905880451, -0.02753032185137272, 0.02544279955327511, -0.034185416996479034, -0.009041471406817436, -0.036058831959962845, 0.0412151925265789, 0.00015751206956338137, -0.012507294304668903, -0.0020919833332300186, -0.01322097796946764, 0.007997710257768631, 0.015281736850738525, 0.0679069384932518, 0.04542592167854309, -0.0735093504190445, -0.030795421451330185, -0.007346474565565586, 0.0690845176577568, 0.04139361530542374, -0.013051478192210197, 0.02654900774359703, -0.0032584089785814285, -0.019840387627482414, 0.030117422342300415, -0.04385581985116005, 0.07807692140340805, 0.04596118628978729, 0.009795298799872398, -0.026531165465712547, -0.01116021815687418, -0.02701290138065815, 0.031098736450076103, 0.028761424124240875, -0.013149608857929707, 0.023926222696900368, 0.03771814703941345, -0.025175167247653008, 0.020786017179489136, -0.027262689545750618, -0.006030621472746134, 0.021107174456119537, 0.04249982163310051, -0.01876986213028431, -0.016316577792167664, -0.04064424708485603, -0.011695479974150658, -0.027762267738580704, 0.006713080685585737, 0.0006540235481224954, 0.07950428873300552, -0.04574707895517349, 0.008805063553154469, -0.03985919430851936, -0.021892225369811058, -0.03807498887181282, -0.06601567566394806, 0.033346839249134064, -0.04271392896771431, -0.041179507970809937, -0.008238578215241432, -0.021356964483857155, 0.0058745029382407665, -0.06851356476545334, 0.018627125769853592, -0.057487163692712784, 0.006262568291276693, -0.021035807207226753, -0.0065971072763204575, 0.023587223142385483, 0.010500061325728893, -0.001971549354493618, 0.005151899065822363, 0.004308861214667559, -0.04578276351094246, 0.01846654713153839, -0.024176010861992836, -0.009023629128932953, 0.004741531331092119, -0.045247502624988556, 0.017966968938708305, -0.027922846376895905, -0.025068115442991257, 0.005125136114656925, 0.004003315698355436, -0.015486921183764935, -0.0400376170873642, -0.05049307271838188, 0.028904160484671593, 0.020946595817804337, 0.026780953630805016, -0.0010303797898814082, 0.0068067517131567, 0.07218903303146362, -0.009902351535856724, -0.028743581846356392, 0.01928728260099888, -0.03083110600709915, 0.06212610378861427, 0.05356190726161003, -0.009741772897541523, 0.03525593876838684, 0.004206269048154354, 0.009715009480714798, 0.0049779387190938, -0.047281499952077866, -0.009518747217953205, -0.028119109570980072, -0.02936805598437786, 0.01971549354493618, -0.01955491490662098, -0.05812947824597359, 0.07529355585575104, 0.026888007298111916, -0.01116021815687418, 0.023444486781954765, -0.036790359765291214, -0.0025023510679602623, -0.07140398025512695, -0.030991684645414352, -0.0205005444586277, 0.0023350815754383802, -0.05570295825600624, -0.053847383707761765, 0.03127715736627579, -0.028814950957894325, -0.055774327367544174, 0.03557709604501724, 0.015174685046076775, -0.05784400552511215, 0.005557806231081486, 0.014505607075989246, 0.016914287582039833, -0.029921159148216248, 0.05217022821307182, -0.006949488073587418, 0.0015701026422902942, -0.051242440938949585, 0.027762267738580704, 0.023587223142385483, 0.10455455631017685, 0.022605909034609795, 0.005986016243696213, -0.014987342990934849, 0.017877759411931038, -0.007881736382842064, -0.00002496845081623178, -0.055774327367544174, 0.009068234823644161, -0.015139000490307808, 0.026317059993743896, 0.019376493990421295, -0.003726763417944312, -0.06733599305152893, 0.04053719341754913, -0.047067392617464066, -0.03975214436650276, 0.026210008189082146, -0.030991684645414352, -0.04653213173151016, -0.0055176615715026855, 0.0732952430844307, 0.053490541875362396, 0.034078363329172134, -0.01475539617240429, 0.029742738232016563, -0.03484557196497917, -0.06273273378610611, 0.006757685914635658, -0.0025424957275390625, -0.034131888300180435, 0.0267987959086895, -0.00802893377840519, -0.014532369561493397, 0.009741772897541523, 0.037111517041921616, 0.01491597481071949, 0.018216758966445923, -0.02597806043922901, 0.03811067342758179, -0.018502231687307358, -0.01857360079884529, 0.006093068514019251, -0.03249041736125946, -0.026566850021481514, -0.008314406499266624, 0.013970344327390194, -0.04567571356892586, -0.033810731023550034, -0.04267824441194534, 0.01914454624056816, -0.02790500596165657, -0.032882943749427795, 0.04125087708234787, -0.046746235340833664, -0.05638095736503601, 0.006601567845791578, -0.011481375433504581, 0.038503196090459824, -0.04335624352097511, 0.048102233558893204, 0.04903002083301544, 0.02893984504044056, 0.03015310689806938, 0.008416999131441116, 0.06126968562602997, -0.009563351981341839, -0.0041304402984678745, 0.04092971980571747, 0.0685492530465126, -0.004795057699084282, -0.03020663373172283, 0.025942377746105194, -0.05095696449279785, -0.027869321405887604, 0.014264739118516445, 0.03488125652074814, 0.01659313030540943, -0.018841231241822243 ]
37,732
healpy.sphtfunc
smoothalm
Smooth alm with a Gaussian symmetric beam function. Parameters ---------- alms : array or sequence of 3 arrays Either an array representing one alm, or a sequence of arrays. See *pol* parameter. fwhm : float, optional The full width half max parameter of the Gaussian. Default:0.0 [in radians] sigma : float, optional The sigma of the Gaussian. Override fwhm. [in radians] beam_window: array, optional Custom beam window function. Override fwhm and sigma. pol : bool, optional If True, assumes input alms are TEB. Output will be TQU maps. (input must be 1 or 3 alms) If False, apply spin 0 harmonic transform to each alm. (input can be any number of alms) If there is only one input alm, it has no effect. Default: True. mmax : None or int, optional The maximum m for alm. Default: mmax=lmax inplace : bool, optional If True, the alm's are modified inplace if they are contiguous arrays of type complex128. Otherwise, a copy of alm is made. Default: True. verbose : bool, optional Deprecated, has not effect. Returns ------- alms : array or sequence of 3 arrays The smoothed alm. If alm[i] is a contiguous array of type complex128, and *inplace* is True the smoothing is applied inplace. Otherwise, a copy is made.
def synalm(cls, lmax=None, mmax=None, new=False, verbose=True): """Generate a set of alm given cl. The cl are given as a float array. Corresponding alm are generated. If lmax is None, it is assumed lmax=cl.size-1 If mmax is None, it is assumed mmax=lmax. Parameters ---------- cls : float, array or tuple of arrays Either one cl (1D array) or a tuple of either 4 cl or of n*(n+1)/2 cl. Some of the cl may be None, implying no cross-correlation. See *new* parameter. lmax : int, scalar, optional The lmax (if None or <0, the largest size-1 of cls) mmax : int, scalar, optional The mmax (if None or <0, =lmax) new : bool, optional If True, use the new ordering of cl's, ie by diagonal (e.g. TT, EE, BB, TE, EB, TB or TT, EE, BB, TE if 4 cl as input). If False, use the old ordering, ie by row (e.g. TT, TE, TB, EE, EB, BB or TT, TE, EE, BB if 4 cl as input). Returns ------- alms : array or list of arrays the generated alm if one spectrum is given, or a list of n alms (with n(n+1)/2 the number of input cl, or n=3 if there are 4 input cl). Notes ----- We don't plan to change the default order anymore, that would break old code in a way difficult to debug. """ if not cb.is_seq(cls): raise TypeError("cls must be an array or a sequence of arrays") if not cb.is_seq_of_seq(cls, True): # Only one spectrum if lmax is None or lmax < 0: lmax = len(cls) - 1 if mmax is None or mmax < 0: mmax = lmax cls_list = [np.asarray(cls, dtype=np.float64)] szalm = Alm.getsize(lmax, mmax) alm = np.zeros(szalm, "D") alm.real = np.random.standard_normal(szalm) alm.imag = np.random.standard_normal(szalm) alms_list = [alm] sphtlib._synalm(cls_list, alms_list, lmax, mmax) return alm # From here, we interpret cls as a list of spectra cls_list = list(cls) maxsize = max([len(c) for c in cls if c is not None]) if lmax is None or lmax < 0: lmax = maxsize - 1 if mmax is None or mmax < 0: mmax = lmax Nspec = sphtlib._getn(len(cls_list)) if Nspec <= 0: if len(cls_list) == 4: if new: ## new input order: TT EE BB TE -> TT EE BB TE 0 0 cls_list = [cls[0], cls[1], cls[2], cls[3], None, None] else: ## old input order: TT TE EE BB -> TT TE 0 EE 0 BB cls_list = [cls[0], cls[1], None, cls[2], None, cls[3]] Nspec = 3 else: raise TypeError( "The sequence of arrays must have either 4 elements " "or n(n+1)/2 elements (some may be None)" ) szalm = Alm.getsize(lmax, mmax) alms_list = [] for i in range(Nspec): alm = np.zeros(szalm, "D") alm.real = np.random.standard_normal(szalm) alm.imag = np.random.standard_normal(szalm) alms_list.append(alm) if new: # new input order: input given by diagonal, should be given by row cls_list = new_to_old_spectra_order(cls_list) # ensure cls are float64 cls_list = [ (np.asarray(cl, dtype=np.float64) if cl is not None else None) for cl in cls_list ] sphtlib._synalm(cls_list, alms_list, lmax, mmax) return np.array(alms_list)
(alms, fwhm=0.0, sigma=None, beam_window=None, pol=True, mmax=None, verbose=True, inplace=True)
[ 0.0000487723846163135, 0.025608183816075325, 0.06709463894367218, -0.03255243971943855, -0.012515577487647533, -0.012943374924361706, -0.046759311109781265, -0.044292010366916656, -0.023021498695015907, 0.07549141347408295, -0.062000855803489685, -0.0019922449719160795, 0.031975410878658295, 0.013291582465171814, 0.005939427297562361, 0.03832273557782173, -0.03056268021464348, 0.0065910727716982365, -0.015818575397133827, -0.0030816374346613884, 0.022683240473270416, 0.05296735465526581, -0.02751835063099861, 0.023837300017476082, 0.028572922572493553, 0.04648074507713318, 0.01637570746243, -0.0021452077198773623, -0.056469328701496124, -0.0334080345928669, 0.02324037253856659, 0.0350993275642395, 0.026682652533054352, -0.008914114907383919, 0.02789640612900257, -0.06343348324298859, 0.026145419105887413, -0.012674757279455662, -0.09534920006990433, 0.0390191525220871, 0.06430897116661072, -0.048470500856637955, 0.07592915743589401, 0.015142057090997696, 0.007551131304353476, 0.045087914913892746, 0.01812669448554516, 0.05260919779539108, -0.10052257031202316, -0.015778779983520508, 0.015530060045421124, -0.09320025891065598, 0.011500800959765911, 0.00502662593498826, -0.022842420265078545, 0.07557100057601929, -0.00852113775908947, -0.01646524667739868, 0.04150635004043579, -0.03714878112077713, 0.021429691463708878, -0.021767951548099518, 0.042859382927417755, -0.02391688898205757, 0.0038651046343147755, -0.03024432063102722, -0.04966435581445694, 0.02532961778342724, 0.01992742531001568, 0.057344820350408554, -0.05113677680492401, 0.034522298723459244, 0.025827057659626007, -0.021966926753520966, 0.04560524970293045, 0.010043302550911903, -0.03442281112074852, -0.02696121856570244, 0.0045142630115151405, -0.020295530557632446, -0.004954497329890728, 0.04966435581445694, 0.019817989319562912, 0.031895820051431656, -0.04250122979283333, 0.021429691463708878, -0.000949487613979727, -0.005113677587360144, -0.06518446654081345, -0.08699221163988113, -0.00018700615328270942, 0.015798676759004593, 0.01537087932229042, 0.036830417811870575, -0.0687660351395607, 0.029070362448692322, -0.04783377796411514, -0.04262061417102814, 0.055753014981746674, -0.004238184075802565, -0.0127543481066823, -0.0020270657259970903, 0.06482630968093872, 0.045207299292087555, -0.015778779983520508, -0.017977463081479073, -0.03259223327040672, 0.010063200257718563, -0.042700204998254776, 0.062040649354457855, 0.006392097100615501, 0.0828535184264183, 0.008993705734610558, 0.02672244794666767, 0.0042655435390770435, -0.038342636078596115, 0.011948496103286743, 0.0430583618581295, -0.03782529756426811, 0.006113531067967415, -0.0070835379883646965, -0.002556838793680072, -0.02471279352903366, -0.024135762825608253, 0.050977595150470734, -0.014913234859704971, 0.023678118363022804, -0.023518938571214676, 0.05053985118865967, -0.024692894890904427, -0.027398966252803802, 0.019022084772586823, -0.03233356401324272, 0.05439998209476471, -0.007068614941090345, -0.026244906708598137, 0.003922310192137957, -0.040093619376420975, -0.039934441447257996, -0.05583260580897331, -0.014584925025701523, 0.06625893712043762, 0.05451936647295952, 0.01082428265362978, -0.042859382927417755, 0.023797504603862762, 0.033348340541124344, -0.026523472741246223, -0.033189162611961365, 0.05547444894909859, -0.02513064257800579, -0.0477541908621788, 0.057225435972213745, 0.05921519547700882, -0.019032033160328865, -0.0334080345928669, -0.038004375994205475, -0.013898458331823349, -0.01992742531001568, 0.011928598396480083, -0.06844767183065414, -0.04059106111526489, -0.02186743915081024, 0.013301531784236431, -0.0227031372487545, -0.021509282290935516, -0.023797504603862762, 0.002055668504908681, -0.015022671781480312, 0.007720260415226221, -0.027757123112678528, -0.05089800804853439, -0.04059106111526489, -0.052410222589969635, -0.006819895002990961, -0.009849301539361477, -0.030085138976573944, -0.024553611874580383, 0.025787262246012688, 0.010565614327788353, -0.011053104884922504, 0.03217438608407974, 0.02425514906644821, -0.04250122979283333, -0.010883975774049759, 0.04385426267981529, -0.014336205087602139, -0.009864225052297115, -0.03446260467171669, -0.00040074967546388507, -0.007118358742445707, -0.0012871245853602886, -0.029866265133023262, 0.021449590101838112, 0.015261443331837654, -0.013112504035234451, -0.06112536042928696, 0.05121636763215065, 0.031179506331682205, 0.036034516990184784, -0.02672244794666767, 0.041944097727537155, 0.024971460923552513, -0.02638418972492218, 0.050778619945049286, -0.03806406632065773, 0.025110743939876556, -0.01692289113998413, -0.02710050158202648, 0.006581124383956194, 0.05153472721576691, 0.014236717484891415, -0.015261443331837654, -0.017350688576698303, 0.031179506331682205, -0.03655185177922249, 0.0842861458659172, 0.02509084716439247, 0.0089389868080616, -0.008446522057056427, -0.03589523211121559, -0.014833644963800907, -0.05766318365931511, 0.03609420731663704, -0.05694686993956566, 0.007043743040412664, 0.00948617048561573, 0.03426362946629524, -0.010237304493784904, -0.017231302335858345, -0.029886163771152496, -0.01595785841345787, 0.010023404844105244, -0.006123479921370745, -0.03507943078875542, 0.06391102075576782, 0.01178931538015604, 0.05455916002392769, -0.0411083959043026, 0.034780967980623245, -0.01875346712768078, -0.017529767006635666, -0.004230722784996033, 0.03647226095199585, -0.04234204813838005, 0.05997130274772644, 0.01319209486246109, 0.04472975805401802, -0.0477541908621788, 0.024991359561681747, -0.04317774623632431, -0.01704227551817894, 0.019867733120918274, 0.004529186524450779, 0.023459244519472122, 0.008356982842087746, -0.03386567905545235, -0.01855449192225933, 0.02491176873445511, -0.09065336734056473, 0.00056521559599787, 0.011630134657025337, 0.04226245731115341, 0.06403040885925293, -0.06534364819526672, -0.0019561806693673134, 0.01880321279168129, 0.022265391424298286, -0.0505000539124012, 0.01984783448278904, -0.06864664703607559, 0.0711139440536499, -0.056270353496074677, -0.016763709485530853, 0.0013493045698851347, 0.06239880621433258, 0.029428519308567047, -0.054081618785858154, -0.0027209939435124397, -0.007580977398902178, 0.015360930934548378, -0.0034497426822781563, 0.002400145400315523, -0.0023093626368790865, -0.004827650263905525, -0.00020581558055710047, -0.015420623123645782, -0.015460418537259102, 0.02035522274672985, -0.021290408447384834, 0.058061134070158005, -0.016723914071917534, 0.02767753228545189, -0.049903128296136856, 0.11134684830904007, -0.04711746796965599, -0.05388264358043671, 0.003014483256265521, 0.008894218131899834, -0.03002544678747654, -0.004185953177511692, -0.018614184111356735, 0.08715139329433441, -0.010416382923722267, -0.02706070803105831, -0.07736178487539291, -0.043615493923425674, -0.027916302904486656, 0.05666830390691757, 0.0056658354587852955, 0.0076506189070641994, 0.0696813240647316, -0.017281047999858856, -0.03866099566221237, -0.016514990478754044, 0.05686727911233902, -0.01459487434476614, 0.016674170270562172, 0.06701504439115524, 0.06808951497077942, -0.027836712077260017, 0.019499627873301506, -0.02672244794666767, -0.013112504035234451, 0.05786215886473656, -0.054081618785858154, 0.019967220723628998, -0.01633591204881668, -0.02290211245417595, -0.01695273630321026, -0.03547738119959831, -0.018355516716837883, -0.006954203825443983, 0.021509282290935516, -0.006287634838372469, 0.020593993365764618, 0.03195551037788391, -0.042023684829473495, 0.0434563122689724, -0.055593833327293396, 0.020872559398412704, 0.07187005132436752, -0.03149786591529846, 0.0439736507833004, -0.01868382655084133, 0.013241838663816452, 0.018067002296447754, -0.002083027735352516, -0.048430707305669785, -0.037288062274456024, 0.017310893163084984, -0.06243860349059105, -0.005586245097219944, 0.023459244519472122, 0.054002027958631516, 0.06088659167289734, -0.004805265460163355, -0.022185800597071648, -0.014147178269922733, -0.059732530266046524, 0.01582852378487587, 0.01683335192501545, -0.01484359335154295, 0.009426478296518326, -0.03287079930305481, -0.0016104602254927158, -0.020991945639252663, -0.05432039126753807, 0.026563268154859543, -0.049982719123363495, -0.0026414035819470882, -0.045167502015829086, 0.01457497663795948, 0.023757709190249443, -0.007317334413528442, 0.0602896623313427, -0.024095967411994934, -0.001969860401004553, -0.0012417333200573921, 0.021588873118162155, 0.027617840096354485, 0.020593993365764618, 0.04743582755327225, 0.014545130543410778, 0.041148193180561066, -0.010013456456363201, 0.020991945639252663, 0.03748703747987747, -0.03245295211672783, 0.03559676930308342, 0.05981212109327316, -0.02483217790722847, 0.0000923371990211308, -0.06860685348510742, -0.027120400220155716, 0.04735623672604561, -0.02960759773850441, 0.05499690771102905, -0.04174511879682541, -0.02018609456717968, 0.001514703151769936, -0.021668463945388794, 0.04150635004043579, -0.012047983705997467, -0.048430707305669785, -0.053285714238882065, 0.05909580737352371, -0.05046026036143303, -0.0635528638958931, -0.011600288562476635, 0.013470660895109177, 0.04819193482398987, -0.018405260518193245, -0.0021663489751517773, 0.04075024276971817, 0.021807746961712837, -0.018435107544064522, -0.002531966893002391, 0.02964739315211773, 0.05654891952872276, 0.060528434813022614, 0.036034516990184784, 0.013878561556339264, 0.05022148787975311, 0.08818607032299042, -0.0035591793712228537, -0.03541769087314606, 0.002010899130254984, -0.06669668108224869, -0.044451192021369934, 0.05694686993956566, 0.02956780232489109, -0.007451643235981464, -0.029070362448692322, -0.0392778217792511, -0.004151132423430681, -0.012485730461776257, 0.02069348283112049, -0.0028080458287149668, -0.040173210203647614, 0.016445348039269447, -0.037288062274456024, -0.0425410233438015, 0.01876341737806797, -0.020932253450155258, -0.07823728024959564, 0.012535474263131618, -0.02168836072087288, 0.00862560048699379, -0.016614478081464767, -0.00041629464249126613, 0.04743582755327225, -0.0190519317984581, 0.04612258821725845, 0.09662264585494995, -0.027020912617444992, 0.07246698439121246, -0.029547903686761856, -0.03673093020915985, -0.018912648782134056, -0.010585512034595013, -0.01959911547601223, 0.04166553169488907, 0.03722836822271347, 0.03981505334377289, 0.01545047014951706, 0.020166195929050446, -0.001215617754496634, -0.04297877103090286, -0.04098901152610779, 0.036452364176511765, -0.0308611448854208, 0.027777019888162613, 0.014256615191698074, -0.001846743980422616, -0.029707085341215134, 0.022543957456946373, -0.0035392818972468376, -0.05034087598323822, -0.02312098629772663, 0.05925498902797699, 0.01633591204881668, -0.017748640850186348, -0.030264217406511307, -0.009162834845483303, 0.03734775632619858, -0.0009239938226528466, -0.04325733706355095, 0.010486024431884289, 0.0056409635581076145, -0.012475782074034214, 0.02131030708551407, 0.005954350344836712, 0.06287635117769241, 0.006799997761845589, 0.030284114181995392, 0.05853867530822754, -0.03981505334377289, 0.027418863028287888, 0.04472975805401802, 0.0381038635969162, -0.04082982987165451, -0.06900480389595032, -0.00588470883667469, 0.03563656285405159, -0.002919969614595175, -0.042063482105731964, -0.0425410233438015, -0.029448416084051132, 0.07700362801551819, -0.025528592988848686, -0.042739998549222946, 0.003571615321561694, -0.0006106069195084274, 0.03078155405819416, -0.01855449192225933, -0.019738398492336273, -0.03316926211118698, 0.034701377153396606, 0.058817241340875626, -0.0011248349910601974, 0.020295530557632446, -0.0865146741271019, -0.006695535033941269, -0.028712205588817596, 0.01833561807870865, -0.023399552330374718, -0.037208471447229385, 0.042023684829473495, 0.010635255835950375, 0.018037155270576477, -0.03492024913430214, -0.008332110941410065, 0.08619631081819534, -0.0010278342524543405, 0.027538249269127846, -0.029368827119469643, -0.015719087794423103, 0.07091496884822845, -0.06251819431781769, -0.00029022485250607133, 0.0021315282210707664, 0.007680465467274189, 0.015291289426386356, 0.002880174433812499, -0.0034422811586409807, 0.008595754392445087, -0.022922011092305183, 0.00046013150131329894, 0.022424571216106415, -0.02115112543106079, -0.021887335926294327, 0.005954350344836712, 0.025488797575235367, 0.010525818914175034, -0.02073327638208866, 0.041187986731529236, -0.04783377796411514, -0.023678118363022804, 0.018116746097803116, -0.03302998095750809, 0.02006670832633972, -0.044888935983181, -0.028194868937134743, 0.0007735183462500572, -0.016156833618879318, 0.07915256917476654, 0.03919823095202446, 0.0036611545365303755, 0.00030219447216950357, -0.04098901152610779, 0.03685031458735466, -0.070715993642807, 0.017390483990311623, -0.039218127727508545, 0.06140392646193504, 0.007869492284953594, -0.016186680644750595, -0.02206641435623169, -0.06932316720485687, 0.044371601194143295, 0.027796916663646698, -0.02395668439567089, -0.027080604806542397, 0.05690707638859749, -0.040551263839006424, -0.04799295961856842, -0.005078856833279133, -0.06832828372716904, -0.011381414718925953, -0.02252405881881714, 0.057265233248472214, -0.015758883208036423, 0.0025742491707205772, -0.03840232640504837, 0.024434227496385574, 0.023976583033800125, 0.0017049737507477403, -0.00915288645774126, 0.04421241953969002, 0.0026787114329636097, 0.059652939438819885, -0.04234204813838005, 0.00407402915880084, 0.056509122252464294, -0.03143817558884621, 0.013281634077429771, -0.06657730042934418, -0.02771732769906521, 0.005939427297562361, -0.008973808027803898, 0.05495711416006088, 0.02240467444062233, -0.03133868798613548, 0.03263203054666519, -0.04433180391788483, -0.04472975805401802, 0.036571748554706573, 0.06673648208379745, -0.003735770471394062, 0.04059106111526489, 0.018743518739938736, -0.01863408274948597, -0.02324037253856659, -0.04572463780641556, 0.019439933821558952, -0.04317774623632431, -0.01141126174479723, 0.03217438608407974, -0.04858988896012306, 0.02608572505414486, -0.036372773349285126, 0.06880582869052887, 0.004879881162196398, 0.013241838663816452, -0.04799295961856842, -0.0006808702601119876, 0.05511629208922386, 0.033268753439188004, 0.02706070803105831, -0.04258081689476967, 0.011451056227087975, 0.040053825825452805, -0.03496004641056061, 0.018663929775357246, -0.023459244519472122, -0.009754788130521774, 0.006148351822048426, 0.0067005096934735775, 0.0010216162772849202, -0.002880174433812499, 0.004370005801320076, -0.0434563122689724, 0.03271161764860153, 0.007486463990062475, -0.06769156455993652, 0.024613304063677788, 0.005755374673753977, 0.0280555859208107, -0.012256908230483532, -0.004638622980564833, 0.02065368741750717, 0.020215939730405807, -0.058896832168102264, 0.011709725484251976, -0.0036188720259815454, 0.04059106111526489, 0.013311480171978474, 0.004153619520366192, 0.011053104884922504, -0.049226608127355576, 0.0010551934828981757, 0.0011739571345970035, -0.010023404844105244, -0.005437013227492571, -0.028155073523521423, 0.013341326266527176, -0.021051637828350067, 0.05750400200486183, -0.02600613608956337, -0.018375413492321968, 0.027757123112678528, 0.001943744719028473, -0.04743582755327225, -0.017480023205280304, 0.027080604806542397, 0.01833561807870865, -0.013401019386947155, -0.004434672649949789, -0.05439998209476471, 0.015221647918224335, 0.033228956162929535, 0.01658463105559349, -0.016524938866496086, 0.031557559967041016, 0.06828849017620087, -0.01440584659576416, -0.01360994391143322, -0.01817643828690052, 0.018226182088255882, 0.04946538060903549, 0.006188146770000458, -0.06176208332180977, 0.02282252348959446, -0.022882215678691864, 0.04461036995053291, -0.0024362097028642893, 0.04158594086766243, -0.036830417811870575, 0.0027458658441901207, 0.016654273495078087, 0.06339368224143982, 0.019360344856977463, 0.04986333101987839, 0.020753175020217896, -0.11190398037433624, 0.05917539820075035, 0.036790624260902405, -0.019867733120918274, 0.025986237451434135, 0.003156253369525075, 0.01459487434476614, 0.03279120847582817, -0.011421210132539272, 0.006128454115241766, 0.04560524970293045, 0.014833644963800907, 0.04974394664168358, 0.034780967980623245, -0.07779953628778458, -0.00723276985809207, -0.0015134596033021808, 0.007630721665918827, 0.0566285103559494, -0.016694068908691406, -0.013142351061105728, -0.03824314475059509, -0.042739998549222946, -0.01930065080523491, 0.012047983705997467, -0.05177349969744682, 0.005566347856074572, 0.014962979592382908, 0.00011285657819826156, -0.0846840962767601, -0.023041395470499992, 0.013530354015529156, 0.016554785892367363, -0.0027408914174884558, -0.046838901937007904, 0.01758945919573307, -0.046878695487976074, 0.0017410381697118282, 0.036910008639097214, 0.0350993275642395, -0.009615505114197731, 0.06088659167289734, -0.05833970010280609, 0.05057964473962784, -0.07063640654087067, -0.005551424343138933, -0.02119092084467411, 0.06562221795320511, 0.0481521412730217, -0.04025280103087425, 0.0044694934040308, 0.003919823095202446, -0.03840232640504837 ]
37,733
healpy.sphtfunc
smoothing
Smooth a map with a Gaussian symmetric beam. No removal of monopole or dipole is performed. Parameters ---------- map_in : array or sequence of 3 arrays Either an array representing one map, or a sequence of 3 arrays representing 3 maps, accepts masked arrays fwhm : float, optional The full width half max parameter of the Gaussian [in radians]. Default:0.0 sigma : float, optional The sigma of the Gaussian [in radians]. Override fwhm. beam_window: array, optional Custom beam window function. Override fwhm and sigma. pol : bool, optional If True, assumes input maps are TQU. Output will be TQU maps. (input must be 1 or 3 alms) If False, each map is assumed to be a spin 0 map and is treated independently (input can be any number of alms). If there is only one input map, it has no effect. Default: True. iter : int, scalar, optional Number of iteration (default: 3) lmax : int, scalar, optional Maximum l of the power spectrum. Default: 3*nside-1 mmax : int, scalar, optional Maximum m of the alm. Default: lmax use_weights: bool, scalar, optional If True, use the ring weighting. Default: False. use_pixel_weights: bool, optional If True, use pixel by pixel weighting, healpy will automatically download the weights, if needed See the map2alm docs for details about weighting datapath : None or str, optional If given, the directory where to find the pixel weights data. See the docstring of `map2alm` for details on how to set it up verbose : bool, optional Deprecated, has not effect. nest : bool, optional If True, the input map ordering is assumed to be NESTED. Default: False (RING) This function will temporary reorder the NESTED map into RING to perform the smoothing and order the output back to NESTED. If the map is in RING ordering no internal reordering will be performed. Returns ------- maps : array or list of 3 arrays The smoothed map(s)
def synalm(cls, lmax=None, mmax=None, new=False, verbose=True): """Generate a set of alm given cl. The cl are given as a float array. Corresponding alm are generated. If lmax is None, it is assumed lmax=cl.size-1 If mmax is None, it is assumed mmax=lmax. Parameters ---------- cls : float, array or tuple of arrays Either one cl (1D array) or a tuple of either 4 cl or of n*(n+1)/2 cl. Some of the cl may be None, implying no cross-correlation. See *new* parameter. lmax : int, scalar, optional The lmax (if None or <0, the largest size-1 of cls) mmax : int, scalar, optional The mmax (if None or <0, =lmax) new : bool, optional If True, use the new ordering of cl's, ie by diagonal (e.g. TT, EE, BB, TE, EB, TB or TT, EE, BB, TE if 4 cl as input). If False, use the old ordering, ie by row (e.g. TT, TE, TB, EE, EB, BB or TT, TE, EE, BB if 4 cl as input). Returns ------- alms : array or list of arrays the generated alm if one spectrum is given, or a list of n alms (with n(n+1)/2 the number of input cl, or n=3 if there are 4 input cl). Notes ----- We don't plan to change the default order anymore, that would break old code in a way difficult to debug. """ if not cb.is_seq(cls): raise TypeError("cls must be an array or a sequence of arrays") if not cb.is_seq_of_seq(cls, True): # Only one spectrum if lmax is None or lmax < 0: lmax = len(cls) - 1 if mmax is None or mmax < 0: mmax = lmax cls_list = [np.asarray(cls, dtype=np.float64)] szalm = Alm.getsize(lmax, mmax) alm = np.zeros(szalm, "D") alm.real = np.random.standard_normal(szalm) alm.imag = np.random.standard_normal(szalm) alms_list = [alm] sphtlib._synalm(cls_list, alms_list, lmax, mmax) return alm # From here, we interpret cls as a list of spectra cls_list = list(cls) maxsize = max([len(c) for c in cls if c is not None]) if lmax is None or lmax < 0: lmax = maxsize - 1 if mmax is None or mmax < 0: mmax = lmax Nspec = sphtlib._getn(len(cls_list)) if Nspec <= 0: if len(cls_list) == 4: if new: ## new input order: TT EE BB TE -> TT EE BB TE 0 0 cls_list = [cls[0], cls[1], cls[2], cls[3], None, None] else: ## old input order: TT TE EE BB -> TT TE 0 EE 0 BB cls_list = [cls[0], cls[1], None, cls[2], None, cls[3]] Nspec = 3 else: raise TypeError( "The sequence of arrays must have either 4 elements " "or n(n+1)/2 elements (some may be None)" ) szalm = Alm.getsize(lmax, mmax) alms_list = [] for i in range(Nspec): alm = np.zeros(szalm, "D") alm.real = np.random.standard_normal(szalm) alm.imag = np.random.standard_normal(szalm) alms_list.append(alm) if new: # new input order: input given by diagonal, should be given by row cls_list = new_to_old_spectra_order(cls_list) # ensure cls are float64 cls_list = [ (np.asarray(cl, dtype=np.float64) if cl is not None else None) for cl in cls_list ] sphtlib._synalm(cls_list, alms_list, lmax, mmax) return np.array(alms_list)
(map_in, fwhm=0.0, sigma=None, beam_window=None, pol=True, iter=3, lmax=None, mmax=None, use_weights=False, use_pixel_weights=False, datapath=None, verbose=True, nest=False)
[ 0.000022288304535322823, 0.0256089698523283, 0.0671364888548851, -0.03251364082098007, -0.012486114166676998, -0.012973619624972343, -0.04676074534654617, -0.044333167374134064, -0.023022204637527466, 0.07545393705368042, -0.06204255670309067, -0.002074386226013303, 0.03197639063000679, 0.013321838341653347, 0.005939609836786985, 0.03830401599407196, -0.030623313039541245, 0.006536555476486683, -0.01583895832300186, -0.0030493976082652807, 0.022664038464426994, 0.05292918533086777, -0.027539094910025597, 0.023818133398890495, 0.028553903102874756, 0.04644237458705902, 0.01635631173849106, -0.0021328371949493885, -0.05647106096148491, -0.03342895954847336, 0.023241085931658745, 0.035140201449394226, 0.026643676683306694, -0.00893428735435009, 0.027877364307641983, -0.06347522139549255, 0.026126323267817497, -0.012695045210421085, -0.09527253359556198, 0.03900045156478882, 0.0643109455704689, -0.04847199097275734, 0.07597129046916962, 0.01519226748496294, 0.007581210229545832, 0.045129094272851944, 0.018157098442316055, 0.052610814571380615, -0.10052565485239029, -0.015779264271259308, 0.015560383908450603, -0.09328271448612213, 0.011511102318763733, 0.005031754728406668, -0.022843122482299805, 0.07553353160619736, -0.008521399460732937, -0.0164955984801054, 0.041467826813459396, -0.03714992105960846, 0.021390553563833237, -0.02180841565132141, 0.04286070168018341, -0.023897726088762283, 0.003870197804644704, -0.030225349590182304, -0.04962608590722084, 0.025330396369099617, 0.01994793489575386, 0.057386379688978195, -0.05117814242839813, 0.03450345993041992, 0.025847747921943665, -0.021967601031064987, 0.045566853135824203, 0.010073458775877953, -0.03444376587867737, -0.026902351528406143, 0.004464656114578247, -0.02025635726749897, -0.004959623795002699, 0.04966588318347931, 0.019838495180010796, 0.03189679980278015, -0.04250253364443779, 0.02141045220196247, -0.0009930439991876483, -0.005108860321342945, -0.06514666974544525, -0.08699488639831543, -0.00017131098138634115, 0.015819061547517776, 0.01532160583883524, 0.03689124435186386, -0.06872835010290146, 0.029031459242105484, -0.047835249453783035, -0.04254233092069626, 0.055834319442510605, -0.004193543456494808, -0.012764688581228256, -0.0020134481601417065, 0.06486809998750687, 0.04524848237633705, -0.015779264271259308, -0.018017809838056564, -0.032573334872722626, 0.010023713111877441, -0.042661719024181366, 0.0620027594268322, 0.0063773696310818195, 0.08285605907440186, 0.00906362570822239, 0.026723269373178482, 0.004255725536495447, -0.03828411549329758, 0.011938913725316525, 0.04305968061089516, -0.03780655935406685, 0.006143566220998764, -0.007078780792653561, -0.0025594045873731375, -0.024693652987480164, -0.02415640279650688, 0.05093936622142792, -0.0149236423894763, 0.023639049381017685, -0.023539558053016663, 0.050620995461940765, -0.024733450263738632, -0.02737990953028202, 0.01901271939277649, -0.03233455866575241, 0.05436185374855995, -0.007113602943718433, -0.026205915957689285, 0.003932379651814699, -0.0400550551712513, -0.03989586979150772, -0.055874116718769073, -0.014555525965988636, 0.06626097112894058, 0.054560836404561996, 0.010824615135788918, -0.04286070168018341, 0.02379823476076126, 0.033369265496730804, -0.026524286717176437, -0.033229976892471313, 0.055476151406764984, -0.025131413713097572, -0.0477556549012661, 0.05726699158549309, 0.05921701341867447, -0.019042568281292915, -0.03338916227221489, -0.03802543878555298, -0.013849140144884586, -0.019967833533883095, 0.011958812363445759, -0.06848956644535065, -0.04059230536222458, -0.021828314289450645, 0.013351685367524624, -0.022624241188168526, -0.021549738943576813, -0.02379823476076126, 0.001991062657907605, -0.015062929131090641, 0.0076956250704824924, -0.027718178927898407, -0.05089956894516945, -0.04055251181125641, -0.05241183191537857, -0.006825079210102558, -0.00985955260694027, -0.030086062848567963, -0.024554366245865822, 0.025807952508330345, 0.010536091402173042, -0.01101364754140377, 0.03223506733775139, 0.02427579089999199, -0.04250253364443779, -0.010874360799789429, 0.043855611234903336, -0.014326696284115314, -0.009889400564134121, -0.03444376587867737, -0.0004536165506578982, -0.007113602943718433, -0.001308306003920734, -0.029906978830695152, 0.021470146253705025, 0.015232063829898834, -0.013102957978844643, -0.06116703525185585, 0.0512179397046566, 0.031200360506772995, 0.03603561967611313, -0.026683472096920013, 0.041945382952690125, 0.024972228333353996, -0.02636510133743286, 0.05074038356542587, -0.03806523606181145, 0.025111515074968338, -0.016923410817980766, -0.027041640132665634, 0.006576351821422577, 0.05157610774040222, 0.014247103594243526, -0.015281809493899345, -0.01733132265508175, 0.031160565093159676, -0.03657287359237671, 0.08428873121738434, 0.02507171966135502, 0.008964134380221367, -0.008411959744989872, -0.035896334797143936, -0.014883846044540405, -0.05766495317220688, 0.0360754169523716, -0.056988414376974106, 0.007014112081378698, 0.009501385502517223, 0.03422488644719124, -0.010267466306686401, -0.01724178157746792, -0.029926877468824387, -0.015988195315003395, 0.00995406974107027, -0.006143566220998764, -0.03502081334590912, 0.06391298770904541, 0.011819524690508842, 0.054640427231788635, -0.041069865226745605, 0.03484173119068146, -0.01874409429728985, -0.017580050975084305, -0.004198518116027117, 0.036513179540634155, -0.042303550988435745, 0.05997314304113388, 0.013232296332716942, 0.044731128960847855, -0.0477556549012661, 0.02499212697148323, -0.04317907243967056, -0.017052749171853065, 0.019868342205882072, 0.004554198123514652, 0.02344006672501564, 0.008347290568053722, -0.03382692113518715, -0.01852521486580372, 0.024872737005352974, -0.09057655930519104, 0.0005543511360883713, 0.011640440672636032, 0.042223960161209106, 0.06403237581253052, -0.06530585885047913, -0.0019127135165035725, 0.018803788349032402, 0.02224617637693882, -0.05046181008219719, 0.019838495180010796, -0.06868854910135269, 0.0711161270737648, -0.05627208203077316, -0.016744326800107956, 0.001328204176388681, 0.06240072101354599, 0.029429422691464424, -0.05408328026533127, -0.002738488372415304, -0.007551363203674555, 0.015331555157899857, -0.003484670538455248, 0.0023591790813952684, -0.002269637305289507, -0.0048626200295984745, -0.0001539000659249723, -0.015460893511772156, -0.01550068985670805, 0.020355848595499992, -0.021330859512090683, 0.05806291848421097, -0.016704529523849487, 0.02767838165163994, -0.049904659390449524, 0.11135026812553406, -0.04715871065855026, -0.053884297609329224, 0.003024524776265025, 0.008884541690349579, -0.02998657152056694, -0.004210954532027245, -0.018594859167933464, 0.08715406805276871, -0.010386855341494083, -0.02706153877079487, -0.0774039551615715, -0.04361683130264282, -0.027897261083126068, 0.056630246341228485, 0.005680933129042387, 0.0076956250704824924, 0.06968346238136292, -0.01733132265508175, -0.03870197758078575, -0.01653539575636387, 0.056869026273489, -0.014565475285053253, 0.016684632748365402, 0.0670171007514, 0.06805180758237839, -0.02781766839325428, 0.019490277394652367, -0.0267630647867918, -0.013102957978844643, 0.057824138551950455, -0.0540434829890728, 0.020007628947496414, -0.016336413100361824, -0.022843122482299805, -0.016963206231594086, -0.03547847270965576, -0.018375977873802185, -0.006989239249378443, 0.02149004489183426, -0.0062579805962741375, 0.020574728026986122, 0.031956493854522705, -0.04206477478146553, 0.043537240475416183, -0.05555574595928192, 0.020893098786473274, 0.07191205769777298, -0.03151873126626015, 0.043935202062129974, -0.01879383996129036, 0.013272092677652836, 0.0180377084761858, -0.0020445389673113823, -0.04843219369649887, -0.03726930916309357, 0.01729152724146843, -0.06244051828980446, -0.005621238611638546, 0.02344006672501564, 0.05400368571281433, 0.06088846176862717, -0.004832773003727198, -0.022186482325196266, -0.014157561585307121, -0.059734366834163666, 0.015799162909388542, 0.0168139711022377, -0.014844049699604511, 0.00939691998064518, -0.032891709357500076, -0.0015769315650686622, -0.020992590114474297, -0.05436185374855995, 0.026564083993434906, -0.04998425394296646, -0.0026340228505432606, -0.045129094272851944, 0.014575423672795296, 0.02379823476076126, -0.0073523810133337975, 0.06029151380062103, -0.024116605520248413, -0.0019587280694395304, -0.0012187641113996506, 0.021609434857964516, 0.027658483013510704, 0.020634422078728676, 0.047477081418037415, 0.014525678008794785, 0.041109658777713776, -0.00997396744787693, 0.02101248875260353, 0.03750808909535408, -0.0324738472700119, 0.03565755486488342, 0.05985375493764877, -0.024832941591739655, 0.00003744513014680706, -0.06860895454883575, -0.02716102823615074, 0.04735768958926201, -0.02954881079494953, 0.054998595267534256, -0.04178619757294655, -0.02025635726749897, 0.0014911205507814884, -0.021609434857964516, 0.041507624089717865, -0.012088149785995483, -0.04843219369649887, -0.05328735336661339, 0.05913741886615753, -0.05042201280593872, -0.06355481594800949, -0.011620542965829372, 0.013451175764203072, 0.048273008316755295, -0.018415775150060654, -0.0021402989514172077, 0.040711697190999985, 0.021788517013192177, -0.018455570563673973, -0.0025668665766716003, 0.029688099399209023, 0.05651085823774338, 0.06049049645662308, 0.03605552017688751, 0.013859089463949203, 0.05018323287367821, 0.08810918033123016, -0.003571724984794855, -0.03543867543339729, 0.002014691708609462, -0.06665893644094467, -0.04449235275387764, 0.05694861710071564, 0.029608506709337234, -0.007456846535205841, -0.029031459242105484, -0.039298925548791885, -0.00411395076662302, -0.012456267140805721, 0.020733913406729698, -0.0027807720471173525, -0.040174443274736404, 0.0163662601262331, -0.03728920593857765, -0.04250253364443779, 0.018734145909547806, -0.020972691476345062, -0.07827948033809662, 0.012525910511612892, -0.02166912890970707, 0.008591043762862682, -0.016565242782235146, -0.00036936014657840133, 0.047477081418037415, -0.019032618030905724, 0.04612400382757187, 0.09654601663351059, -0.026962047442793846, 0.07246920466423035, -0.029528914019465446, -0.0367121584713459, -0.018893331289291382, -0.010605734772980213, -0.01963951252400875, 0.04162701219320297, 0.0372295118868351, 0.039776481688022614, 0.015460893511772156, 0.020186712965369225, -0.0012734840856865048, -0.04298008978366852, -0.0409504733979702, 0.03649327903985977, -0.030862092971801758, 0.027757974341511726, 0.014316747896373272, -0.001889084349386394, -0.029747793450951576, 0.022524749860167503, -0.003571724984794855, -0.05038221552968025, -0.023141594603657722, 0.05913741886615753, 0.016336413100361824, -0.017759134992957115, -0.030285045504570007, -0.009118345566093922, 0.03732900321483612, -0.0008475385257042944, -0.0432586632668972, 0.010426651686429977, 0.005621238611638546, -0.012446317821741104, 0.021350758150219917, 0.005939609836786985, 0.06287828087806702, 0.006815129891037941, 0.03034473955631256, 0.058540474623441696, -0.03989586979150772, 0.02741970494389534, 0.044731128960847855, 0.03808513656258583, -0.040791288018226624, -0.06904672086238861, -0.005855042487382889, 0.03563765808939934, -0.002957368502393365, -0.0421045683324337, -0.04254233092069626, -0.02944932132959366, 0.07704579085111618, -0.025529377162456512, -0.042701516300439835, 0.0036289324052631855, -0.0005988111370243132, 0.03078250028192997, -0.01852521486580372, -0.019709156826138496, -0.03313048556447029, 0.03468254581093788, 0.05881904810667038, -0.0011335749877616763, 0.020316051319241524, -0.0865173265337944, -0.0066808173432946205, -0.028713088482618332, 0.01830633357167244, -0.02340027131140232, -0.0372295118868351, 0.04202497750520706, 0.010575887747108936, 0.018017809838056564, -0.034961119294166565, -0.00829257071018219, 0.08627855032682419, -0.001067040371708572, 0.027479400858283043, -0.029349830001592636, -0.01564992591738701, 0.07079775631427765, -0.0625201091170311, -0.0002907001180574298, 0.002111695474013686, 0.00765085406601429, 0.015311656519770622, 0.0029076230712234974, -0.003484670538455248, 0.00862586498260498, -0.022942611947655678, 0.0004598347295541316, 0.02246505580842495, -0.02119157277047634, -0.021907906979322433, 0.005939609836786985, 0.025509478524327278, 0.010585837066173553, -0.020773710682988167, 0.04118925333023071, -0.04779545217752457, -0.023718642070889473, 0.0180974043905735, -0.03305089473724365, 0.020107120275497437, -0.04489031434059143, -0.028155937790870667, 0.0008531349012628198, -0.016217024996876717, 0.07919479161500931, 0.039159636944532394, 0.003698576008901, 0.00035194921656511724, -0.04103006795048714, 0.03689124435186386, -0.07075796276330948, 0.017400966957211494, -0.03921933099627495, 0.061405811458826065, 0.007859785109758377, -0.016177227720618248, -0.02206709235906601, -0.069325290620327, 0.0444127582013607, 0.027797771617770195, -0.023937521502375603, -0.027041640132665634, 0.056869026273489, -0.04055251181125641, -0.04803422838449478, -0.005098911002278328, -0.06825079023838043, -0.011381764896214008, -0.022524749860167503, 0.05718739703297615, -0.015779264271259308, 0.002584277419373393, -0.0383836068212986, 0.02441507950425148, 0.023957420140504837, 0.001716218888759613, -0.009093472734093666, 0.044253572821617126, 0.002731026615947485, 0.05965477228164673, -0.042303550988435745, 0.004084103275090456, 0.05647106096148491, -0.03145903721451759, 0.013252194039523602, -0.0666191354393959, -0.027738075703382492, 0.005944584030658007, -0.009008904919028282, 0.05491900444030762, 0.022365564480423927, -0.0313197523355484, 0.032573334872722626, -0.044333167374134064, -0.044691335409879684, 0.036552973091602325, 0.06665893644094467, -0.0037085250951349735, 0.04063210263848305, 0.018734145909547806, -0.018674451857805252, -0.02322118729352951, -0.04568624496459961, 0.019440531730651855, -0.04321886971592903, -0.011411611922085285, 0.032175373286008835, -0.04851178824901581, 0.026066629216074944, -0.036334093660116196, 0.0688079372048378, 0.004914852790534496, 0.013301939703524113, -0.04799443483352661, -0.0006572621059603989, 0.05507818982005119, 0.03328967094421387, 0.027041640132665634, -0.04250253364443779, 0.011481255292892456, 0.0400550551712513, -0.035000916570425034, 0.018644602969288826, -0.02340027131140232, -0.009730215184390545, 0.006153515074402094, 0.006715639028698206, 0.001007345854304731, -0.0028951866552233696, 0.004382576327770948, -0.043457645922899246, 0.03271262347698212, 0.007496642880141735, -0.06769364327192307, 0.024574264883995056, 0.005800322163850069, 0.02807634510099888, -0.012237386777997017, -0.0046611507423222065, 0.02069411799311638, 0.02025635726749897, -0.05893843621015549, 0.01170013565570116, -0.0036363941617310047, 0.04063210263848305, 0.013341736048460007, 0.004106489010155201, 0.011093241162598133, -0.04926791787147522, 0.0010378150036558509, 0.0011379277566447854, -0.010013763792812824, -0.005457078572362661, -0.028195735067129135, 0.013391481712460518, -0.02105228416621685, 0.057465970516204834, -0.025947239249944687, -0.018366029486060143, 0.027837567031383514, 0.0019674336072057486, -0.047437284141778946, -0.01747061125934124, 0.02706153877079487, 0.018326232209801674, -0.013421328738331795, -0.004404961597174406, -0.05436185374855995, 0.015242013148963451, 0.0332498736679554, 0.01658514142036438, -0.016575191169977188, 0.0315784253180027, 0.06825079023838043, -0.014386391267180443, -0.013610362075269222, -0.018246639519929886, 0.018256589770317078, 0.049506694078445435, 0.0062380824238061905, -0.061763979494571686, 0.02282322384417057, -0.022843122482299805, 0.04461174085736275, -0.0024512081872671843, 0.04162701219320297, -0.03687134385108948, 0.0027683356311172247, 0.016644835472106934, 0.06331603974103928, 0.01933109201490879, 0.049904659390449524, 0.020793607458472252, -0.11190741509199142, 0.059177216142416, 0.03675195574760437, -0.019868342205882072, 0.02604673057794571, 0.0031289902981370687, 0.014585372991859913, 0.032792218029499054, -0.011441458947956562, 0.006188336759805679, 0.04560665041208267, 0.014834100380539894, 0.04974547401070595, 0.034782037138938904, -0.07784172147512436, -0.007193195633590221, -0.0014737097080796957, 0.007640904746949673, 0.056630246341228485, -0.016694581136107445, -0.013152703642845154, -0.03822442144155502, -0.042741309851408005, -0.019311193376779556, 0.012088149785995483, -0.051775090396404266, 0.005561544094234705, 0.01499328576028347, 0.00006595161539735273, -0.08468669652938843, -0.0230421032756567, 0.013451175764203072, 0.016575191169977188, -0.002755899215117097, -0.04684033989906311, 0.017530305311083794, -0.04688013345003128, 0.0017883498221635818, 0.036911141127347946, 0.03508050739765167, -0.009635698050260544, 0.0608486644923687, -0.05830169469118118, 0.0505811981856823, -0.07063857465982437, -0.0055466205812990665, -0.021171674132347107, 0.06566402316093445, 0.04815362021327019, -0.04025403782725334, 0.004452220164239407, 0.003922430798411369, -0.03840350732207298 ]
37,735
healpy.sphtfunc
synalm
Generate a set of alm given cl. The cl are given as a float array. Corresponding alm are generated. If lmax is None, it is assumed lmax=cl.size-1 If mmax is None, it is assumed mmax=lmax. Parameters ---------- cls : float, array or tuple of arrays Either one cl (1D array) or a tuple of either 4 cl or of n*(n+1)/2 cl. Some of the cl may be None, implying no cross-correlation. See *new* parameter. lmax : int, scalar, optional The lmax (if None or <0, the largest size-1 of cls) mmax : int, scalar, optional The mmax (if None or <0, =lmax) new : bool, optional If True, use the new ordering of cl's, ie by diagonal (e.g. TT, EE, BB, TE, EB, TB or TT, EE, BB, TE if 4 cl as input). If False, use the old ordering, ie by row (e.g. TT, TE, TB, EE, EB, BB or TT, TE, EE, BB if 4 cl as input). Returns ------- alms : array or list of arrays the generated alm if one spectrum is given, or a list of n alms (with n(n+1)/2 the number of input cl, or n=3 if there are 4 input cl). Notes ----- We don't plan to change the default order anymore, that would break old code in a way difficult to debug.
def synalm(cls, lmax=None, mmax=None, new=False, verbose=True): """Generate a set of alm given cl. The cl are given as a float array. Corresponding alm are generated. If lmax is None, it is assumed lmax=cl.size-1 If mmax is None, it is assumed mmax=lmax. Parameters ---------- cls : float, array or tuple of arrays Either one cl (1D array) or a tuple of either 4 cl or of n*(n+1)/2 cl. Some of the cl may be None, implying no cross-correlation. See *new* parameter. lmax : int, scalar, optional The lmax (if None or <0, the largest size-1 of cls) mmax : int, scalar, optional The mmax (if None or <0, =lmax) new : bool, optional If True, use the new ordering of cl's, ie by diagonal (e.g. TT, EE, BB, TE, EB, TB or TT, EE, BB, TE if 4 cl as input). If False, use the old ordering, ie by row (e.g. TT, TE, TB, EE, EB, BB or TT, TE, EE, BB if 4 cl as input). Returns ------- alms : array or list of arrays the generated alm if one spectrum is given, or a list of n alms (with n(n+1)/2 the number of input cl, or n=3 if there are 4 input cl). Notes ----- We don't plan to change the default order anymore, that would break old code in a way difficult to debug. """ if not cb.is_seq(cls): raise TypeError("cls must be an array or a sequence of arrays") if not cb.is_seq_of_seq(cls, True): # Only one spectrum if lmax is None or lmax < 0: lmax = len(cls) - 1 if mmax is None or mmax < 0: mmax = lmax cls_list = [np.asarray(cls, dtype=np.float64)] szalm = Alm.getsize(lmax, mmax) alm = np.zeros(szalm, "D") alm.real = np.random.standard_normal(szalm) alm.imag = np.random.standard_normal(szalm) alms_list = [alm] sphtlib._synalm(cls_list, alms_list, lmax, mmax) return alm # From here, we interpret cls as a list of spectra cls_list = list(cls) maxsize = max([len(c) for c in cls if c is not None]) if lmax is None or lmax < 0: lmax = maxsize - 1 if mmax is None or mmax < 0: mmax = lmax Nspec = sphtlib._getn(len(cls_list)) if Nspec <= 0: if len(cls_list) == 4: if new: ## new input order: TT EE BB TE -> TT EE BB TE 0 0 cls_list = [cls[0], cls[1], cls[2], cls[3], None, None] else: ## old input order: TT TE EE BB -> TT TE 0 EE 0 BB cls_list = [cls[0], cls[1], None, cls[2], None, cls[3]] Nspec = 3 else: raise TypeError( "The sequence of arrays must have either 4 elements " "or n(n+1)/2 elements (some may be None)" ) szalm = Alm.getsize(lmax, mmax) alms_list = [] for i in range(Nspec): alm = np.zeros(szalm, "D") alm.real = np.random.standard_normal(szalm) alm.imag = np.random.standard_normal(szalm) alms_list.append(alm) if new: # new input order: input given by diagonal, should be given by row cls_list = new_to_old_spectra_order(cls_list) # ensure cls are float64 cls_list = [ (np.asarray(cl, dtype=np.float64) if cl is not None else None) for cl in cls_list ] sphtlib._synalm(cls_list, alms_list, lmax, mmax) return np.array(alms_list)
(cls, lmax=None, mmax=None, new=False, verbose=True)
[ 0.0000487723846163135, 0.025608183816075325, 0.06709463894367218, -0.03255243971943855, -0.012515577487647533, -0.012943374924361706, -0.046759311109781265, -0.044292010366916656, -0.023021498695015907, 0.07549141347408295, -0.062000855803489685, -0.0019922449719160795, 0.031975410878658295, 0.013291582465171814, 0.005939427297562361, 0.03832273557782173, -0.03056268021464348, 0.0065910727716982365, -0.015818575397133827, -0.0030816374346613884, 0.022683240473270416, 0.05296735465526581, -0.02751835063099861, 0.023837300017476082, 0.028572922572493553, 0.04648074507713318, 0.01637570746243, -0.0021452077198773623, -0.056469328701496124, -0.0334080345928669, 0.02324037253856659, 0.0350993275642395, 0.026682652533054352, -0.008914114907383919, 0.02789640612900257, -0.06343348324298859, 0.026145419105887413, -0.012674757279455662, -0.09534920006990433, 0.0390191525220871, 0.06430897116661072, -0.048470500856637955, 0.07592915743589401, 0.015142057090997696, 0.007551131304353476, 0.045087914913892746, 0.01812669448554516, 0.05260919779539108, -0.10052257031202316, -0.015778779983520508, 0.015530060045421124, -0.09320025891065598, 0.011500800959765911, 0.00502662593498826, -0.022842420265078545, 0.07557100057601929, -0.00852113775908947, -0.01646524667739868, 0.04150635004043579, -0.03714878112077713, 0.021429691463708878, -0.021767951548099518, 0.042859382927417755, -0.02391688898205757, 0.0038651046343147755, -0.03024432063102722, -0.04966435581445694, 0.02532961778342724, 0.01992742531001568, 0.057344820350408554, -0.05113677680492401, 0.034522298723459244, 0.025827057659626007, -0.021966926753520966, 0.04560524970293045, 0.010043302550911903, -0.03442281112074852, -0.02696121856570244, 0.0045142630115151405, -0.020295530557632446, -0.004954497329890728, 0.04966435581445694, 0.019817989319562912, 0.031895820051431656, -0.04250122979283333, 0.021429691463708878, -0.000949487613979727, -0.005113677587360144, -0.06518446654081345, -0.08699221163988113, -0.00018700615328270942, 0.015798676759004593, 0.01537087932229042, 0.036830417811870575, -0.0687660351395607, 0.029070362448692322, -0.04783377796411514, -0.04262061417102814, 0.055753014981746674, -0.004238184075802565, -0.0127543481066823, -0.0020270657259970903, 0.06482630968093872, 0.045207299292087555, -0.015778779983520508, -0.017977463081479073, -0.03259223327040672, 0.010063200257718563, -0.042700204998254776, 0.062040649354457855, 0.006392097100615501, 0.0828535184264183, 0.008993705734610558, 0.02672244794666767, 0.0042655435390770435, -0.038342636078596115, 0.011948496103286743, 0.0430583618581295, -0.03782529756426811, 0.006113531067967415, -0.0070835379883646965, -0.002556838793680072, -0.02471279352903366, -0.024135762825608253, 0.050977595150470734, -0.014913234859704971, 0.023678118363022804, -0.023518938571214676, 0.05053985118865967, -0.024692894890904427, -0.027398966252803802, 0.019022084772586823, -0.03233356401324272, 0.05439998209476471, -0.007068614941090345, -0.026244906708598137, 0.003922310192137957, -0.040093619376420975, -0.039934441447257996, -0.05583260580897331, -0.014584925025701523, 0.06625893712043762, 0.05451936647295952, 0.01082428265362978, -0.042859382927417755, 0.023797504603862762, 0.033348340541124344, -0.026523472741246223, -0.033189162611961365, 0.05547444894909859, -0.02513064257800579, -0.0477541908621788, 0.057225435972213745, 0.05921519547700882, -0.019032033160328865, -0.0334080345928669, -0.038004375994205475, -0.013898458331823349, -0.01992742531001568, 0.011928598396480083, -0.06844767183065414, -0.04059106111526489, -0.02186743915081024, 0.013301531784236431, -0.0227031372487545, -0.021509282290935516, -0.023797504603862762, 0.002055668504908681, -0.015022671781480312, 0.007720260415226221, -0.027757123112678528, -0.05089800804853439, -0.04059106111526489, -0.052410222589969635, -0.006819895002990961, -0.009849301539361477, -0.030085138976573944, -0.024553611874580383, 0.025787262246012688, 0.010565614327788353, -0.011053104884922504, 0.03217438608407974, 0.02425514906644821, -0.04250122979283333, -0.010883975774049759, 0.04385426267981529, -0.014336205087602139, -0.009864225052297115, -0.03446260467171669, -0.00040074967546388507, -0.007118358742445707, -0.0012871245853602886, -0.029866265133023262, 0.021449590101838112, 0.015261443331837654, -0.013112504035234451, -0.06112536042928696, 0.05121636763215065, 0.031179506331682205, 0.036034516990184784, -0.02672244794666767, 0.041944097727537155, 0.024971460923552513, -0.02638418972492218, 0.050778619945049286, -0.03806406632065773, 0.025110743939876556, -0.01692289113998413, -0.02710050158202648, 0.006581124383956194, 0.05153472721576691, 0.014236717484891415, -0.015261443331837654, -0.017350688576698303, 0.031179506331682205, -0.03655185177922249, 0.0842861458659172, 0.02509084716439247, 0.0089389868080616, -0.008446522057056427, -0.03589523211121559, -0.014833644963800907, -0.05766318365931511, 0.03609420731663704, -0.05694686993956566, 0.007043743040412664, 0.00948617048561573, 0.03426362946629524, -0.010237304493784904, -0.017231302335858345, -0.029886163771152496, -0.01595785841345787, 0.010023404844105244, -0.006123479921370745, -0.03507943078875542, 0.06391102075576782, 0.01178931538015604, 0.05455916002392769, -0.0411083959043026, 0.034780967980623245, -0.01875346712768078, -0.017529767006635666, -0.004230722784996033, 0.03647226095199585, -0.04234204813838005, 0.05997130274772644, 0.01319209486246109, 0.04472975805401802, -0.0477541908621788, 0.024991359561681747, -0.04317774623632431, -0.01704227551817894, 0.019867733120918274, 0.004529186524450779, 0.023459244519472122, 0.008356982842087746, -0.03386567905545235, -0.01855449192225933, 0.02491176873445511, -0.09065336734056473, 0.00056521559599787, 0.011630134657025337, 0.04226245731115341, 0.06403040885925293, -0.06534364819526672, -0.0019561806693673134, 0.01880321279168129, 0.022265391424298286, -0.0505000539124012, 0.01984783448278904, -0.06864664703607559, 0.0711139440536499, -0.056270353496074677, -0.016763709485530853, 0.0013493045698851347, 0.06239880621433258, 0.029428519308567047, -0.054081618785858154, -0.0027209939435124397, -0.007580977398902178, 0.015360930934548378, -0.0034497426822781563, 0.002400145400315523, -0.0023093626368790865, -0.004827650263905525, -0.00020581558055710047, -0.015420623123645782, -0.015460418537259102, 0.02035522274672985, -0.021290408447384834, 0.058061134070158005, -0.016723914071917534, 0.02767753228545189, -0.049903128296136856, 0.11134684830904007, -0.04711746796965599, -0.05388264358043671, 0.003014483256265521, 0.008894218131899834, -0.03002544678747654, -0.004185953177511692, -0.018614184111356735, 0.08715139329433441, -0.010416382923722267, -0.02706070803105831, -0.07736178487539291, -0.043615493923425674, -0.027916302904486656, 0.05666830390691757, 0.0056658354587852955, 0.0076506189070641994, 0.0696813240647316, -0.017281047999858856, -0.03866099566221237, -0.016514990478754044, 0.05686727911233902, -0.01459487434476614, 0.016674170270562172, 0.06701504439115524, 0.06808951497077942, -0.027836712077260017, 0.019499627873301506, -0.02672244794666767, -0.013112504035234451, 0.05786215886473656, -0.054081618785858154, 0.019967220723628998, -0.01633591204881668, -0.02290211245417595, -0.01695273630321026, -0.03547738119959831, -0.018355516716837883, -0.006954203825443983, 0.021509282290935516, -0.006287634838372469, 0.020593993365764618, 0.03195551037788391, -0.042023684829473495, 0.0434563122689724, -0.055593833327293396, 0.020872559398412704, 0.07187005132436752, -0.03149786591529846, 0.0439736507833004, -0.01868382655084133, 0.013241838663816452, 0.018067002296447754, -0.002083027735352516, -0.048430707305669785, -0.037288062274456024, 0.017310893163084984, -0.06243860349059105, -0.005586245097219944, 0.023459244519472122, 0.054002027958631516, 0.06088659167289734, -0.004805265460163355, -0.022185800597071648, -0.014147178269922733, -0.059732530266046524, 0.01582852378487587, 0.01683335192501545, -0.01484359335154295, 0.009426478296518326, -0.03287079930305481, -0.0016104602254927158, -0.020991945639252663, -0.05432039126753807, 0.026563268154859543, -0.049982719123363495, -0.0026414035819470882, -0.045167502015829086, 0.01457497663795948, 0.023757709190249443, -0.007317334413528442, 0.0602896623313427, -0.024095967411994934, -0.001969860401004553, -0.0012417333200573921, 0.021588873118162155, 0.027617840096354485, 0.020593993365764618, 0.04743582755327225, 0.014545130543410778, 0.041148193180561066, -0.010013456456363201, 0.020991945639252663, 0.03748703747987747, -0.03245295211672783, 0.03559676930308342, 0.05981212109327316, -0.02483217790722847, 0.0000923371990211308, -0.06860685348510742, -0.027120400220155716, 0.04735623672604561, -0.02960759773850441, 0.05499690771102905, -0.04174511879682541, -0.02018609456717968, 0.001514703151769936, -0.021668463945388794, 0.04150635004043579, -0.012047983705997467, -0.048430707305669785, -0.053285714238882065, 0.05909580737352371, -0.05046026036143303, -0.0635528638958931, -0.011600288562476635, 0.013470660895109177, 0.04819193482398987, -0.018405260518193245, -0.0021663489751517773, 0.04075024276971817, 0.021807746961712837, -0.018435107544064522, -0.002531966893002391, 0.02964739315211773, 0.05654891952872276, 0.060528434813022614, 0.036034516990184784, 0.013878561556339264, 0.05022148787975311, 0.08818607032299042, -0.0035591793712228537, -0.03541769087314606, 0.002010899130254984, -0.06669668108224869, -0.044451192021369934, 0.05694686993956566, 0.02956780232489109, -0.007451643235981464, -0.029070362448692322, -0.0392778217792511, -0.004151132423430681, -0.012485730461776257, 0.02069348283112049, -0.0028080458287149668, -0.040173210203647614, 0.016445348039269447, -0.037288062274456024, -0.0425410233438015, 0.01876341737806797, -0.020932253450155258, -0.07823728024959564, 0.012535474263131618, -0.02168836072087288, 0.00862560048699379, -0.016614478081464767, -0.00041629464249126613, 0.04743582755327225, -0.0190519317984581, 0.04612258821725845, 0.09662264585494995, -0.027020912617444992, 0.07246698439121246, -0.029547903686761856, -0.03673093020915985, -0.018912648782134056, -0.010585512034595013, -0.01959911547601223, 0.04166553169488907, 0.03722836822271347, 0.03981505334377289, 0.01545047014951706, 0.020166195929050446, -0.001215617754496634, -0.04297877103090286, -0.04098901152610779, 0.036452364176511765, -0.0308611448854208, 0.027777019888162613, 0.014256615191698074, -0.001846743980422616, -0.029707085341215134, 0.022543957456946373, -0.0035392818972468376, -0.05034087598323822, -0.02312098629772663, 0.05925498902797699, 0.01633591204881668, -0.017748640850186348, -0.030264217406511307, -0.009162834845483303, 0.03734775632619858, -0.0009239938226528466, -0.04325733706355095, 0.010486024431884289, 0.0056409635581076145, -0.012475782074034214, 0.02131030708551407, 0.005954350344836712, 0.06287635117769241, 0.006799997761845589, 0.030284114181995392, 0.05853867530822754, -0.03981505334377289, 0.027418863028287888, 0.04472975805401802, 0.0381038635969162, -0.04082982987165451, -0.06900480389595032, -0.00588470883667469, 0.03563656285405159, -0.002919969614595175, -0.042063482105731964, -0.0425410233438015, -0.029448416084051132, 0.07700362801551819, -0.025528592988848686, -0.042739998549222946, 0.003571615321561694, -0.0006106069195084274, 0.03078155405819416, -0.01855449192225933, -0.019738398492336273, -0.03316926211118698, 0.034701377153396606, 0.058817241340875626, -0.0011248349910601974, 0.020295530557632446, -0.0865146741271019, -0.006695535033941269, -0.028712205588817596, 0.01833561807870865, -0.023399552330374718, -0.037208471447229385, 0.042023684829473495, 0.010635255835950375, 0.018037155270576477, -0.03492024913430214, -0.008332110941410065, 0.08619631081819534, -0.0010278342524543405, 0.027538249269127846, -0.029368827119469643, -0.015719087794423103, 0.07091496884822845, -0.06251819431781769, -0.00029022485250607133, 0.0021315282210707664, 0.007680465467274189, 0.015291289426386356, 0.002880174433812499, -0.0034422811586409807, 0.008595754392445087, -0.022922011092305183, 0.00046013150131329894, 0.022424571216106415, -0.02115112543106079, -0.021887335926294327, 0.005954350344836712, 0.025488797575235367, 0.010525818914175034, -0.02073327638208866, 0.041187986731529236, -0.04783377796411514, -0.023678118363022804, 0.018116746097803116, -0.03302998095750809, 0.02006670832633972, -0.044888935983181, -0.028194868937134743, 0.0007735183462500572, -0.016156833618879318, 0.07915256917476654, 0.03919823095202446, 0.0036611545365303755, 0.00030219447216950357, -0.04098901152610779, 0.03685031458735466, -0.070715993642807, 0.017390483990311623, -0.039218127727508545, 0.06140392646193504, 0.007869492284953594, -0.016186680644750595, -0.02206641435623169, -0.06932316720485687, 0.044371601194143295, 0.027796916663646698, -0.02395668439567089, -0.027080604806542397, 0.05690707638859749, -0.040551263839006424, -0.04799295961856842, -0.005078856833279133, -0.06832828372716904, -0.011381414718925953, -0.02252405881881714, 0.057265233248472214, -0.015758883208036423, 0.0025742491707205772, -0.03840232640504837, 0.024434227496385574, 0.023976583033800125, 0.0017049737507477403, -0.00915288645774126, 0.04421241953969002, 0.0026787114329636097, 0.059652939438819885, -0.04234204813838005, 0.00407402915880084, 0.056509122252464294, -0.03143817558884621, 0.013281634077429771, -0.06657730042934418, -0.02771732769906521, 0.005939427297562361, -0.008973808027803898, 0.05495711416006088, 0.02240467444062233, -0.03133868798613548, 0.03263203054666519, -0.04433180391788483, -0.04472975805401802, 0.036571748554706573, 0.06673648208379745, -0.003735770471394062, 0.04059106111526489, 0.018743518739938736, -0.01863408274948597, -0.02324037253856659, -0.04572463780641556, 0.019439933821558952, -0.04317774623632431, -0.01141126174479723, 0.03217438608407974, -0.04858988896012306, 0.02608572505414486, -0.036372773349285126, 0.06880582869052887, 0.004879881162196398, 0.013241838663816452, -0.04799295961856842, -0.0006808702601119876, 0.05511629208922386, 0.033268753439188004, 0.02706070803105831, -0.04258081689476967, 0.011451056227087975, 0.040053825825452805, -0.03496004641056061, 0.018663929775357246, -0.023459244519472122, -0.009754788130521774, 0.006148351822048426, 0.0067005096934735775, 0.0010216162772849202, -0.002880174433812499, 0.004370005801320076, -0.0434563122689724, 0.03271161764860153, 0.007486463990062475, -0.06769156455993652, 0.024613304063677788, 0.005755374673753977, 0.0280555859208107, -0.012256908230483532, -0.004638622980564833, 0.02065368741750717, 0.020215939730405807, -0.058896832168102264, 0.011709725484251976, -0.0036188720259815454, 0.04059106111526489, 0.013311480171978474, 0.004153619520366192, 0.011053104884922504, -0.049226608127355576, 0.0010551934828981757, 0.0011739571345970035, -0.010023404844105244, -0.005437013227492571, -0.028155073523521423, 0.013341326266527176, -0.021051637828350067, 0.05750400200486183, -0.02600613608956337, -0.018375413492321968, 0.027757123112678528, 0.001943744719028473, -0.04743582755327225, -0.017480023205280304, 0.027080604806542397, 0.01833561807870865, -0.013401019386947155, -0.004434672649949789, -0.05439998209476471, 0.015221647918224335, 0.033228956162929535, 0.01658463105559349, -0.016524938866496086, 0.031557559967041016, 0.06828849017620087, -0.01440584659576416, -0.01360994391143322, -0.01817643828690052, 0.018226182088255882, 0.04946538060903549, 0.006188146770000458, -0.06176208332180977, 0.02282252348959446, -0.022882215678691864, 0.04461036995053291, -0.0024362097028642893, 0.04158594086766243, -0.036830417811870575, 0.0027458658441901207, 0.016654273495078087, 0.06339368224143982, 0.019360344856977463, 0.04986333101987839, 0.020753175020217896, -0.11190398037433624, 0.05917539820075035, 0.036790624260902405, -0.019867733120918274, 0.025986237451434135, 0.003156253369525075, 0.01459487434476614, 0.03279120847582817, -0.011421210132539272, 0.006128454115241766, 0.04560524970293045, 0.014833644963800907, 0.04974394664168358, 0.034780967980623245, -0.07779953628778458, -0.00723276985809207, -0.0015134596033021808, 0.007630721665918827, 0.0566285103559494, -0.016694068908691406, -0.013142351061105728, -0.03824314475059509, -0.042739998549222946, -0.01930065080523491, 0.012047983705997467, -0.05177349969744682, 0.005566347856074572, 0.014962979592382908, 0.00011285657819826156, -0.0846840962767601, -0.023041395470499992, 0.013530354015529156, 0.016554785892367363, -0.0027408914174884558, -0.046838901937007904, 0.01758945919573307, -0.046878695487976074, 0.0017410381697118282, 0.036910008639097214, 0.0350993275642395, -0.009615505114197731, 0.06088659167289734, -0.05833970010280609, 0.05057964473962784, -0.07063640654087067, -0.005551424343138933, -0.02119092084467411, 0.06562221795320511, 0.0481521412730217, -0.04025280103087425, 0.0044694934040308, 0.003919823095202446, -0.03840232640504837 ]
37,736
healpy.sphtfunc
synfast
Create a map(s) from cl(s). You can choose a random seed using `numpy.random.seed(SEEDVALUE)` before calling `synfast`. Parameters ---------- cls : array or tuple of array A cl or a list of cl (either 4 or 6, see :func:`synalm`) nside : int, scalar The nside of the output map(s) lmax : int, scalar, optional Maximum l for alm. Default: min of 3*nside-1 or length of the cls - 1 mmax : int, scalar, optional Maximum m for alm. alm : bool, scalar, optional If True, return also alm(s). Default: False. pol : bool, optional If True, assumes input cls are TEB and correlation. Output will be TQU maps. (input must be 1, 4 or 6 cl's) If False, fields are assumed to be described by spin 0 spherical harmonics. (input can be any number of cl's) If there is only one input cl, it has no effect. Default: True. pixwin : bool, scalar, optional If True, convolve the alm by the pixel window function. Default: False. fwhm : float, scalar, optional The fwhm of the Gaussian used to smooth the map (applied on alm) [in radians] sigma : float, scalar, optional The sigma of the Gaussian used to smooth the map (applied on alm) [in radians] new : bool, optional If True, use the new ordering of cl's, ie by diagonal (e.g. TT, EE, BB, TE, EB, TB or TT, EE, BB, TE if 4 cl as input). If False, use the old ordering, ie by row (e.g. TT, TE, TB, EE, EB, BB or TT, TE, EE, BB if 4 cl as input). Returns ------- maps : array or tuple of arrays The output map (possibly list of maps if polarized input). or, if alm is True, a tuple of (map,alm) (alm possibly a list of alm if polarized input) Notes ----- We don't plan to change the default order anymore, that would break old code in a way difficult to debug.
def synalm(cls, lmax=None, mmax=None, new=False, verbose=True): """Generate a set of alm given cl. The cl are given as a float array. Corresponding alm are generated. If lmax is None, it is assumed lmax=cl.size-1 If mmax is None, it is assumed mmax=lmax. Parameters ---------- cls : float, array or tuple of arrays Either one cl (1D array) or a tuple of either 4 cl or of n*(n+1)/2 cl. Some of the cl may be None, implying no cross-correlation. See *new* parameter. lmax : int, scalar, optional The lmax (if None or <0, the largest size-1 of cls) mmax : int, scalar, optional The mmax (if None or <0, =lmax) new : bool, optional If True, use the new ordering of cl's, ie by diagonal (e.g. TT, EE, BB, TE, EB, TB or TT, EE, BB, TE if 4 cl as input). If False, use the old ordering, ie by row (e.g. TT, TE, TB, EE, EB, BB or TT, TE, EE, BB if 4 cl as input). Returns ------- alms : array or list of arrays the generated alm if one spectrum is given, or a list of n alms (with n(n+1)/2 the number of input cl, or n=3 if there are 4 input cl). Notes ----- We don't plan to change the default order anymore, that would break old code in a way difficult to debug. """ if not cb.is_seq(cls): raise TypeError("cls must be an array or a sequence of arrays") if not cb.is_seq_of_seq(cls, True): # Only one spectrum if lmax is None or lmax < 0: lmax = len(cls) - 1 if mmax is None or mmax < 0: mmax = lmax cls_list = [np.asarray(cls, dtype=np.float64)] szalm = Alm.getsize(lmax, mmax) alm = np.zeros(szalm, "D") alm.real = np.random.standard_normal(szalm) alm.imag = np.random.standard_normal(szalm) alms_list = [alm] sphtlib._synalm(cls_list, alms_list, lmax, mmax) return alm # From here, we interpret cls as a list of spectra cls_list = list(cls) maxsize = max([len(c) for c in cls if c is not None]) if lmax is None or lmax < 0: lmax = maxsize - 1 if mmax is None or mmax < 0: mmax = lmax Nspec = sphtlib._getn(len(cls_list)) if Nspec <= 0: if len(cls_list) == 4: if new: ## new input order: TT EE BB TE -> TT EE BB TE 0 0 cls_list = [cls[0], cls[1], cls[2], cls[3], None, None] else: ## old input order: TT TE EE BB -> TT TE 0 EE 0 BB cls_list = [cls[0], cls[1], None, cls[2], None, cls[3]] Nspec = 3 else: raise TypeError( "The sequence of arrays must have either 4 elements " "or n(n+1)/2 elements (some may be None)" ) szalm = Alm.getsize(lmax, mmax) alms_list = [] for i in range(Nspec): alm = np.zeros(szalm, "D") alm.real = np.random.standard_normal(szalm) alm.imag = np.random.standard_normal(szalm) alms_list.append(alm) if new: # new input order: input given by diagonal, should be given by row cls_list = new_to_old_spectra_order(cls_list) # ensure cls are float64 cls_list = [ (np.asarray(cl, dtype=np.float64) if cl is not None else None) for cl in cls_list ] sphtlib._synalm(cls_list, alms_list, lmax, mmax) return np.array(alms_list)
(cls, nside, lmax=None, mmax=None, alm=False, pol=True, pixwin=False, fwhm=0.0, sigma=None, new=False, verbose=True)
[ 0.000022288304535322823, 0.0256089698523283, 0.0671364888548851, -0.03251364082098007, -0.012486114166676998, -0.012973619624972343, -0.04676074534654617, -0.044333167374134064, -0.023022204637527466, 0.07545393705368042, -0.06204255670309067, -0.002074386226013303, 0.03197639063000679, 0.013321838341653347, 0.005939609836786985, 0.03830401599407196, -0.030623313039541245, 0.006536555476486683, -0.01583895832300186, -0.0030493976082652807, 0.022664038464426994, 0.05292918533086777, -0.027539094910025597, 0.023818133398890495, 0.028553903102874756, 0.04644237458705902, 0.01635631173849106, -0.0021328371949493885, -0.05647106096148491, -0.03342895954847336, 0.023241085931658745, 0.035140201449394226, 0.026643676683306694, -0.00893428735435009, 0.027877364307641983, -0.06347522139549255, 0.026126323267817497, -0.012695045210421085, -0.09527253359556198, 0.03900045156478882, 0.0643109455704689, -0.04847199097275734, 0.07597129046916962, 0.01519226748496294, 0.007581210229545832, 0.045129094272851944, 0.018157098442316055, 0.052610814571380615, -0.10052565485239029, -0.015779264271259308, 0.015560383908450603, -0.09328271448612213, 0.011511102318763733, 0.005031754728406668, -0.022843122482299805, 0.07553353160619736, -0.008521399460732937, -0.0164955984801054, 0.041467826813459396, -0.03714992105960846, 0.021390553563833237, -0.02180841565132141, 0.04286070168018341, -0.023897726088762283, 0.003870197804644704, -0.030225349590182304, -0.04962608590722084, 0.025330396369099617, 0.01994793489575386, 0.057386379688978195, -0.05117814242839813, 0.03450345993041992, 0.025847747921943665, -0.021967601031064987, 0.045566853135824203, 0.010073458775877953, -0.03444376587867737, -0.026902351528406143, 0.004464656114578247, -0.02025635726749897, -0.004959623795002699, 0.04966588318347931, 0.019838495180010796, 0.03189679980278015, -0.04250253364443779, 0.02141045220196247, -0.0009930439991876483, -0.005108860321342945, -0.06514666974544525, -0.08699488639831543, -0.00017131098138634115, 0.015819061547517776, 0.01532160583883524, 0.03689124435186386, -0.06872835010290146, 0.029031459242105484, -0.047835249453783035, -0.04254233092069626, 0.055834319442510605, -0.004193543456494808, -0.012764688581228256, -0.0020134481601417065, 0.06486809998750687, 0.04524848237633705, -0.015779264271259308, -0.018017809838056564, -0.032573334872722626, 0.010023713111877441, -0.042661719024181366, 0.0620027594268322, 0.0063773696310818195, 0.08285605907440186, 0.00906362570822239, 0.026723269373178482, 0.004255725536495447, -0.03828411549329758, 0.011938913725316525, 0.04305968061089516, -0.03780655935406685, 0.006143566220998764, -0.007078780792653561, -0.0025594045873731375, -0.024693652987480164, -0.02415640279650688, 0.05093936622142792, -0.0149236423894763, 0.023639049381017685, -0.023539558053016663, 0.050620995461940765, -0.024733450263738632, -0.02737990953028202, 0.01901271939277649, -0.03233455866575241, 0.05436185374855995, -0.007113602943718433, -0.026205915957689285, 0.003932379651814699, -0.0400550551712513, -0.03989586979150772, -0.055874116718769073, -0.014555525965988636, 0.06626097112894058, 0.054560836404561996, 0.010824615135788918, -0.04286070168018341, 0.02379823476076126, 0.033369265496730804, -0.026524286717176437, -0.033229976892471313, 0.055476151406764984, -0.025131413713097572, -0.0477556549012661, 0.05726699158549309, 0.05921701341867447, -0.019042568281292915, -0.03338916227221489, -0.03802543878555298, -0.013849140144884586, -0.019967833533883095, 0.011958812363445759, -0.06848956644535065, -0.04059230536222458, -0.021828314289450645, 0.013351685367524624, -0.022624241188168526, -0.021549738943576813, -0.02379823476076126, 0.001991062657907605, -0.015062929131090641, 0.0076956250704824924, -0.027718178927898407, -0.05089956894516945, -0.04055251181125641, -0.05241183191537857, -0.006825079210102558, -0.00985955260694027, -0.030086062848567963, -0.024554366245865822, 0.025807952508330345, 0.010536091402173042, -0.01101364754140377, 0.03223506733775139, 0.02427579089999199, -0.04250253364443779, -0.010874360799789429, 0.043855611234903336, -0.014326696284115314, -0.009889400564134121, -0.03444376587867737, -0.0004536165506578982, -0.007113602943718433, -0.001308306003920734, -0.029906978830695152, 0.021470146253705025, 0.015232063829898834, -0.013102957978844643, -0.06116703525185585, 0.0512179397046566, 0.031200360506772995, 0.03603561967611313, -0.026683472096920013, 0.041945382952690125, 0.024972228333353996, -0.02636510133743286, 0.05074038356542587, -0.03806523606181145, 0.025111515074968338, -0.016923410817980766, -0.027041640132665634, 0.006576351821422577, 0.05157610774040222, 0.014247103594243526, -0.015281809493899345, -0.01733132265508175, 0.031160565093159676, -0.03657287359237671, 0.08428873121738434, 0.02507171966135502, 0.008964134380221367, -0.008411959744989872, -0.035896334797143936, -0.014883846044540405, -0.05766495317220688, 0.0360754169523716, -0.056988414376974106, 0.007014112081378698, 0.009501385502517223, 0.03422488644719124, -0.010267466306686401, -0.01724178157746792, -0.029926877468824387, -0.015988195315003395, 0.00995406974107027, -0.006143566220998764, -0.03502081334590912, 0.06391298770904541, 0.011819524690508842, 0.054640427231788635, -0.041069865226745605, 0.03484173119068146, -0.01874409429728985, -0.017580050975084305, -0.004198518116027117, 0.036513179540634155, -0.042303550988435745, 0.05997314304113388, 0.013232296332716942, 0.044731128960847855, -0.0477556549012661, 0.02499212697148323, -0.04317907243967056, -0.017052749171853065, 0.019868342205882072, 0.004554198123514652, 0.02344006672501564, 0.008347290568053722, -0.03382692113518715, -0.01852521486580372, 0.024872737005352974, -0.09057655930519104, 0.0005543511360883713, 0.011640440672636032, 0.042223960161209106, 0.06403237581253052, -0.06530585885047913, -0.0019127135165035725, 0.018803788349032402, 0.02224617637693882, -0.05046181008219719, 0.019838495180010796, -0.06868854910135269, 0.0711161270737648, -0.05627208203077316, -0.016744326800107956, 0.001328204176388681, 0.06240072101354599, 0.029429422691464424, -0.05408328026533127, -0.002738488372415304, -0.007551363203674555, 0.015331555157899857, -0.003484670538455248, 0.0023591790813952684, -0.002269637305289507, -0.0048626200295984745, -0.0001539000659249723, -0.015460893511772156, -0.01550068985670805, 0.020355848595499992, -0.021330859512090683, 0.05806291848421097, -0.016704529523849487, 0.02767838165163994, -0.049904659390449524, 0.11135026812553406, -0.04715871065855026, -0.053884297609329224, 0.003024524776265025, 0.008884541690349579, -0.02998657152056694, -0.004210954532027245, -0.018594859167933464, 0.08715406805276871, -0.010386855341494083, -0.02706153877079487, -0.0774039551615715, -0.04361683130264282, -0.027897261083126068, 0.056630246341228485, 0.005680933129042387, 0.0076956250704824924, 0.06968346238136292, -0.01733132265508175, -0.03870197758078575, -0.01653539575636387, 0.056869026273489, -0.014565475285053253, 0.016684632748365402, 0.0670171007514, 0.06805180758237839, -0.02781766839325428, 0.019490277394652367, -0.0267630647867918, -0.013102957978844643, 0.057824138551950455, -0.0540434829890728, 0.020007628947496414, -0.016336413100361824, -0.022843122482299805, -0.016963206231594086, -0.03547847270965576, -0.018375977873802185, -0.006989239249378443, 0.02149004489183426, -0.0062579805962741375, 0.020574728026986122, 0.031956493854522705, -0.04206477478146553, 0.043537240475416183, -0.05555574595928192, 0.020893098786473274, 0.07191205769777298, -0.03151873126626015, 0.043935202062129974, -0.01879383996129036, 0.013272092677652836, 0.0180377084761858, -0.0020445389673113823, -0.04843219369649887, -0.03726930916309357, 0.01729152724146843, -0.06244051828980446, -0.005621238611638546, 0.02344006672501564, 0.05400368571281433, 0.06088846176862717, -0.004832773003727198, -0.022186482325196266, -0.014157561585307121, -0.059734366834163666, 0.015799162909388542, 0.0168139711022377, -0.014844049699604511, 0.00939691998064518, -0.032891709357500076, -0.0015769315650686622, -0.020992590114474297, -0.05436185374855995, 0.026564083993434906, -0.04998425394296646, -0.0026340228505432606, -0.045129094272851944, 0.014575423672795296, 0.02379823476076126, -0.0073523810133337975, 0.06029151380062103, -0.024116605520248413, -0.0019587280694395304, -0.0012187641113996506, 0.021609434857964516, 0.027658483013510704, 0.020634422078728676, 0.047477081418037415, 0.014525678008794785, 0.041109658777713776, -0.00997396744787693, 0.02101248875260353, 0.03750808909535408, -0.0324738472700119, 0.03565755486488342, 0.05985375493764877, -0.024832941591739655, 0.00003744513014680706, -0.06860895454883575, -0.02716102823615074, 0.04735768958926201, -0.02954881079494953, 0.054998595267534256, -0.04178619757294655, -0.02025635726749897, 0.0014911205507814884, -0.021609434857964516, 0.041507624089717865, -0.012088149785995483, -0.04843219369649887, -0.05328735336661339, 0.05913741886615753, -0.05042201280593872, -0.06355481594800949, -0.011620542965829372, 0.013451175764203072, 0.048273008316755295, -0.018415775150060654, -0.0021402989514172077, 0.040711697190999985, 0.021788517013192177, -0.018455570563673973, -0.0025668665766716003, 0.029688099399209023, 0.05651085823774338, 0.06049049645662308, 0.03605552017688751, 0.013859089463949203, 0.05018323287367821, 0.08810918033123016, -0.003571724984794855, -0.03543867543339729, 0.002014691708609462, -0.06665893644094467, -0.04449235275387764, 0.05694861710071564, 0.029608506709337234, -0.007456846535205841, -0.029031459242105484, -0.039298925548791885, -0.00411395076662302, -0.012456267140805721, 0.020733913406729698, -0.0027807720471173525, -0.040174443274736404, 0.0163662601262331, -0.03728920593857765, -0.04250253364443779, 0.018734145909547806, -0.020972691476345062, -0.07827948033809662, 0.012525910511612892, -0.02166912890970707, 0.008591043762862682, -0.016565242782235146, -0.00036936014657840133, 0.047477081418037415, -0.019032618030905724, 0.04612400382757187, 0.09654601663351059, -0.026962047442793846, 0.07246920466423035, -0.029528914019465446, -0.0367121584713459, -0.018893331289291382, -0.010605734772980213, -0.01963951252400875, 0.04162701219320297, 0.0372295118868351, 0.039776481688022614, 0.015460893511772156, 0.020186712965369225, -0.0012734840856865048, -0.04298008978366852, -0.0409504733979702, 0.03649327903985977, -0.030862092971801758, 0.027757974341511726, 0.014316747896373272, -0.001889084349386394, -0.029747793450951576, 0.022524749860167503, -0.003571724984794855, -0.05038221552968025, -0.023141594603657722, 0.05913741886615753, 0.016336413100361824, -0.017759134992957115, -0.030285045504570007, -0.009118345566093922, 0.03732900321483612, -0.0008475385257042944, -0.0432586632668972, 0.010426651686429977, 0.005621238611638546, -0.012446317821741104, 0.021350758150219917, 0.005939609836786985, 0.06287828087806702, 0.006815129891037941, 0.03034473955631256, 0.058540474623441696, -0.03989586979150772, 0.02741970494389534, 0.044731128960847855, 0.03808513656258583, -0.040791288018226624, -0.06904672086238861, -0.005855042487382889, 0.03563765808939934, -0.002957368502393365, -0.0421045683324337, -0.04254233092069626, -0.02944932132959366, 0.07704579085111618, -0.025529377162456512, -0.042701516300439835, 0.0036289324052631855, -0.0005988111370243132, 0.03078250028192997, -0.01852521486580372, -0.019709156826138496, -0.03313048556447029, 0.03468254581093788, 0.05881904810667038, -0.0011335749877616763, 0.020316051319241524, -0.0865173265337944, -0.0066808173432946205, -0.028713088482618332, 0.01830633357167244, -0.02340027131140232, -0.0372295118868351, 0.04202497750520706, 0.010575887747108936, 0.018017809838056564, -0.034961119294166565, -0.00829257071018219, 0.08627855032682419, -0.001067040371708572, 0.027479400858283043, -0.029349830001592636, -0.01564992591738701, 0.07079775631427765, -0.0625201091170311, -0.0002907001180574298, 0.002111695474013686, 0.00765085406601429, 0.015311656519770622, 0.0029076230712234974, -0.003484670538455248, 0.00862586498260498, -0.022942611947655678, 0.0004598347295541316, 0.02246505580842495, -0.02119157277047634, -0.021907906979322433, 0.005939609836786985, 0.025509478524327278, 0.010585837066173553, -0.020773710682988167, 0.04118925333023071, -0.04779545217752457, -0.023718642070889473, 0.0180974043905735, -0.03305089473724365, 0.020107120275497437, -0.04489031434059143, -0.028155937790870667, 0.0008531349012628198, -0.016217024996876717, 0.07919479161500931, 0.039159636944532394, 0.003698576008901, 0.00035194921656511724, -0.04103006795048714, 0.03689124435186386, -0.07075796276330948, 0.017400966957211494, -0.03921933099627495, 0.061405811458826065, 0.007859785109758377, -0.016177227720618248, -0.02206709235906601, -0.069325290620327, 0.0444127582013607, 0.027797771617770195, -0.023937521502375603, -0.027041640132665634, 0.056869026273489, -0.04055251181125641, -0.04803422838449478, -0.005098911002278328, -0.06825079023838043, -0.011381764896214008, -0.022524749860167503, 0.05718739703297615, -0.015779264271259308, 0.002584277419373393, -0.0383836068212986, 0.02441507950425148, 0.023957420140504837, 0.001716218888759613, -0.009093472734093666, 0.044253572821617126, 0.002731026615947485, 0.05965477228164673, -0.042303550988435745, 0.004084103275090456, 0.05647106096148491, -0.03145903721451759, 0.013252194039523602, -0.0666191354393959, -0.027738075703382492, 0.005944584030658007, -0.009008904919028282, 0.05491900444030762, 0.022365564480423927, -0.0313197523355484, 0.032573334872722626, -0.044333167374134064, -0.044691335409879684, 0.036552973091602325, 0.06665893644094467, -0.0037085250951349735, 0.04063210263848305, 0.018734145909547806, -0.018674451857805252, -0.02322118729352951, -0.04568624496459961, 0.019440531730651855, -0.04321886971592903, -0.011411611922085285, 0.032175373286008835, -0.04851178824901581, 0.026066629216074944, -0.036334093660116196, 0.0688079372048378, 0.004914852790534496, 0.013301939703524113, -0.04799443483352661, -0.0006572621059603989, 0.05507818982005119, 0.03328967094421387, 0.027041640132665634, -0.04250253364443779, 0.011481255292892456, 0.0400550551712513, -0.035000916570425034, 0.018644602969288826, -0.02340027131140232, -0.009730215184390545, 0.006153515074402094, 0.006715639028698206, 0.001007345854304731, -0.0028951866552233696, 0.004382576327770948, -0.043457645922899246, 0.03271262347698212, 0.007496642880141735, -0.06769364327192307, 0.024574264883995056, 0.005800322163850069, 0.02807634510099888, -0.012237386777997017, -0.0046611507423222065, 0.02069411799311638, 0.02025635726749897, -0.05893843621015549, 0.01170013565570116, -0.0036363941617310047, 0.04063210263848305, 0.013341736048460007, 0.004106489010155201, 0.011093241162598133, -0.04926791787147522, 0.0010378150036558509, 0.0011379277566447854, -0.010013763792812824, -0.005457078572362661, -0.028195735067129135, 0.013391481712460518, -0.02105228416621685, 0.057465970516204834, -0.025947239249944687, -0.018366029486060143, 0.027837567031383514, 0.0019674336072057486, -0.047437284141778946, -0.01747061125934124, 0.02706153877079487, 0.018326232209801674, -0.013421328738331795, -0.004404961597174406, -0.05436185374855995, 0.015242013148963451, 0.0332498736679554, 0.01658514142036438, -0.016575191169977188, 0.0315784253180027, 0.06825079023838043, -0.014386391267180443, -0.013610362075269222, -0.018246639519929886, 0.018256589770317078, 0.049506694078445435, 0.0062380824238061905, -0.061763979494571686, 0.02282322384417057, -0.022843122482299805, 0.04461174085736275, -0.0024512081872671843, 0.04162701219320297, -0.03687134385108948, 0.0027683356311172247, 0.016644835472106934, 0.06331603974103928, 0.01933109201490879, 0.049904659390449524, 0.020793607458472252, -0.11190741509199142, 0.059177216142416, 0.03675195574760437, -0.019868342205882072, 0.02604673057794571, 0.0031289902981370687, 0.014585372991859913, 0.032792218029499054, -0.011441458947956562, 0.006188336759805679, 0.04560665041208267, 0.014834100380539894, 0.04974547401070595, 0.034782037138938904, -0.07784172147512436, -0.007193195633590221, -0.0014737097080796957, 0.007640904746949673, 0.056630246341228485, -0.016694581136107445, -0.013152703642845154, -0.03822442144155502, -0.042741309851408005, -0.019311193376779556, 0.012088149785995483, -0.051775090396404266, 0.005561544094234705, 0.01499328576028347, 0.00006595161539735273, -0.08468669652938843, -0.0230421032756567, 0.013451175764203072, 0.016575191169977188, -0.002755899215117097, -0.04684033989906311, 0.017530305311083794, -0.04688013345003128, 0.0017883498221635818, 0.036911141127347946, 0.03508050739765167, -0.009635698050260544, 0.0608486644923687, -0.05830169469118118, 0.0505811981856823, -0.07063857465982437, -0.0055466205812990665, -0.021171674132347107, 0.06566402316093445, 0.04815362021327019, -0.04025403782725334, 0.004452220164239407, 0.003922430798411369, -0.03840350732207298 ]
37,737
healpy.pixelfunc
ud_grade
Upgrade or degrade resolution of a map (or list of maps). in degrading the resolution, ud_grade sets the value of the superpixel as the mean of the children pixels. Parameters ---------- map_in : array-like or sequence of array-like the input map(s) (if a sequence of maps, all must have same size) nside_out : int the desired nside of the output map(s) pess : bool if ``True``, in degrading, reject pixels which contains a bad sub_pixel. Otherwise, estimate average with good pixels order_in, order_out : str pixel ordering of input and output ('RING' or 'NESTED') power : float if non-zero, divide the result by (nside_in/nside_out)**power Examples: power=-2 keeps the sum of the map invariant (useful for hitmaps), power=2 divides the mean by another factor of (nside_in/nside_out)**2 (useful for variance maps) dtype : type the type of the output map Returns ------- map_out : array-like or sequence of array-like the upgraded or degraded map(s) Examples -------- >>> import healpy as hp >>> hp.ud_grade(np.arange(48.), 1) array([ 5.5 , 7.25, 9. , 10.75, 21.75, 21.75, 23.75, 25.75, 36.5 , 38.25, 40. , 41.75])
def accept_ma(f): """Wraps a function in order to convert the input map from a masked to a regular numpy array, and convert back the output from a regular array to a masked array""" @wraps(f) def wrapper(map_in, *args, **kwds): return_ma = is_ma(map_in) m = ma_to_array(map_in) out = f(m, *args, **kwds) return ma(out) if return_ma else out return wrapper
(map_in, nside_out, pess=False, order_in='RING', order_out=None, power=None, dtype=None)
[ 0.05185140296816826, 0.011140087619423866, 0.058894697576761246, 0.04314461350440979, -0.024350693449378014, 0.0034309523180127144, -0.040808647871017456, -0.004862174857407808, 0.015971293672919273, 0.02252792939543724, -0.009573928080499172, 0.024722324684262276, 0.008751030080020428, -0.007755589205771685, 0.01659952662885189, 0.03440243378281593, -0.040844038128852844, 0.058540765196084976, 0.019979601725935936, 0.064663827419281, 0.01824532262980938, -0.03279203176498413, 0.002369148889556527, 0.013237149454653263, -0.0022530141286551952, 0.02983667701482773, 0.00866254698485136, -0.026226544752717018, 0.047816548496484756, -0.016661465167999268, 0.021165281534194946, -0.012900912202894688, 0.030544545501470566, 0.029217291623353958, 0.052346911281347275, -0.061619993299245834, -0.027589192613959312, 0.022297872230410576, -0.11764782667160034, -0.04197663068771362, -0.010556096211075783, -0.07552962005138397, 0.03334062919020653, 0.060239650309085846, 0.004313576500862837, 0.013414116576313972, 0.009706653654575348, 0.034207768738269806, -0.015033367089927197, 0.025695644319057465, -0.007622864097356796, -0.01611286774277687, 0.05960256606340408, 0.05769132077693939, -0.030172914266586304, 0.0681677833199501, -0.0014433891046792269, 0.008565214462578297, 0.01932482235133648, -0.05825761705636978, -0.04431259632110596, 0.012485039420425892, 0.031464774161577225, -0.06590259820222855, 0.048170484602451324, 0.014555555768311024, -0.0482412688434124, 0.000798011664301157, 0.02686362713575363, 0.06303573399782181, -0.03932212293148041, 0.013334481976926327, 0.010998514480888844, 0.013821141794323921, 0.03794177621603012, 0.033022087067365646, 0.017670178785920143, -0.018369199708104134, -0.0033756501507014036, -0.013467207551002502, 0.0014743583742529154, 0.007229112088680267, -0.03840189054608345, 0.06590259820222855, -0.05248848348855972, -0.025111651048064232, 0.011865654028952122, 0.0447373203933239, 0.025854913517832756, -0.024456873536109924, -0.009441202506422997, 0.014741371385753155, 0.011865654028952122, 0.06077055260539055, -0.1018623486161232, 0.03787098824977875, 0.014927187003195286, 0.027306046336889267, 0.006640695966780186, 0.006813238840550184, 0.021466126665472984, 0.04158730059862137, 0.036313679069280624, 0.03238500654697418, 0.05648794397711754, -0.0021070162765681744, 0.03442012891173363, -0.032703544944524765, -0.030084431171417236, 0.06685822457075119, -0.01867004483938217, -0.010069436393678188, -0.05723120644688606, -0.00491084111854434, -0.03390692546963692, 0.031677138060331345, -0.026067275553941727, -0.037906382232904434, -0.02190854400396347, 0.025943398475646973, 0.01080385036766529, 0.036667611449956894, 0.041056402027606964, -0.09966795146465302, 0.025217832997441292, 0.008998784236609936, 0.03438473492860794, -0.012600068002939224, 0.045586761087179184, -0.0013172999024391174, -0.05124971270561218, 0.032597366720438004, 0.003411043668165803, 0.0633188784122467, -0.023642823100090027, 0.011467477306723595, 0.010219858027994633, -0.007521107792854309, -0.026155758649110794, -0.0013615416828542948, -0.030686119571328163, 0.042649105191230774, 0.04024235159158707, -0.009697805158793926, 0.010476460680365562, -0.053939614444971085, 0.047391828149557114, 0.022651806473731995, 0.021006012335419655, -0.020422019064426422, -0.004014944192022085, 0.014997974038124084, 0.016918068751692772, 0.048382844775915146, -0.009582776576280594, 0.041268762201070786, 0.045799121260643005, -0.04271989315748215, 0.04119797423481941, 0.006693786010146141, -0.02732374146580696, 0.052700843662023544, -0.023288888856768608, -0.046365417540073395, 0.0018371412297710776, -0.008963391184806824, 0.029818980023264885, 0.03196028247475624, 0.03254427760839462, 0.0082201287150383, -0.03695075958967209, -0.04700249806046486, 0.012874366715550423, 0.0017774146981537342, 0.030332185328006744, 0.02891644835472107, -0.03192489221692085, -0.020333535969257355, 0.006463728379458189, 0.04834745079278946, -0.007459169253706932, 0.07230881601572037, -0.05871773138642311, 0.00009477425192017108, -0.016077473759651184, 0.011715231463313103, -0.02489929087460041, -0.027040595188736916, -0.004826781339943409, 0.007291050627827644, 0.01417507603764534, 0.02072286419570446, 0.021483823657035828, -0.02980128303170204, -0.0711408331990242, -0.06459304690361023, -0.048170484602451324, 0.017156973481178284, 0.01355569064617157, -0.023625126108527184, -0.037906382232904434, -0.01692691631615162, -0.010520702227950096, 0.03463248908519745, -0.01851077377796173, -0.016944613307714462, 0.008379398845136166, 0.027075987309217453, -0.050648026168346405, -0.00875987857580185, 0.036526039242744446, -0.056877270340919495, -0.030845390632748604, 0.016873827204108238, 0.03036757931113243, -0.015537723898887634, 0.08225437253713608, 0.02732374146580696, -0.0063354275189340115, 0.054718270897865295, -0.05305477976799011, -0.006738027557730675, -0.029199594631791115, 0.020528201013803482, 0.05305477976799011, 0.026120364665985107, 0.00002994963142555207, 0.01636062189936638, 0.04923228546977043, -0.002129137050360441, -0.02819088101387024, 0.003977338783442974, -0.032137252390384674, -0.03978223726153374, 0.01425471156835556, -0.045126646757125854, 0.10249942541122437, -0.05800986289978027, 0.04356933385133743, 0.029358865693211555, 0.02649199590086937, 0.00567180011421442, 0.03594204783439636, 0.04502046853303909, -0.0016092958394438028, 0.0029752617701888084, -0.04799351468682289, 0.049621615558862686, 0.014006957411766052, 0.04378169775009155, -0.05457669869065285, 0.03670300543308258, 0.017077339813113213, 0.05524917319417, 0.035588111728429794, 0.020138872787356377, 0.02123606950044632, -0.025377102196216583, 0.015298818238079548, 0.0013637538067996502, 0.02452765963971615, -0.026067275553941727, 0.057443566620349884, -0.05277163162827492, -0.036154408007860184, -0.03780020400881767, -0.009290779940783978, 0.02274029143154621, 0.05556771531701088, -0.01667916215956211, -0.0854397863149643, 0.031677138060331345, 0.013564539141952991, -0.08211280405521393, -0.003873370587825775, 0.035906653851270676, 0.08940385282039642, 0.0018382472917437553, 0.03355298936367035, 0.01611286774277687, -0.031270112842321396, 0.005499257240444422, -0.059354811906814575, 0.01247619092464447, -0.06721215695142746, -0.0014489192981272936, 0.010308342054486275, 0.06243404373526573, 0.03599513694643974, -0.05475366488099098, 0.017413577064871788, 0.0007543228566646576, 0.003344680881127715, -0.04983397573232651, -0.03886200487613678, -0.05542613938450813, -0.040596283972263336, -0.06353124231100082, 0.0006354229990392923, -0.07145937532186508, 0.0020406534895300865, -0.0398884154856205, 0.034809455275535583, 0.02907571755349636, 0.0058974334970116615, -0.019625667482614517, -0.010396825149655342, -0.02387288026511669, -0.0028558089397847652, 0.04551597312092781, 0.005618710070848465, -0.013210604898631573, -0.06848632544279099, -0.07170712947845459, 0.02958892285823822, 0.04261371120810509, 0.0237136110663414, 0.0417642705142498, 0.03236730769276619, 0.034774065017700195, 0.0309869647026062, 0.006733603775501251, -0.004587875679135323, -0.03004903718829155, 0.0012022712035104632, -0.025430193170905113, 0.043887875974178314, -0.052453089505434036, 0.026155758649110794, 0.01754630170762539, -0.02449226565659046, 0.013166363351047039, -0.013281391933560371, -0.0002980791905429214, -0.03695075958967209, 0.02983667701482773, -0.0033424687571823597, -0.031464774161577225, -0.016643770039081573, 0.003846825333312154, -0.04618845134973526, 0.03794177621603012, -0.03257966786623001, 0.01621904782950878, -0.015670448541641235, 0.04799351468682289, -0.03440243378281593, 0.03378304839134216, 0.0069769336842000484, 0.003776038531213999, 0.05057723820209503, 0.01745781861245632, 0.016316380351781845, 0.006242519710212946, 0.01875852793455124, 0.025642553344368935, 0.0038600980769842863, 0.002220938913524151, -0.05107274651527405, -0.01541384682059288, 0.03305748105049133, -0.003977338783442974, 0.01530766673386097, -0.06402675062417984, 0.03387153148651123, 0.008038736879825592, -0.01683843322098255, -0.03144707903265953, 0.029394259676337242, -0.014838702976703644, 0.02999594807624817, 0.005941675044596195, -0.035747382789850235, -0.023678217083215714, 0.010892333462834358, -0.008574062958359718, 0.004417544696480036, 0.00008226211502915248, -0.08628922700881958, 0.06487619131803513, 0.03581817075610161, 0.0137415062636137, -0.019784938544034958, -0.012883215211331844, 0.03323444724082947, -0.00945889949798584, 0.005698345135897398, 0.0050258697010576725, -0.08076784759759903, -0.01188335008919239, -0.016696859151124954, -0.03864964470267296, 0.020811347290873528, -0.012980547733604908, -0.04371090978384018, -0.019059371203184128, -0.056841880083084106, 0.026828233152627945, -0.01231691986322403, -0.030686119571328163, -0.008702363818883896, -0.005640830844640732, 0.016457954421639442, -0.03995920345187187, -0.013582236133515835, 0.001269739936105907, -0.027606889605522156, -0.0258726105093956, 0.022598717361688614, 0.028650997206568718, 0.034561701118946075, 0.0036831307224929333, 0.053939614444971085, -0.026102667674422264, 0.019820330664515495, 0.04328618943691254, -0.04650698974728584, -0.05284241959452629, -0.03921594098210335, -0.03339371830224991, 0.05861154943704605, -0.04972779378294945, -0.0074281999841332436, 0.013157514855265617, 0.03985302150249481, -0.06728294491767883, -0.0010374704143032432, -0.01705964282155037, -0.04901992529630661, 0.005685072857886553, 0.014705978333950043, -0.07312286645174026, -0.005950523540377617, -0.059142451733350754, -0.01160020288079977, 0.015316515229642391, -0.04679013788700104, -0.008255521766841412, 0.010122526437044144, 0.01090118195861578, 0.040596283972263336, 0.036773793399333954, 0.038897398859262466, -0.012254981324076653, -0.006016886327415705, -0.033641472458839417, -0.0006249155849218369, 0.05316096171736717, 0.013582236133515835, -0.04679013788700104, 0.025093955919146538, -0.015245728194713593, 0.009503141045570374, 0.01319290790706873, 0.09074880182743073, 0.0230411347001791, -0.019112462177872658, -0.08190044015645981, 0.0014610857469961047, 0.05737277865409851, 0.0032982269767671824, -0.013493752107024193, -0.026226544752717018, -0.06455764919519424, 0.035747382789850235, 0.08048470318317413, 0.019165553152561188, -0.010989665985107422, -0.010741911828517914, -0.009335022419691086, 0.06445147097110748, -0.06937115639448166, 0.012723945081233978, -0.029659710824489594, 0.06455764919519424, 0.024297602474689484, -0.033022087067365646, 0.04923228546977043, -0.0022673928178846836, 0.02376670017838478, -0.01775866374373436, 0.016997704282402992, -0.004950658418238163, 0.008963391184806824, 0.0022109844721853733, 0.005286896601319313, 0.030951570719480515, -0.029411956667900085, 0.0010203267447650433, 0.0361013188958168, -0.0336768664419651, 0.03463248908519745, 0.040490105748176575, 0.01865234784781933, 0.015458088368177414, 0.006711482536047697, 0.05882391333580017, 0.007954677566885948, 0.06459304690361023, -0.03346450626850128, -0.03519878536462784, -0.019041676074266434, -0.1342119574546814, 0.016130564734339714, -0.01391847338527441, -0.016042079776525497, -0.08282066881656647, -0.025660250335931778, -0.040029991418123245, 0.02236866019666195, -0.05422276258468628, 0.025129348039627075, 0.007658257614821196, 0.05942559987306595, 0.0005176292033866048, 0.008414792828261852, -0.04077325388789177, -0.07857345789670944, -0.05185140296816826, -0.048064302653074265, 0.002241953741759062, 0.002778385765850544, -0.026686660945415497, -0.04307382553815842, -0.032508883625268936, 0.0028956264723092318, 0.03829571232199669, 0.011750624515116215, -0.0006005825707688928, -0.03797717019915581, -0.03886200487613678, -0.01708618737757206, 0.03618980199098587, 0.049869369715452194, -0.007954677566885948, 0.0008217916474677622, -0.006238095462322235, -0.05153286084532738, -0.03181871026754379, 0.03565889969468117, -0.009211145341396332, 0.015139548107981682, 0.0064681526273489, -0.0017541877459734678, 0.026775144040584564, 0.022103209048509598, -0.034048497676849365, -0.015891658142209053, 0.021359946578741074, -0.035074908286333084, -0.04006538540124893, -0.017953326925635338, 0.07092846930027008, 0.05170982703566551, 0.007729044184088707, -0.019236339256167412, 0.01690037176012993, -0.012989395298063755, -0.05917784571647644, -0.02665126696228981, -0.02732374146580696, 0.0007200354593805969, 0.023996757343411446, 0.00781310349702835, -0.14001648128032684, 0.010219858027994633, 0.02551867626607418, 0.05783289670944214, -0.02160770073533058, -0.015033367089927197, 0.0028093550354242325, -0.028544817119836807, -0.0269521102309227, -0.023908274248242378, -0.04133954644203186, 0.08310382068157196, 0.018006417900323868, -0.09004093706607819, -0.02638581581413746, -0.019395610317587852, -0.041835054755210876, -0.005388652440160513, -0.02686362713575363, 0.002070516813546419, 0.04969240352511406, -0.008237824775278568, -0.028792571276426315, 0.016298683360219002, -0.06034582853317261, 0.03305748105049133, 0.014245863072574139, 0.026120364665985107, -0.017342789098620415, -0.010042890906333923, -0.024244511500000954, 0.002237529493868351, -0.006260216236114502, 0.009830530732870102, 0.04271989315748215, 0.012458493933081627, 0.0005173526587896049, -0.010042890906333923, -0.05645254999399185, -0.055390745401382446, -0.010529550723731518, -0.010848091915249825, -0.006534515414386988, -0.07163634151220322, -0.004738297779113054, -0.04891374707221985, -0.09046565741300583, 0.027642283588647842, 0.011007362976670265, -0.02268720045685768, 0.08182965219020844, -0.011591354385018349, -0.05333792790770531, 0.0014079955872148275, 0.02700520120561123, 0.003187622409313917, 0.015829719603061676, -0.027146775275468826, -0.03535805642604828, -0.022510234266519547, 0.06685822457075119, -0.06976048648357391, 0.017740966752171516, 0.01443167869001627, -0.027766160666942596, 0.007627288345247507, -0.001843777485191822, 0.05163904279470444, 0.04031313955783844, -0.00241560279391706, 0.01835150271654129, 0.002311634598299861, 0.011325903236865997, 0.027288349345326424, -0.042649105191230774, 0.038791220635175705, -0.034154679626226425, -0.04318000748753548, 0.049409255385398865, -0.019731847569346428, 0.05581546947360039, -0.040702465921640396, -0.02964201383292675, 0.018493076786398888, 0.018316110596060753, -0.024368388578295708, -0.036384467035532, 0.01659952662885189, -0.07064532488584518, 0.06108909100294113, 0.056063223630189896, 0.008936845697462559, 0.040808647871017456, 0.03066842257976532, -0.030402973294258118, -0.004556906409561634, -0.07921053469181061, 0.017962174490094185, -0.06519473344087601, -0.03627828508615494, 0.03164174407720566, -0.05252387747168541, -0.030809996649622917, 0.01250273548066616, 0.022333266213536263, 0.03088078461587429, 0.0019510638667270541, 0.02118297852575779, -0.036313679069280624, 0.005109929013997316, 0.03918054699897766, -0.013290240429341793, 0.03726930171251297, 0.011803715489804745, -0.010892333462834358, 0.022563323378562927, 0.012414252385497093, 0.03183640539646149, 0.015528875403106213, 0.09457129240036011, -0.01106045302003622, -0.014201621524989605, 0.018333805724978447, -0.0030283520463854074, -0.02031583897769451, 0.06561945378780365, 0.06445147097110748, -0.05386883020401001, 0.039251334965229034, 0.005950523540377617, -0.009591624140739441, 0.0668228343129158, -0.05089578032493591, 0.038012564182281494, -0.007799831219017506, 0.06399135291576385, 0.008162613958120346, 0.0184576828032732, -0.020475110039114952, 0.025270922109484673, -0.016121715307235718, -0.05967335402965546, -0.06296494603157043, 0.01196298561990261, -0.03486254811286926, 0.00218222732655704, 0.017121581360697746, 0.06477001309394836, 0.07644984871149063, 0.023642823100090027, -0.006056704092770815, -0.03201337531208992, -0.04112718626856804, -0.013060182332992554, 0.06756609678268433, 0.017829449847340584, -0.009883620776236057, -0.013148666359484196, 0.017360486090183258, 0.003935309126973152, -0.02705829218029976, 0.01700655184686184, -0.046683959662914276, -0.04948003962635994, 0.016148261725902557, -0.04424181208014488, 0.05478905886411667, -0.00005875865463167429, -0.0037450692616403103, 0.04891374707221985, -0.028650997206568718, 0.00963586661964655, -0.04509125277400017, 0.03300439193844795, -0.05546153336763382, -0.027129078283905983, 0.03346450626850128, -0.00887933187186718, 0.038897398859262466, 0.05170982703566551, -0.0005320077762007713, 0.0030792299658060074, -0.020333535969257355, 0.03489794209599495, -0.022244783118367195, 0.034490916877985, 0.003645525313913822, 0.001889125327579677, -0.015343059785664082, 0.029872070997953415, 0.04413563013076782, 0.012688551098108292, 0.01627213880419731, -0.03165943920612335, 0.018493076786398888, 0.01989111863076687, -0.036313679069280624, 0.06597338616847992, -0.03440243378281593, 0.02051050402224064, -0.012980547733604908, -0.023695914074778557, -0.010405673645436764, 0.00676457304507494 ]
37,739
healpy.pixelfunc
vec2ang
vec2ang: vectors [x, y, z] -> theta[rad], phi[rad] Parameters ---------- vectors : float, array-like the vector(s) to convert, shape is (3,) or (N, 3) lonlat : bool, optional If True, return angles will be longitude and latitude in degree, otherwise, angles will be co-latitude and longitude in radians (default) Returns ------- theta, phi : float, tuple of two arrays the colatitude and longitude in radians See Also -------- ang2vec, rotator.vec2dir, rotator.dir2vec
def vec2ang(vectors, lonlat=False): """vec2ang: vectors [x, y, z] -> theta[rad], phi[rad] Parameters ---------- vectors : float, array-like the vector(s) to convert, shape is (3,) or (N, 3) lonlat : bool, optional If True, return angles will be longitude and latitude in degree, otherwise, angles will be co-latitude and longitude in radians (default) Returns ------- theta, phi : float, tuple of two arrays the colatitude and longitude in radians See Also -------- ang2vec, rotator.vec2dir, rotator.dir2vec """ vectors = vectors.reshape(-1, 3) dnorm = np.sqrt(np.sum(np.square(vectors), axis=1)) theta = np.arccos(vectors[:, 2] / dnorm) phi = np.arctan2(vectors[:, 1], vectors[:, 0]) phi[phi < 0] += 2 * np.pi if lonlat: return thetaphi2lonlat(theta, phi) else: return theta, phi
(vectors, lonlat=False)
[ -0.011524607427418232, 0.030560869723558426, 0.008815635927021503, 0.009320697747170925, -0.0071213808842003345, -0.02134118415415287, -0.040662121027708054, 0.05954227223992348, 0.023673655465245247, 0.07078220695257187, -0.0050138928927481174, -0.02488580532371998, 0.018540384247899055, 0.031222043558955193, -0.04602496325969696, 0.0022440843749791384, -0.0020007360726594925, -0.007332588545978069, -0.06982718408107758, -0.03195668011903763, 0.02301248162984848, 0.015124324709177017, 0.023104311898350716, 0.02178196609020233, 0.0192842036485672, -0.010569579899311066, 0.052416302263736725, -0.020661646500229836, -0.01588650979101658, 0.025014366954565048, -0.0037282793782651424, 0.03221380338072777, -0.007075465749949217, -0.002350836293771863, 0.02859571762382984, 0.002943136729300022, 0.06369296461343765, 0.05414269492030144, -0.025363318622112274, 0.0012293679174035788, -0.028558986261487007, -0.032177072018384933, -0.007516247685998678, 0.012745940126478672, 0.01051448192447424, -0.007860608398914337, -0.06358277052640915, -0.06817425042390823, -0.013544856570661068, 0.011432777158915997, 0.005427125841379166, -0.011754181236028671, 0.0745655819773674, -0.016492584720253944, 0.019688252359628677, 0.016161998733878136, 0.02797127701342106, 0.08139770478010178, -0.04275583475828171, 0.013471392914652824, -0.02872427925467491, 0.014922300353646278, 0.0023152523208409548, -0.0011754181468859315, 0.07023122906684875, 0.07728374004364014, 0.04095597565174103, -0.016740525141358376, 0.003287497442215681, 0.019908644258975983, -0.047788091003894806, -0.0022360491566359997, -0.03542783483862877, -0.05469367280602455, 0.03753991425037384, 0.062113501131534576, 0.009678833186626434, -0.0423150509595871, -0.003434424754232168, -0.006983636412769556, -0.02551024593412876, -0.0769164189696312, 0.04653920978307724, 0.01869649440050125, 0.04892677813768387, 0.02679585851728916, -0.023636924102902412, 0.012029669247567654, -0.037246059626340866, -0.03491359204053879, -0.01311325840651989, -0.04484954848885536, 0.021047329530119896, 0.02488580532371998, -0.05708124116063118, -0.0053169303573668, 0.02982623502612114, 0.02306758053600788, -0.03798069804906845, -0.02319614216685295, 0.006239817012101412, -0.021194256842136383, -0.05564869940280914, -0.01154297310858965, 0.024132803082466125, -0.0071902526542544365, -0.04793502017855644, -0.0424252450466156, 0.07331670075654984, -0.037760306149721146, -0.027622325345873833, 0.020680012181401253, 0.102849081158638, -0.01546409446746111, -0.05976266413927078, -0.0109552638605237, 0.045216865837574005, -0.015611021779477596, -0.05939534679055214, -0.03311373293399811, 0.022461505606770515, 0.008650342933833599, 0.04584130644798279, 0.007024959661066532, 0.058072999119758606, -0.06611726433038712, 0.023692021146416664, 0.007869791239500046, -0.051644932478666306, 0.03562986105680466, 0.022608432918787003, -0.015133507549762726, 0.00868248287588358, 0.017759833484888077, 0.015959974378347397, -0.035391103476285934, -0.00660713529214263, 0.013370380736887455, 0.008048859424889088, 0.010110432282090187, 0.010670592077076435, 0.021065697073936462, -0.00816364586353302, -0.022094186395406723, -0.019816813990473747, 0.03970709070563316, 0.03805416077375412, -0.08066307008266449, 0.0060745240189135075, -0.04176407307386398, 0.041102901101112366, -0.08896445482969284, -0.05359171703457832, 0.035703323781490326, -0.03623593598604202, -0.043490469455718994, -0.013003062456846237, -0.021543210372328758, 0.046686138957738876, 0.025344952940940857, 0.04099270701408386, 0.0212677214294672, -0.0476778969168663, 0.034289151430130005, 0.022020723670721054, 0.03177301958203316, -0.009476808831095695, 0.013131624087691307, -0.009504357352852821, -0.04257217422127724, -0.009127856232225895, 0.0488533154129982, -0.045731108635663986, -0.025749003514647484, 0.04551072046160698, -0.08360160887241364, 0.01243371982127428, 0.029587477445602417, 0.02115752547979355, -0.033903464674949646, -0.012837769463658333, 0.00048153114039450884, 0.020937135443091393, 0.016630329191684723, 0.036401230841875076, 0.05664046108722687, 0.03669508546590805, -0.02134118415415287, -0.010156347416341305, -0.053261131048202515, -0.012277609668672085, 0.0015220745699480176, 0.006193902343511581, 0.05836685374379158, 0.004022134002298117, -0.0019410469103604555, -0.002123558195307851, 0.027916179969906807, -0.034160587936639786, -0.01864139549434185, -0.011974572204053402, 0.01632729172706604, 0.004143808037042618, -0.03381163626909256, 0.024904171004891396, 0.044188372790813446, 0.006166353356093168, -0.05443654954433441, 0.0424252450466156, -0.03329738974571228, 0.09462115913629532, 0.0022819640580564737, -0.028834475204348564, 0.020294327288866043, -0.035648226737976074, 0.07463905215263367, 0.01620791293680668, 0.041102901101112366, -0.009233459830284119, 0.051902055740356445, 0.04988180473446846, -0.02679585851728916, -0.03155262768268585, 0.000698478426784277, 0.011497057974338531, -0.02005557157099247, 0.004396338947117329, 0.06215023249387741, 0.01998210698366165, -0.029165061190724373, 0.02499600127339363, -0.04558418318629265, -0.028816109523177147, -0.009899224154651165, -0.022920653223991394, -0.024573585018515587, 0.05642006918787956, -0.018283260986208916, 0.00621685991063714, 0.017576172947883606, 0.0005687692319042981, -0.0014038441004231572, -0.03324229270219803, 0.0438210554420948, 0.017181307077407837, 0.03864187002182007, -0.031662825495004654, -0.014931483194231987, -0.0334259532392025, 0.014600896276533604, -0.08845020830631256, 0.06901907920837402, 0.06420721113681793, 0.017052745446562767, -0.0006330498727038503, -0.04080904647707939, 0.01500494685024023, 0.0333157554268837, 0.0052388752810657024, -0.009761479683220387, 0.018558749929070473, -0.028136570006608963, -0.03875206410884857, 0.0011564783053472638, 0.07427173107862473, -0.032819878309965134, 0.0618196465075016, -0.003333412343636155, 0.00307858525775373, -0.003039557719603181, 0.02969767339527607, -0.03562986105680466, -0.06574995070695877, -0.01005533430725336, 0.06240735575556755, 0.033003535121679306, 0.0386786013841629, -0.019908644258975983, -0.044702619314193726, 0.06101154536008835, -0.00015596672892570496, -0.013030611909925938, -0.04286602884531021, 0.05708124116063118, -0.05572216585278511, 0.0096145523712039, -0.00883400160819292, 0.036291033029556274, 0.02095550112426281, -0.029348719865083694, 0.09315188229084015, 0.028393693268299103, 0.0037673069164156914, -0.007002002093940973, 0.050432782620191574, 0.01723640412092209, -0.014793738722801208, -0.023287970572710037, 0.045988231897354126, -0.04466588795185089, -0.02051471918821335, -0.010486933402717113, 0.025087829679250717, -0.04396798461675644, -0.0065244887955486774, -0.007236167788505554, 0.0038660236168652773, -0.06306852400302887, 0.02422463148832321, 0.006451025139540434, -0.055428311228752136, -0.0641704797744751, 0.02885284088551998, -0.006212268490344286, -0.021359549835324287, 0.0564568005502224, -0.0564568005502224, -0.06703556329011917, 0.06204003468155861, -0.04929409548640251, 0.010165530256927013, 0.07816530019044876, 0.03708076849579811, 0.005151636898517609, 0.002325583016499877, 0.014545799233019352, -0.0018641396891325712, 0.028246765956282616, 0.08014882355928421, 0.032232169061899185, 0.014398871921002865, 0.009430893696844578, 0.0185862984508276, -0.009825760498642921, -0.038274552673101425, -0.01288368459790945, 0.027401933446526527, 0.030120087787508965, -0.0008287616074085236, -0.010156347416341305, 0.012654110789299011, 0.00010768448555609211, 0.007125972304493189, 0.05300401151180267, -0.009339064359664917, 0.0385684072971344, -0.00899470318108797, 0.004490464460104704, 0.028393693268299103, 0.06126866862177849, 0.009991053491830826, 0.009440076537430286, -0.012452085502445698, 0.011901108548045158, -0.0769164189696312, -0.0003013156820088625, 0.0012488816864788532, -0.027291739359498024, 0.047530967742204666, -0.016097718849778175, -0.03597881272435188, 0.017631271854043007, 0.05050624534487724, -0.04022133722901344, -0.003650224069133401, -0.017061928287148476, 0.014178480952978134, -0.03201177716255188, -0.018430188298225403, -0.0022567110136151314, 0.050028733909130096, 0.0436006635427475, 0.08316083252429962, 0.023030849173665047, -0.033389221876859665, 0.029807867482304573, -0.013866260647773743, 0.016887452453374863, -0.04327007755637169, -0.03978055715560913, -0.030487406998872757, -0.05546504259109497, 0.02108406275510788, 0.02776925265789032, 0.05693431571125984, 0.01532634999603033, 0.036933839321136475, 0.008889099583029747, -0.04514339938759804, 0.0579628050327301, -0.05829339101910591, 0.006455616559833288, 0.004456028342247009, -0.021175891160964966, -0.0043136924505233765, -0.009054392576217651, -0.0334259532392025, -0.0076815406791865826, 0.0386786013841629, -0.033132098615169525, -0.029789501801133156, 0.011175654828548431, -0.06380316615104675, -0.030064990743994713, -0.055318113416433334, 0.002369202207773924, 0.035648226737976074, -0.02519802562892437, 0.022332943975925446, -0.04180080443620682, -0.03485849127173424, 0.06832117587327957, 0.07441865652799606, -0.03790723532438278, -0.009587003849446774, 0.06119520589709282, -0.08778903633356094, -0.021873796358704567, 0.008218743838369846, 0.009972687810659409, -0.03381163626909256, -0.00169195921625942, -0.00644643371924758, -0.00287656020373106, 0.03195668011903763, 0.0282284002751112, 0.002853602869436145, -0.010110432282090187, 0.004889923147857189, -0.012516366317868233, 0.050028733909130096, 0.015289618633687496, 0.03700730577111244, -0.06108500808477402, 0.024830706417560577, 0.06306852400302887, 0.03871533274650574, 0.0034022843465209007, -0.006336238235235214, 0.028301862999796867, -0.012589829973876476, 0.04047846049070358, -0.07228821516036987, 0.04506993666291237, -0.023875679820775986, -0.05252649635076523, -0.028889572247862816, -0.036933839321136475, 0.04304968938231468, -0.03952343389391899, -0.0007220097468234599, -0.012690842151641846, -0.0019203851697966456, -0.06905581057071686, 0.07034142315387726, -0.005642924923449755, -0.03212197124958038, 0.04147021844983101, -0.036033909767866135, -0.030432309955358505, 0.035446200519800186, -0.03039557673037052, 0.024242999032139778, 0.04191100224852562, -0.007631034590303898, -0.001407287665642798, 0.01651095040142536, -0.003668589983135462, -0.038017429411411285, 0.029146695509552956, 0.03375653922557831, -0.04642901569604874, 0.065345898270607, 0.02615305222570896, 0.006290323566645384, -0.0003544046194292605, -0.009596186690032482, -0.013811162672936916, -0.05237956717610359, -0.046833064407110214, -0.09998400509357452, -0.008755946531891823, -0.007424418348819017, 0.02694278582930565, 0.0399642139673233, 0.06325218826532364, -0.010046151466667652, 0.024279730394482613, 0.012957148253917694, -0.033848367631435394, 0.018347542732954025, 0.0399642139673233, 0.009853309951722622, 0.020294327288866043, 0.008044268004596233, 0.021047329530119896, 0.007998352870345116, -0.019008714705705643, -0.045216865837574005, 0.06494185328483582, 0.046318817883729935, -0.014949848875403404, 0.03465646877884865, -0.029165061190724373, 0.015629388391971588, -0.04859619215130806, 0.02018413320183754, -0.01573958247900009, -0.04525359719991684, 0.0423150509595871, -0.01266329362988472, -0.012690842151641846, 0.07034142315387726, 0.0462820865213871, 0.0096145523712039, 0.10666919499635696, -0.023159408941864967, -0.014582530595362186, 0.02821003459393978, 0.02802637591958046, -0.03208523988723755, 0.0006416589021682739, -0.041947733610868454, -0.03311373293399811, -0.09609042853116989, 0.0022590067237615585, 0.006992819253355265, 0.019504593685269356, 0.010119615122675896, 0.0009659319766797125, -0.03237909451127052, 0.001176566001959145, -0.0721045508980751, -0.015390630811452866, -0.03173628821969032, 0.050285857170820236, 0.03291170671582222, -0.06431740522384644, 0.021047329530119896, -0.015298801474273205, 0.012295975349843502, -0.020680012181401253, -0.0032897931523621082, 0.0085447384044528, -0.0030280789360404015, 0.014242761768400669, -0.028907937929034233, -0.042645636945962906, 0.0373929888010025, 0.013645869679749012, -0.03529927507042885, 0.002014510566368699, -0.06343584507703781, 0.018733225762844086, -0.07676949352025986, -0.03649305924773216, -0.0525999590754509, -0.0011553303338587284, -0.06292159855365753, 0.024261364713311195, 0.007548388093709946, 0.00694231316447258, 0.002412821166217327, 0.034417711198329926, -0.051387809216976166, 0.01754862442612648, 0.0366399846971035, -0.0154273621737957, 0.06541936099529266, -0.005023075733333826, -0.005776077974587679, 0.012057218700647354, -0.0640602856874466, -0.04584130644798279, -0.014178480952978134, -0.026759127154946327, 0.0024816931691020727, -0.0605340301990509, 0.003489522496238351, -0.021690137684345245, -0.00868248287588358, 0.033389221876859665, -0.06666824221611023, 0.037833768874406815, 0.03875206410884857, 0.016299743205308914, 0.013691783882677555, 0.062370624393224716, 0.051718395203351974, 0.009141630493104458, -0.04646574705839157, 0.004639687482267618, 0.017447613179683685, -0.04440876469016075, -0.01632729172706604, -0.061158474534749985, -0.022002357989549637, 0.08301389962434769, -0.02383894845843315, -0.04301295429468155, -0.03469320014119148, 0.0044192965142428875, -0.029550746083259583, -0.0007839946774765849, -0.04749423637986183, -0.04191100224852562, -0.015353898517787457, -0.05366518348455429, -0.05102049186825752, -0.015565106645226479, -0.008108547888696194, -0.021561576053500175, 0.0043136924505233765, -0.03568495810031891, 0.026850957423448563, 0.010808336548507214, -0.03254438936710358, 0.02936708554625511, -0.023875679820775986, 0.027530495077371597, -0.07114952802658081, -0.08103038370609283, -0.05021239072084427, -0.00368925160728395, -0.013462210074067116, -0.0320301428437233, 0.035960447043180466, 0.0326729491353035, 0.015280434861779213, 0.02391241118311882, -0.016492584720253944, -0.018200615420937538, 0.016942549496889114, 0.030432309955358505, -0.02846715785562992, 0.03812762349843979, -0.04492301121354103, -0.0024748060386627913, 0.023177774623036385, 0.04793502017855644, -0.025363318622112274, -0.012277609668672085, -0.007658583577722311, -0.0006261626840569079, 0.09880858659744263, -0.016492584720253944, -0.01108382549136877, 0.01172663178294897, 0.029587477445602417, -0.0282284002751112, 0.02012903429567814, 0.08183848112821579, 0.0141142001375556, 0.02949564717710018, -0.04892677813768387, -0.035776786506175995, -0.04440876469016075, 0.03575842082500458, 0.011019544675946236, -0.015363081358373165, -0.02751212939620018, -0.01843937113881111, 0.042461980134248734, -0.01307652611285448, 0.013443844392895699, 0.04866965487599373, -0.023747118189930916, 0.02745703235268593, -0.04121309518814087, -0.007162704132497311, 0.05451001226902008, 0.01723640412092209, 0.057301633059978485, 0.03682364523410797, 0.030322114005684853, 0.004217271693050861, 0.053628452122211456, -0.04205792769789696, 0.03111184760928154, 0.03430751711130142, -0.03658488765358925, 0.000466895813588053, 0.026318345218896866, 0.02905486524105072, -0.03871533274650574, -0.02512456104159355, 0.04176407307386398, 0.03585025295615196, 0.009981870651245117, 0.013893809169530869, 0.0047246296890079975, 0.010477750562131405, 0.035262543708086014, 0.038531675934791565, -0.005372027866542339, 0.01172663178294897, -0.029918063431978226, -0.03392183035612106, -0.002428891370072961, -0.00807181652635336, 0.06990064680576324, -0.035519666969776154, -0.02332470193505287, 0.07427173107862473, -0.009651284664869308, -0.06101154536008835, 0.036933839321136475, -0.03820108622312546, -0.023232873529195786, 0.004655757453292608, 0.01651095040142536, 0.020808573812246323, 0.020661646500229836, -0.04407817870378494, 0.03768684342503548, -0.0230859462171793, 0.0066714161075651646, -0.04080904647707939, 0.01864139549434185, 0.006290323566645384, -0.032691314816474915, -0.04911043867468834, 0.027089713141322136, -0.003264540107920766, 0.01672215946018696, -0.08933177590370178, -0.020349426195025444, 0.02488580532371998, -0.05333459749817848, 0.0010049594566226006, -0.04433530196547508, 0.017787382006645203, 0.012938781641423702, 0.03237909451127052, -0.08139770478010178, 0.026520371437072754, -0.019890278577804565, -0.014004004187881947, -0.07096586376428604, 0.03147916495800018, 0.051718395203351974, -0.020735109224915504, 0.04062538966536522, 0.0014256535796448588, -0.04227831959724426, -0.058660708367824554, -0.03581352159380913, -0.004742995835840702, -0.013967272825539112, -0.03798069804906845, 0.013342832215130329, 0.04338027536869049, -0.0257673691958189, -0.08007536083459854, 0.021671772003173828, 0.019835179671645164, -0.010101249441504478, -0.0019226809963583946, -0.04282929748296738, -0.060717690736055374, -0.027475398033857346, 0.028687547892332077, -0.0605340301990509, 0.024114437401294708, -0.012351073324680328, 0.0033999886363744736, -0.028963036835193634, 0.03421568498015404 ]
37,740
healpy.rotator
vec2dir
Transform a vector to angle given by theta,phi. Parameters ---------- vec : float, scalar or array-like The vector to transform (shape (3,) or (3,N)), or x component (scalar or shape (N,)) if vy and vz are given vy : float, scalar or array-like, optional The y component of the vector (scalar or shape (N,)) vz : float, scalar or array-like, optional The z component of the vector (scalar or shape (N,)) lonlat : bool, optional If True, return angles will be longitude and latitude in degree, otherwise, angles will be longitude and co-latitude in radians (default) Returns ------- angles : float, array The angles (unit depending on *lonlat*) in an array of shape (2,) (if scalar input) or (2, N) See Also -------- :func:`dir2vec`, :func:`pixelfunc.ang2vec`, :func:`pixelfunc.vec2ang`
def vec2dir(vec, vy=None, vz=None, lonlat=False): """Transform a vector to angle given by theta,phi. Parameters ---------- vec : float, scalar or array-like The vector to transform (shape (3,) or (3,N)), or x component (scalar or shape (N,)) if vy and vz are given vy : float, scalar or array-like, optional The y component of the vector (scalar or shape (N,)) vz : float, scalar or array-like, optional The z component of the vector (scalar or shape (N,)) lonlat : bool, optional If True, return angles will be longitude and latitude in degree, otherwise, angles will be longitude and co-latitude in radians (default) Returns ------- angles : float, array The angles (unit depending on *lonlat*) in an array of shape (2,) (if scalar input) or (2, N) See Also -------- :func:`dir2vec`, :func:`pixelfunc.ang2vec`, :func:`pixelfunc.vec2ang` """ if np.any(np.isnan(vec)): return np.nan, np.nan if vy is None and vz is None: vx, vy, vz = vec elif vy is not None and vz is not None: vx = vec else: raise TypeError("You must either give both vy and vz or none of them") r = np.sqrt(vx ** 2 + vy ** 2 + vz ** 2) ang = np.empty((2, r.size)) ang[0, :] = np.arccos(vz / r) ang[1, :] = np.arctan2(vy, vx) if lonlat: ang = np.degrees(ang) np.negative(ang[0, :], ang[0, :]) ang[0, :] += 90.0 return ang[::-1, :].squeeze() else: return ang.squeeze()
(vec, vy=None, vz=None, lonlat=False)
[ -0.019009215757250786, 0.016914211213588715, -0.016868865117430687, -0.017948109656572342, -0.007518434897065163, -0.03419119119644165, -0.05020754411816597, 0.0022627857979387045, 0.017440229654312134, 0.06620575487613678, 0.005142282694578171, -0.07313469052314758, 0.03308473899960518, 0.05543145164847374, -0.04121081531047821, -0.0023534786887466908, -0.015009661205112934, 0.04969966411590576, -0.061090681701898575, -0.0003191253636032343, 0.04937317222356796, 0.023815933614969254, 0.03440885618329048, -0.013857862912118435, 0.008357343263924122, 0.012905588373541832, 0.05702764540910721, -0.0007425474468618631, -0.03440885618329048, 0.011173355393111706, 0.034844182431697845, 0.06787450611591339, -0.020024973899126053, -0.016832586377859116, -0.014084595255553722, -0.005060659255832434, 0.036095742136240005, 0.02809663489460945, -0.05187629163265228, 0.005922241136431694, -0.014293188229203224, -0.03705708682537079, 0.029602136462926865, 0.014175287447869778, -0.03226850554347038, -0.019118046388030052, -0.061308346688747406, -0.01946267858147621, -0.030654173344373703, 0.020387746393680573, 0.006411982234567404, 0.010511297732591629, 0.06482722610235214, -0.02697204425930977, 0.04846624284982681, 0.019916143268346786, -0.0005404725088737905, 0.07411417365074158, 0.04331488907337189, 0.049772217869758606, -0.030654173344373703, -0.019353847950696945, 0.02104073390364647, -0.01764882355928421, 0.038272369652986526, 0.011191493831574917, 0.009912725538015366, 0.01504593901336193, -0.02339874766767025, 0.030363956466317177, -0.04911923035979271, 0.019353847950696945, 0.016107045114040375, -0.04846624284982681, 0.03127088397741318, 0.0759643092751503, 0.027298538014292717, -0.02192952297627926, 0.03208712115883827, -0.01605262979865074, 0.018138563260436058, -0.05924054980278015, 0.056955091655254364, 0.01997055858373642, 0.07230031490325928, 0.06765684485435486, -0.05271066725254059, -0.046362169086933136, -0.07211893051862717, -0.028767762705683708, 0.014465504325926304, -0.0275162011384964, 0.0011982788564637303, -0.02648230269551277, -0.08118820935487747, 0.03172434866428375, 0.0261195320636034, 0.022709481418132782, -0.044874805957078934, 0.024015458300709724, -0.008579540997743607, 0.022201601415872574, -0.044004157185554504, 0.008960450999438763, -0.007482157554477453, -0.028513822704553604, -0.022963421419262886, -0.02682693675160408, 0.03990484029054642, 0.010329912416636944, -0.003902058582752943, 0.03346564993262291, 0.04697887971997261, -0.018528543412685394, -0.03687569871544838, 0.0067566148936748505, -0.01070175226777792, -0.03304846212267876, -0.056229546666145325, -0.02428753674030304, 0.018773414194583893, 0.04342372342944145, 0.0290035642683506, 0.019390124827623367, 0.038236092776060104, -0.10186617821455002, 0.00791748333722353, -0.01313232071697712, -0.014510851353406906, 0.10222894698381424, 0.01787555404007435, 0.012579093687236309, -0.01384879369288683, -0.02468658611178398, 0.06370263546705246, 0.0010424006031826138, 0.041464757174253464, 0.013304636813700199, -0.03685756027698517, 0.003484871471300721, 0.041682418435811996, 0.03185131773352623, 0.021693723276257515, -0.011726581491529942, 0.013749031350016594, 0.04443947970867157, 0.027661310508847237, -0.038889080286026, 0.028132911771535873, -0.008919638581573963, 0.024414507672190666, -0.05666487291455269, -0.011626819148659706, 0.04367766156792641, 0.009450191631913185, -0.07473088055849075, -0.05147724598646164, -0.0461445078253746, 0.051586076617240906, 0.05303715914487839, 0.005772598087787628, 0.012588162906467915, -0.051549799740314484, 0.05296460539102554, 0.023852212354540825, 0.01964406482875347, -0.02216532453894615, 0.036077603697776794, -0.03994111716747284, -0.031615518033504486, 0.02769758738577366, 0.018347157165408134, -0.07425928115844727, -0.02933005802333355, 0.02125839702785015, -0.02648230269551277, -0.023126669228076935, 0.049772217869758606, 0.01646074652671814, -0.04287956655025482, 0.021657444536685944, 0.008738253265619278, 0.04277073219418526, -0.0020417221821844578, 0.01581682823598385, 0.018147632479667664, 0.03127088397741318, 0.011064523831009865, -0.014030179008841515, -0.03582366183400154, -0.032468028366565704, -0.0010055566672235727, 0.028114773333072662, 0.012107491493225098, -0.01395762525498867, 0.012724202126264572, -0.02931191958487034, 0.034445133060216904, -0.03439071774482727, -0.027117153629660606, -0.00990365631878376, 0.007386930286884308, 0.00358009897172451, -0.0486113503575325, -0.03292149305343628, 0.023634549230337143, -0.008266650140285492, -0.06990602612495422, 0.04157358780503273, -0.02786083333194256, 0.09025749564170837, 0.009323221631348133, -0.031071359291672707, -0.016451677307486534, -0.038090985268354416, 0.05057031661272049, 0.01982545107603073, 0.06892654299736023, 0.028024081140756607, 0.06609692424535751, 0.023344332352280617, -0.05329110100865364, -0.004983570426702499, -0.022963421419262886, 0.02091376483440399, -0.06914420425891876, -0.01234329305589199, 0.05971215292811394, -0.02160302922129631, -0.04385904595255852, 0.018319949507713318, -0.07814093679189682, 0.02630091831088066, -0.0025008544325828552, -0.0087745301425457, -0.04324233531951904, 0.033411234617233276, -0.0425167940557003, -0.016533300280570984, 0.02445078454911709, 0.008615817874670029, 0.008720114827156067, 0.011128009296953678, 0.05938565731048584, -0.012288876809179783, 0.058587562292814255, -0.0019544302485883236, 0.011672166176140308, -0.00656162528321147, 0.007314376067370176, -0.06801961362361908, 0.07240914553403854, 0.012225392274558544, 0.0020428558345884085, -0.01851947419345379, -0.04160986468195915, 0.020024973899126053, 0.05815223604440689, 0.014991522766649723, 0.008194096386432648, 0.016469815745949745, -0.06533510982990265, -0.021856969222426414, -0.02896728739142418, 0.01906363107264042, 0.00480671925470233, 0.06522627919912338, -0.03241361305117607, -0.019861727952957153, 0.013948556035757065, 0.005981191527098417, -0.013649269007146358, -0.026319056749343872, -0.03199642524123192, 0.048139747232198715, 0.02430567517876625, 0.07226403802633286, 0.01079244539141655, 0.005391688086092472, 0.05220278725028038, -0.033538203686475754, -0.0644281804561615, -0.047450482845306396, 0.04716026782989502, -0.0893142893910408, -0.0022593848407268524, 0.018265534192323685, 0.05252928286790848, -0.006557090673595667, 0.012044006027281284, 0.07792326807975769, 0.025883730500936508, -0.02570234425365925, -0.020768655464053154, 0.04643472284078598, 0.046180784702301025, -0.01601635105907917, -0.06649597734212875, 0.06069163605570793, -0.02125839702785015, -0.03961462527513504, 0.02087748795747757, 0.030835557729005814, -0.054052919149398804, -0.0346083790063858, 0.02124025858938694, -0.017095595598220825, -0.0711757242679596, 0.03712964057922363, -0.016896072775125504, -0.04915550723671913, -0.062396660447120667, -0.029039841145277023, -0.04106570780277252, 0.024541476741433144, 0.017839277163147926, -0.05020754411816597, -0.0395420677959919, 0.0701962411403656, -0.014175287447869778, 0.003385109594091773, 0.09932677447795868, -0.016968626528978348, -0.01783020794391632, -0.007051366847008467, -0.0002074598305625841, 0.029928630217909813, 0.060909297317266464, 0.061997611075639725, 0.07095806300640106, -0.011935175396502018, -0.011663096956908703, -0.025466544553637505, -0.002625557128340006, -0.02252809703350067, -0.028513822704553604, 0.037728212773799896, 0.011744719929993153, 0.023362470790743828, 0.021457921713590622, 0.01448364369571209, 0.013023489154875278, -0.0031787832267582417, 0.020931903272867203, -0.004475690424442291, 0.003446327056735754, 0.009794824756681919, 0.01724977418780327, 0.04864762723445892, 0.08989471942186356, 0.04302467405796051, 0.0672215148806572, 0.023725241422653198, -0.0062895468436181545, -0.07828604429960251, 0.004085711669176817, 0.003391911508515477, -0.04665238782763481, 0.01922687701880932, -0.011327533051371574, -0.04708771035075188, 0.028477545827627182, 0.03965090215206146, -0.035533446818590164, -0.02809663489460945, -0.0425167940557003, 0.01908176951110363, -0.09874634444713593, -0.000990819069556892, 0.051586076617240906, 0.020006835460662842, 0.050098713487386703, 0.059857260435819626, -0.010475020855665207, 0.01736767403781414, 0.06283198297023773, 0.03406422212719917, -0.0020961377304047346, 0.0017163616139441729, -0.023652687668800354, -0.03946951404213905, -0.01694141887128353, 0.08822597563266754, 0.04556407406926155, 0.05996609106659889, 0.030146293342113495, 0.05325482413172722, 0.01601635105907917, -0.027062736451625824, 0.030545340850949287, -0.043496277183294296, -0.017313258722424507, 0.02842313051223755, -0.019299432635307312, -0.005686439573764801, -0.005949448794126511, -0.03649479150772095, 0.014229703694581985, 0.0005265852087177336, 0.005731786135584116, 0.02231043390929699, 0.01575334183871746, -0.047450482845306396, 0.009776686318218708, -0.0668950229883194, 0.013023489154875278, 0.02771572582423687, -0.03061789646744728, 0.017839277163147926, -0.03671245276927948, -0.02864079177379608, 0.061126958578825, 0.05847873166203499, -0.032159674912691116, 0.01295093446969986, 0.0665685310959816, -0.05626582354307175, -0.028749624267220497, 0.02666368894279003, 0.00765447411686182, -0.008039918728172779, -0.01978917233645916, -0.007259960286319256, 0.05057031661272049, 0.07197382301092148, -0.0076680779457092285, 0.04262562468647957, -0.012261669151484966, 0.012642579153180122, -0.025956284254789352, 0.08510614186525345, 0.01736767403781414, 0.017503714188933372, -0.049409449100494385, 0.030527202412486076, 0.028114773333072662, 0.04512874782085419, 0.0008082997519522905, -0.002090469468384981, 0.07603686302900314, -0.003301218617707491, 0.03186945617198944, -0.05818851292133331, 0.07346118241548538, -0.03402794525027275, -0.034281887114048004, -0.01268792524933815, -0.018329018726944923, 0.013340913690626621, -0.05612071603536606, 0.06058280169963837, -0.0003463331959210336, 0.015971004962921143, -0.03210525959730148, 0.016415400430560112, -0.011182424612343311, -0.025974422693252563, 0.016877934336662292, -0.0728444755077362, -0.0364222377538681, 0.06598809361457825, -0.021911384537816048, 0.06268687546253204, 0.02720784582197666, -0.06500861048698425, -0.0022435137070715427, 0.01441108901053667, 0.0027865369338542223, -0.01792997121810913, -0.007754235994070768, 0.022745758295059204, -0.03830864652991295, 0.038272369652986526, 0.035352062433958054, 0.0024101617746055126, 0.026772519573569298, -0.005214836914092302, -0.03885280340909958, -0.05412547290325165, -0.03239547461271286, -0.08692000061273575, -0.014102733694016933, 0.007051366847008467, 0.03199642524123192, -0.014048317447304726, 0.026028839871287346, -0.024886108934879303, 0.05847873166203499, 0.02952958270907402, -0.015345225110650063, -0.046180784702301025, 0.044366925954818726, -0.013912278227508068, 0.03790959715843201, -0.00607188418507576, 0.01170844305306673, 0.02769758738577366, -0.013349982909858227, -0.0329577699303627, 0.05002615973353386, 0.06638714671134949, -0.008420828729867935, 0.03261313959956169, -0.031579241156578064, -0.00808979943394661, -0.011001039296388626, -0.011626819148659706, -0.02162116765975952, -0.04516502469778061, 0.02860451489686966, -0.029021702706813812, 0.01690514199435711, 0.025611652061343193, 0.02951144427061081, 0.014538059011101723, 0.10041508823633194, -0.03939696028828621, -0.014873621985316277, 0.0252126045525074, -0.005028916988521814, -0.016243083402514458, -0.0024283002130687237, -0.021512337028980255, -0.030908113345503807, -0.07106689363718033, 0.04846624284982681, -0.014429227448999882, -0.01845598965883255, 0.016633063554763794, -0.006058280356228352, -0.07219148427248001, -0.041682418435811996, -0.06119951605796814, -0.013458814471960068, -0.001171071082353592, 0.02035146951675415, 0.004294305108487606, -0.029384473338723183, 0.013885070569813251, 0.00380002916790545, -0.0023262707982212305, -0.04752303659915924, -0.03324798867106438, -0.023162946105003357, 0.00787667091935873, -0.003308020532131195, -0.00020349201804492623, -0.009105559438467026, 0.02499494142830372, 0.020061250776052475, -0.03384656086564064, -0.002059860620647669, -0.06830982863903046, 0.0428432896733284, -0.05521378666162491, -0.011472641490399837, -0.06159856170415878, -0.015707995742559433, -0.0589866079390049, 0.014075526036322117, -0.009930863976478577, 0.0033306938130408525, -0.004357790108770132, -0.005378084257245064, -0.01888224482536316, 0.0232354998588562, 0.048502519726753235, 0.0003633380983956158, 0.0899672731757164, -0.0024600427132099867, 0.01125497929751873, -0.0317969024181366, -0.08292951434850693, -0.05238417163491249, -0.031397853046655655, -0.009912725538015366, -0.005164956208318472, -0.03903418779373169, -0.007618196774274111, -0.03598691150546074, -0.015535679645836353, 0.0005115641979500651, -0.04824858158826828, 0.015191047452390194, 0.009450191631913185, -0.007976433262228966, 0.03154296427965164, 0.05637465789914131, 0.043097227811813354, 0.06406540423631668, -0.0850335881114006, 0.004448482766747475, 0.023725241422653198, 0.012488401494920254, -0.04012250155210495, -0.055177509784698486, -0.028477545827627182, 0.03961462527513504, 0.015943797305226326, -0.020841209217905998, 0.008978589437901974, -0.007386930286884308, 0.003795494558289647, 0.028912870213389397, -0.02809663489460945, -0.002482715994119644, -0.04142848029732704, -0.06609692424535751, -0.06464584171772003, -0.027969665825366974, -0.008003640919923782, -0.020260775461792946, -0.003970078192651272, -0.009386707097291946, 0.003126634983345866, 0.00833920482546091, -0.03507998213171959, -0.0009800492553040385, -0.021911384537816048, 0.04451203718781471, -0.04980849474668503, -0.07193754613399506, -0.03442699462175369, -0.03359261900186539, -0.01099197007715702, -0.0729895830154419, 0.03845375403761864, 0.015590095892548561, 0.03761938214302063, -0.010638267733156681, -0.0009551087277941406, 0.009377637878060341, 0.02468658611178398, 0.04117453843355179, -0.03021884709596634, 0.05093308910727501, -0.048865292221307755, -0.009014866314828396, 0.01736767403781414, 0.026409748941659927, -0.004468888510018587, 0.013268359936773777, 0.016424469649791718, 0.026754381135106087, 0.0875004306435585, -0.002380686579272151, -0.03145226836204529, 0.040231335908174515, 0.006080953404307365, -0.01710466668009758, 0.026319056749343872, 0.029457027092576027, 0.004201344680041075, 0.005015312694013119, -0.027752002701163292, 0.006090022623538971, -0.029565859586000443, 0.03665803745388985, -0.0006354165379889309, -0.004346453584730625, -0.02091376483440399, 0.01571706496179104, -0.006411982234567404, -0.0175490602850914, -0.004924620036035776, 0.014528989791870117, -0.03605946525931358, -0.016206806525588036, -0.043460000306367874, -0.016914211213588715, 0.051912568509578705, 0.017966248095035553, 0.02468658611178398, 0.04106570780277252, 0.024577753618359566, -0.04262562468647957, 0.0668950229883194, 0.002972457092255354, 0.023834072053432465, 0.025829315185546875, -0.07770560681819916, 0.0007929953280836344, 0.030001183971762657, 0.007708889432251453, -0.042589347809553146, -0.007663543336093426, 0.023108530789613724, -0.01070175226777792, 0.01441108901053667, 0.001850133528932929, 0.00944112241268158, 0.01982545107603073, 0.009831101633608341, 0.012152837589383125, 0.004396334290504456, -0.06780195236206055, -0.0020258508156985044, 0.011182424612343311, -0.05387153476476669, 0.006230596918612719, 0.020823070779442787, -0.041138261556625366, -0.018755275756120682, 0.044729698449373245, 0.009132767096161842, -0.0349348746240139, 0.05575794354081154, -0.008924173191189766, -0.023362470790743828, -0.02321736142039299, 0.006974278017878532, 0.009404845535755157, 0.011527057737112045, -0.03654920682311058, 0.04117453843355179, 0.017313258722424507, 0.03261313959956169, -0.04469342157244682, -0.013422537595033646, -0.0018943463219329715, -0.03578738495707512, -0.0489378459751606, 0.0014714909484609962, -0.030309541150927544, -0.025067495182156563, -0.09192623943090439, -0.023870350793004036, 0.047232821583747864, -0.07015996426343918, 0.008525124751031399, -0.03631340339779854, 0.046325892210006714, 0.054597076028585434, -0.005273787304759026, -0.03576924651861191, 0.010348050855100155, -0.08097054809331894, -0.01009411085397005, -0.06609692424535751, 0.040956877171993256, 0.01736767403781414, -0.00041860403143800795, -0.014710375107824802, -0.0428432896733284, -0.02138536609709263, -0.021693723276257515, 0.018066009506583214, -0.03546089306473732, 0.0002910672628786415, -0.05202140286564827, -0.018991077318787575, -0.010982900857925415, -0.001758306985720992, -0.05314599350094795, 0.039324406534433365, 0.0015134364366531372, -0.007577385287731886, 0.01809321716427803, -0.02445078454911709, -0.02646416425704956, -0.03943323716521263, 0.014982453547418118, -0.019680341705679893, 0.02648230269551277, 0.010583852417767048, 0.005251114256680012, -0.007092178333550692, 0.011082662269473076 ]
37,741
healpy.pixelfunc
vec2pix
vec2pix : nside,x,y,z,nest=False -> ipix (default:RING) Parameters ---------- nside : int or array-like The healpix nside parameter, must be a power of 2, less than 2**30 x,y,z : floats or array-like vector coordinates defining point on the sphere nest : bool, optional if True, assume NESTED pixel ordering, otherwise, RING pixel ordering Returns ------- ipix : int, scalar or array-like The healpix pixel number corresponding to input vector. Scalar if all input are scalar, array otherwise. Usual numpy broadcasting rules apply. See Also -------- ang2pix, pix2ang, pix2vec Examples -------- >>> import healpy as hp >>> hp.vec2pix(16, 1, 0, 0) 1504 >>> print(hp.vec2pix(16, [1, 0], [0, 1], [0, 0])) [1504 1520] >>> print(hp.vec2pix([1, 2, 4, 8], 1, 0, 0)) [ 4 20 88 368]
def vec2pix(nside, x, y, z, nest=False): """vec2pix : nside,x,y,z,nest=False -> ipix (default:RING) Parameters ---------- nside : int or array-like The healpix nside parameter, must be a power of 2, less than 2**30 x,y,z : floats or array-like vector coordinates defining point on the sphere nest : bool, optional if True, assume NESTED pixel ordering, otherwise, RING pixel ordering Returns ------- ipix : int, scalar or array-like The healpix pixel number corresponding to input vector. Scalar if all input are scalar, array otherwise. Usual numpy broadcasting rules apply. See Also -------- ang2pix, pix2ang, pix2vec Examples -------- >>> import healpy as hp >>> hp.vec2pix(16, 1, 0, 0) 1504 >>> print(hp.vec2pix(16, [1, 0], [0, 1], [0, 0])) [1504 1520] >>> print(hp.vec2pix([1, 2, 4, 8], 1, 0, 0)) [ 4 20 88 368] """ if nest: return pixlib._vec2pix_nest(nside, x, y, z) else: return pixlib._vec2pix_ring(nside, x, y, z)
(nside, x, y, z, nest=False)
[ 0.002827697666361928, -0.04007893055677414, 0.023351309821009636, -0.06866931915283203, 0.03566313907504082, 0.03435336798429489, 0.01152596715837717, 0.017101841047406197, 0.056170377880334854, 0.00224999594502151, 0.03038663975894451, -0.027112217620015144, -0.01768188178539276, 0.0161382257938385, -0.010225553996860981, 0.03298746794462204, 0.019384581595659256, 0.00856027565896511, -0.06638658046722412, 0.0003148707910440862, 0.06316828727722168, -0.00043444568291306496, 0.06866931915283203, 0.043708860874176025, 0.019814934581518173, -0.023893928155303, 0.07042814791202545, -0.02737417258322239, -0.019740089774131775, -0.01684924215078354, 0.005051966290920973, 0.04299784451723099, -0.019253604114055634, 0.007606015540659428, -0.005468285642564297, 0.05201654136180878, -0.0024955777917057276, 0.026794131845235825, -0.07005392760038376, -0.0030639239121228456, -0.025353385135531425, -0.03280035778880119, 0.02628893405199051, -0.0011279216269031167, 0.0004823925846721977, 0.025839870795607567, 0.004991155583411455, -0.03736583888530731, -0.04273588955402374, -0.018926162272691727, -0.016624711453914642, 0.01849580928683281, 0.02095630392432213, -0.015745295211672783, 0.026438621804118156, -0.021498922258615494, -0.014603924006223679, 0.0395176000893116, 0.06518907099962234, 0.023220332339406013, -0.026438621804118156, -0.004361998289823532, 0.003910596016794443, -0.018626786768436432, 0.018121588975191116, 0.021255679428577423, 0.014603924006223679, -0.011591455899178982, -0.054972875863313675, 0.023875217884778976, -0.0326506681740284, 0.026719287037849426, -0.013078979216516018, 0.015745295211672783, 0.040864791721105576, 0.01951555721461773, 0.08195411413908005, -0.026887686923146248, 0.02288353629410267, -0.012919935397803783, 0.02308935672044754, 0.014108083210885525, 0.014772322960197926, 0.029039449989795685, 0.01996462233364582, 0.09422852098941803, 0.03203320875763893, -0.025521785020828247, -0.06328055262565613, 0.0017249189550057054, -0.0392930693924427, -0.011058192700147629, 0.018467742949724197, 0.016615355387330055, -0.02926398068666458, -0.01571722701191902, 0.024997876957058907, -0.0012957357103005052, 0.03021824173629284, -0.028272299095988274, -0.037571657449007034, -0.07057783752679825, -0.03366106376051903, -0.02737417258322239, 0.008041045628488064, 0.039816975593566895, -0.0016512444708496332, 0.030798282474279404, -0.013453198596835136, 0.004991155583411455, 0.038619473576545715, 0.051043570041656494, -0.012910580262541771, -0.058977026492357254, 0.010393952950835228, -0.0034989542327821255, 0.0021377301309257746, 0.04505605250597, 0.02368810772895813, -0.027673548087477684, -0.017494771629571915, -0.008798841387033463, -0.02200411818921566, 0.03551344946026802, -0.013855485245585442, 0.00003405984170967713, -0.03470887988805771, 0.02091888152062893, 0.03910595923662186, 0.09827009588479996, -0.03779619187116623, -0.01898229494690895, -0.0507441945374012, -0.02512885443866253, -0.004048589617013931, -0.059500932693481445, 0.03038663975894451, 0.0005923196440562606, 0.012321184389293194, 0.02164861001074314, 0.004878889303654432, 0.05762983486056328, -0.0014290515100583434, 0.028010345995426178, 0.004123433493077755, 0.023744240403175354, 0.0562826432287693, -0.004174888599663973, 0.07121401280164719, 0.003190223127603531, -0.011095614172518253, -0.02649475634098053, -0.017036352306604385, 0.031172502785921097, 0.016652777791023254, -0.049883488565683365, -0.00998231116682291, -0.06354250758886337, 0.06148429960012436, 0.009537925012409687, -0.02176087535917759, -0.02705608494579792, -0.050482239574193954, 0.007063397206366062, -0.0067312768660485744, 0.0449063666164875, -0.036374155431985855, 0.041426122188568115, 0.03684192895889282, 0.031920939683914185, -0.044756677001714706, -0.050519660115242004, -0.059500932693481445, -0.02757999300956726, 0.04688972979784012, -0.0021798298694193363, -0.01042201928794384, 0.003936323802918196, 0.004623952321708202, -0.018608074635267258, 0.046552933752536774, -0.11166716367006302, 0.045916758477687836, -0.013153823092579842, -0.02681284211575985, 0.06777118891477585, 0.06013710796833038, -0.01172243244946003, -0.004925666842609644, -0.03910595923662186, 0.02501658722758293, 0.037459392100572586, -0.033773329108953476, 0.025634050369262695, 0.010001021437346935, -0.035981226712465286, -0.013238022103905678, 0.01396775059401989, -0.02613924629986286, -0.044270191341638565, -0.022471893578767776, -0.00599219324067235, 0.0013238022802397609, -0.053850214928388596, -0.046552933752536774, 0.012265050783753395, -0.008733352646231651, -0.04726395010948181, 0.006544167175889015, 0.022228650748729706, 0.037421971559524536, -0.013958395458757877, 0.012723470106720924, -0.045355428010225296, 0.001388121279887855, 0.06698533147573471, -0.018926162272691727, 0.03414754942059517, -0.039592444896698, 0.021386656910181046, 0.00021079095313325524, -0.04943442344665527, -0.024230726063251495, 0.0534759983420372, -0.03880658373236656, -0.015885626897215843, 0.017728658393025398, 0.06582524627447128, 0.01421099342405796, -0.026607021689414978, 0.005669428501278162, 0.03880658373236656, 0.011778565123677254, 0.0005715621518902481, -0.026232801377773285, -0.021293101832270622, 0.016297267749905586, 0.06279406696557999, 0.05313919857144356, 0.04924731329083443, 0.014033239334821701, 0.0001850633416324854, -0.03888142853975296, -0.004195938352495432, 0.019365869462490082, 0.05343857407569885, 0.01947813667356968, -0.016783753409981728, -0.024829477071762085, 0.03455919027328491, -0.020114310085773468, 0.021742165088653564, -0.004156177863478661, 0.00014866462151985615, 0.016297267749905586, 0.0005861800746060908, -0.09677321463823318, -0.007100819144397974, -0.004036894999444485, -0.02656959928572178, -0.04950926825404167, -0.01510912086814642, 0.014295193366706371, -0.040827371180057526, 0.010749461129307747, -0.01972137950360775, 0.002617199206724763, 0.02544694021344185, -0.023463575169444084, 0.04644066467881203, 0.009500502608716488, -0.008401232771575451, 0.06997908651828766, -0.016166292130947113, 0.02095630392432213, -0.004247393924742937, 0.03175254166126251, 0.017943834885954857, 0.05867765098810196, 0.0224906038492918, -0.003412415971979499, 0.03285649046301842, -0.03996666520833969, 0.04067768156528473, 0.0073674507439136505, -0.0267379991710186, 0.041987452656030655, 0.12281890958547592, -0.04348433017730713, -0.04610386863350868, 0.04580449312925339, 0.09310586750507355, -0.06447805464267731, -0.04400823637843132, 0.010103932581841946, 0.0647025853395462, -0.04157581180334091, -0.02894589491188526, 0.026307646185159683, -0.023426154628396034, -0.0038053467869758606, 0.005463607609272003, -0.018551941961050034, -0.006282213609665632, 0.043222375214099884, 0.07113916426897049, -0.021461499854922295, -0.037216149270534515, -0.00563200656324625, -0.038263965398073196, 0.008438654243946075, -0.03682322055101395, -0.03010597638785839, -0.013612242415547371, 0.038226544857025146, 0.019328448921442032, -0.036411579698324203, -0.03933048993349075, 0.030311796814203262, 0.02649475634098053, 0.02421201579272747, 0.05306435376405716, 0.036935485899448395, 0.06268180161714554, 0.03006855398416519, 0.0002761332143563777, -0.03150929883122444, 0.05882733687758446, 0.019365869462490082, 0.02905816026031971, -0.008200089447200298, -0.019178759306669235, -0.028085188940167427, -0.03150929883122444, -0.023500997573137283, -0.043222375214099884, 0.03081699274480343, 0.0063149575144052505, 0.013715152628719807, 0.02986273355782032, -0.0379645898938179, -0.014547791332006454, 0.013434487394988537, -0.00312239583581686, -0.038095567375421524, -0.053812794387340546, -0.020263997837901115, -0.023762952536344528, 0.01016006525605917, 0.055609047412872314, 0.011114325374364853, 0.013032201677560806, 0.07252378016710281, 0.04449472203850746, -0.053251463919878006, -0.0069137089885771275, -0.012180851772427559, -0.056619442999362946, -0.0022932651918381453, 0.013453198596835136, -0.03291262313723564, 0.057779524475336075, -0.0073814839124679565, -0.04505605250597, -0.01649373397231102, -0.018505165353417397, 0.013060268014669418, -0.01825256645679474, -0.028852339833974838, 0.04797496646642685, -0.020731771364808083, -0.0020851055160164833, -0.09759650379419327, -0.03094797022640705, 0.04726395010948181, -0.034615322947502136, -0.042024873197078705, 0.018374187871813774, 0.0067312768660485744, -0.0002808109566103667, -0.004219327121973038, 0.00861640926450491, 0.006179302930831909, 0.040378306061029434, 0.039180804044008255, 0.01012264285236597, 0.0647774338722229, 0.02348228730261326, -0.027785813435912132, -0.025503072887659073, -0.06679821759462357, 0.023631975054740906, 0.05523483082652092, -0.04453214630484581, 0.04243651404976845, -0.0565820187330246, -0.02003946527838707, 0.05703108385205269, 0.021854430437088013, -0.030555039644241333, -0.033081021159887314, 0.02357584238052368, 0.03145316615700722, -0.005318597424775362, -0.020787905901670456, -0.04397081583738327, -0.01726088486611843, -0.038582053035497665, 0.0066517554223537445, -0.08749257028102875, 0.001882792916148901, 0.006670466158539057, 0.016540510579943657, -0.04550511762499809, 0.023500997573137283, 0.04606644809246063, -0.04056541621685028, 0.018308699131011963, -0.05860280618071556, 0.028384564444422722, -0.014351326040923595, -0.0735715925693512, 0.044232770800590515, 0.028047766536474228, -0.0028557642363011837, -0.056095533072948456, -0.010552995838224888, 0.0112453019246459, 0.013200600631535053, 0.06836993992328644, -0.030910547822713852, 0.021349234506487846, 0.05819116532802582, -0.04550511762499809, 0.033604931086301804, -0.03519536554813385, 0.04453214630484581, -0.013312865979969501, -0.0366361103951931, 0.0676589235663414, 0.013696441426873207, 0.060661014169454575, -0.05235333740711212, 0.0067312768660485744, -0.051118411123752594, 0.016512444242835045, -0.033249422907829285, 0.07229924947023392, 0.017597682774066925, -0.047563325613737106, 0.037328414618968964, -0.06904353946447372, 0.0847981870174408, -0.01681181974709034, 0.057779524475336075, -0.0955008715391159, -0.06148429960012436, 0.055609047412872314, 0.013144467025995255, -0.021012436598539352, 0.0023154844529926777, -0.013041556812822819, -0.018028033897280693, -0.045355428010225296, -0.034933410584926605, -0.06672337651252747, -0.041950028389692307, -0.002640587743371725, 0.01438874751329422, -0.024118460714817047, -0.020301420241594315, 0.030686017125844955, -0.009159027598798275, -0.036617398262023926, 0.08569631725549698, 0.015586251392960548, -0.008536887355148792, 0.008017657324671745, -0.03876916319131851, -0.03547602891921997, -0.05736788362264633, 0.003964390140026808, -0.022266073152422905, -0.03568185120820999, -0.02585858292877674, -0.028478119522333145, 0.010927215218544006, 0.07080236822366714, 0.015343008562922478, -0.05860280618071556, 0.012985424138605595, 0.02056337334215641, 0.0025961492210626602, 0.01493136677891016, -0.016334690153598785, 0.025315962731838226, 0.010487507097423077, -0.0070166196674108505, 0.002021955791860819, 0.02060079574584961, 0.023856505751609802, -0.0590892918407917, 0.05882733687758446, 0.006698532961308956, -0.004202954936772585, 0.026644444093108177, -0.005065999459475279, 0.012096651829779148, 0.05205396190285683, -0.009074827656149864, 0.02404361590743065, -0.006890320219099522, 0.016755687072873116, -0.03094797022640705, 0.03884400427341461, 0.04565480351448059, -0.01328479964286089, 0.02512885443866253, 0.036729663610458374, -0.008008302189409733, 0.02404361590743065, 0.008256222121417522, 0.007910069078207016, 0.07544269412755966, 0.02404361590743065, 0.018233856186270714, 0.016362756490707397, -0.028964605182409286, 0.0038591406773775816, 0.004153838846832514, -0.018551941961050034, -0.010468796826899052, -0.04299784451723099, -0.0395176000893116, 0.02091888152062893, -0.00018696367624215782, 0.018608074635267258, -0.022939668968319893, 0.1130891963839531, -0.028646519407629967, 0.01350933127105236, -0.011600811034440994, -0.03560700640082359, 0.040864791721105576, -0.006614333484321833, 0.03800201043486595, -0.04105190187692642, -0.04108932614326477, 0.05587100237607956, -0.061072658747434616, -0.014641346409916878, -0.008429299108684063, -0.002252334961667657, -0.022135095670819283, 0.022266073152422905, 0.04359659552574158, -0.03504567593336105, -0.010478151962161064, -0.1011890098452568, 0.020469818264245987, -0.04902278259396553, -0.012236984446644783, 0.0562078021466732, -0.040303461253643036, -0.061184924095869064, -0.03476501256227493, 0.019534269347786903, -0.042586203664541245, 0.030798282474279404, -0.05130552127957344, 0.0002251165424240753, 0.057704679667949677, -0.004478942137211561, 0.04861114174127579, -0.004130450077354908, 0.030648594722151756, 0.05220365151762962, -0.13823676109313965, 0.06848220527172089, -0.01754154823720455, -0.019309736788272858, -0.05246560275554657, 0.02417459338903427, -0.01014135405421257, -0.0211247019469738, 0.07271088659763336, 0.013855485245585442, 0.033286843448877335, 0.0423990935087204, 0.040977057069540024, 0.03699161857366562, -0.027879368513822556, 0.04419534653425217, 0.04610386863350868, -0.02544694021344185, -0.032126761972904205, -0.05474834516644478, 0.032931335270404816, 0.006815476343035698, -0.026588311418890953, -0.053850214928388596, 0.045954179018735886, -0.01723281852900982, 0.003026501974090934, 0.02164861001074314, -0.07529300451278687, 0.04281073436141014, -0.07503104954957962, -0.045916758477687836, -0.06384187936782837, -0.0026733321137726307, 0.022584158927202225, -0.012985424138605595, 0.011975030414760113, -0.045355428010225296, 0.016905374825000763, -0.00169100530911237, 0.05179200693964958, -0.03891884908080101, 0.0021494245156645775, -0.07282315939664841, -0.007128885481506586, 0.021012436598539352, -0.03568185120820999, 0.039143383502960205, -0.03880658373236656, 0.04550511762499809, 0.04790012165904045, -0.0033095055259764194, -0.019216181710362434, -0.0026733321137726307, 0.002385650761425495, -0.001894487300887704, -0.018018679693341255, -0.022153807803988457, -0.011189169250428677, -0.022303495556116104, -0.031135080382227898, -0.0564323328435421, 0.13172534108161926, 0.07955911010503769, 0.00632431311532855, 0.04464441165328026, 0.029469802975654602, 0.04965895414352417, -0.023182911798357964, 0.015052988193929195, -0.005842505022883415, -0.03560700640082359, -0.03884400427341461, 0.019496846944093704, 0.0037234860938042402, -0.007512460928410292, 0.004642663523554802, -0.014893944375216961, 0.0252972524613142, -0.045879337936639786, -0.029245270416140556, -0.024997876957058907, -0.010365885682404041, 0.06316828727722168, 0.044270191341638565, -0.02340744249522686, 0.024866899475455284, -0.0708397924900055, 0.018608074635267258, 0.015314941294491291, -0.0323512926697731, -0.07237409055233002, -0.0011986724566668272, 0.026794131845235825, 0.02217251807451248, -0.00337733281776309, -0.012293117120862007, 0.0296943336725235, -0.015951115638017654, -0.007830547168850899, 0.003803007770329714, -0.01719539612531662, 0.04565480351448059, -0.02825358882546425, -0.04352175071835518, 0.045280586928129196, 0.0537005290389061, -0.01370579656213522, 0.023837795481085777, 0.01312575675547123, -0.053812794387340546, -0.04980864375829697, -0.024904321879148483, -0.01667148806154728, 0.020507240667939186, 0.00037597387563437223, 0.008691253140568733, -0.021105991676449776, -0.05456123501062393, -0.01751348190009594, 0.030012421309947968, -0.023108066990971565, -0.004401759244501591, 0.01898229494690895, -0.025035299360752106, 0.02104985900223255, 0.06215789541602135, -0.011638233438134193, 0.0006256485939957201, 0.011226591654121876, -0.01793447881937027, 0.03186480700969696, 0.04071510583162308, -0.012087296694517136, -0.02320162206888199, -0.01600724831223488, -0.06934291124343872, -0.0074469721876084805, 0.028478119522333145, 0.0133502883836627, 0.002169304993003607, -0.010646550916135311, 0.019833644852042198, 0.02316419966518879, -0.0036486422177404165, -0.0296569112688303, -0.019627824425697327, -0.05474834516644478, -0.015343008562922478, 0.019702667370438576, 0.03785232454538345, -0.048236921429634094, -0.012891869060695171, -0.021274389699101448, -0.025540495291352272, 0.015118476003408432, -0.012639271095395088, -0.0020734111312776804, -0.008663185872137547, 0.0008162667509168386, 0.013621597550809383, -0.009491147473454475, -0.08345099538564682, 0.02080661617219448, -0.013387709856033325, -0.0016524138627573848, -0.019347159191966057, -0.043110109865665436, 0.017522837966680527, 0.04962153360247612, -0.07132627815008163, 0.008008302189409733, -0.011348213069140911, 0.03145316615700722, 0.05007059872150421, -0.013743218965828419, -0.014341970905661583, 0.03339910879731178, -0.020170442759990692, -0.020263997837901115, 0.031490590423345566, -0.0007513629971072078, 0.0053747305646538734, -0.059388667345047, -0.008125245571136475, -0.034727588295936584, -0.004076655954122543, -0.01793447881937027, 0.049397002905607224, 0.0325009822845459, 0.006478678900748491 ]
37,744
healpy.fitsfunc
write_alm
Write alms to a fits file. In the fits file the alms are written with explicit index scheme, index = l*l + l + m +1, possibly out of order. By default write_alm makes a table with the same precision as the alms. If specified, the lmax and mmax parameters truncate the input data to include only alms for which l <= lmax and m <= mmax. Parameters ---------- filename : str The filename of the output fits file alms : array, complex or list of arrays A complex ndarray holding the alms, index = m*(2*lmax+1-m)/2+l, see Alm.getidx lmax : int, optional The maximum l in the output file mmax : int, optional The maximum m in the output file out_dtype : data type, optional data type in the output file (must be a numpy dtype). Default: *alms*.real.dtype mmax_in : int, optional maximum m in the input array
def write_alm( filename, alms, out_dtype=None, lmax=-1, mmax=-1, mmax_in=-1, overwrite=False ): """Write alms to a fits file. In the fits file the alms are written with explicit index scheme, index = l*l + l + m +1, possibly out of order. By default write_alm makes a table with the same precision as the alms. If specified, the lmax and mmax parameters truncate the input data to include only alms for which l <= lmax and m <= mmax. Parameters ---------- filename : str The filename of the output fits file alms : array, complex or list of arrays A complex ndarray holding the alms, index = m*(2*lmax+1-m)/2+l, see Alm.getidx lmax : int, optional The maximum l in the output file mmax : int, optional The maximum m in the output file out_dtype : data type, optional data type in the output file (must be a numpy dtype). Default: *alms*.real.dtype mmax_in : int, optional maximum m in the input array """ if not cb.is_seq_of_seq(alms): alms = [alms] l2max = Alm.getlmax(len(alms[0]), mmax=mmax_in) if lmax != -1 and lmax > l2max: raise ValueError("Too big lmax in parameter") elif lmax == -1: lmax = l2max if mmax_in == -1: mmax_in = l2max if mmax == -1: mmax = lmax if mmax > mmax_in: mmax = mmax_in if out_dtype is None: out_dtype = alms[0].real.dtype l, m = Alm.getlm(lmax) idx = np.where((l <= lmax) * (m <= mmax)) l = l[idx] m = m[idx] idx_in_original = Alm.getidx(l2max, l=l, m=m) index = l ** 2 + l + m + 1 hdulist = pf.HDUList() for alm in alms: out_data = np.empty( len(index), dtype=[("index", "i"), ("real", out_dtype), ("imag", out_dtype)] ) out_data["index"] = index out_data["real"] = alm.real[idx_in_original] out_data["imag"] = alm.imag[idx_in_original] cindex = pf.Column( name="index", format=getformat(np.int32), unit="l*l+l+m+1", array=out_data["index"], ) creal = pf.Column( name="real", format=getformat(out_dtype), unit="unknown", array=out_data["real"], ) cimag = pf.Column( name="imag", format=getformat(out_dtype), unit="unknown", array=out_data["imag"], ) tbhdu = pf.BinTableHDU.from_columns([cindex, creal, cimag]) hdulist.append(tbhdu) # Add str to convert pathlib.Path into str # Due to https://github.com/astropy/astropy/issues/10594 hdulist.writeto(str(filename), overwrite=overwrite)
(filename, alms, out_dtype=None, lmax=-1, mmax=-1, mmax_in=-1, overwrite=False)
[ -0.004886580631136894, 0.06885521113872528, 0.04233169183135033, 0.022693699225783348, 0.04603928327560425, -0.00654939329251647, -0.06555505096912384, -0.0519469790160656, -0.11179804056882858, 0.029579220339655876, -0.01796754263341427, 0.011560749262571335, -0.04041678458452225, 0.031086700037121773, 0.036444369703531265, 0.07048492133617401, -0.0008988864137791097, 0.0049018594436347485, 0.033836834132671356, 0.04880978539586067, 0.029681077226996422, -0.003027693834155798, -0.008825893513858318, -0.013883084058761597, -0.0062998440116643906, -0.05162103474140167, 0.022306643426418304, 0.002604988170787692, 0.007201277185231447, -0.03167746961116791, -0.0345090888440609, -0.027317998930811882, 0.05940289795398712, -0.016398947685956955, 0.0010994169861078262, -0.06482167541980743, 0.04571333900094032, -0.0009351728949695826, -0.05993255227804184, 0.010328281670808792, 0.07842975109815598, -0.032940495759248734, 0.08621161431074142, 0.04811716079711914, 0.00555119663476944, 0.05773244425654411, -0.027725426480174065, -0.0039596837013959885, 0.00039787820423953235, -0.004300903994590044, -0.029925532639026642, -0.105768121778965, -0.0009224407840520144, 0.01922038197517395, -0.03310346603393555, 0.05255811661481857, -0.022306643426418304, -0.003755970159545541, 0.060299236327409744, -0.08189288526773453, -0.03705551102757454, -0.03285900875926018, 0.08287070691585541, -0.059851065278053284, 0.002408913802355528, 0.025158634409308434, -0.05198771879076958, 0.01933242380619049, -0.007517033256590366, 0.04693562164902687, -0.02668648585677147, 0.02019820734858513, 0.07366284728050232, 0.028255080804228783, 0.04229095205664635, 0.053210001438856125, -0.010002339258790016, -0.02762356959283352, -0.0013050404377281666, 0.004502071533352137, -0.012334860861301422, 0.015186851844191551, 0.03542580083012581, 0.03888893127441406, -0.028438422828912735, -0.00015907170018181205, 0.04241317883133888, 0.0005608490901067853, 0.020371364429593086, -0.07488512992858887, 0.00713506992906332, 0.01310897246003151, 0.03725922480225563, 0.02621794492006302, -0.05455451086163521, -0.05121360719203949, -0.06502538919448853, 0.016551733016967773, 0.0309441015124321, 0.012548759579658508, -0.03145338594913483, -0.01393401250243187, 0.08409298956394196, 0.050846923142671585, 0.01297655887901783, -0.004746527876704931, 0.0026304523926228285, -0.018853697925806046, 0.024588236585259438, 0.026095716282725334, -0.05280257388949394, 0.03228861093521118, 0.0485653318464756, -0.044205859303474426, 0.003554802853614092, 0.026462402194738388, 0.017600858584046364, -0.002999683376401663, -0.015003508888185024, 0.0214714165776968, 0.023060383275151253, -0.06482167541980743, -0.027990253642201424, -0.03884819149971008, 0.08185213804244995, -0.04176129400730133, 0.00013814331032335758, -0.027745796367526054, 0.03485540300607681, -0.05948438122868538, -0.018680540844798088, 0.026116088032722473, -0.007063770201057196, 0.029395878314971924, -0.012345046736299992, -0.010404674336314201, 0.04722082242369652, -0.04974687099456787, -0.05373965576291084, -0.03988713026046753, -0.021410303190350533, 0.03542580083012581, 0.039520446211099625, -0.0058873239904642105, 0.008983771316707134, 0.011672791093587875, 0.05373965576291084, -0.033897947520017624, 0.017305472865700722, -0.01061348058283329, -0.031086700037121773, -0.07178868353366852, -0.03328680992126465, -0.01227374654263258, 0.01910833828151226, -0.04436882957816124, -0.0373203381896019, -0.0010192047338932753, -0.0476282462477684, 0.007736025378108025, -0.023773381486535072, -0.02060563489794731, -0.023284468799829483, 0.028743993490934372, -0.0652698501944542, -0.025097519159317017, -0.005159047897905111, 0.028906965628266335, 0.03923524543642998, 0.008056874386966228, -0.004379843361675739, -0.016867488622665405, -0.06575876474380493, -0.015736877918243408, -0.035975828766822815, -0.019159266725182533, -0.03418314829468727, 0.003778887912631035, -0.007792046759277582, 0.010756080038845539, -0.02149178832769394, 0.03344978019595146, -0.02827545255422592, 0.010542180389165878, -0.025851260870695114, 0.020595448091626167, -0.03876670449972153, 0.001795226358808577, -0.0027857839595526457, -0.01725454442203045, -0.01710175909101963, -0.012681174091994762, 0.003424935508519411, -0.04836161807179451, -0.020544519647955894, -0.036688826978206635, -0.009330084547400475, 0.03705551102757454, 0.030475560575723648, 0.0004952788003720343, -0.03913338854908943, 0.036444369703531265, 0.045468881726264954, -0.020116722211241722, 0.03228861093521118, -0.015553535893559456, 0.041414983570575714, -0.0292532779276371, -0.04603928327560425, 0.029599592089653015, 0.04066124185919762, 0.0025196829810738564, -0.08095579594373703, -0.006065573543310165, 0.03964267298579216, 0.012793215923011303, -0.046568937599658966, 0.05455451086163521, 0.013618256896734238, 0.017203615978360176, -0.07618889957666397, 0.005591939203441143, -0.015166480094194412, 0.030027389526367188, 0.0006754380301572382, 0.010572738014161587, 0.08079282939434052, 0.020880647003650665, 0.052028462290763855, 0.035527657717466354, -0.029171792790293694, -0.019403723999857903, -0.0013559688813984394, -0.020595448091626167, -0.021654758602380753, 0.054147083312273026, -0.024180809035897255, 0.020809348672628403, -0.031025586649775505, 0.01032318826764822, -0.002500584814697504, -0.03778887912631035, -0.021532531827688217, 0.0017939532408490777, -0.037361081689596176, 0.020208392292261124, -0.016093377023935318, 0.008133267052471638, -0.05125435069203377, 0.00024652533465996385, -0.009742604568600655, 0.009885204024612904, 0.029599592089653015, 0.05031726881861687, 0.022693699225783348, -0.004339100327342749, -0.06930337846279144, -0.05076543986797333, -0.0033434501383453608, -0.05687684565782547, 0.016786003485322, -0.038094449788331985, 0.06461796164512634, 0.013383985497057438, -0.027012428268790245, -0.013852527365088463, 0.011764462105929852, -0.014911837875843048, -0.0029869512654840946, 0.006778571289032698, -0.027888396754860878, 0.04791344702243805, -0.07252205163240433, -0.052272919565439224, 0.03200341388583183, 0.07973352074623108, 0.12491720169782639, -0.040701985359191895, -0.036668453365564346, 0.06058443710207939, 0.004046262241899967, -0.000929443456698209, -0.0003698675718624145, 0.027990253642201424, -0.01332287210971117, 0.036912910640239716, -0.06205117329955101, 0.0024292850866913795, -0.01145889237523079, -0.040009357035160065, 0.06514762341976166, 0.00418631499633193, -0.025138262659311295, 0.008846264332532883, 0.03536468744277954, -0.03518134355545044, -0.009039792232215405, -0.05724353343248367, 0.02827545255422592, -0.046609681099653244, -0.06046220660209656, -0.023773381486535072, 0.1327398121356964, -0.031086700037121773, -0.03868522122502327, -0.050846923142671585, -0.0725627988576889, -0.043309517204761505, 0.005571567919105291, 0.008255494758486748, 0.019566694274544716, 0.004176129586994648, -0.02711428515613079, -0.014046055264770985, -0.0033816464710980654, 0.017183246091008186, 0.000991830718703568, 0.014300697483122349, 0.05919918417930603, 0.019159266725182533, -0.013506214134395123, 0.017427701503038406, -0.0041506653651595116, -0.08323739469051361, 0.07871495187282562, -0.05125435069203377, 0.04885052889585495, 0.016531361266970634, 0.02430303767323494, -0.07863346487283707, -0.04015195742249489, -0.030536673963069916, 0.005454432684928179, -0.011346849612891674, -0.026727229356765747, -0.017641600221395493, 0.0199741218239069, -0.05655090510845184, 0.02434377931058407, 0.0032594180665910244, 0.007201277185231447, 0.04693562164902687, -0.003631195519119501, 0.03778887912631035, -0.015227594412863255, 0.004181222524493933, 0.0028367124032229185, -0.0228770412504673, -0.053210001438856125, 0.02434377931058407, 0.015502607449889183, -0.00707904901355505, -0.018201813101768494, 0.009584726765751839, 0.034610945731401443, 0.026747601106762886, 0.015288708731532097, -0.04033530130982399, -0.041394609957933426, 0.0025655184872448444, -0.02996627613902092, -0.0513765774667263, -0.0395611897110939, -0.021308446303009987, -0.01620541885495186, -0.020707491785287857, 0.020941762253642082, -0.0331849530339241, 0.08323739469051361, -0.026238316670060158, 0.01122462097555399, -0.034610945731401443, 0.034529462456703186, 0.029884791001677513, 0.01215151883661747, 0.03328680992126465, -0.00037241398240439594, 0.03438686206936836, -0.0600140355527401, 0.033877577632665634, 0.0016717250691726804, 0.010409766808152199, 0.019210195168852806, 0.02644203044474125, 0.03302197903394699, -0.015217408537864685, -0.008897192776203156, 0.008988863788545132, -0.08393001556396484, 0.019719479605555534, 0.05235440284013748, 0.032207127660512924, -0.0242826659232378, -0.018273113295435905, -0.0006868969066999853, 0.03016998991370201, -0.04750601947307587, 0.0438799187541008, -0.06706252694129944, -0.006427165120840073, -0.011978361755609512, -0.05524713918566704, -0.004800002556294203, 0.01736658811569214, -0.06567727774381638, -0.01906759664416313, 0.06152151897549629, -0.03285900875926018, -0.015706321224570274, 0.0058262101374566555, 0.0072420197539031506, 0.07455918937921524, -0.018476827070116997, -0.0107357082888484, 0.027053171768784523, 0.02711428515613079, -0.02242887206375599, -0.06042146310210228, 0.0037024952471256256, 0.010241703130304813, 0.03960192948579788, 0.019648179411888123, 0.023528924211859703, 0.038074079900979996, 0.021858472377061844, -0.058180615305900574, -0.07488512992858887, 0.014565524645149708, -0.0763111263513565, -0.010302817448973656, 0.04359471797943115, 0.024160437285900116, -0.004637031815946102, -0.0214714165776968, -0.022469613701105118, 0.0356295146048069, -0.0067480141296982765, 0.004940055776387453, -0.0022739535197615623, -0.03935747593641281, 0.06421054154634476, 0.005586846265941858, -0.018273113295435905, 0.03960192948579788, -0.0005516183446161449, -0.014382182620465755, 0.008413373492658138, 0.0010714064119383693, -0.005388225894421339, 0.010654223151504993, 0.0650661364197731, 0.02291778475046158, 0.00394695159047842, -0.01659247651696205, 0.05923992395401001, -0.059769582003355026, 0.006625785958021879, -0.0326349250972271, 0.007160534150898457, 0.0399482436478138, 0.033836834132671356, 0.003424935508519411, 0.09289342164993286, -0.016449876129627228, 0.06510687619447708, -0.011998733505606651, 0.005464618094265461, 0.004810188431292772, -0.011214436031877995, -0.02049359120428562, 0.0056174034252762794, -0.018558312207460403, 0.018069399520754814, 0.011204250156879425, 0.008011038415133953, -0.01013475377112627, 0.034814659506082535, 0.04029455780982971, 0.009615283459424973, -0.009370827116072178, 0.051091380417346954, -0.030292218551039696, -0.01636839099228382, -0.01060329470783472, 0.04147609695792198, 0.06710327416658401, -0.00837262999266386, -0.051743265241384506, -0.031107071787118912, -0.02923290617763996, -0.0133126862347126, 0.006875335238873959, -0.01972966641187668, 0.01427013985812664, 0.04514294117689133, 0.027562454342842102, 0.045672595500946045, -0.024425264447927475, -0.018120327964425087, 0.03414240479469299, 0.009060163982212543, -0.0920785665512085, -0.051539551466703415, -0.06893669068813324, 0.01533963717520237, 0.013485842384397984, -0.007379526272416115, -0.03988713026046753, -0.022693699225783348, -0.00247766706161201, -0.05989180877804756, -0.018578683957457542, -0.002040955936536193, 0.044694770127534866, 0.005495175253599882, 0.07292947918176651, -0.0007104512769728899, -0.04265763610601425, 0.013394171372056007, 0.05642867833375931, -0.031025586649775505, -0.012385789304971695, -0.06971080601215363, -0.03247195482254028, -0.029355134814977646, -0.007267483975738287, 0.0038731053937226534, 0.019607437774538994, 0.022347385063767433, 0.020656563341617584, -0.01843608357012272, -0.009416663087904453, -0.009258784353733063, 0.046609681099653244, 0.011000536382198334, 0.036179542541503906, -0.007736025378108025, -0.023997467011213303, 0.04343174770474434, -0.04933944344520569, -0.0326349250972271, 0.02949773520231247, 0.0153294513002038, -0.060747407376766205, 0.03182006999850273, 0.011377406306564808, 0.001950558042153716, 0.006371143739670515, 0.10218276083469391, 0.007868438959121704, -0.016663774847984314, -0.013872898183763027, 0.040966812521219254, -0.02096213400363922, -0.0029436619952321053, 0.006014645099639893, 0.061236318200826645, -0.03418314829468727, -0.0391945019364357, -0.00008801065996522084, -0.02452712133526802, 0.04836161807179451, 0.0056632389314472675, -0.005795652978122234, 0.008871728554368019, -0.0005442973924800754, 0.050154298543930054, -0.010715337470173836, -0.025199376046657562, -0.0027093912940472364, -0.03253306820988655, 0.02145104669034481, -0.0538211427628994, -0.08393001556396484, -0.019831523299217224, 0.01074589416384697, -0.015023880638182163, -0.03092372976243496, 0.020819533616304398, -0.05337297171354294, 0.027521712705492973, 0.030271846801042557, -0.046120766550302505, -0.0025655184872448444, 0.0915081650018692, -0.004514803644269705, -0.01745825819671154, 0.0306589026004076, -0.03923524543642998, 0.01656191796064377, -0.0395611897110939, 0.0021593645215034485, -0.011122764088213444, 0.004726156126707792, -0.001572414650581777, 0.021593645215034485, -0.04595779627561569, -0.017040645703673363, 0.011041278950870037, 0.02120658941566944, 0.010796822607517242, -0.01966855116188526, -0.10259018838405609, -0.00755777582526207, 0.018130512908101082, 0.024221550673246384, 0.046650420874357224, -0.06347716599702835, -0.03821667656302452, 0.00827077403664589, -0.04929869994521141, 0.10104196518659592, 0.00011928388266824186, -0.030047761276364326, -0.04363546147942543, -0.04428734630346298, 0.01627671904861927, 0.013740484602749348, 0.05198771879076958, 0.022836297750473022, -0.00011228122457396239, 0.007461011875420809, -0.004364564549177885, -0.03514060378074646, 0.011499634943902493, -0.02760319784283638, -0.0030837152153253555, 0.0376870222389698, 0.03660733997821808, 0.012681174091994762, -0.018935183063149452, 0.009309712797403336, 0.009905575774610043, 0.019281495362520218, 0.012039476074278355, -0.015013694763183594, -0.00859671551734209, -0.02902919240295887, 0.026238316670060158, 0.0472615621984005, -0.011204250156879425, -0.0018206905806437135, 0.04298357665538788, -0.05687684565782547, 0.0481986477971077, 0.038624104112386703, 0.014025683514773846, 0.01060329470783472, -0.01463682483881712, -0.01978059485554695, -0.005383132956922054, 0.011397778056561947, -0.02974219061434269, -0.006147059146314859, 0.03968341648578644, -0.04149646684527397, 0.03931673243641853, 0.006452629342675209, -0.02760319784283638, 0.007567961700260639, -0.01805921457707882, -0.048239387571811676, 0.004654856398701668, -0.06416979432106018, 0.004486792720854282, -0.027297627180814743, 0.04836161807179451, 0.033429406583309174, -0.031005214899778366, 0.03377572074532509, -0.022327015176415443, -0.025912374258041382, 0.04722082242369652, 0.008647643961012363, 0.06266231089830399, -0.010990350507199764, 0.023304840549826622, 0.023691896349191666, 0.04734304919838905, -0.015400750562548637, -0.008953214623034, 0.038074079900979996, 0.034814659506082535, 0.030536673963069916, 0.00024143248447217047, 0.06461796164512634, 0.014035869389772415, 0.010185682214796543, -0.02851990982890129, 0.005327111575752497, -0.0054391538724303246, 0.01401549857109785, -0.008484672755002975, -0.01510536577552557, 0.052232176065444946, 0.015991520136594772, 0.016378575935959816, 0.05353594198822975, -0.0001908223784994334, 0.025769775733351707, 0.0547582246363163, 0.03711662441492081, 0.023284468799829483, 0.0259734895080328, -0.015543350018560886, 0.04485774412751198, 0.015176665969192982, 0.04485774412751198, -0.06710327416658401, -0.033572006970644, -0.001991300843656063, 0.1027531549334526, 0.023304840549826622, 0.02171587385237217, 0.03021073155105114, -0.06298825889825821, 0.00454281410202384, 0.050643209367990494, -0.029069935902953148, -0.010582922957837582, 0.013414543122053146, 0.03302197903394699, 0.0259734895080328, -0.03615916892886162, -0.06962931901216507, -0.038542620837688446, -0.060747407376766205, 0.0337553508579731, 0.03780924901366234, 0.00006755971844540909, -0.013526585884392262, -0.0015240326756611466, 0.026951314881443977, 0.06559579074382782, -0.030149618163704872, 0.02356966771185398, -0.03846113383769989, -0.0214714165776968, -0.003040425945073366, 0.001078409026376903, 0.028906965628266335, 0.04392065852880478, 0.0107357082888484, 0.016174862161278725, -0.015390565618872643, 0.0165008045732975, 0.0041965008713305, 0.024608606472611427, -0.057691700756549835, 0.009538890793919563, 0.015665577724575996, -0.030353331938385963, -0.03556840121746063, 0.049869097769260406, 0.06164374575018883, 0.009309712797403336, 0.06897743791341782, -0.04457254335284233, 0.056510161608457565, -0.04616151005029678, -0.0077054682187736034, 0.001181539031676948, -0.018008286133408546, 0.019179638475179672, -0.06139928847551346, 0.0269105713814497, -0.029925532639026642, -0.04506145790219307 ]
37,745
healpy.fitsfunc
write_cl
Writes Cl into a healpix file, as IDL cl2fits. Parameters ---------- filename : str the fits file name cl : array the cl array to write to file dtype : np.dtype (optional) The datatype in which the columns will be stored. If not supplied, the dtype of the input cl will be used. This changed in `healpy` 1.15.0, in previous versions, cl by default were saved in `float64`. overwrite : bool, optional If True, existing file is silently overwritten. Otherwise trying to write an existing file raises an OSError.
def write_cl(filename, cl, dtype=None, overwrite=False): """Writes Cl into a healpix file, as IDL cl2fits. Parameters ---------- filename : str the fits file name cl : array the cl array to write to file dtype : np.dtype (optional) The datatype in which the columns will be stored. If not supplied, the dtype of the input cl will be used. This changed in `healpy` 1.15.0, in previous versions, cl by default were saved in `float64`. overwrite : bool, optional If True, existing file is silently overwritten. Otherwise trying to write an existing file raises an OSError. """ if dtype is None: dtype = cl.dtype if isinstance(cl, np.ndarray) else cl[0].dtype # check the dtype and convert it fitsformat = getformat(dtype) column_names = ["TEMPERATURE", "GRADIENT", "CURL", "G-T", "C-T", "C-G"] if len(np.shape(cl)) == 2: cols = [ pf.Column(name=column_name, format="%s" % fitsformat, array=column_cl) for column_name, column_cl in zip(column_names[: len(cl)], cl) ] elif len(np.shape(cl)) == 1: # we write only TT cols = [pf.Column(name="TEMPERATURE", format="%s" % fitsformat, array=cl)] else: raise RuntimeError("write_cl: Expected one or more vectors of equal length") tbhdu = pf.BinTableHDU.from_columns(cols) # add needed keywords tbhdu.header["CREATOR"] = "healpy" # Add str to convert pathlib.Path into str # Due to https://github.com/astropy/astropy/issues/10594 tbhdu.writeto(str(filename), overwrite=overwrite)
(filename, cl, dtype=None, overwrite=False)
[ -0.008280254900455475, -0.03933464735746384, 0.02615589089691639, -0.005640837829560041, 0.007844934239983559, -0.043916966766119, -0.05278834328055382, 0.007340878713876009, -0.027658892795443535, -0.035522155463695526, 0.03246116638183594, -0.053411539644002914, -0.002456124173477292, 0.004751867149025202, -0.005178023129701614, 0.00524217588827014, -0.0326077975332737, 0.00640150299295783, -0.017467809841036797, 0.012610548175871372, 0.06660862267017365, 0.004552536178380251, 0.0020139303524047136, -0.02544104866683483, -0.003849149914458394, -0.013792787678539753, 0.029106905683875084, 0.0450533851981163, -0.02089538611471653, -0.03271777555346489, -0.036640241742134094, -0.024396279826760292, 0.019154103472828865, -0.009027172811329365, -0.038821425288915634, -0.010869266465306282, 0.04325711354613304, 0.006635201163589954, -0.04168079420924187, -0.0016977500636130571, 0.015699032694101334, 0.018824176862835884, 0.007780781947076321, -0.020620446652173996, -0.000671310059260577, 0.048462629318237305, -0.042157355695962906, 0.0003883517347276211, -0.0468129962682724, 0.0059982589446008205, -0.010356046259403229, -0.07756953686475754, -0.06910140812397003, -0.0004622416745405644, -0.015323283150792122, 0.020217202603816986, 0.028373735025525093, 0.04267057776451111, -0.036072034388780594, -0.0024950739461928606, -0.024176327511668205, -0.032827749848365784, -0.0028754067607223988, -0.031086469069123268, 0.011125876568257809, 0.003368006320670247, -0.032846078276634216, -0.004939742386341095, 0.0497090220451355, 0.030958162620663643, 0.014672593213617802, 0.010713467374444008, 0.0777161717414856, 0.003959125839173794, 0.02721899002790451, 0.01239059679210186, -0.01833845116198063, -0.033744215965270996, 0.0594235435128212, 0.00591119471937418, -0.06814828515052795, -0.024524584412574768, 0.06052330136299133, 0.006493149325251579, 0.003567337291315198, 0.02371809631586075, 0.07654310017824173, 0.013151262886822224, -0.03676854819059372, 0.0024400861002504826, -0.009503734298050404, -0.023589789867401123, -0.012454750016331673, -0.053814783692359924, 0.03093983419239521, -0.007180497515946627, -0.002985382452607155, 0.06506896764039993, 0.0265591349452734, 0.05799385905265808, -0.047839436680078506, -0.03159968927502632, 0.09802501648664474, 0.04615313932299614, -0.04120423272252083, -0.03555881232023239, -0.00029727810760959983, 0.10682307928800583, -0.015598221682012081, -0.035833753645420074, -0.0205654576420784, -0.00345277925953269, 0.07045777142047882, -0.09127984195947647, 0.05498785525560379, -0.011959859170019627, -0.018585896119475365, 0.02575264684855938, -0.051468633115291595, -0.017513632774353027, 0.00004815017382497899, -0.04120423272252083, -0.02551436610519886, -0.019795628264546394, 0.03222288563847542, 0.015378270298242569, -0.034220777451992035, 0.03889474272727966, 0.04201072081923485, 0.024909500032663345, -0.027897173538804054, 0.004243229515850544, 0.019410712644457817, 0.011556614190340042, 0.061183154582977295, -0.019630664959549904, -0.015973972156643867, -0.04388030990958214, 0.012674701400101185, -0.029180223122239113, 0.04171745479106903, -0.059973422437906265, -0.001315126195549965, 0.0008654859266243875, 0.07177748531103134, 0.020675433799624443, -0.024487925693392754, -0.07962241768836975, -0.04468679800629616, 0.02776886709034443, -0.027310635894536972, 0.0008019062224775553, -0.013765293173491955, 0.02137194760143757, 0.007771617267280817, -0.04688631370663643, -0.012207304127514362, -0.01118086464703083, -0.02234339900314808, -0.006795582827180624, -0.020693764090538025, 0.027897173538804054, 0.00669935392215848, 0.07291390001773834, -0.06869816035032272, -0.05077211931347847, -0.05711405351758003, -0.024121340364217758, 0.02421298623085022, 0.01473674550652504, -0.0014972735662013292, -0.09406589716672897, 0.019392384216189384, 0.025551024824380875, 0.057297345250844955, -0.017568619921803474, -0.015863995999097824, -0.07229070365428925, 0.005856206640601158, -0.02762223407626152, 0.011684919707477093, 0.0006902121822349727, 0.02096870355308056, 0.07247399538755417, -0.0037506299559026957, -0.003936213906854391, 0.0024973652325570583, -0.03497227653861046, -0.000396084418753162, 0.006937634665518999, 0.02551436610519886, 0.04314713925123215, -0.04589653015136719, 0.041754111647605896, 0.10389038920402527, -0.03700682893395424, 0.0325528122484684, 0.02833707630634308, -0.02866700291633606, 0.04956238716840744, -0.026760756969451904, 0.04171745479106903, 0.058507081121206284, -0.00784035213291645, 0.0399945005774498, -0.010740960948169231, 0.08614764362573624, -0.011739907786250114, -0.06132978945970535, -0.057627275586128235, 0.053081609308719635, 0.03577876463532448, -0.06374925374984741, 0.027328964322805405, 0.05201851204037666, -0.00026906817220151424, -0.10037116706371307, 0.037281766533851624, -0.02073042280972004, 0.022948265075683594, -0.005485038738697767, 0.03214956820011139, -0.01795353554189205, 0.05392475798726082, -0.03084818832576275, 0.005572102963924408, 0.04754616692662239, 0.012958805076777935, 0.061513081192970276, 0.00039465242298319936, -0.06682857871055603, 0.04157081991434097, -0.012024011462926865, 0.013728635385632515, 0.014681757427752018, 0.013151262886822224, -0.047839436680078506, 0.07580992579460144, -0.005590432323515415, 0.06140310689806938, -0.024176327511668205, -0.011107547208666801, -0.0027448104228824377, 0.020253861322999, 0.012078999541699886, -0.029271868988871574, 0.017018740996718407, 0.04201072081923485, -0.056234247982501984, 0.04640975221991539, -0.033817533403635025, -0.08424139767885208, 0.021078677847981453, 0.008853045292198658, -0.030334968119859695, -0.04168079420924187, -0.044833432883024216, -0.05902029946446419, -0.00017484420095570385, -0.0638592317700386, -0.0764697790145874, -0.036493606865406036, 0.052751682698726654, 0.030554918572306633, 0.01952068880200386, -0.016688814386725426, 0.017944371327757835, -0.004664803389459848, -0.03577876463532448, 0.00763414753600955, -0.017761077731847763, 0.08321495354175568, -0.05044219270348549, -0.02841039188206196, 0.015882326290011406, -0.015057507902383804, 0.05443798005580902, 0.006603125017136335, 0.06492233276367188, 0.03933464735746384, 0.02217843569815159, -0.024011364206671715, -0.021573569625616074, -0.009421252645552158, -0.014535123482346535, 0.011859048157930374, -0.06866150349378586, 0.0047014616429805756, -0.0305365901440382, -0.018081840127706528, -0.011501627042889595, 0.03992118313908577, -0.04860926419496536, 0.06268616020679474, 0.06026669219136238, 0.021848509088158607, -0.009742015041410923, -0.04703294858336449, 0.04820602014660835, -0.04937909543514252, -0.03464234992861748, 0.0008236722787842155, 0.02729230560362339, -0.061513081192970276, -0.05344819650053978, -0.09201301634311676, -0.021316958591341972, -0.036878522485494614, -0.05091875419020653, 0.07148421555757523, 0.03489895910024643, 0.014947532676160336, -0.0028204189147800207, 0.01194152981042862, 0.05682078376412392, 0.028318746015429497, 0.036970168352127075, -0.012088163755834103, 0.03852815926074982, 0.01117169950157404, -0.05205517262220383, -0.02106034941971302, -0.006690189242362976, 0.04212069883942604, -0.006910140626132488, -0.04080098867416382, 0.030811529606580734, 0.0018100169254466891, 0.0610731802880764, -0.02380974218249321, -0.02065710537135601, -0.010154424235224724, 0.043770335614681244, -0.005420886445790529, 0.0347706563770771, 0.007945745252072811, 0.010750126093626022, -0.015699032694101334, -0.005695825442671776, -0.020932044833898544, -0.009742015041410923, 0.05029556155204773, -0.012738853693008423, 0.029858406633138657, -0.03240617737174034, -0.009705356322228909, -0.02566099911928177, -0.04234065115451813, -0.062466204166412354, 0.07654310017824173, 0.012024011462926865, -0.032827749848365784, -0.01134582795202732, 0.0081244558095932, 0.03863813355565071, 0.01961233653128147, 0.00840855948626995, -0.06140310689806938, -0.007299637887626886, -0.030353296548128128, 0.0053475690074265, -0.04036108776926994, 0.03775832802057266, -0.03524721786379814, -0.05117536708712578, -0.0038858086336404085, 0.021885167807340622, -0.00597076490521431, 0.006099069956690073, -0.015231636352837086, 0.0038262384478002787, -0.037611693143844604, 0.009137148968875408, 0.04047106206417084, 0.002118178177624941, -0.004117215983569622, 0.006781835574656725, 0.008532282896339893, -0.03152637183666229, -0.034220777451992035, 0.03581542521715164, 0.0048710075207054615, 0.008875956758856773, 0.02745727077126503, 0.014260184019804, -0.023589789867401123, -0.007253814954310656, 0.02663245238363743, -0.08314163982868195, 0.024891169741749763, 0.037373412400484085, 0.017476974055171013, -0.025166109204292297, -0.04138752818107605, -0.03700682893395424, 0.02445126697421074, 0.03286441043019295, 0.06451908499002457, -0.023956377059221268, 0.0016244329744949937, -0.0011427163844928145, -0.10880263894796371, 0.01667965017259121, 0.01615726575255394, -0.021426934748888016, 0.022380057722330093, 0.008051138371229172, -0.03044494427740574, -0.004586903844028711, -0.01280300598591566, 0.015772350132465363, 0.07350043207406998, -0.020877055823802948, 0.019740641117095947, 0.012445584870874882, 0.0136919766664505, -0.049599047750234604, -0.033249322324991226, -0.002084956271573901, 0.025697657838463783, -0.014021903276443481, -0.04622645676136017, 0.019154103472828865, 0.062319569289684296, 0.03367089852690697, -0.01926407963037491, 0.005787471774965525, 0.0434037484228611, 0.0018833341309800744, 0.02760390378534794, 0.00016840030730236322, 0.05271502584218979, -0.034550704061985016, 0.013902762904763222, 0.013132933527231216, -0.0370984748005867, 0.026449158787727356, 0.016542179509997368, 0.012848828919231892, 0.0393713042140007, 0.03273610398173332, -0.009540393017232418, -0.020125554874539375, -0.007698299828916788, -0.09399257600307465, 0.0023346927482634783, -0.006777253467589617, -0.05029556155204773, 0.009604545310139656, 0.005136782303452492, 0.05480456352233887, 0.030316637828946114, 0.020602116361260414, 0.03378087282180786, 0.0582871288061142, -0.0627228170633316, -0.06411584466695786, -0.05627090856432915, 0.011813224293291569, -0.004169912543147802, -0.01612977124750614, -0.0008706410881131887, 0.08248178660869598, -0.02582596428692341, 0.013123768381774426, -0.09318608790636063, 0.03775832802057266, -0.02333318069577217, 0.023443156853318214, -0.04234065115451813, -0.003294689115136862, -0.0168446134775877, 0.02890528365969658, 0.0542546845972538, -0.01919076219201088, 0.004889336880296469, -0.008399395272135735, 0.074306920170784, -0.035503827035427094, -0.023204876109957695, 0.006300691980868578, -0.005462127272039652, -0.030243320390582085, -0.019557347521185875, 0.07683636248111725, 0.04131421074271202, -0.006328186020255089, 0.02001558057963848, 0.04010447859764099, 0.008032809011638165, -0.03442239761352539, -0.0016862943302839994, -0.05773724988102913, -0.054144710302352905, 0.002286578295752406, 0.043367091566324234, 0.025715988129377365, -0.021115336567163467, -0.04259726032614708, 0.027347294613718987, -0.03625532612204552, 0.015460752882063389, -0.028043806552886963, -0.054767906665802, 0.03011501580476761, -0.06114649772644043, 0.07566329091787338, 0.0029785088263452053, -0.042560599744319916, 0.014480135403573513, -0.07383036613464355, -0.02575264684855938, 0.03271777555346489, 0.013022957369685173, -0.022563351318240166, 0.0326077975332737, -0.05927690863609314, 0.009934472851455212, -0.02817211113870144, 0.023296521976590157, -0.000904435699339956, 0.04292718693614006, 0.029620125889778137, 0.03838152438402176, -0.02518443763256073, 0.026375841349363327, 0.05201851204037666, -0.04193740710616112, 0.021005360409617424, 0.03966457396745682, -0.026779085397720337, -0.03176465258002281, -0.02073042280972004, -0.02665078081190586, 0.020070567727088928, 0.03671355918049812, -0.0025729734916239977, -0.006021170411258936, -0.02745727077126503, -0.10205746442079544, -0.009586215950548649, -0.04937909543514252, 0.038198232650756836, -0.041497502475976944, -0.002566100098192692, -0.024359621107578278, 0.0009439582354389131, -0.05788388475775719, 0.03554048389196396, -0.006502314005047083, -0.00520093459635973, -0.017238693311810493, -0.043220456689596176, -0.03290106728672981, 0.004866425413638353, 0.03962791711091995, 0.018320120871067047, -0.030426613986492157, -0.029271868988871574, 0.005617925897240639, -0.021848509088158607, -0.003732300829142332, 0.0194290429353714, 0.0012211886933073401, 0.004101177677512169, -0.0208220686763525, 0.06338267028331757, 0.02584429271519184, -0.0028272923082113266, -0.0326077975332737, 0.02413966879248619, 0.12192640453577042, 0.015424094162881374, -0.018640883266925812, 0.0002140803262591362, 0.0069926222786307335, 0.03662191331386566, -0.028685331344604492, 0.058433763682842255, -0.06209962069988251, -0.056637492030858994, 0.02511112205684185, -0.011538284830749035, -0.005608761217445135, 0.05630756542086601, 0.04072767123579979, -0.02679741568863392, 0.011877377517521381, 0.02575264684855938, 0.01777024194598198, 0.01339870784431696, 0.0024744535330682993, 0.04633643478155136, -0.04076433181762695, 0.012051505036652088, -0.023956377059221268, -0.0485726073384285, 0.009242542088031769, 0.006470237858593464, 0.06756174564361572, -0.047839436680078506, -0.051798559725284576, -0.07258397340774536, 0.02428630366921425, 0.0009124547359533608, -0.020547129213809967, 0.04615313932299614, -0.04333043098449707, -0.02331485040485859, -0.06437245011329651, 0.020382165908813477, 0.03427576273679733, 0.04003116115927696, -0.009503734298050404, -0.004525042604655027, -0.014434312470257282, 0.02980341762304306, -0.02809879556298256, -0.013343719765543938, 0.009980295784771442, 0.017522796988487244, -0.021848509088158607, -0.02212344855070114, -0.016578838229179382, -0.048242680728435516, -0.004163038916885853, -0.04574989527463913, 0.008784309960901737, -0.012262292206287384, 0.02720065973699093, -0.03695183992385864, -0.005828712601214647, -0.015442423522472382, 0.02122531272470951, -0.020125554874539375, -0.01689043641090393, -0.0005524561274796724, 0.016102276742458344, 0.04300050437450409, 0.02243504486978054, 0.012088163755834103, 0.02980341762304306, 0.09619209170341492, -0.06363928318023682, 0.0016588002908974886, -0.014370160177350044, 0.04703294858336449, -0.023919718340039253, 0.02260001003742218, -0.051395315676927567, -0.013545341789722443, 0.059240251779556274, 0.019539019092917442, -0.017467809841036797, 0.059900104999542236, -0.022068459540605545, 0.0013139806687831879, 0.0028502040077000856, 0.014287678524851799, 0.03321266546845436, 0.04047106206417084, 0.03951793909072876, 0.04666636139154434, -0.013334555551409721, -0.006731430068612099, -0.03060990758240223, 0.052934978157281876, -0.06103651970624924, -0.07529670745134354, -0.013288731686770916, -0.03918801248073578, 0.0002515980741009116, -0.02786051481962204, -0.025166109204292297, -0.0014892544131726027, -0.0324978232383728, -0.02511112205684185, 0.05821381136775017, 0.0490858256816864, 0.021115336567163467, 0.004518168978393078, 0.06360261887311935, 0.0010814279085025191, -0.02468954771757126, 0.042780552059412, 0.1039637103676796, -0.007450854405760765, 0.00239884527400136, -0.016972918063402176, -0.012720524333417416, 0.04886587709188461, 0.08116208016872406, -0.02582596428692341, -0.02122531272470951, 0.05282500013709068, -0.018585896119475365, -0.003652110230177641, 0.021811850368976593, -0.010209412313997746, 0.01750446856021881, -0.008417724631726742, 0.008454383350908756, -0.00009544116619508713, 0.031049810349941254, -0.004793107975274324, -0.010704303160309792, 0.008871374651789665, -0.01733950339257717, -0.015075837261974812, -0.009751180186867714, -0.0005306900711730123, 0.05176190286874771, 0.00591119471937418, 0.02269165590405464, -0.029620125889778137, -0.0036727306433022022, -0.03207625076174736, 0.0038858086336404085, -0.01105255912989378, -0.04325711354613304, 0.037043485790491104, 0.054218027740716934, 0.04739953204989433, 0.012885487638413906, -0.027713879942893982, -0.03911469504237175, 0.025972597301006317, -0.0014296842273324728, 0.02217843569815159, 0.008972185663878918, -0.010951748117804527, -0.025459377095103264, -0.0026646198239177465, 0.03480731323361397, 0.022288411855697632, 0.018521742895245552, -0.02907024696469307, 0.0051184529438614845, 0.03163634613156319, 0.02177519164979458, 0.004999312572181225, 0.018301792442798615, 0.0023598955012857914, -0.05531778559088707, 0.005489620845764875, 0.012546395882964134, 0.011501627042889595, 0.04274389520287514, -0.022819960489869118, 0.03618200868368149, 0.013132933527231216, 0.006740594748407602, 0.001641616690903902, 0.017898546531796455, 0.10315722227096558, -0.08570773899555206, 0.030389955267310143, -0.0022762680891901255, 0.011391650885343552, -0.02250836230814457, 0.007909086532890797, -0.011804060079157352, -0.01835677959024906, 0.03207625076174736, -0.00959538109600544, 0.0008351280703209341, -0.0011765110539272428, -0.01732117496430874 ]
37,746
healpy.fitsfunc
write_map
Writes a healpix map into a healpix FITS file. .. warning:: Starting from healpy 1.15.0, if you do not specify `dtype`, the map will be written to disk with the same precision it is stored in memory. Previously, by default `healpy` wrote maps in `float32`. To reproduce the same behaviour of `healpy` 1.14.0 and below, set `dtype=np.float32`. Parameters ---------- filename : str the fits file name m : array or sequence of 3 arrays the map to write. Possibly a sequence of 3 maps of same size. They will be considered as I, Q, U maps. Supports masked maps, see the `ma` function. nest : bool, optional If True, ordering scheme is assumed to be NESTED, otherwise, RING. Default: RING. The map ordering is not modified by this function, the input map array should already be in the desired ordering (run `ud_grade` beforehand). fits_IDL : bool, optional If True, reshapes columns in rows of 1024, otherwise all the data will go in one column. Default: True coord : str The coordinate system, typically 'E' for Ecliptic, 'G' for Galactic or 'C' for Celestial (equatorial) partial : bool, optional If True, fits file is written as a partial-sky file with explicit indexing. Otherwise, implicit indexing is used. Default: False. column_names : str or list Column name or list of column names, if None here the default column names based on the number of columns: 1 : "TEMPERATURE", 2 : ["Q_POLARISATION", "U_POLARISATION"], 3 : ["TEMPERATURE", "Q_POLARISATION", "U_POLARISATION"], 6 : ["II", "IQ", "IU", "QQ", "QU", "UU"] COLUMN_1, COLUMN_2... otherwise (FITS is 1-based) column_units : str or list Units for each column, or same units for all columns. extra_header : list Extra records to add to FITS header. dtype: np.dtype or list of np.dtypes, optional The datatype in which the columns will be stored. Will be converted internally from the numpy datatype to the fits convention. If a list, the length must correspond to the number of map arrays. Default: use the data type of the input array(s) .. note:: this changed in 1.15.0, previous versions saved in float32 by default overwrite : bool, optional If True, existing file is silently overwritten. Otherwise trying to write an existing file raises an OSError (IOError for Python 2).
def write_map( filename, m, nest=False, dtype=None, fits_IDL=True, coord=None, partial=False, column_names=None, column_units=None, extra_header=(), overwrite=False, ): """Writes a healpix map into a healpix FITS file. .. warning:: Starting from healpy 1.15.0, if you do not specify `dtype`, the map will be written to disk with the same precision it is stored in memory. Previously, by default `healpy` wrote maps in `float32`. To reproduce the same behaviour of `healpy` 1.14.0 and below, set `dtype=np.float32`. Parameters ---------- filename : str the fits file name m : array or sequence of 3 arrays the map to write. Possibly a sequence of 3 maps of same size. They will be considered as I, Q, U maps. Supports masked maps, see the `ma` function. nest : bool, optional If True, ordering scheme is assumed to be NESTED, otherwise, RING. Default: RING. The map ordering is not modified by this function, the input map array should already be in the desired ordering (run `ud_grade` beforehand). fits_IDL : bool, optional If True, reshapes columns in rows of 1024, otherwise all the data will go in one column. Default: True coord : str The coordinate system, typically 'E' for Ecliptic, 'G' for Galactic or 'C' for Celestial (equatorial) partial : bool, optional If True, fits file is written as a partial-sky file with explicit indexing. Otherwise, implicit indexing is used. Default: False. column_names : str or list Column name or list of column names, if None here the default column names based on the number of columns: 1 : "TEMPERATURE", 2 : ["Q_POLARISATION", "U_POLARISATION"], 3 : ["TEMPERATURE", "Q_POLARISATION", "U_POLARISATION"], 6 : ["II", "IQ", "IU", "QQ", "QU", "UU"] COLUMN_1, COLUMN_2... otherwise (FITS is 1-based) column_units : str or list Units for each column, or same units for all columns. extra_header : list Extra records to add to FITS header. dtype: np.dtype or list of np.dtypes, optional The datatype in which the columns will be stored. Will be converted internally from the numpy datatype to the fits convention. If a list, the length must correspond to the number of map arrays. Default: use the data type of the input array(s) .. note:: this changed in 1.15.0, previous versions saved in float32 by default overwrite : bool, optional If True, existing file is silently overwritten. Otherwise trying to write an existing file raises an OSError (IOError for Python 2). """ if not hasattr(m, "__len__"): raise TypeError("The map must be a sequence") m = pixelfunc.ma_to_array(m) if pixelfunc.maptype(m) == 0: # a single map is converted to a list m = [m] # check the dtype and convert it if dtype is None: dtype = [x.dtype for x in m] log.warning("setting the output map dtype to %s" % str(dtype)) try: fitsformat = [] for curr_dtype in dtype: fitsformat.append(getformat(curr_dtype)) except TypeError: # dtype is not iterable fitsformat = [getformat(dtype)] * len(m) if column_names is None: column_names = standard_column_names.get( len(m), ["COLUMN_%d" % n for n in range(1, len(m) + 1)] ) else: assert len(column_names) == len(m), "Length column_names != number of maps" if column_units is None or isinstance(column_units, str): column_units = [column_units] * len(m) # maps must have same length assert len(set(map(len, m))) == 1, "Maps must have same length" nside = pixelfunc.npix2nside(len(m[0])) if nside < 0: raise ValueError("Invalid healpix map : wrong number of pixel") cols = [] if partial: fits_IDL = False mask = pixelfunc.mask_good(m[0]) pix = np.where(mask)[0] if len(pix) == 0: raise ValueError("Invalid healpix map : empty partial map") m = [mm[mask] for mm in m] ff = getformat(np.min_scalar_type(-pix.max())) if ff is None: ff = "I" cols.append(pf.Column(name="PIXEL", format=ff, array=pix, unit=None)) for cn, cu, mm, curr_fitsformat in zip(column_names, column_units, m, fitsformat): if len(mm) > 1024 and fits_IDL: # I need an ndarray, for reshape: mm2 = np.asarray(mm) cols.append( pf.Column( name=cn, format="1024%s" % curr_fitsformat, array=mm2.reshape(mm2.size // 1024, 1024), unit=cu, ) ) else: cols.append( pf.Column(name=cn, format="%s" % curr_fitsformat, array=mm, unit=cu) ) tbhdu = pf.BinTableHDU.from_columns(cols) # add needed keywords tbhdu.header["PIXTYPE"] = ("HEALPIX", "HEALPIX pixelisation") if nest: ordering = "NESTED" else: ordering = "RING" tbhdu.header["ORDERING"] = ( ordering, "Pixel ordering scheme, either RING or NESTED", ) if coord: tbhdu.header["COORDSYS"] = ( coord, "Ecliptic, Galactic or Celestial (equatorial)", ) tbhdu.header["EXTNAME"] = ("xtension", "name of this binary table extension") tbhdu.header["NSIDE"] = (nside, "Resolution parameter of HEALPIX") if not partial: tbhdu.header["FIRSTPIX"] = (0, "First pixel # (0 based)") tbhdu.header["LASTPIX"] = ( pixelfunc.nside2npix(nside) - 1, "Last pixel # (0 based)", ) tbhdu.header["INDXSCHM"] = ( "EXPLICIT" if partial else "IMPLICIT", "Indexing: IMPLICIT or EXPLICIT", ) tbhdu.header["OBJECT"] = ( "PARTIAL" if partial else "FULLSKY", "Sky coverage, either FULLSKY or PARTIAL", ) # FIXME: In modern versions of Pyfits, header.update() understands a # header as an argument, and headers can be concatenated with the `+' # operator. for args in extra_header: tbhdu.header[args[0]] = args[1:] # Add str to convert pathlib.Path into str # Due to https://github.com/astropy/astropy/issues/10594 tbhdu.writeto(str(filename), overwrite=overwrite)
(filename, m, nest=False, dtype=None, fits_IDL=True, coord=None, partial=False, column_names=None, column_units=None, extra_header=(), overwrite=False)
[ 0.027268728241324425, 0.003911816980689764, -0.005810730159282684, 0.010642810724675655, 0.009519589133560658, -0.03712194785475731, -0.05556058883666992, -0.0031861707102507353, -0.10329198837280273, -0.0016959547065198421, 0.03089417889714241, 0.017804745584726334, -0.009119232185184956, 0.05658372491598129, 0.029114816337823868, 0.04982214793562889, 0.0025397618301212788, 0.047998301684856415, -0.00016064653755165637, -0.01798268035054207, 0.013189523480832577, -0.02702406607568264, 0.059964511543512344, 0.020284730941057205, -0.007350991014391184, -0.06708195805549622, -0.00196007895283401, -0.0008194797555916011, 0.0379004180431366, -0.04541822522878647, -0.06516914814710617, -0.05462642386555672, 0.018227342516183853, 0.02682388760149479, -0.019739801064133644, -0.02032921463251114, 0.07593429088592529, 0.025533849373459816, -0.07224211096763611, -0.005638354457914829, 0.040191348642110825, -0.012611230835318565, 0.010114562697708607, 0.007651258260011673, 0.06637021899223328, 0.039012521505355835, -0.023798972368240356, -0.024021392688155174, 0.02100759744644165, 0.0061554815620183945, -0.033963579684495926, -0.05440400540828705, 0.02508900873363018, 0.04499562457203865, -0.005452077370136976, 0.010865231044590473, -0.020028946921229362, 0.015447089448571205, 0.05582749471068382, -0.04871004447340965, -0.0007284264429472387, -0.011104333214461803, -0.004823740106076002, -0.05164599418640137, 0.011104333214461803, -0.01285589300096035, -0.01762680895626545, -0.026512499898672104, -0.017537839710712433, 0.03858992084860802, -0.038945794105529785, 0.06312288343906403, 0.050622858107089996, 0.02157476916909218, 0.0009404208394698799, 0.015124579891562462, 0.020362578332424164, -0.06241113319993019, 0.022864805534482002, 0.013400822877883911, -0.0036087692715227604, 0.010192410089075565, 0.004901587497442961, -0.005168491508811712, -0.017682412639260292, 0.029670868068933487, 0.10693968087434769, 0.0319395549595356, -0.02107432298362255, -0.01989549584686756, -0.009608556516468525, 0.017671292647719383, 0.018271828070282936, 0.012955982238054276, 0.006778258364647627, -0.05693959444761276, -0.03102763183414936, 0.053336385637521744, -0.02411036007106304, -0.02846979722380638, -0.03249560669064522, -0.07491115480661392, 0.06539157032966614, 0.06250010430812836, 0.0025828557554632425, 0.001793263596482575, -0.016014261171221733, 0.027268728241324425, -0.038678888231515884, -0.014012478291988373, -0.04217088967561722, -0.012577868066728115, 0.007367672398686409, -0.06450188905000687, 0.03807835653424263, -0.022197546437382698, 0.02675716206431389, 0.010842989198863506, 0.000798627850599587, 0.030160192400217056, 0.0020587779581546783, -0.029337236657738686, -0.014913280494511127, -0.053736742585897446, 0.016837216913700104, -0.04030255600810051, -0.0030582791659981012, 0.02143019624054432, 0.019784284755587578, -0.02404363453388214, -0.015335879288613796, -0.025000041350722313, -0.02833634614944458, 0.039501845836639404, 0.01523579005151987, -0.0709075927734375, 0.02190839871764183, -0.06659263372421265, 0.0035003393422812223, -0.004798717796802521, 0.02204185165464878, -0.017170846462249756, -0.017915954813361168, 0.01832743175327778, 0.044395092874765396, 0.004651364404708147, 0.05489332973957062, -0.03959081321954727, 0.01534700021147728, -0.05244670435786247, -0.03338528797030449, -0.0826958641409874, -0.0963524729013443, 0.018338553607463837, -0.004009125754237175, -0.04853210970759392, 0.06129903346300125, -0.011521371081471443, 0.021930640563368797, 0.023999150842428207, 0.014835434034466743, -0.028113925829529762, -0.01892796717584133, 0.022408844903111458, -0.07322075963020325, -0.023042742162942886, -0.04590754956007004, 0.011293390765786171, 0.06419049948453903, 0.009386136196553707, 0.015258031897246838, -0.027068549767136574, -0.015180185437202454, 0.013734453357756138, 0.06005347892642021, -0.024799862876534462, -0.048131752759218216, -0.05538265407085419, -0.059608638286590576, -0.003947960212826729, 0.02860325016081333, -0.007206417620182037, 0.01167706586420536, 0.06459085643291473, -0.05862998962402344, 0.054092615842819214, 0.04341644048690796, 0.0041092149913311005, 0.022586781531572342, 0.019517380744218826, 0.022542297840118408, -0.03440842032432556, -0.007084086537361145, 0.03491998463869095, 0.06450188905000687, -0.05382570996880531, 0.043438684195280075, 0.006416825577616692, 0.03053830750286579, 0.012811409309506416, -0.08910156786441803, -0.012044059112668037, 0.034942228347063065, 0.018838999792933464, -0.03298493102192879, -0.03291820362210274, 0.056850627064704895, -0.01574735715985298, 0.0015680630458518863, 0.014724223874509335, 0.027268728241324425, -0.022141940891742706, -0.03334080055356026, -0.02335413172841072, 0.06049831956624985, -0.026445772498846054, -0.053336385637521744, 0.052090834826231, -0.05275809392333031, 0.044328365474939346, -0.04755346104502678, 0.06205526366829872, -0.005607771687209606, 0.0572509840130806, -0.03850095346570015, 0.009263805113732815, 0.019317202270030975, 0.005810730159282684, 0.07179727405309677, 0.02820289321243763, 0.0005546606262214482, 0.009230442345142365, -0.009647480212152004, -0.02364327758550644, -0.030093466863036156, -0.00414813868701458, -0.0030360370874404907, 0.01679273322224617, 0.015280274674296379, -0.005377010442316532, -0.0014846554258838296, -0.003850651439279318, -0.06459085643291473, 0.0028831230010837317, -0.01734878309071064, -0.04203743487596512, 0.006389022804796696, 0.014557408168911934, -0.035631731152534485, 0.02889239601790905, 0.030983148142695427, 0.014635255560278893, 0.007540048100054264, 0.032940447330474854, -0.0017320980550721288, -0.042549002915620804, -0.03836750239133835, -0.06432394683361053, 0.006077634636312723, -0.0257117860019207, -0.012933740392327309, -0.06490224599838257, 0.060231417417526245, -0.027135275304317474, 0.03269578516483307, -0.022075213491916656, 0.005404813215136528, 0.03222870081663132, -0.016003141179680824, -0.012800288386642933, -0.021374590694904327, 0.052090834826231, -0.04056946188211441, -0.012867013923823833, 0.0111321359872818, 0.010720658116042614, 0.10320302098989487, -0.031828343868255615, 0.08478661626577377, 0.044417332857847214, 0.00015960393648128957, -0.004014686215668917, -0.031005389988422394, 0.027824778109788895, 0.0034697565715759993, 0.04919936880469322, -0.04604100063443184, 0.0576513409614563, 0.01817173883318901, -0.057740308344364166, 0.016548069193959236, 0.04906591773033142, -0.07655706256628036, 0.010264696553349495, 0.00009878588753053918, -0.06743783503770828, -0.014279383234679699, -0.04021358862519264, 0.02198624610900879, -0.0760677382349968, -0.03394133597612381, -0.01803828589618206, 0.12482226639986038, 0.015480452217161655, -0.028158409520983696, 0.012299842201173306, -0.03053830750286579, -0.03823404759168625, -0.0057162013836205006, 0.0009056676644831896, 0.062322165817022324, 0.025200219824910164, -0.019750922918319702, 0.04581858217716217, 0.03545379638671875, -0.01278916746377945, 0.03903476148843765, 0.04070291295647621, 0.05965312197804451, 0.02302050031721592, -0.0353870689868927, -0.013078313320875168, 0.03296268731355667, -0.020062310621142387, 0.06895029544830322, -0.06828302890062332, 0.0968862846493721, -0.023732244968414307, 0.0360543318092823, -0.07722432911396027, 0.009569632820785046, -0.017337661236524582, 0.0577847920358181, 0.01631452888250351, -0.012411052361130714, 0.012967103160917759, -0.01832743175327778, -0.011037606745958328, -0.016147714108228683, -0.0027482807636260986, -0.00029609701596200466, 0.022520054131746292, 0.03456411510705948, -0.0022909289691597223, -0.004348316695541143, -0.041637077927589417, -0.01976204290986061, -0.010553843341767788, -0.05493781343102455, 0.04299384355545044, 0.059964511543512344, 0.018694425001740456, 0.007829193957149982, 0.02758011594414711, 0.034742049872875214, 0.015291395597159863, 0.0145796500146389, -0.026423530653119087, 0.0019698096439242363, 0.0322064571082592, 0.06054280325770378, 0.01823846437036991, -0.04016910493373871, -0.02951517328619957, -0.02384345605969429, -0.03371891751885414, 0.003375228028744459, 0.03738885000348091, 0.011565855704247952, -0.023621035739779472, 0.027135275304317474, -0.03371891751885414, -0.00035291846143081784, 0.0319395549595356, 0.03847870975732803, -0.006055392790585756, 0.013623243197798729, 0.035565003752708435, -0.05965312197804451, -0.007061844225972891, 0.004259348846971989, 0.026846129447221756, -0.05862998962402344, 0.04132569208741188, 0.02958189882338047, 0.00936945527791977, 0.045863065868616104, -0.00520185474306345, -0.08634355664253235, -0.032873719930648804, 0.009975550696253777, 0.048621077090501785, 0.03785593435168266, 0.021652616560459137, -0.003266798099502921, 0.04339420050382614, -0.006728213746100664, 0.04252675920724869, -0.007573410868644714, -0.006833863444626331, 0.02058499865233898, -0.10498237609863281, 0.019372807815670967, 0.008835646323859692, -0.0208741445094347, -0.059964511543512344, 0.008235111832618713, -0.06868338584899902, 0.030293643474578857, -0.0174266304820776, 0.0004910622956231236, 0.06285597383975983, -0.043371956795454025, 0.030605033040046692, -0.042682453989982605, 0.03532034158706665, -0.03285147622227669, -0.03329631686210632, -0.0025105690583586693, 0.003158368170261383, 0.012121906504034996, -0.041637077927589417, -0.0054159341380000114, 0.06792715936899185, 0.015636146068572998, -0.08367451280355453, -0.03932390734553337, 0.042549002915620804, -0.02875894494354725, 0.07958198338747025, -0.01913926564157009, -0.030182434245944023, 0.012600109912455082, -0.029871046543121338, 0.004845982417464256, 0.007228659465909004, 0.005329746287316084, -0.016959547996520996, 0.027335453778505325, 0.00784031581133604, 0.04283814877271652, -0.0014332208083942533, 0.017115240916609764, -0.03629899397492409, -0.020918628200888634, 0.016848336905241013, -0.07424389570951462, 0.04706413298845291, -0.01482431311160326, 0.0323399119079113, 0.05742891877889633, 0.005482660140842199, 0.019572986289858818, -0.013923510909080505, 0.06810509413480759, -0.06138800084590912, -0.003194511402398348, 0.012878134846687317, 0.003725539892911911, -0.02282032184302807, 0.011454645544290543, 0.021274501457810402, 0.0519573800265789, -0.019161509349942207, 0.06316736340522766, -0.017459992319345474, 0.018438642844557762, -0.03758902847766876, 0.012800288386642933, -0.003989663906395435, -0.01839415915310383, 0.008668830618262291, 0.020696207880973816, -0.004259348846971989, 0.04383904114365578, -0.0028859032317996025, -0.015280274674296379, 0.06205526366829872, -0.02066284604370594, -0.020229125395417213, 0.05640578642487526, -0.04210416227579117, -0.017704656347632408, -0.060720741748809814, 0.02459968440234661, 0.0005772501463070512, -0.0020212444942444563, -0.01790483295917511, 0.01420153584331274, -0.04888797923922539, -0.043305233120918274, -0.007957085967063904, 0.005877456162124872, -0.027491148561239243, -0.026490258052945137, 0.06227768212556839, 0.05427055060863495, -0.02502228319644928, -0.0006352879572659731, -0.05680614337325096, 0.013879026286303997, -0.009074748493731022, -0.037077464163303375, -0.044884417206048965, -0.06027590110898018, -0.0009404208394698799, 0.06281149387359619, -0.019317202270030975, -0.0016236681258305907, -0.026089901104569435, -0.047998301684856415, -0.06312288343906403, -0.0289591234177351, 0.02860325016081333, 0.01485767588019371, 0.05427055060863495, -0.021519163623452187, -0.024710895493626595, -0.01727093569934368, 0.022130819037556648, -0.00004565697963698767, 0.022408844903111458, -0.008974659256637096, 0.050000082701444626, -0.025622818619012833, -0.01595865562558174, 0.05689511075615883, -0.011699307709932327, 0.03149471431970596, -0.02597869001328945, -0.03567621484398842, -0.013033829629421234, -0.017259815707802773, -0.03311838209629059, 0.06290046125650406, 0.010765142738819122, 0.031116599217057228, -0.06685954332351685, -0.0068116215988993645, -0.08167273551225662, 0.01575847715139389, -0.023887939751148224, 0.05266912654042244, -0.07486667484045029, 0.04977766051888466, 0.005449297372251749, -0.004292711615562439, -0.061210066080093384, 0.10409269481897354, -0.03447514772415161, -0.032718025147914886, 0.027958231046795845, 0.0029637503903359175, -0.03089417889714241, 0.03772248327732086, 0.043861281126737595, 0.025822997093200684, -0.05258015915751457, -0.07442183047533035, 0.015302516520023346, -0.033629950135946274, 0.03222870081663132, 0.02551160752773285, 0.015936413779854774, -0.03532034158706665, -0.0007527536945417523, -0.004773695487529039, 0.02951517328619957, -0.05351432412862778, -0.0352536179125309, -0.020562756806612015, 0.06939513236284256, 0.0008785601821728051, -0.04826520383358002, -0.0032751387916505337, -0.04190398380160332, 0.004926609341055155, -0.020373698323965073, 0.06556950509548187, -0.062322165817022324, -0.014012478291988373, 0.006861666217446327, 0.024844346567988396, 0.05026698857545853, 0.03932390734553337, 0.015402605757117271, -0.009230442345142365, 0.048354171216487885, 0.007851436734199524, 0.01700403168797493, 0.010070079006254673, -0.06338978558778763, 0.0379004180431366, -0.008496454916894436, -0.017315419390797615, -0.00816282443702221, -0.006333417724817991, -0.0022478350438177586, -0.006466870196163654, 0.012666835449635983, 0.007084086537361145, -0.016603674739599228, -0.06107661500573158, -0.005073963198810816, -0.0006252095336094499, -0.010281378403306007, 0.07602325826883316, 0.03191731125116348, -0.0286254920065403, -0.03554276376962662, -0.02640128880739212, 0.05462642386555672, 0.030738484114408493, -0.01469086017459631, -0.037077464163303375, -0.08767808228731155, -0.019094781950116158, 0.023665519431233406, 0.0454627089202404, -0.011232225224375725, -0.04595203325152397, -0.011465766467154026, -0.007134131155908108, -0.021663736552000046, 0.008034933358430862, -0.017871471121907234, -0.009719766676425934, 0.042415551841259, 0.00784031581133604, -0.021730462089180946, -0.07242004573345184, 0.007512245327234268, -0.006283373571932316, 0.013456427492201328, 0.012922619469463825, -0.004173160996288061, 0.0022575659677386284, -0.02453295886516571, 0.004159259609878063, 0.07998234033584595, 0.047731395810842514, -0.022442208603024483, 0.08941295742988586, 0.003914596978574991, 0.04526253044605255, 0.03391909599304199, 0.023042742162942886, -0.0003405810857657343, 0.014913280494511127, -0.05631681904196739, -0.027980472892522812, 0.014145931228995323, -0.01852761022746563, -0.0014429516158998013, 0.0653470829129219, 0.004209304228425026, -0.03665486350655556, -0.058096181601285934, -0.07335421442985535, 0.011888365261256695, 0.00026951084146276116, -0.019884373992681503, -0.004984994884580374, -0.051379088312387466, -0.05978657677769661, -0.039435118436813354, 0.04403921961784363, -0.006122118793427944, -0.021585889160633087, 0.0002015684003708884, -0.01873891055583954, -0.026935098692774773, -0.022842563688755035, -0.04933281987905502, 0.03342977166175842, 0.020273609086871147, -0.004470647778362036, 0.021196654066443443, 0.0178937129676342, 0.027891505509614944, 0.03138350322842598, 0.060097962617874146, 0.012989345006644726, 0.0581851489841938, 0.02882567048072815, 0.09297168254852295, -0.0031361260917037725, -0.030805211514234543, -0.03847870975732803, 0.005098985508084297, 0.027602359652519226, -0.0022950994316488504, 0.018772272393107414, 0.01811613328754902, 0.012088542804121971, 0.032718025147914886, 0.008685512468218803, 0.017749140039086342, -0.003964641597121954, 0.027046307921409607, -0.01790483295917511, -0.01271132007241249, -0.01811613328754902, 0.023665519431233406, -0.02413260191679001, 0.02141907438635826, -0.01797156035900116, 0.029292752966284752, -0.0026509719900786877, -0.014724223874509335, -0.0416148379445076, 0.08803395181894302, 0.01534700021147728, -0.02875894494354725, -0.038456469774246216, -0.02826961874961853, -0.03089417889714241, 0.04361661896109581, 0.018827877938747406, -0.03738885000348091, 0.038745615631341934, 0.02246445044875145, 0.014379472471773624, 0.01754896156489849, -0.044328365474939346, -0.023064984008669853, -0.039168212562799454, -0.00732874870300293, -0.030582791194319725, 0.02620111033320427, -0.003675495507195592, -0.006833863444626331, -0.0519573800265789, 0.059475187212228775, -0.003995224367827177, 0.018983572721481323, 0.016080986708402634, 0.008624346926808357, -0.025266945362091064, -0.004031368065625429, -0.008941295556724072, -0.015391484834253788, -0.008919053710997105, -0.012433294206857681, -0.03318510949611664, 0.028247376903891563, 0.05938621982932091, 0.03131677582859993, -0.019650833681225777, 0.06596986204385757, 0.03692176938056946, -0.0021894497331231833, -0.05564955621957779, 0.02597869001328945, 0.03792266175150871, -0.002749670995399356, -0.011271148920059204, -0.006961755454540253, 0.04826520383358002, -0.008096098899841309, -0.0035615048836916685, 0.01105984952300787, -0.01879451423883438, -0.014790949411690235, 0.003831189591437578, 0.04733103886246681, -0.03082745335996151, -0.006366780959069729 ]
37,747
healpy.pixelfunc
xyf2pix
xyf2pix : nside,x,y,face,nest=False -> ipix (default:RING) Parameters ---------- nside : int, scalar or array-like The healpix nside parameter, must be a power of 2 x, y : int, scalars or array-like Pixel indices within face face : int, scalars or array-like Face number nest : bool, optional if True, assume NESTED pixel ordering, otherwise, RING pixel ordering Returns ------- pix : int or array of int The healpix pixel numbers. Scalar if all input are scalar, array otherwise. Usual numpy broadcasting rules apply. See Also -------- pix2xyf Examples -------- >>> import healpy as hp >>> hp.xyf2pix(16, 8, 8, 4) 1440 >>> print(hp.xyf2pix(16, [8, 8, 8, 15, 0], [8, 8, 7, 15, 0], [4, 0, 5, 0, 8])) [1440 427 1520 0 3068]
def xyf2pix(nside, x, y, face, nest=False): """xyf2pix : nside,x,y,face,nest=False -> ipix (default:RING) Parameters ---------- nside : int, scalar or array-like The healpix nside parameter, must be a power of 2 x, y : int, scalars or array-like Pixel indices within face face : int, scalars or array-like Face number nest : bool, optional if True, assume NESTED pixel ordering, otherwise, RING pixel ordering Returns ------- pix : int or array of int The healpix pixel numbers. Scalar if all input are scalar, array otherwise. Usual numpy broadcasting rules apply. See Also -------- pix2xyf Examples -------- >>> import healpy as hp >>> hp.xyf2pix(16, 8, 8, 4) 1440 >>> print(hp.xyf2pix(16, [8, 8, 8, 15, 0], [8, 8, 7, 15, 0], [4, 0, 5, 0, 8])) [1440 427 1520 0 3068] """ check_nside(nside, nest=nest) if nest: return pixlib._xyf2pix_nest(nside, x, y, face) else: return pixlib._xyf2pix_ring(nside, x, y, face)
(nside, x, y, face, nest=False)
[ 0.020718824118375778, -0.06357455998659134, 0.05186151713132858, -0.04828867316246033, -0.008807802572846413, 0.04836233705282211, 0.04180598258972168, 0.0210871584713459, 0.015608180314302444, -0.03941180557012558, 0.06346406042575836, -0.05727603659033775, -0.035746876150369644, 0.0354890413582325, 0.001134355552494526, 0.004035566467791796, 0.006883253809064627, 0.019190235063433647, -0.07355643063783646, 0.0029420729260891676, 0.023739168420433998, -0.04232165217399597, 0.01267992053180933, 0.021934328600764275, 0.008623634465038776, -0.016077807173132896, 0.060149047523736954, -0.006804982665926218, -0.0054145194590091705, 0.008817010559141636, -0.013121921569108963, 0.010589621029794216, 0.03375786915421486, 0.002612873911857605, -0.03418145328760147, 0.0354706272482872, -0.014567635022103786, 0.040332645177841187, -0.07771860808134079, 0.014613676816225052, 0.025102006271481514, -0.05374002456665039, 0.00459267245605588, 0.02963252179324627, -0.010202869772911072, 0.028987936675548553, -0.042063817381858826, -0.02215532958507538, -0.04294782131910324, -0.026059675961732864, -0.04836233705282211, -0.05484502762556076, -0.022118495777249336, 0.030792776495218277, 0.031529445201158524, -0.03073752671480179, -0.04736783355474472, 0.028840603306889534, 0.060001712292432785, 0.00512905977666378, -0.029595687985420227, -0.024604754522442818, -0.0010319125140085816, -0.02559925802052021, 0.020350489765405655, -0.009549075737595558, 0.0013973695458844304, -0.040590476244688034, -0.05580269917845726, 0.024328503757715225, -0.04305832087993622, 0.041548147797584534, 0.024660004302859306, 0.010276536457240582, 0.05676036700606346, -0.015313512645661831, 0.09606167674064636, 0.028601184487342834, 0.018103647977113724, 0.015994932502508163, 0.004675548058003187, 0.044273823499679565, 0.0013225516304373741, 0.05676036700606346, 0.0369255468249321, 0.11005838960409164, 0.07274609059095383, -0.004166785627603531, -0.03193461522459984, 0.022984081879258156, -0.04066414386034012, -0.07653994113206863, 0.030221857130527496, -0.0077856737188994884, -0.012210293672978878, -0.029945606365799904, -0.003653419204056263, 0.032873865216970444, 0.03241344913840294, -0.030884860083460808, -0.06051738187670708, -0.08663231134414673, -0.05455036088824272, 0.004240452777594328, 0.02933785505592823, 0.008375008590519428, 0.0077856737188994884, 0.03250553086400032, -0.014005924575030804, 0.009295845404267311, 0.010175244882702827, 0.0038076594937592745, 0.015552930533885956, 0.012431294657289982, 0.02018473856151104, -0.01649218425154686, -0.011363123543560505, 0.043500322848558426, 0.023168249055743217, -0.03852780535817146, -0.02593075856566429, -0.004615693353116512, -0.03193461522459984, 0.015110928565263748, -0.01831544004380703, 0.049504175782203674, 0.012643086723983288, 0.005543436389416456, 0.03860146924853325, 0.049356840550899506, -0.010829038918018341, -0.02060832269489765, -0.0227814968675375, -0.040921978652477264, -0.012173459865152836, -0.06637389957904816, 0.04784667119383812, -0.016234349459409714, -0.006252480670809746, -0.028638018295168877, 0.003034156747162342, 0.08287529647350311, 0.017007851973176003, 0.027735598385334015, -0.011482832953333855, 0.04659433290362358, 0.04534199461340904, 0.027385680004954338, 0.0546608604490757, -0.01426375936716795, -0.020774073898792267, -0.006482689641416073, -0.030369192361831665, 0.016436932608485222, 0.016022557392716408, -0.01802998036146164, -0.03359211981296539, -0.011427582241594791, 0.01625276543200016, 0.02526775747537613, -0.0321371965110302, -0.030627025291323662, -0.016436932608485222, -0.011188165284693241, 0.010037119500339031, 0.04195331782102585, -0.04548932984471321, -0.008361196145415306, 0.06073838472366333, 0.06147505342960358, -0.04924634099006653, -0.04637333005666733, -0.02233949676156044, -0.028987936675548553, 0.05941237881779671, 0.005695374216884375, -0.005363873206079006, -0.02939310483634472, 0.024420587345957756, 0.05797587335109711, 0.04375815764069557, -0.08700064569711685, 0.02171332761645317, 0.000006344240318867378, -0.035212792456150055, 0.07735027372837067, 0.04162181541323662, -0.02589392475783825, 0.008858447894454002, -0.044936828315258026, 0.02305774949491024, 0.052708689123392105, -0.048730675131082535, 0.017366979271173477, -0.01139074843376875, -0.03313170000910759, -0.01184195838868618, 0.05005667731165886, 0.0009732092148624361, -0.012210293672978878, 0.0006319241365417838, -0.009475409053266048, 0.025433506816625595, -0.04615233093500137, -0.039669640362262726, 0.0242180023342371, 0.00459267245605588, -0.028509100899100304, -0.0191718190908432, 0.023555001243948936, 0.05407152697443962, -0.027256764471530914, -0.04865700751543045, -0.034163039177656174, -0.007016775198280811, 0.05989121273159981, 0.00874794740229845, 0.03379470482468605, -0.06202755495905876, 0.03486287593841553, 0.021897494792938232, -0.026741094887256622, -0.03709129989147186, 0.01768927089869976, -0.013508672825992107, -0.010939539410173893, 0.028067100793123245, 0.028324933722615242, 0.0061465841718018055, -0.05344535782933235, 0.004537422209978104, 0.036409880965948105, 0.004505193326622248, 0.013748090714216232, 0.032523948699235916, 0.021584410220384598, 0.019576987251639366, 0.03145577758550644, 0.03766221925616264, 0.07326176017522812, -0.003437022678554058, -0.00548818614333868, -0.022763080894947052, -0.036409880965948105, 0.013987507671117783, 0.06795774400234222, 0.058749374002218246, -0.025341423228383064, -0.030645443126559258, 0.007905382663011551, -0.020829323679208755, 0.00920836627483368, 0.0028476871084421873, 0.019392818212509155, -0.03130844607949257, -0.008715718984603882, -0.10674338042736053, -0.020718824118375778, 0.006289314012974501, 0.006344564259052277, -0.0022330288775265217, 0.023739168420433998, -0.000015611058188369498, -0.024807337671518326, 0.010359412059187889, -0.014567635022103786, -0.02954043820500374, 0.010119994170963764, -0.03541537746787071, 0.020203154534101486, 0.02751459740102291, 0.01356392353773117, 0.06523206830024719, 0.006022271234542131, 0.012477336451411247, -0.026630595326423645, 0.04482632502913475, 0.0040102433413267136, 0.08479063212871552, -0.009166928008198738, -0.017330145463347435, -0.011547290720045567, -0.03600471094250679, 0.05138268321752548, -0.0016482975333929062, -0.054292526096105576, 0.04022214189171791, 0.12420244514942169, -0.03911713883280754, -0.04725733399391174, 0.01907973550260067, 0.027625098824501038, -0.041732314974069595, 0.013941465876996517, 0.0060406881384551525, 0.065195232629776, -0.041548147797584534, -0.02143707685172558, 0.0005760983913205564, -0.04515782743692398, 0.025875508785247803, 0.030221857130527496, -0.03970647603273392, 0.026041259989142418, 0.07259875535964966, 0.023462917655706406, -0.041732314974069595, -0.025783425197005272, 0.017532728612422943, -0.027017345651984215, 0.022413162514567375, -0.06022271513938904, -0.017845813184976578, -0.018103647977113724, 0.01073695532977581, -0.021013490855693817, -0.03801213577389717, -0.012016917578876019, 0.03589421138167381, 0.038048967719078064, 0.03904347121715546, 0.04467899352312088, 0.0345313735306263, 0.0791182816028595, 0.01985323801636696, 0.034347206354141235, -0.026059675961732864, 0.06316938996315002, -0.0008863052353262901, 0.012946962378919125, -0.018103647977113724, -0.0005501998821273446, -0.0393013060092926, -0.021271325647830963, -0.07355643063783646, -0.0503513477742672, 0.009010386653244495, -0.02843543514609337, 0.011713041923940182, 0.022984081879258156, -0.02942993864417076, -0.013315297663211823, 0.0007947970880195498, -0.014125633984804153, 0.0014019737718626857, -0.03729388117790222, -0.07116225361824036, -0.018564065918326378, 0.028895853087306023, 0.06055421382188797, 0.027790848165750504, -0.025065172463655472, 0.042026981711387634, 0.0025461132172495127, -0.028877435252070427, 0.021934328600764275, -0.04129031300544739, -0.051419515162706375, -0.007555464282631874, -0.006666857283562422, -0.055250197649002075, 0.012762795202434063, -0.04828867316246033, -0.03082961030304432, -0.013683632016181946, 0.01498201210051775, 0.012191876769065857, 0.009705618023872375, -0.032597616314888, 0.050609178841114044, 0.00824609212577343, 0.017320936545729637, -0.10534370690584183, -0.035175956785678864, 0.02655692771077156, -0.013490255922079086, -0.0024862587451934814, 0.039669640362262726, -0.019190235063433647, 0.017366979271173477, 0.02329716645181179, 0.013784924522042274, -0.021842245012521744, 0.054771360009908676, 0.026741094887256622, 0.0002972575603052974, -0.014512385241687298, 0.03303961828351021, -0.01840752363204956, -0.036612462252378464, -0.044568490236997604, 0.0354706272482872, 0.041548147797584534, -0.05628153309226036, 0.03230294957756996, -0.06051738187670708, 0.004051681142300367, 0.07867628335952759, 0.036943964660167694, -0.046336498111486435, -0.027625098824501038, -0.004491380415856838, 0.07941295206546783, 0.011114497669041157, 0.007504818495362997, 0.01706310175359249, -0.024531086906790733, -0.02186066098511219, -0.01854564994573593, -0.05086701363325119, 0.022044828161597252, 0.01768927089869976, 0.0009720581583678722, -0.02359183318912983, 0.01952173560857773, 0.08825298398733139, -0.04884117469191551, 0.04567349702119827, -0.035065457224845886, 0.015939680859446526, -0.03904347121715546, -0.074808768928051, -0.0023112997878342867, 0.029522022232413292, -0.019392818212509155, -0.04320565238595009, -0.021602826192975044, 0.0016897352179512382, 0.0055710612796247005, 0.08943165093660355, -0.019871653988957405, -0.007108858786523342, 0.015396388247609138, -0.02263416349887848, 0.006169605068862438, -0.031418945640325546, 0.05385052412748337, -0.01290092058479786, -0.03384995460510254, 0.02233949676156044, -0.008195445872843266, 0.05432936176657677, 0.017772147431969643, 0.005244164727628231, -0.07274609059095383, 0.0009145058575086296, -0.03375786915421486, 0.05653936788439751, -0.005313227418810129, -0.02401541918516159, 0.05193518474698067, -0.05583953112363815, 0.0833909660577774, 0.024236420169472694, 0.012210293672978878, -0.09318866580724716, -0.036262545734643936, 0.022468414157629013, 0.02027682214975357, 0.010506745427846909, 0.005350060760974884, 0.011878792196512222, -0.009286637417972088, -0.0335552878677845, -0.0270910132676363, -0.05838103964924812, -0.011924833990633488, 0.005170497577637434, 0.008370405063033104, -0.03782796859741211, -0.0182141475379467, 0.022836748510599136, -0.021105574443936348, -0.051124848425388336, 0.04965151101350784, 0.017532728612422943, 0.03541537746787071, 0.031768862158060074, -0.008448676206171513, -0.04769933596253395, -0.062101222574710846, -0.007569276727735996, -0.028324933722615242, -0.05134585127234459, -0.01889556646347046, -0.04257948324084282, 0.0040654935874044895, 0.031529445201158524, -0.05978071317076683, -0.048583339899778366, 0.0072654010728001595, -0.0251756738871336, -0.014567635022103786, -0.024420587345957756, -0.013407381251454353, 0.010635662823915482, 0.011869584210216999, 0.010865871794521809, -0.008292133919894695, 0.0011556498939171433, -0.029282603412866592, -0.06405339390039444, 0.033721037209033966, 0.004201317206025124, -0.02314983308315277, 0.03970647603273392, -0.014061175286769867, 0.010110786184668541, 0.03443928807973862, 0.005492790602147579, 0.01889556646347046, -0.016077807173132896, -0.001719662337563932, -0.038380470126867294, 0.036409880965948105, -0.005695374216884375, 0.025875508785247803, 0.017081519588828087, 0.01139074843376875, 0.0013536298647522926, 0.030516525730490685, 0.007771860808134079, 0.0397801399230957, 0.08781097829341888, 0.05639203265309334, 0.03198986500501633, 0.03489970788359642, 0.002335471799597144, -0.0003352420753799379, -0.037901636213064194, 0.0034692520275712013, -0.025396673008799553, 0.015000428073108196, -0.024917839094996452, -0.0013616870855912566, -0.07223042100667953, -0.004553536884486675, -0.009231386706233025, 0.054108358919620514, -0.029522022232413292, -0.008163216523826122, 0.02569134160876274, -0.09458833932876587, 0.04497366026043892, 0.015156970359385014, 0.008936719037592411, -0.039522308856248856, -0.034070953726768494, 0.07259875535964966, -0.057754870504140854, -0.0018658451735973358, 0.00930044986307621, 0.0278092660009861, -0.026538511738181114, 0.009668784216046333, 0.043794989585876465, -0.047146834433078766, 0.028103932738304138, -0.08847398310899734, -0.037901636213064194, -0.06394289433956146, -0.010193660855293274, 0.021842245012521744, -0.03874880447983742, -0.03878563642501831, -0.05234035477042198, 0.036612462252378464, -0.012376043945550919, -0.009917410090565681, -0.02407066896557808, -0.023849667981266975, 0.06633707135915756, 0.00805271603167057, 0.00965957622975111, -0.00025653932243585587, 0.016694767400622368, 0.053519025444984436, -0.13311614096164703, 0.06140138581395149, -0.02589392475783825, -0.017615605145692825, -0.049172673374414444, 0.014254550449550152, -0.007914590649306774, 0.0007101952214725316, 0.08545363694429398, 0.027385680004954338, 0.03292911872267723, 0.06957841664552689, 0.017320936545729637, 0.033481620252132416, -0.017919480800628662, 0.041106145828962326, 0.023518167436122894, -0.03265286609530449, -0.009235991165041924, -0.05591319873929024, 0.035360127687454224, 0.03567320853471756, -0.024328503757715225, -0.05639203265309334, 0.041437648236751556, -0.02915368787944317, -0.03896980360150337, 0.025617673993110657, -0.03874880447983742, 0.03580212593078613, -0.07514026761054993, -0.05086701363325119, -0.05930187925696373, 0.0026451032608747482, 0.006952316500246525, 0.04018530994653702, -0.00016891596897039562, -0.05642886832356453, 0.028877435252070427, 0.04559982940554619, -0.013692840002477169, -0.06316938996315002, 0.017053894698619843, -0.06442172825336456, 0.012495752424001694, 0.01774452067911625, 0.004452244844287634, 0.04232165217399597, -0.018444357439875603, 0.00913009513169527, 0.03624412789940834, -0.01692497730255127, 0.005069205537438393, -0.0033794704359024763, 0.0155805554240942, -0.01220108475536108, -0.027625098824501038, -0.00252309232018888, -0.010433078743517399, 0.005851916503161192, -0.05005667731165886, -0.0565761998295784, 0.08412763476371765, 0.03624412789940834, 0.028509100899100304, 0.04677850008010864, 0.01471496932208538, 0.024457421153783798, -0.04103247821331024, 0.02392333559691906, -0.02281833067536354, -0.009770076721906662, -0.03926447406411171, 0.02009265497326851, 0.007670568767935038, -0.010046327486634254, 0.00282927043735981, 0.0041092331521213055, 0.051566850394010544, -0.029798272997140884, -0.02942993864417076, 0.009328074753284454, -0.026685845106840134, 0.0421743169426918, 0.04213748499751091, -0.0039595975540578365, 0.024531086906790733, -0.11550974100828171, 0.024236420169472694, 0.023555001243948936, -0.025820259004831314, -0.052561353892087936, -0.0005827168934047222, -0.010294953361153603, 0.037901636213064194, -0.0251756738871336, -0.016750017181038857, 0.015700263902544975, -0.011630166321992874, -0.01016603596508503, -0.0036027731839567423, -0.0397801399230957, 0.06368505954742432, -0.012882504612207413, -0.007283817511051893, 0.03652038052678108, 0.044936828315258026, -0.031087443232536316, 0.03270811587572098, 0.035746876150369644, -0.006482689641416073, -0.04471582546830177, -0.015939680859446526, -0.006151188630610704, 0.008140196092426777, 0.016326433047652245, -0.0034692520275712013, 0.023610251024365425, -0.05576586350798607, -0.03532329201698303, 0.052045684307813644, -0.011795916594564915, -0.03246869891881943, 0.004624901805073023, -0.020645156502723694, 0.030332358554005623, 0.027496181428432465, 0.006841816008090973, -0.0017587979091331363, -0.009880577214062214, -0.0227814968675375, 0.0016379380831494927, 0.05337169021368027, -0.04239531606435776, -0.026004426181316376, -0.024125918745994568, -0.07705561071634293, -0.02195274457335472, 0.030074523761868477, -0.003556731389835477, 0.012026126496493816, 0.010893496684730053, 0.0177353136241436, 0.08398029953241348, 0.02617017738521099, 0.0021720232907682657, -0.010497537441551685, -0.044421158730983734, -0.002022387459874153, 0.03127161040902138, 0.02425483614206314, -0.05672353506088257, -0.036943964660167694, 0.0589703768491745, -0.028545934706926346, -0.025912342593073845, 0.03208194673061371, -0.009245199151337147, 0.004514401312917471, 0.03620729595422745, 0.020626740530133247, 0.03038760833442211, -0.06118038296699524, 0.06324306130409241, -0.03359211981296539, -0.007223963271826506, 0.014272967353463173, -0.016280392184853554, 0.0421743169426918, 0.06681590527296066, -0.08316995948553085, -0.016740810126066208, 0.024715254083275795, 0.00548818614333868, 0.04478949308395386, 0.0017380791250616312, -0.0048758299089968204, -0.0002184109325753525, -0.02171332761645317, -0.013250838965177536, 0.0369255468249321, -0.018232565373182297, 0.003305803518742323, -0.038564637303352356, 0.04832550510764122, -0.03322378545999527, 0.013075879774987698, 0.00812638271600008, 0.032192446291446686, 0.031768862158060074, 0.023960169404745102 ]
37,749
salesforce_bulk.salesforce_bulk
BulkApiError
null
class BulkApiError(Exception): def __init__(self, message, status_code=None): super(BulkApiError, self).__init__(message) self.status_code = status_code def __reduce__(self): return BulkApiError, (self.args[0], self.status_code)
(message, status_code=None)
[ -0.04110367223620415, -0.035836342722177505, -0.050714243203401566, 0.012900343164801598, -0.014646880328655243, -0.0741492509841919, -0.008427731692790985, -0.017225099727511406, 0.06649775803089142, -0.0805809423327446, 0.05137959122657776, 0.033341288566589355, 0.014434338547289371, -0.03690829128026962, 0.008797368966042995, 0.0633188784122467, 0.017705628648400307, 0.05204493924975395, 0.044689156115055084, 0.022030387073755264, 0.02794458344578743, 0.05200797691941261, -0.03958816081285477, 0.015765033662319183, 0.020939955487847328, 0.1047552227973938, 0.048939984291791916, -0.03899674117565155, 0.06220996752381325, -0.06694132089614868, -0.01549704559147358, -0.005373603198677301, -0.03193666785955429, 0.047905001789331436, -0.026872634887695312, 0.005405946169048548, -0.020440945401787758, 0.030291780829429626, -0.10527271777391434, -0.0028577588964253664, -0.06923307478427887, -0.04376506432890892, -0.039144594222307205, -0.03829443082213402, 0.0749254897236824, -0.010128063149750233, -0.004525747150182724, -0.03019937127828598, -0.0452805757522583, -0.02568979561328888, -0.07019413262605667, 0.01207790058106184, 0.009545885026454926, -0.018796060234308243, -0.006149841472506523, 0.08021130412817001, 0.005766342859715223, 0.0035901027731597424, -0.053708307445049286, -0.0011695557041093707, -0.03526340425014496, 0.052747249603271484, 0.02238154225051403, 0.0032343268394470215, -0.001345710945315659, -0.025227749720215797, -0.07400140166282654, 0.00698152557015419, -0.04073403775691986, 0.058476630598306656, 0.03807264566421509, 0.02315778099000454, -0.034099046140909195, 0.006875254679471254, 0.06915915012359619, 0.005470633041113615, -0.04609377682209015, -0.0005504130967892706, 0.05182315781712532, -0.009638293646275997, 0.02062576450407505, -0.003199673257768154, -0.006699677091091871, -0.005124097689986229, 0.059252869337797165, -0.07174661010503769, -0.01757625676691532, -0.061803366988897324, -0.059511613100767136, 0.015811238437891006, -0.06708917766809464, -0.005558421835303307, -0.07400140166282654, -0.013907605782151222, 0.0219194944947958, 0.00822905171662569, -0.023952500894665718, -0.021217184141278267, -0.008302979171276093, -0.03973601385951042, 0.008829711936414242, 0.0059881252236664295, 0.04942051321268082, -0.04121456295251846, 0.0014981863787397742, -0.04701787233352661, 0.034579575061798096, -0.02241850458085537, 0.035392776131629944, 0.03925548866391182, 0.013177571818232536, -0.011052156798541546, -0.02544953115284443, 0.0033128748182207346, -0.0327129065990448, -0.0019094079034402966, 0.040364399552345276, 0.012382850982248783, -0.028572967275977135, 0.009943244978785515, 0.06716310977935791, -0.02822181209921837, -0.019332032650709152, 0.024229727685451508, 0.01483169849961996, 0.040660109370946884, -0.004495714325457811, -0.032324787229299545, 0.05969643220305443, -0.01005413569509983, -0.04550235718488693, -0.021272629499435425, -0.03799872100353241, -0.05437365546822548, -0.008164364844560623, -0.012900343164801598, 0.02267725206911564, 0.05115780979394913, -0.0224000234156847, -0.024211246520280838, 0.05108388140797615, 0.043691135942935944, 0.023749200627207756, 0.02042246423661709, 0.02593006007373333, -0.02463633008301258, -0.0026729400269687176, 0.015395395457744598, 0.042619187384843826, 0.04424558952450752, -0.019516851752996445, -0.004722116980701685, -0.00027390706236474216, 0.037130072712898254, -0.009120801463723183, -0.0017603979213163257, -0.0024234349839389324, -0.04982711374759674, 0.011347866617143154, -0.023324117064476013, -0.0012798693496733904, -0.0507512092590332, 0.0324726402759552, -0.021309593692421913, 0.01170826330780983, -0.02543104998767376, -0.00698152557015419, -0.007716179825365543, -0.03600267693400383, -0.0374627448618412, -0.023065371438860893, -0.02848055772483349, -0.00011392338637961075, 0.00640858756378293, -0.07370568811893463, 0.05559345707297325, -0.0073881265707314014, 0.041916877031326294, -0.035060103982686996, -0.0017338301986455917, 0.015044240280985832, -0.012641597539186478, -0.019332032650709152, -0.03476439416408539, 0.017530051991343498, 0.02186404913663864, 0.001896701636724174, 0.04350631684064865, 0.02166074886918068, -0.0005397282657213509, 0.019332032650709152, -0.02864689566195011, 0.01570034585893154, 0.03700070083141327, 0.012234996072947979, -0.020736655220389366, -0.024562401697039604, 0.006362382788211107, 0.0876779779791832, 0.05862448364496231, -0.08072879910469055, 0.08649513870477676, 0.04897695034742355, 0.0017234341939911246, 0.0041099051013588905, 0.02792610228061676, 0.003220465499907732, -0.030051516368985176, -0.0870126336812973, -0.00022712482314091176, -0.013177571818232536, 0.026595408096909523, -0.010017172433435917, 0.056702371686697006, 0.05104691907763481, -0.006898357067257166, 0.08546015620231628, -0.030809273943305016, 0.07740206271409988, 0.018565036356449127, 0.04583503305912018, -0.07189446687698364, 0.0770324245095253, -0.03799872100353241, 0.04953140392899513, 0.018777577206492424, -0.0224000234156847, -0.04934658482670784, -0.015441600233316422, 0.012780211865901947, -0.03047659993171692, -0.024599365890026093, -0.022566359490156174, 0.009656775742769241, -0.025042930617928505, 0.009601330384612083, 0.024044910445809364, -0.06165551021695137, 0.009832353331148624, -0.015219817869365215, 0.013131367042660713, 0.0026775605510920286, -0.028258776292204857, 0.07370568811893463, 0.06062052398920059, -0.06346673518419266, -0.00867723673582077, 0.08028523623943329, -0.05208190158009529, -0.008205949328839779, 0.02365679107606411, 0.03581785783171654, -0.03594723343849182, -0.05130566284060478, 0.02118021994829178, -0.04886605963110924, -0.031068019568920135, -0.06531491875648499, -0.0066950563341379166, 0.010756446979939938, 0.029792770743370056, 0.01083037443459034, 0.02768583782017231, 0.015801995992660522, -0.07244892418384552, -0.025726759806275368, -0.009647535160183907, 0.04247133061289787, 0.05954857915639877, 0.09551429003477097, 0.10882123559713364, 0.049235694110393524, 0.016800018027424812, 0.0018158435123041272, -0.05389312654733658, 0.03775845468044281, -0.02665085345506668, 0.01675381325185299, -0.0066211288794875145, -0.007651493418961763, 0.012133345939218998, -0.029903661459684372, -0.02718682773411274, -0.03165943920612335, 0.05888323113322258, 0.014868662692606449, 0.031603991985321045, -0.006588785909116268, -0.03803568333387375, 0.025578904896974564, 0.04176902025938034, 0.014499025419354439, 0.0015859752893447876, -0.03201059624552727, 0.022067349404096603, 0.016568994149565697, -0.016624439507722855, 0.00461815670132637, 0.06453868001699448, -0.017160413786768913, -0.031104983761906624, 0.0101927500218153, 0.014000014401972294, -0.02437758259475231, -0.03302709758281708, -0.058550555258989334, 0.05411490797996521, -0.005262712016701698, -0.030162407085299492, -0.009564366191625595, 0.004322446882724762, 0.039107631891965866, -0.004833008162677288, -0.0001280735741602257, -0.009998690336942673, 0.02520926669239998, 0.029607951641082764, 0.04043832793831825, -0.017400678247213364, 0.04509575664997101, -0.03424689918756485, -0.018999360501766205, 0.028591448441147804, -0.049161769449710846, 0.024747220799326897, -0.009850835427641869, -0.02116173878312111, 0.00158944062422961, -0.02487659454345703, 0.018823781982064247, -0.01257691066712141, -0.0412515290081501, -0.0011955457739531994, -0.015182854607701302, -0.014526748098433018, -0.037850864231586456, 0.0547802560031414, -0.027353163808584213, 0.016264043748378754, -0.023989465087652206, -0.02162378467619419, -0.004216175992041826, 0.027796728536486626, 0.06634990125894547, -0.024211246520280838, -0.056998081505298615, -0.007868655025959015, -0.015192095190286636, 0.03350762650370598, -0.04587199538946152, 0.01631948910653591, 0.005692415405064821, -0.035873305052518845, 0.03620597720146179, 0.08819547295570374, -0.00045020674588158727, -0.05954857915639877, -0.07732813060283661, 0.05858752131462097, -0.007466674316674471, 0.02589309588074684, -0.05115780979394913, -0.03600267693400383, 0.019054805859923363, -0.009656775742769241, 0.03899674117565155, -0.046906981617212296, -0.01938747987151146, -0.011190771125257015, -0.00667657470330596, -0.022510914131999016, 0.006505617406219244, -0.0213465578854084, -0.007314199116080999, -0.006066672969609499, 0.02818484790623188, -0.06394726037979126, 0.020829064771533012, -0.0642799362540245, 0.024506956338882446, 0.01056238729506731, -0.06424297392368317, -0.018796060234308243, -0.029792770743370056, -0.002314853947609663, 0.03225085884332657, 0.02114325575530529, -0.012105623260140419, 0.021217184141278267, 0.07762384414672852, -0.013741268776357174, -0.06708917766809464, -0.042951859533786774, 0.006565683521330357, -0.006380864884704351, -0.021937977522611618, -0.00333828735165298, -0.016707608476281166, 0.015792755410075188, -0.024469992145895958, -0.0488290935754776, 0.03191818669438362, 0.01359341386705637, 0.05263635888695717, 0.01838945783674717, -0.017659423872828484, 0.025338640436530113, 0.018925432115793228, 0.00730033777654171, 0.0168369822204113, 0.014443579129874706, -0.012198032811284065, 0.0053366394713521, -0.03775845468044281, -0.040364399552345276, 0.0178904477506876, -0.02391553670167923, 0.011652817949652672, -0.009481198154389858, -0.034838318824768066, 0.03141917660832405, -0.023508936166763306, 0.04025350883603096, -0.022085832431912422, -0.03173336759209633, -0.04084492847323418, -0.015922129154205322, 0.0059788841754198074, 0.013611895963549614, -0.03480135649442673, -0.019738635048270226, -0.006949182134121656, -0.041140638291835785, -0.039920832961797714, -0.007147862110286951, -0.022788142785429955, -0.043875955045223236, 0.031862739473581314, 0.05060335248708725, 0.06923307478427887, 0.055002037435770035, -0.003876571776345372, 0.038146574050188065, 0.009023771621286869, 0.039107631891965866, -0.034616537392139435, -0.03969905152916908, 0.009786148555576801, 0.01473928987979889, -0.025726759806275368, 0.030328745022416115, 0.0012174929725006223, 0.01611618883907795, -0.0074990177527070045, 0.04380202665925026, -0.061581581830978394, -0.07529512792825699, -0.01737295649945736, 0.010183509439229965, -0.0006924924673512578, 0.0398099422454834, -0.006949182134121656, -0.0031234356574714184, -0.044689156115055084, -0.06269049644470215, -0.03496769443154335, 0.04176902025938034, -0.010183509439229965, 0.020052826032042503, -0.010479219257831573, -0.0038003339432179928, -0.0038118851371109486, 0.0011412553722038865, -0.0020965368021279573, -0.007854794152081013, 0.049974970519542694, 0.08693870902061462, -0.02666933462023735, 0.025098375976085663, -0.021032365038990974, 0.07725420594215393, -0.04513271898031235, 0.05315385013818741, -0.01912873238325119, 0.014120146632194519, -0.010479219257831573, -0.001743071130476892, -0.021291110664606094, 0.029774289578199387, 0.008095057681202888, 0.006487135309726, 0.02291751652956009, -0.013362389989197254, 0.04428255558013916, 0.0061036366969347, -0.019017841666936874, -0.07026805728673935, 0.034357793629169464, -0.03164095804095268, -0.014018496498465538, 0.06952878832817078, -0.06612811982631683, -0.02718682773411274, -0.07688456773757935, 0.02493203990161419, -0.03749971091747284, 0.01573731005191803, 0.02088451012969017, 0.02110629342496395, -0.049198731780052185, -0.025301676243543625, 0.026613889262080193, -0.017289787530899048, 0.03907066956162453, -0.012133345939218998, -0.012281200848519802, -0.011514203622937202, 0.009023771621286869, 0.03929245099425316, 0.05707200616598129, 0.023490453138947487, 0.03700070083141327, 0.007106278091669083, 0.01180991344153881, -0.03445019945502281, -0.026595408096909523, 0.049161769449710846, -0.036390796303749084, -0.0007756608538329601, 0.07374265044927597, -0.06490831822156906, -0.002702973084524274, 0.011089120991528034, -0.011865358799695969, 0.0022640288807451725, 0.036335352808237076, -0.04494790360331535, 0.026281215250492096, 0.001415017992258072, -0.01787196658551693, 0.008376906625926495, 0.052747249603271484, 0.016624439507722855, -0.030790790915489197, -0.05404097959399223, -0.04960533231496811, -0.04753536358475685, 0.040142618119716644, -0.03807264566421509, -0.05411490797996521, 0.009356445632874966, -0.00004375004573375918, -0.0014173282543197274, 0.007642252370715141, -0.02042246423661709, 0.04132545739412308, 0.008741923607885838, 0.0054844943806529045, 0.04324756935238838, 0.010414532385766506, 0.01436041109263897, 0.02445151098072529, -0.001057509332895279, -0.023471971973776817, -0.026484515517950058, 0.01797361671924591, -0.00579868583008647, 0.055445604026317596, -0.032879240810871124, -0.04025350883603096, -0.05485418438911438, 0.01231816504150629, -0.07451888918876648, -0.010525424033403397, -0.0013214534847065806, 0.013639618642628193, 0.01533995009958744, 0.008723441511392593, 0.007304958067834377, -0.00937492772936821, 0.026983527466654778, -0.04324756935238838, -0.011782190762460232, -0.08353804051876068, -0.054447583854198456, 0.011930045671761036, -0.03337825462222099, -0.04298882558941841, 0.014637638814747334, -0.0005717827589251101, 0.0178904477506876, -0.041658129543066025, -0.0036686507519334555, -0.014323447830975056, 0.023231707513332367, 0.06952878832817078, -0.007753143552690744, -0.04964229464530945, -0.0599551796913147, 0.029367687180638313, -0.008210569620132446, 0.03328584507107735, -0.000958746881224215, 0.028536003082990646, 0.05821788311004639, -0.032602015882730484, -0.018019821494817734, -0.013048199005424976, -0.0327129065990448, 0.04121456295251846, 0.031345248222351074, -0.029071977362036705, -0.008594068698585033, 0.023453490808606148, -0.02167923003435135, -0.019960416480898857, -0.003294392954558134, 0.021845567971467972, 0.005100995302200317, -0.01183763612061739, -0.0037333371583372355, 0.0029316863510757685, -0.0448000468313694, 0.03328584507107735, -0.046685196459293365, 0.0822073444724083, -0.0002157180424546823, -0.026244252920150757, -0.045908957719802856, -0.03324887901544571, -0.02112477459013462, 0.03594723343849182, 0.07311426848173141, -0.05385616049170494, -0.045428428798913956, 0.05378223583102226, 0.056480586528778076, 0.05984428897500038, 0.01845414564013481, 0.005789445247501135, 0.020330054685473442, 0.0016252492787316442, -0.07004627585411072, 0.029367687180638313, -0.014157110825181007, 0.008871296420693398, -0.052488505840301514, -0.05973339453339577, 0.03140069171786308, -0.033858779817819595, -0.013445558957755566, 0.03424689918756485, -0.05064031854271889, 0.018860746175050735, -0.04783107340335846, 0.03672347217798233, -0.0097122211009264, -0.017049523070454597, 0.029090460389852524, 0.005965022835880518, -0.02090299315750599, -0.027778247371315956, 0.07304034382104874, -0.028536003082990646, -0.009878558106720448, -0.015275263227522373, 0.028499040752649307, -0.09640142321586609, 0.022196723148226738, -0.0018424112349748611, 0.03191818669438362, -0.021993422880768776, 0.027279237285256386, 0.008312219753861427, 0.015413877554237843, 0.041399382054805756, 0.009767667390406132, 0.025615869089961052, 0.005858751945197582, -0.011689781211316586, 0.022714214399456978, 0.012826415710151196, -0.05415187031030655, 0.01563565991818905, -0.027038972824811935, 0.01308516226708889, -0.00979539006948471, 0.04472611844539642, -0.01348252221941948, -0.044208627194166183, 0.041140638291835785, -0.012502983212471008, -0.028887158259749413, 0.02369375340640545, -0.10638163238763809, 0.041658129543066025, -0.035910267382860184, -0.06479743123054504, 0.029774289578199387, 0.05134262889623642, 0.004049839451909065, -0.008935983292758465, -0.018759096041321754, -0.012401333078742027, 0.022233687341213226, 0.023083852604031563, 0.034838318824768066, 0.003449178533628583, 0.01473928987979889, -0.011865358799695969, 0.047461435198783875, 0.039403341710567474, 0.012456778436899185, 0.003597033442929387, -0.011902322992682457, 0.03899674117565155, 0.06294924020767212, 0.0065287197940051556, -0.07389050722122192, 0.034117527306079865, -0.009721462614834309, -0.006288455333560705, 0.00383498752489686, 0.030291780829429626, 0.005923438351601362, -0.024211246520280838, 0.03775845468044281, -0.010682519525289536, 0.026355143636465073, 0.034154489636421204, 0.06805023550987244, -0.0168369822204113, -0.050677280873060226, -0.015866683796048164, 0.061248909682035446, -0.0011764863738790154, 0.012253478169441223, 0.041621167212724686, 0.07219017297029495, 0.07873275876045227, 0.00392970722168684, -0.0034607297275215387, -0.012872620485723019, -0.03445019945502281, -0.059474650770425797, 0.00047735197586007416, 0.03847924992442131, 0.03694525361061096, -0.011532685719430447, 0.0008368820417672396, 0.0005616755224764347, 0.008903639391064644, 0.021069329231977463, 0.040364399552345276, -0.009869317524135113, -0.09802782535552979, 0.028609931468963623, 0.0006370468763634562, -0.00431320583447814, -0.023582862690091133, 0.03500465676188469, -0.03023633547127247, -0.019239624962210655, -0.0010061066132038832, 0.025615869089961052, 0.06195122003555298, 0.040142618119716644, 0.023527417331933975 ]
37,750
salesforce_bulk.salesforce_bulk
__init__
null
def __init__(self, message, status_code=None): super(BulkApiError, self).__init__(message) self.status_code = status_code
(self, message, status_code=None)
[ -0.03646121174097061, -0.0183386392891407, -0.05279223248362541, 0.0044181086122989655, -0.008282546885311604, -0.0515318438410759, -0.02455955184996128, 0.03674929961562157, 0.06100275740027428, -0.05606923997402191, 0.018491685390472412, 0.006499998737126589, 0.01845567487180233, -0.03957616910338402, 0.01038019172847271, 0.04148475453257561, 0.057077549397945404, 0.029817167669534683, 0.009443904273211956, -0.020472295582294464, 0.00789092667400837, 0.03484071418642998, -0.03280608728528023, 0.07483100891113281, 0.018086561933159828, 0.09305261075496674, -0.00041131398756988347, -0.035110797733068466, 0.06082270294427872, -0.055745139718055725, -0.020022157579660416, 0.002022246830165386, -0.021930743008852005, 0.08822713047266006, -0.019968140870332718, 0.01712326519191265, -0.03954015672206879, -0.004339334089308977, -0.12387809157371521, 0.03655124083161354, -0.05405262112617493, -0.015826866030693054, -0.05610525235533714, -0.003578600473701954, 0.10169526934623718, 0.00710318423807621, -0.01555678341537714, -0.0318157821893692, -0.02969112992286682, -0.006036356091499329, -0.09982269257307053, 0.021480605006217957, -0.0022248090244829655, -0.015394734218716621, -0.04829084873199463, 0.08966757357120514, 0.014512462541460991, 0.03338226303458214, -0.041448745876550674, -0.002613053424283862, -0.07202214747667313, 0.05070359259843826, -0.017519386485219002, -0.015052628703415394, 0.011010386049747467, -0.019391963258385658, -0.06010248139500618, 0.018086561933159828, 0.000781552807893604, 0.05603323131799698, 0.08102491497993469, 0.025999994948506355, -0.05027145892381668, 0.006432477850466967, 0.0733545571565628, 0.00020115560619160533, -0.0645318403840065, 0.012819942086935043, 0.00890823919326067, 0.017465369775891304, 0.05952630564570427, 0.015880882740020752, -0.007913433015346527, 0.015304706059396267, 0.03239196166396141, -0.07864818722009659, -0.03190581128001213, -0.051711902022361755, -0.04742658510804176, 0.03322021663188934, -0.048795003443956375, -0.011514540761709213, -0.05927422642707825, -0.015214678831398487, 0.0253157839179039, -0.014413432218134403, 0.00938088446855545, -0.03727146238088608, 0.021120494231581688, -0.023299165070056915, -0.013756229542195797, -0.023083098232746124, 0.04605816304683685, -0.056141264736652374, 0.019067863002419472, -0.021030467003583908, 0.004136771894991398, -0.04875899478793144, 0.038351792842149734, 0.018869802355766296, 0.013576174154877663, 0.01236980315297842, -0.016898196190595627, 0.01462949812412262, -0.024973679333925247, -0.01516066212207079, 0.03280608728528023, -0.009605953469872475, 0.005370151251554489, 0.015745840966701508, 0.06518004089593887, -0.024631574749946594, -0.01830262877047062, 0.006193904671818018, 0.03745151683688164, 0.04479777440428734, -0.02097645029425621, -0.029511073604226112, 0.06247921288013458, -0.04793073982000351, -0.024505535140633583, -0.032644037157297134, -0.017888501286506653, -0.038963980972766876, -0.005451176315546036, -0.03682132065296173, 0.00029343398637138307, 0.04288918897509575, -0.018707752227783203, 0.009308862499892712, 0.04522990807890892, 0.04865096136927605, 0.019355950877070427, -0.01982409507036209, 0.043789464980363846, 0.02664819359779358, 0.012513848021626472, 0.002151661552488804, 0.026126032695174217, 0.01261287834495306, 0.00447662640362978, -0.02717035450041294, 0.01261287834495306, 0.030375340953469276, -0.017222296446561813, -0.010407200083136559, -0.005019043106585741, -0.05610525235533714, 0.033742375671863556, 0.005154084879904985, 0.010011078789830208, -0.05254015699028969, 0.04116065800189972, -0.05250414460897446, 0.010209139436483383, -0.00223831320181489, -0.02464957907795906, -0.01100138295441866, -0.03566896915435791, -0.02070636674761772, -0.020202212035655975, -0.045157887041568756, -0.026882266625761986, -0.0011422262759879231, -0.02731439843773842, 0.029529079794883728, 0.016069941222667694, 0.038963980972766876, -0.023119108751416206, 0.013198058120906353, 0.003936460241675377, 0.025171739980578423, -0.007850414142012596, 0.015412739478051662, 0.019193902611732483, 0.02868282049894333, 0.024055397137999535, 0.05178392305970192, 0.02306509204208851, 0.036317165940999985, 0.04519389569759369, -0.008066480048000813, 0.01100138295441866, 0.02907894179224968, 0.006315441802144051, 0.001390927704051137, 0.020904427394270897, -0.04749860614538193, 0.060174502432346344, 0.0646398738026619, -0.016826173290610313, 0.06914126127958298, 0.02358725294470787, -0.0029168969485908747, 0.021354567259550095, 0.05095566809177399, 0.005158586427569389, 0.0029979217797517776, -0.04508586227893829, -0.025243762880563736, -0.03212187811732292, 0.015493764542043209, 0.013081022538244724, 0.038135726004838943, 0.01562880538403988, -0.026630189269781113, 0.035110797733068466, -0.042997222393751144, 0.05765372887253761, 0.004121017176657915, 0.07785593718290329, -0.03262603282928467, 0.022272849455475807, -0.08073682337999344, -0.004838987719267607, 0.06417173147201538, 0.018113570287823677, -0.06280331313610077, -0.02513572946190834, 0.04613018408417702, -0.05660940706729889, 0.007530815899372101, -0.019860107451677322, 0.014485454186797142, -0.05127976834774017, 0.0022293105721473694, 0.031581711024045944, -0.03521883115172386, -0.05840995907783508, -0.03781162574887276, 0.031887806951999664, -0.012531853280961514, -0.022813014686107635, 0.053656499832868576, 0.040080323815345764, -0.05084763467311859, -0.027422431856393814, 0.08707477152347565, -0.06067865714430809, -0.01617797464132309, 0.005514195654541254, -0.024685591459274292, -0.041448745876550674, -0.02992520108819008, 0.023623263463377953, -0.05851799249649048, -0.018068555742502213, -0.05801383778452873, -0.004856993444263935, 0.018995841965079308, -0.010056092403829098, -0.013153044506907463, -0.02061633951961994, 0.026936283335089684, -0.031059550121426582, -0.03494874760508537, -0.013684207573533058, 0.05743766203522682, 0.04386148601770401, 0.06082270294427872, 0.13108029961585999, 0.01800553686916828, 0.015484761446714401, 0.019860107451677322, -0.0384238138794899, 0.016565093770623207, -0.052684199064970016, -0.004442865960299969, -0.030969522893428802, -0.022560937330126762, 0.05279223248362541, -0.025639884173870087, 0.02230885997414589, 0.005568212363868952, 0.05027145892381668, -0.021084483712911606, 0.019013846293091774, 0.022362876683473587, -0.068601094186306, -0.009344873018562794, 0.0010718920966610312, 0.038747914135456085, 0.0016981471562758088, 0.01491758693009615, 0.021480605006217957, -0.014008307829499245, 0.0010876469314098358, 0.048146802932024, 0.014908583834767342, -0.015952905640006065, 0.00660353060811758, -0.019752074033021927, 0.02283102087676525, -0.006054361816495657, -0.02925899624824524, -0.037991683930158615, 0.04116065800189972, 0.03239196166396141, -0.021390577778220177, -0.02461356855928898, 0.039720214903354645, 0.06150691211223602, -0.01872575841844082, 0.042385034263134, 0.005100068170577288, 0.025261767208576202, 0.04285317659378052, -0.026900270953774452, -0.0159078910946846, 0.056537386029958725, -0.03235594928264618, -0.06305538862943649, 0.042421042919158936, -0.03322021663188934, 0.04227700084447861, 0.0048704976215958595, 0.0449778288602829, 0.015043625608086586, -0.02509971708059311, 0.033040158450603485, 0.01606093905866146, -0.030105257406830788, 0.0028336213435977697, -0.04958724603056908, 0.008323059417307377, -0.05895012617111206, 0.010578252375125885, -0.023083098232746124, -0.0027615991421043873, -0.03637118265032768, -0.04749860614538193, -0.028340714052319527, 0.025333790108561516, 0.04785871505737305, -0.00916931964457035, -0.0695013701915741, -0.02346121333539486, -0.04137672483921051, 0.005743766203522682, -0.03120359405875206, -0.030573401600122452, 0.03806370496749878, -0.014701521024107933, 0.05293627828359604, 0.06536009907722473, -0.03259002044796944, -0.0359930694103241, -0.04929915815591812, 0.04947921261191368, 0.00047602137783542275, -0.00617589894682169, -0.015043625608086586, -0.03682132065296173, 0.006238918285816908, -0.01365719921886921, 0.027422431856393814, -0.04865096136927605, -0.01942797377705574, 0.004377596080303192, 0.0032995145302265882, -0.007904430851340294, -0.051495835185050964, -0.047462593764066696, 0.012225759215652943, 0.008894735015928745, 0.0027593483682721853, -0.08671466261148453, -0.002642312552779913, -0.058626025915145874, -0.0018624477088451385, 0.04540996253490448, -0.050127413123846054, -0.02841273695230484, -0.01206370908766985, -0.0037113912403583527, 0.002076263539493084, 0.031887806951999664, -0.004780469927936792, 0.01973406784236431, 0.04522990807890892, -0.023173125460743904, -0.05542104318737984, -0.017960522323846817, 0.0367312952876091, -0.01387326605618, -0.023911353200674057, -0.006067865993827581, 0.009236840531229973, 0.018959829583764076, -0.030555395409464836, -0.007463295012712479, 0.013666202314198017, 0.005793281365185976, 0.04252907633781433, 0.05045151337981224, -0.014710523188114166, 0.008710178546607494, 0.03766758367419243, 0.0025680395774543285, 0.006896120496094227, 0.013441133312880993, -0.0031644729897379875, 0.006018350366503, -0.04062049090862274, -0.056501373648643494, 0.04584209620952606, -0.04587810859084129, 0.017312323674559593, 0.020256228744983673, -0.0241274181753397, 0.018563708290457726, 0.006166896317154169, 0.05815788358449936, -0.0077468822710216045, -0.03943212330341339, 0.013810246251523495, 0.0008912740740925074, -0.008305054157972336, 0.031491681933403015, -0.038747914135456085, -0.023515230044722557, 0.03669528290629387, -0.030087251216173172, -0.0188157856464386, 0.008034970611333847, 0.005370151251554489, -0.03903600201010704, -0.005307131912559271, -0.013450135476887226, 0.06842103600502014, 0.03512880206108093, -0.026180049404501915, 0.049371182918548584, 0.033040158450603485, 0.0310235396027565, -0.034768689423799515, -0.060570623725652695, 0.00533414026722312, 0.028430743142962456, -0.0449778288602829, 0.017348334193229675, -0.014980606734752655, 0.02616204507648945, -0.026810243725776672, -0.00833206158131361, -0.04101661220192909, -0.0849861353635788, -0.002617554971948266, 0.03165373206138611, -0.01964404061436653, 0.0030001725535839796, 0.012963986024260521, -0.05336841195821762, -0.03444459289312363, -0.01724030077457428, 0.031527694314718246, 0.029313012957572937, 0.009831023402512074, 0.009849028661847115, 0.018050549551844597, -0.03448060154914856, 0.0009942431934177876, -0.02792658656835556, 0.0037654079496860504, -0.012243764474987984, 0.01790650561451912, 0.036407195031642914, -0.04695843905210495, -0.018653735518455505, 0.0004985283012501895, 0.06654846668243408, -0.030735451728105545, 0.05488087609410286, -0.0021719178184866905, 0.013396118767559528, -0.04980331286787987, 0.004091758280992508, 0.0016587600111961365, -0.00008953534415923059, 0.008007962256669998, 0.02762049250304699, 0.009344873018562794, -0.04432963207364082, 0.026900270953774452, -0.006801591254770756, 0.0016790162771940231, -0.05686148628592491, 0.013387116603553295, -0.008998267352581024, -0.015322711318731308, 0.052072010934352875, -0.05678946152329445, -0.045698050409555435, -0.05084763467311859, 0.02461356855928898, -0.01663711667060852, 0.016916202381253242, 0.032824091613292694, 0.007386771496385336, -0.021480605006217957, 0.0020920182578265667, 0.06251522153615952, -0.038531847298145294, 0.011613571085035801, 0.005068558733910322, 0.022182820364832878, -0.04908309131860733, 0.000739352370146662, 0.021894732490181923, 0.06075068190693855, 0.041844867169857025, 0.02987118437886238, 0.02796259894967079, 0.0031644729897379875, -0.012630883604288101, -0.009605953469872475, 0.020040161907672882, -0.025477834045886993, -0.004640927072614431, 0.09298059344291687, -0.03172575682401657, -0.025153733789920807, 0.010110109113156796, 0.03190581128001213, 0.02771052159368992, 0.03388642147183418, -0.04058447852730751, 0.012468834407627583, -0.01551176980137825, -0.019860107451677322, 0.010677283629775047, 0.04065650328993797, 0.020112184807658195, -0.031887806951999664, -0.058481983840465546, -0.05743766203522682, -0.06536009907722473, 0.043537385761737823, -0.038531847298145294, -0.03453461825847626, 0.03305816650390625, -0.041448745876550674, -0.02704431675374508, 0.00386668904684484, -0.05369250848889351, 0.036227140575647354, 0.00482548400759697, -0.016367033123970032, 0.06885316967964172, 0.01964404061436653, 0.011838640086352825, 0.021192517131567, -0.015169664286077023, -0.032770074903964996, -0.03649722412228584, 0.0342465303838253, -0.027368415147066116, 0.026792237535119057, -0.05725760757923126, -0.030213290825486183, -0.02877284772694111, -0.01726730912923813, -0.08743488788604736, 0.0148905785754323, 0.01159556582570076, 0.018707752227783203, 0.01915789023041725, 0.03253600373864174, 0.011298473924398422, 0.0253157839179039, 0.0021179013419896364, -0.02403739094734192, 0.009560939855873585, -0.05358447507023811, -0.07648751884698868, -0.01669113151729107, -0.03448060154914856, -0.03626314923167229, 0.04598614200949669, -0.010263156145811081, 0.0008428841829299927, -0.032680049538612366, -0.012099720537662506, -0.02947506308555603, 0.009182823821902275, 0.05372852087020874, 0.0014381922082975507, -0.07454292476177216, -0.030915506184101105, 0.03230193257331848, 0.00888123083859682, 0.06546813249588013, -0.032860103994607925, 0.052684199064970016, 0.04177284613251686, -0.0424930676817894, -0.0035088290460407734, 0.024145424365997314, -0.028610797598958015, 0.045698050409555435, 0.013009000569581985, -0.03820774704217911, -0.028736837208271027, -0.013909276574850082, -0.027206365019083023, -0.024055397137999535, 0.00748130027204752, 0.04847090318799019, 0.03572298586368561, -0.024487528949975967, 0.00193334452342242, -0.020202212035655975, -0.013108030892908573, 0.06525206565856934, -0.05545705184340477, 0.05988641455769539, 0.023335175588726997, -0.048614948987960815, -0.06831300258636475, -0.0032725061755627394, -0.002948406618088484, 0.04710248485207558, 0.01987811177968979, -0.05491688475012779, -0.015376728028059006, 0.02889888547360897, 0.024451518431305885, 0.015538778156042099, 0.06676452606916428, 0.036983370780944824, 0.02540581300854683, -0.02934902533888817, -0.0440775528550148, 0.014899581670761108, -0.03395844250917435, 0.017348334193229675, -0.054988909512758255, -0.05293627828359604, 0.03954015672206879, -0.02473960630595684, -0.016520079225301743, 0.03221190348267555, -0.05945428088307381, 0.02619805559515953, -0.05977838113903999, 0.043573398143053055, -0.03642519935965538, 0.0391080267727375, 0.03222991153597832, -0.009894042275846004, -0.029853180050849915, -0.014116340316832066, 0.06381162256002426, -0.016871187835931778, -0.0002855565689969808, 0.009831023402512074, 0.05124375596642494, -0.09564541280269623, 0.010173127986490726, 0.019229913130402565, 0.027764538303017616, 0.0007798647857271135, -0.006954638287425041, 0.019481990486383438, 0.015349719673395157, 0.0409085787832737, -0.01776246167719364, -0.01100138295441866, 0.021390577778220177, 0.02819667011499405, 0.0038441820070147514, 0.025783928111195564, -0.040260378271341324, 0.026576172560453415, -0.004048995207995176, 0.058481983840465546, -0.008503114804625511, 0.03979223594069481, -0.019626034423708916, -0.046706363558769226, -0.023875340819358826, -0.022182820364832878, -0.04962325841188431, 0.020292239263653755, -0.10565648972988129, 0.02319113165140152, -0.05077561363577843, -0.10594457387924194, 0.0059013147838413715, 0.036587249487638474, 0.02279500849545002, -0.029060935601592064, -0.02938503585755825, 0.002874133875593543, -0.0022180569358170033, -0.02443351224064827, 0.014341410249471664, -0.02509971708059311, -0.004276314750313759, 0.00407375255599618, 0.05869805067777634, 0.024631574749946594, 0.02464957907795906, -0.0310235396027565, -0.02601800113916397, 0.05279223248362541, 0.04501384124159813, -0.012639886699616909, -0.06381162256002426, 0.018410660326480865, -0.005446674767881632, 0.007463295012712479, 0.004856993444263935, 0.04832686111330986, 0.05833793804049492, -0.04004431515932083, 0.01482755970209837, -0.024631574749946594, 0.026630189269781113, 0.010065094567835331, 0.05934624746441841, -0.015763847157359123, -0.07014957070350647, -0.0033692859578877687, 0.025207750499248505, -0.02185872197151184, 0.02805262617766857, 0.06723267585039139, 0.06572020798921585, 0.09895842522382736, 0.008273543789982796, -0.01735733635723591, -0.02877284772694111, -0.0424930676817894, -0.04965927079319954, 0.03633517399430275, 0.04468974098563194, -0.008179014548659325, 0.00022169317526277155, 0.01354016363620758, -0.001622749026864767, -0.022272849455475807, 0.008885731920599937, 0.05815788358449936, -0.03475068509578705, -0.05318835377693176, 0.010461216792464256, 0.04739057272672653, 0.015763847157359123, 0.0013965544058009982, 0.014053321443498135, -0.021228527650237083, -0.012828945182263851, 0.011136424727737904, 0.04252907633781433, 0.1167479008436203, 0.03230193257331848, 0.035110797733068466 ]
37,751
salesforce_bulk.salesforce_bulk
__reduce__
null
def __reduce__(self): return BulkApiError, (self.args[0], self.status_code)
(self)
[ -0.034679654985666275, -0.037333618849515915, -0.03370000422000885, 0.026023101061582565, -0.01641361229121685, -0.06561882793903351, 0.001311396830715239, -0.00930668693035841, 0.059420302510261536, -0.09034165740013123, 0.05079937353730202, 0.049196306616067886, 0.01873805746436119, -0.03897231072187424, 0.012201111763715744, 0.04862632602453232, 0.00007263891893671826, 0.05464673042297363, 0.04395962506532669, 0.0469520129263401, 0.002829856239259243, 0.03879418969154358, -0.021623576059937477, -0.006372186355292797, 0.026771198958158493, 0.0800107941031456, 0.06853996962308884, -0.06316079199314117, 0.07488097995519638, -0.05717601254582405, -0.036549899727106094, -0.009360122494399548, -0.00826914794743061, 0.02987045794725418, -0.01879149302840233, 0.023101959377527237, -0.025328438729047775, 0.045812055468559265, -0.08891671150922775, -0.017838560044765472, -0.07452474534511566, -0.0708555057644844, -0.035071514546871185, -0.0421784408390522, 0.04599017649888992, -0.010562421754002571, -0.0052812108770012856, -0.02890861965715885, -0.032684728503227234, -0.034893397241830826, -0.051547471433877945, 0.012753278948366642, 0.0038273194804787636, -0.009351217187941074, 0.0004597681690938771, 0.06109461560845375, 0.008197899907827377, -0.0006373299402184784, -0.06123711168766022, 0.012771090492606163, -0.026290278881788254, 0.05518108606338501, 0.03925729915499687, 0.022638849914073944, 0.00781494565308094, -0.011248177848756313, -0.05678415298461914, 0.00811774656176567, -0.057247258722782135, 0.08015328645706177, 0.02374318428337574, -0.0006456792470999062, -0.036763641983270645, -0.003016880713403225, 0.05931343138217926, -0.017598100006580353, -0.02030549943447113, 0.01578129082918167, 0.06358827650547028, -0.02652183175086975, 0.005272305104881525, 0.00995681993663311, -0.018542127683758736, -0.016582824289798737, 0.04534894973039627, -0.0469520129263401, -0.030511684715747833, -0.04591892659664154, -0.09426026791334152, 0.013260915875434875, -0.07765962928533554, 0.006122820544987917, -0.056463539600372314, 0.015736762434244156, 0.01356371771544218, 0.0252215676009655, -0.046203918755054474, -0.02669995091855526, -0.012753278948366642, -0.03478652611374855, 0.014000107534229755, 0.012192205525934696, 0.037761103361845016, -0.04499271139502525, 0.023796619847416878, -0.060204025357961655, 0.024384411051869392, -0.022496355697512627, 0.01969989761710167, 0.04096723720431328, 0.01280671451240778, -0.018880551680922508, -0.03179413825273514, 0.006105008535087109, -0.026806822046637535, -0.018666809424757957, 0.01626221090555191, -0.005521670915186405, -0.054504234343767166, 0.027448048815131187, 0.031847573816776276, -0.024598153308033943, -0.008727801963686943, 0.0038941139355301857, 0.014641334302723408, 0.045206453651189804, 0.0018156946171075106, -0.01864899881184101, 0.04766448959708214, -0.015941597521305084, -0.04809197410941124, -0.01991363987326622, -0.029888270422816277, -0.033201273530721664, -0.01776731200516224, -0.005437064450234175, 0.05357801914215088, 0.055679816752672195, -0.004608814138919115, -0.0058333780616521835, 0.0530436635017395, 0.045063961297273636, 0.018052302300930023, 0.00028498948086053133, 0.026949316263198853, -0.03617585077881813, 0.01252172514796257, 0.03168726712465286, 0.04153721407055855, 0.03687051311135292, -0.008202353492379189, -0.008322582580149174, 0.004867085721343756, 0.028374264016747475, -0.025951853021979332, 0.01676984876394272, -0.008816861547529697, -0.04745074734091759, -0.0002780317154247314, -0.04656015336513519, -0.0011455240892246366, -0.08920170366764069, 0.04296216368675232, -0.018052302300930023, 0.04335402324795723, -0.005388082005083561, -0.0024246368557214737, 0.018577750772237778, -0.027038374915719032, -0.0304404366761446, -0.015024288557469845, -0.0045286607928574085, -0.009849948808550835, 0.00009302512626163661, -0.09198035299777985, 0.06768500059843063, 0.002466940088197589, 0.046987637877464294, -0.04830571636557579, -0.0018680169014260173, 0.003631389234215021, -0.021017972379922867, -0.028819559141993523, -0.01463242806494236, 0.026254653930664062, 0.022585414350032806, 0.018542127683758736, 0.024990014731884003, 0.018034489825367928, 0.013296539895236492, 0.008616478182375431, -0.023974739015102386, 0.03213256224989891, 0.03441247716546059, -0.005579559598118067, -0.029852647334337234, -0.027430236339569092, 0.022211367264389992, 0.09440276026725769, 0.02890861965715885, -0.08022453635931015, 0.044850219041109085, 0.023369137197732925, 0.037939224392175674, 0.004317145328968763, 0.029852647334337234, 0.010615857318043709, -0.0016954647144302726, -0.09682517498731613, 0.0053569115698337555, -0.028160521760582924, 0.03569493070244789, -0.006220785900950432, 0.06255518645048141, 0.04281966760754585, -0.012584066018462181, 0.10017380118370056, -0.022460732609033585, 0.045847680419683456, 0.026023101061582565, 0.049160681664943695, -0.0882754847407341, 0.10223997384309769, -0.06016840040683746, 0.059242185205221176, 0.00440620444715023, -0.02057267725467682, -0.03252442181110382, -0.014481027610599995, 0.0010753899114206433, -0.020661735907197, -0.023155394941568375, 0.011533167213201523, 0.008665461093187332, -0.04941004887223244, 0.02374318428337574, 0.024936579167842865, -0.04371025785803795, 0.0015618759207427502, -0.0027185322251170874, -0.008349300362169743, 0.009244346059858799, -0.0005716488230973482, 0.054504234343767166, 0.0395779125392437, -0.07138986140489578, 0.018898364156484604, 0.06665191054344177, -0.03544556349515915, -0.008371565490961075, 0.025506557896733284, 0.04627516493201256, -0.03758298605680466, -0.047237005084753036, 0.021160468459129333, -0.05307928845286369, -0.007636826951056719, -0.06882495433092117, 0.029068926349282265, 0.004243671428412199, 0.04438710957765579, 0.038687318563461304, 0.031544771045446396, 0.010117125697433949, -0.08528310060501099, -0.014605710282921791, 0.008531872183084488, 0.04299778491258621, 0.04004101827740669, 0.10288120061159134, 0.1004587858915329, 0.05083499476313591, -0.008224617689847946, 0.0025426403153687716, -0.06789874285459518, 0.024758460000157356, 0.0008577515254728496, 0.007654638960957527, -0.008318129926919937, -0.005575106479227543, 0.022015435621142387, -0.01843525655567646, -0.04378150776028633, -0.03421654924750328, 0.03412748873233795, 0.008202353492379189, 0.04606142267584801, -0.00475130882114172, -0.04338964819908142, 0.012708748690783978, 0.03284503519535065, 0.009903384372591972, -0.011844874359667301, -0.03464403375983238, 0.040504127740859985, 0.023119769990444183, -0.018666809424757957, -0.0083136772736907, 0.0656544491648674, -0.012949208728969097, -0.059598423540592194, 0.0038295460399240255, 0.02335132472217083, -0.040860366076231, -0.014516650699079037, -0.03925729915499687, 0.07409726083278656, -0.0033308144193142653, -0.035979919135570526, -0.0015930465888231993, -0.0010303037706762552, 0.02135639823973179, -0.0006200747448019683, -0.0195752140134573, -0.013813083060085773, 0.005316834896802902, 0.028124898672103882, 0.0769471526145935, -0.019254600629210472, 0.05111998692154884, -0.04834133759140968, -0.02283478155732155, 0.026895880699157715, -0.03583742678165436, 0.038152966648340225, -0.020358934998512268, -0.06629567593336105, -0.019450530409812927, -0.01978895626962185, 0.030939169228076935, -0.02739461325109005, -0.02739461325109005, -0.012842337600886822, 0.008496248163282871, -0.021801693364977837, -0.03526744619011879, 0.04371025785803795, -0.027376800775527954, 0.013314351439476013, -0.011577697470784187, -0.019201165065169334, -0.01774059422314167, 0.03343282639980316, 0.06127273663878441, -0.009244346059858799, -0.04933880269527435, -0.005490500014275312, -0.0037338072434067726, 0.059206560254096985, -0.05831597000360489, 0.01731310971081257, 0.018328385427594185, -0.030582932755351067, 0.0552167110145092, 0.11036217212677002, 0.011417390778660774, -0.06843309849500656, -0.07024990022182465, 0.05144060030579567, 0.02135639823973179, 0.04039725661277771, -0.05592918395996094, -0.022585414350032806, 0.05343552678823471, 0.009101850911974907, 0.027376800775527954, -0.05635666847229004, 0.002203102223575115, 0.00010325301991542801, -0.03548118844628334, -0.038331083953380585, 0.011506449431180954, -0.027198681607842445, -0.026628702878952026, -0.01864899881184101, 0.05931343138217926, -0.04499271139502525, 0.019023047760128975, -0.0835019126534462, 0.007516597397625446, -0.011034435592591763, -0.045812055468559265, -0.026468396186828613, -0.018328385427594185, -0.006136179435998201, 0.036941759288311005, -0.0005034628557041287, -0.02169482409954071, -0.0045286607928574085, 0.07922707498073578, -0.0020617207046598196, -0.05835159495472908, -0.0430334098637104, -0.023066334426403046, 0.002284368732944131, -0.020412370562553406, 0.01341231632977724, -0.028944242745637894, -0.01021509151905775, -0.05144060030579567, -0.04670264944434166, 0.025969665497541428, 0.010553516447544098, 0.04930317774415016, -0.00013094487076159567, -0.048555079847574234, 0.03238192945718765, 0.04492146521806717, 0.00029194721719250083, -0.001037539797835052, 0.011444108560681343, -0.023119769990444183, -0.013216386549174786, -0.035588059574365616, -0.046203918755054474, 0.027287742123007774, -0.02383224479854107, 0.06490635126829147, 0.007676903624087572, -0.02208668366074562, 0.02247854508459568, -0.024081610143184662, 0.04214281588792801, -0.011640038341283798, -0.032328493893146515, -0.05090624466538429, -0.009342310950160027, 0.003956455271691084, 0.019967075437307358, -0.04200032353401184, -0.01538943126797676, -0.01058913953602314, -0.02500782534480095, -0.032328493893146515, -0.007667997851967812, -0.029193608090281487, -0.03590867295861244, 0.01964646205306053, 0.0804382786154747, 0.06750687956809998, 0.06016840040683746, 0.01918335258960724, 0.021908564493060112, -0.01356371771544218, 0.04755761846899986, -0.02917579747736454, -0.06512009352445602, -0.01864899881184101, 0.011319424957036972, -0.02230042591691017, 0.02938953787088394, 0.012245641089975834, 0.01904085837304592, -0.022603226825594902, 0.04770011082291603, -0.03929292410612106, -0.07537971436977386, -0.022336049005389214, 0.0010765031911432743, -0.012014087289571762, 0.05357801914215088, -0.009182004258036613, -0.016974685713648796, -0.012842337600886822, -0.04139472171664238, -0.04599017649888992, 0.03444810211658478, -0.012218923307955265, 0.0037070894613862038, -0.01843525655567646, -0.02700275182723999, -0.020839855074882507, -0.020501429215073586, 0.02060830034315586, 0.0006774066132493317, 0.035071514546871185, 0.07965455949306488, -0.020715171471238136, 0.015620985068380833, -0.036977384239435196, 0.052295565605163574, -0.0465245321393013, 0.046987637877464294, -0.010722728446125984, 0.0023110865149646997, -0.010660387575626373, 0.018542127683758736, -0.025239380076527596, 0.03640740364789963, -0.01692125014960766, 0.009841042570769787, 0.010375398211181164, 0.00044028647243976593, 0.01918335258960724, -0.0010325302137061954, -0.015309277921915054, -0.048376962542533875, 0.010170561261475086, -0.04338964819908142, -0.009084039367735386, 0.05446861311793327, -0.06515571475028992, -0.024722836911678314, -0.0756647065281868, 0.014766016975045204, -0.03245317563414574, 0.039934150874614716, -0.018987422809004784, 0.0008410529117099941, -0.04399525001645088, -0.04371025785803795, 0.028374264016747475, -0.03304096683859825, 0.033290330320596695, -0.014739299193024635, -0.008126652799546719, 0.011408484540879726, 0.009858854115009308, 0.0018168078968301415, 0.04036163166165352, 0.021338585764169693, 0.015451773069798946, -0.005076374858617783, 0.021160468459129333, -0.03797484561800957, -0.010615857318043709, 0.025275003165006638, -0.04356776550412178, -0.019860204309225082, 0.04413774237036705, -0.0700361579656601, -0.012619690038263798, 0.006879823748022318, -0.030404813587665558, -0.023850055411458015, 0.03882981464266777, -0.06946618109941483, 0.026076536625623703, -0.03986290097236633, 0.00197600107640028, 0.022371673956513405, 0.038722943514585495, -0.02247854508459568, -0.0313132181763649, -0.03336158022284508, -0.0321681872010231, -0.027554919943213463, 0.027430236339569092, -0.01087412890046835, -0.06223457306623459, -0.0062029738910496235, -0.0036714659072458744, 0.014204943552613258, 0.028516758233308792, -0.010535703971982002, 0.05204620212316513, 0.003417647210881114, -0.009088492020964622, 0.029799211770296097, 0.012138769961893559, 0.016760943457484245, 0.006381092127412558, -0.02144545689225197, -0.008465077728033066, -0.025755923241376877, 0.018933987244963646, 0.004742403049021959, 0.0547892265021801, -0.024063797667622566, -0.03936417028307915, -0.06187833845615387, -0.0011722418712452054, -0.07128299027681351, -0.01789199560880661, -0.003083675168454647, -0.00669725239276886, 0.01717061549425125, -0.010571327991783619, -0.00670615816488862, -0.007115830667316914, 0.03248880058526993, -0.01665407232940197, 0.01870243437588215, -0.07039240002632141, -0.05571544170379639, 0.017607005313038826, -0.029799211770296097, -0.038152966648340225, 0.03701300546526909, 0.010615857318043709, 0.002598302438855171, -0.018176984041929245, -0.008465077728033066, 0.0009390180348418653, 0.019931450486183167, 0.07537971436977386, -0.006389998365193605, -0.041857827454805374, -0.07374102622270584, 0.016796566545963287, -0.003938643261790276, 0.028035838156938553, 0.02344038337469101, 0.02425972744822502, 0.04221406579017639, -0.01668079011142254, -0.024669401347637177, -0.00419246219098568, -0.01683218963444233, 0.054860472679138184, 0.03508932888507843, -0.037547361105680466, 0.00280981813557446, 0.02130296267569065, -0.014739299193024635, -0.004383939318358898, 0.012539536692202091, 0.03225724399089813, -0.0033040966372936964, 0.004428469110280275, -0.01252172514796257, 0.011212554760277271, -0.045420195907354355, 0.019628649577498436, -0.02890861965715885, 0.07815836369991302, -0.010188373737037182, -0.03701300546526909, -0.013056079857051373, -0.022211367264389992, -0.04064662382006645, 0.0217482578009367, 0.10202623158693314, -0.04848383367061615, -0.01149754412472248, 0.04289091378450394, 0.056463539600372314, 0.047237005084753036, -0.002562678651884198, -0.025328438729047775, 0.02486533112823963, 0.018328385427594185, -0.054860472679138184, 0.01882711611688137, -0.006100555881857872, 0.01819479651749134, -0.07021427899599075, -0.04812759533524513, 0.03679926320910454, -0.01765153557062149, -0.019272413104772568, 0.04606142267584801, -0.03936417028307915, 0.017883088439702988, -0.02474064752459526, 0.04470772296190262, -0.016582824289798737, -0.007743698079138994, -0.008603119291365147, -0.011168024502694607, -0.03190100938081741, -0.03022669441998005, 0.06953743100166321, -0.034982457756996155, -0.021908564493060112, -0.01158660277724266, 0.0020561544224619865, -0.08107950538396835, 0.027839908376336098, -0.014169320464134216, 0.04488584026694298, -0.023030711337924004, 0.052901171147823334, 0.029193608090281487, 0.004706779029220343, 0.03188319504261017, 0.04118097946047783, 0.02226480282843113, -0.0012000728165730834, -0.019842391833662987, 0.007115830667316914, 0.0002950086200144142, -0.030511684715747833, 0.007886192761361599, -0.003021333599463105, 0.0009228760609403253, -0.013385599479079247, 0.029638905078172684, -0.013207480311393738, -0.0334862619638443, 0.04018351435661316, -0.03487558662891388, -0.014400874264538288, 0.018809305503964424, -0.09426026791334152, 0.05453985929489136, -0.037155501544475555, -0.061023369431495667, 0.025061260908842087, 0.05282992124557495, 0.002248744945973158, -0.019539590924978256, -0.007093566004186869, -0.029425162822008133, 0.031331028789281845, 0.02395692653954029, 0.04908943548798561, -0.008919280022382736, -0.002071739872917533, -0.020928913727402687, 0.03170507773756981, 0.044458355754613876, 0.003333040978759527, 0.009061774238944054, -0.004475225228816271, 0.026076536625623703, 0.04499271139502525, 0.03022669441998005, -0.03512495011091232, 0.04214281588792801, -0.036068979650735855, -0.006830841302871704, 0.01665407232940197, 0.03378906473517418, -0.005552841816097498, -0.007592297624796629, 0.034893397241830826, -0.024491282179951668, 0.04160846397280693, 0.03592648357152939, 0.049552544951438904, -0.006888729985803366, -0.05183245986700058, -0.007440896704792976, 0.07402601093053818, -0.0074186320416629314, 0.03765423223376274, 0.0417509563267231, 0.06711501628160477, 0.07530846446752548, 0.008491795510053635, 0.0003670909209176898, 0.000004205090590403415, -0.03453716263175011, -0.06864684075117111, -0.01671641319990158, 0.041857827454805374, 0.03701300546526909, -0.021196091547608376, -0.008202353492379189, 0.02470502443611622, 0.012815619818866253, 0.03599773347377777, 0.03327251970767975, -0.0045331139117479324, -0.08200571686029434, 0.03257785737514496, 0.008652102202177048, -0.004504169337451458, 0.005579559598118067, 0.030333565548062325, 0.003573500784114003, -0.008531872183084488, 0.02069736085832119, 0.017028121277689934, 0.04634641110897064, 0.04278404265642166, 0.03804609552025795 ]
37,752
salesforce_bulk.csv_adapter
CsvDictsAdapter
Provide a DataChange generator and it provides a file-like object which returns csv data
class CsvDictsAdapter(object): """Provide a DataChange generator and it provides a file-like object which returns csv data""" def __init__(self, source_generator): self.source = source_generator self.buffer = StringIO() self.csv = None self.add_header = False def __iter__(self): return self def write_header(self): self.add_header = True def next(self): row = next(self.source) self.buffer.truncate(0) self.buffer.seek(0) if not self.csv: self.csv = csv.DictWriter(self.buffer, list(row.keys()), quoting=csv.QUOTE_NONNUMERIC) self.add_header = True if self.add_header: if hasattr(self.csv, 'writeheader'): self.csv.writeheader() else: self.csv.writerow(dict((fn, fn) for fn in self.csv.fieldnames)) self.add_header = False self.csv.writerow(row) self.buffer.seek(0) return self.buffer.read() def __next__(self): return self.next()
(source_generator)
[ 0.015868915244936943, -0.03000440075993538, -0.05175267904996872, -0.029968660324811935, -0.02650180272758007, -0.0327385738492012, -0.03795672953128815, 0.10136090964078903, 0.027359582483768463, -0.015672340989112854, 0.0017133245710283518, 0.025751246139407158, -0.007107951678335667, 0.06422621756792068, -0.022302258759737015, 0.03842135891318321, 0.005999986547976732, 0.060080282390117645, -0.0013570334995165467, 0.015109422616660595, -0.009185385890305042, -0.015136228874325752, -0.03749210014939308, 0.03806395083665848, -0.0333104245364666, 0.03695598617196083, -0.024303743615746498, 0.0018998468294739723, 0.046427298337221146, 0.003312725340947509, -0.021069200709462166, -0.07984494417905807, -0.015440025366842747, 0.02641245163977146, -0.022016333416104317, -0.04957249015569687, -0.011991037987172604, -0.0019400552846491337, -0.003022331278771162, 0.00910943653434515, 0.03282792493700981, -0.004521211143583059, 0.001963510178029537, -0.017888270318508148, -0.004136997740715742, 0.046320077031850815, -0.09778682887554169, 0.01003422960639, 0.010069970041513443, -0.03540126234292984, -0.013912105932831764, -0.0023521913681179285, 0.01709303818643093, 0.036813024431467056, -0.0007857391610741615, -0.03350700065493584, 0.006071468349546194, 0.03157699480652809, -0.012973910197615623, 0.03888598829507828, -0.023124298080801964, -0.007250914815813303, 0.033792927861213684, 0.010525665245950222, 0.010945620015263557, -0.0054906802251935005, -0.045069146901369095, -0.05454045906662941, -0.008492907509207726, 0.028235232457518578, -0.0062054963782429695, 0.006576307117938995, -0.011320898309350014, 0.023660410195589066, -0.05557694286108017, 0.056470464915037155, -0.10086053609848022, -0.010570341721177101, 0.028485417366027832, -0.06318973004817963, 0.04170951247215271, 0.0009326114668510854, -0.004342507105320692, -0.012098260223865509, 0.017334287986159325, 0.005870426539331675, -0.009006681852042675, 0.009909137152135372, 0.011034972034394741, 0.07398345321416855, -0.04381822049617767, -0.016923269256949425, 0.016422897577285767, 0.011463861912488937, 0.026430321857333183, -0.06397603452205658, -0.034614965319633484, -0.000654503412079066, -0.027591897174715996, 0.014617986977100372, -0.001524568535387516, 0.017852529883384705, -0.0021924746688455343, 0.012446733191609383, -0.02710939571261406, -0.1053638756275177, 0.011687241494655609, -0.012178677134215832, 0.006084871012717485, -0.04467599838972092, -0.11015314608812332, -0.013268771581351757, 0.015538312494754791, -0.017039425671100616, 0.03354274109005928, -0.06469085067510605, 0.007974665611982346, -0.023267259821295738, -0.025090040639042854, -0.004125828389078379, 0.026215877383947372, 0.03129107132554054, -0.00853758305311203, 0.08563495427370071, 0.004646304063498974, -0.07126715779304504, 0.06644214689731598, -0.017968686297535896, 0.08906607329845428, 0.019603827968239784, 0.016485443338751793, -0.03663431853055954, 0.043317850679159164, -0.020461607724428177, 0.057399723678827286, 0.012509279884397984, 0.0038823443464934826, 0.07266104221343994, -0.05504083260893822, 0.033167462795972824, 0.036062467843294144, -0.06801474094390869, -0.011392380110919476, 0.009426635690033436, 0.022999204695224762, -0.046641744673252106, 0.0019746790640056133, 0.037098951637744904, -0.0011375626781955361, -0.04149506986141205, -0.0453193336725235, -0.01076691597700119, -0.05836472660303116, 0.04792841151356697, -0.02214142493903637, -0.003359635127708316, -0.06894399970769882, 0.023874854668974876, -0.018388641998171806, 0.0013134743785485625, 0.018817530944943428, -0.017736371606588364, -0.007174965459853411, 0.028485417366027832, 0.013849560171365738, 0.0764138326048851, -0.039886731654405594, -0.07963050156831741, -0.005392393097281456, -0.0731256753206253, 0.03620542958378792, 0.009810849092900753, 0.018299289047718048, 0.028431806713342667, -0.0032323086634278297, 0.06229621544480324, 0.007545776199549437, 0.04707063362002373, 0.001516750198788941, -0.01511835865676403, 0.03547274321317673, 0.0027743796817958355, -0.04521211236715317, 0.058007318526506424, 0.04971545189619064, -0.024893466383218765, 0.0364377461373806, -0.013688726350665092, 0.05318231135606766, 0.021247904747724533, 0.023428093641996384, -0.058436207473278046, -0.007898716256022453, -0.029736345633864403, 0.0339716300368309, -0.006044662557542324, -0.015082617290318012, 0.01748618669807911, 0.017521927133202553, 0.06583455204963684, -0.07948753982782364, -0.0384928397834301, 0.047856930643320084, -0.024786245077848434, -0.034418389201164246, 0.012178677134215832, 0.02205207385122776, -0.04814285784959793, -0.06136695295572281, 0.030165234580636024, 0.021498091518878937, -0.03227394074201584, 0.018049104139208794, 0.02391059510409832, 0.025501061230897903, 0.010186128318309784, 0.008492907509207726, -0.019228549674153328, -0.02203420363366604, -0.0240178182721138, 0.0764138326048851, 0.011669371277093887, -0.03345339000225067, 0.00931047834455967, 0.11644352227449417, -0.061831582337617874, -0.004592692945152521, -0.031201718375086784, -0.04978693276643753, 0.006781816948205233, 0.04099469631910324, -0.009676821529865265, -0.010579276829957962, -0.014466088265180588, 0.05539824068546295, -0.021051330491900444, -0.004592692945152521, -0.04385396093130112, 0.023213649168610573, 0.0029262779280543327, 0.01552937738597393, 0.05539824068546295, 0.016387157142162323, -0.03239903599023819, -0.04471173882484436, -0.05507657304406166, -0.023856984451413155, 0.05028730630874634, -0.04596266895532608, -0.000969469198025763, 0.04689192771911621, 0.04553378000855446, -0.02898578904569149, 0.014698403887450695, 0.014171226881444454, -0.05411157011985779, -0.007639595773071051, 0.035865891724824905, 0.0012743829283863306, -0.03629478067159653, 0.03195227310061455, 0.008211448788642883, -0.018477993085980415, 0.002058446640148759, 0.025733375921845436, 0.0057498011738061905, 0.034203946590423584, -0.03920765593647957, 0.03202375769615173, 0.05993732064962387, 0.03717043250799179, 0.05250323563814163, -0.04935804381966591, -0.008734158240258694, -0.021283647045493126, 0.0023879322689026594, 0.01552937738597393, -0.0662991851568222, 0.005874894093722105, 0.0028391596861183643, -0.020157810300588608, -0.020568830892443657, -0.043317850679159164, -0.008394620381295681, 0.04371099919080734, 0.029164493083953857, -0.06533417850732803, 0.013438540510833263, 0.02587633952498436, 0.03282792493700981, -0.003091579070314765, -0.004740123637020588, -0.010105711407959461, 0.015699146315455437, 0.004896489437669516, -0.008296333253383636, -0.019496606662869453, -0.04857174679636955, 0.04278173670172691, -0.001511165639385581, -0.014957524836063385, 0.01791507564485073, 0.0701591894030571, 0.0649767741560936, -0.046927668154239655, 0.029253844171762466, -0.01686965674161911, 0.009551729075610638, -0.022516703233122826, 0.01874605007469654, 0.0261980053037405, -0.0008404672262258828, -0.023142168298363686, 0.02589420974254608, 0.009498117491602898, -0.023517446592450142, -0.05868639424443245, 0.08492013812065125, -0.00478479964658618, 0.043103404343128204, -0.07462678849697113, 0.02814587950706482, 0.008247189223766327, -0.05307508632540703, 0.020318644121289253, -0.01122261118143797, 0.04163803160190582, 0.016065489500761032, -0.025715505704283714, 0.019854014739394188, -0.007005196530371904, -0.013447475619614124, -0.011991037987172604, 0.08913755416870117, 0.035544224083423615, 0.03145190328359604, -0.013367058709263802, -0.03423968702554703, -0.0010124698746949434, -0.031934402883052826, 0.03300662711262703, -0.009757238440215588, 0.03129107132554054, -0.046534519642591476, -0.04939378425478935, -0.045390814542770386, 0.005137740168720484, 0.002720768330618739, 0.02762763760983944, 0.07126715779304504, 0.06894399970769882, -0.02494707889854908, 0.05000137910246849, 0.059794358909130096, 0.02123003453016281, -0.059151023626327515, 0.005848088301718235, -0.06608473509550095, 0.010212933644652367, -0.018031233921647072, 0.03281005471944809, -0.004896489437669516, 0.010686499066650867, 0.005834685638546944, 0.016324609518051147, 0.017423639073967934, -0.06397603452205658, -0.025233004242181778, 0.010087840259075165, 0.016315674409270287, -0.017557667568325996, 0.008743093349039555, 0.06158139929175377, -0.01666414737701416, -0.001047093770466745, -0.05993732064962387, -0.007800429593771696, 0.07784346491098404, -0.049322303384542465, 0.0052673001773655415, 0.04085173457860947, -0.021140683442354202, 0.012339510954916477, 0.05121656507253647, -0.00034986893297173083, -0.06658510863780975, 0.041459325700998306, 0.006835428066551685, -0.01967531070113182, 0.0018763919360935688, -0.03179144114255905, 0.01842438243329525, -0.025947820395231247, -0.012125066481530666, -0.02080114558339119, -0.05679212883114815, -0.0017970920307561755, -0.014957524836063385, -0.04231710731983185, 0.0005841386737301946, -0.02453605830669403, -0.020443737506866455, -0.063332699239254, 0.0296112522482872, -0.011580019257962704, -0.019174939021468163, 0.04231710731983185, 0.012259094044566154, 0.01937151327729225, -0.013036456890404224, 0.03656283766031265, -0.01978253200650215, 0.029521901160478592, -0.013849560171365738, 0.004338039550930262, 0.02516152337193489, -0.048285819590091705, -0.03329255431890488, 0.015600859187543392, 0.08256124705076218, 0.03134468197822571, 0.0339716300368309, -0.06994474679231644, 0.02040799707174301, 0.00786297582089901, -0.03974376991391182, -0.024160780012607574, 0.023642538115382195, -0.021587442606687546, -0.03497237339615822, 0.01023973897099495, -0.07108844816684723, 0.0031474241986870766, -0.0384928397834301, 0.012527150101959705, 0.04067302867770195, 0.01645863801240921, 0.005499615333974361, 0.026751987636089325, 0.01602974906563759, 0.009498117491602898, 0.01309900265187025, 0.01853160373866558, -0.06626344472169876, -0.006299315951764584, -0.004936697892844677, 0.00453014625236392, 0.03500811383128166, 0.026037173345685005, 0.013384929858148098, -0.0037505500949919224, 0.03963654860854149, -0.011258351616561413, -0.035562094300985336, 0.01801336370408535, -0.02058670111000538, 0.06612048298120499, -0.013536827638745308, 0.022641796618700027, 0.0368487648665905, 0.08613532781600952, -0.0028458612505346537, 0.034740056842565536, -0.030058013275265694, -0.007746818475425243, -0.001621738774701953, -0.0008896108483895659, 0.002787782344967127, -0.03395375981926918, -0.006263575050979853, 0.03674154356122017, 0.06140269339084625, -0.014993265271186829, -0.01686965674161911, -0.033792927861213684, 0.028396064415574074, 0.017682760953903198, 0.03373931348323822, -0.0024795180652290583, -0.0012609800323843956, 0.003761719213798642, -0.03488301858305931, 0.03325681388378143, -0.03138042241334915, -0.010820526629686356, 0.011213676072657108, 0.0720534548163414, -0.05961565300822258, 0.0002278476022183895, 0.04410414770245552, 0.0027520416770130396, -0.02131938748061657, -0.0030290328431874514, -0.00906029250472784, 0.046748965978622437, 0.008604597300291061, 0.0172717422246933, 0.05307508632540703, 0.0016943372320383787, -0.05121656507253647, 0.026877081021666527, 0.004615030717104673, -0.03159486502408981, -0.04281747713685036, 0.021605312824249268, 0.01216080691665411, 0.02827097289264202, 0.035865891724824905, -0.09928794205188751, -0.06980178505182266, -0.002767678117379546, -0.01382275391370058, -0.0428532175719738, -0.009614274837076664, 0.005003712140023708, -0.02412503957748413, -0.025393838062882423, -0.024268003180623055, -0.05618453770875931, -0.0011515239020809531, 0.034811537712812424, 0.054790645837783813, -0.01626206375658512, -0.021247904747724533, -0.049322303384542465, 0.029789956286549568, -0.0033462324645370245, 0.014948589727282524, 0.0376708023250103, -0.017334287986159325, 0.010025294497609138, 0.0040945555083453655, 0.008711819536983967, -0.02546531893312931, 0.035776540637016296, 0.005530888680368662, 0.06140269339084625, 0.022427352145314217, -0.011544277891516685, 0.024589670822024345, -0.0036477954126894474, 0.036491356790065765, -0.02794930525124073, -0.05611305683851242, 0.020443737506866455, 0.004376014228910208, -0.015037941746413708, -0.01003422960639, 0.033578481525182724, -0.013974652625620365, -0.0499298982322216, 0.017620213329792023, 0.015591924078762531, 0.002649286761879921, -0.035973113030195236, -0.01552937738597393, -0.046427298337221146, -0.014689468778669834, 0.014457153156399727, -0.0006584125221706927, 0.029468288645148277, 0.033274684101343155, -0.05160971358418465, -0.0003364661242812872, 0.06612048298120499, 0.014832431450486183, 0.031308941543102264, 0.06394029408693314, -0.006031259894371033, 0.041673772037029266, -0.025000689551234245, 0.01584210991859436, -0.014010393060743809, 0.03000440075993538, -0.023160038515925407, -0.018066974356770515, -0.03168421983718872, -0.006366329733282328, 0.02589420974254608, -0.07087400555610657, 0.025107910856604576, 0.05261045694351196, 0.0060491301119327545, -0.03593737259507179, -0.0003269724838901311, -0.08370495587587357, -0.04978693276643753, 0.051716938614845276, 0.04153081029653549, 0.034418389201164246, -0.025536801666021347, 0.01045418344438076, -0.09099607914686203, -0.03935062140226364, 0.06733566522598267, -0.021069200709462166, -0.02948615886271, 0.006491422653198242, -0.06054491549730301, 0.011151129379868507, -0.07080252468585968, -0.030075883492827415, -0.053754162043333054, -0.00739834550768137, 0.029664862900972366, -0.023571057245135307, -0.03985099121928215, -0.0166552122682333, 0.02183762937784195, 0.03774228319525719, -0.045069146901369095, 0.026233747601509094, 0.02505430020391941, -0.012848817743360996, -0.008113161660730839, -0.03490089252591133, -0.03415033221244812, -0.04338933154940605, 0.01915706880390644, 0.023731891065835953, 0.005812347400933504, -0.015234516002237797, -0.01831715926527977, 0.0006182041252031922, -0.08163198828697205, -0.04842878505587578, -0.0006304900161921978, 0.028020786121487617, -0.018656697124242783, -0.025822727009654045, -0.029539771378040314, -0.03609820827841759, 0.08885163068771362, 0.009667886421084404, -0.03613394871354103, 0.05089489743113518, -0.04571248218417168, -0.01320622581988573, 0.05185990035533905, -0.0012911363737657666, 0.04907211661338806, 0.019585957750678062, -0.010999230667948723, 0.010999230667948723, -0.03749210014939308, -0.005959778558462858, 0.020229293033480644, -0.04056580737233162, 0.02939680777490139, -0.0616886205971241, 0.0021008888725191355, 0.07820086926221848, -0.02844967693090439, 0.021158553659915924, -0.030915791168808937, -0.014832431450486183, -0.06494103372097015, 0.02526874467730522, 0.026466062292456627, 0.01029335055500269, 0.023445963859558105, -0.011151129379868507, 0.04732082039117813, -0.07627086341381073, 0.05207434669137001, -0.02369615063071251, 0.006460149306803942, 0.0537899024784565, 0.021462351083755493, 0.0021343957632780075, -0.02846754714846611, -0.025840597227215767, -0.015386413782835007, -0.026787729933857918, -0.009444505907595158, -0.05414731055498123, 0.01309900265187025, 0.011588954366743565, -0.008032744750380516, 0.03288153558969498, 0.03145190328359604, 0.06901548057794571, 0.009381960146129131, 0.04110192134976387, -0.008886056020855904, 0.02473263256251812, -0.02224864810705185, -0.04832156002521515, 0.01728961244225502, -0.049000635743141174, 0.06987326592206955, -0.00937302503734827, 0.006058065686374903, -0.00574533361941576, -0.04356803372502327, -0.07008770853281021, 0.027895694598555565, -0.047856930643320084, -0.04153081029653549, 0.02183762937784195, 0.028628380969166756, -0.0196574404835701, 0.07784346491098404, -0.009864460676908493, 0.011785528622567654, -0.0792016088962555, -0.0244288370013237, 0.01935364305973053, 0.05975861847400665, -0.035669319331645966, 0.0026783260982483625, 0.0718032643198967, -0.012268029153347015, -0.0015871148789301515, 0.018370771780610085, 0.01947873644530773, -0.02589420974254608, 0.020139940083026886, 0.031666349619627, -0.009748303331434727, 0.041888218373060226, -0.019996976479887962, -0.005428133998066187, 0.06787177920341492, -0.039493583142757416, -0.00763512821868062, -0.07519864290952682, 0.038242656737565994, -0.015985073521733284, -0.018281418830156326, 0.0024460109416395426, -0.01874605007469654, -0.05468342453241348, 0.005727462936192751, -0.018495863303542137, -0.008667143993079662, -0.05493360757827759, -0.011553213931620121, 0.06801474094390869, 0.05225304886698723, -0.11165425926446915, 0.02680560015141964, 0.032774314284324646, 0.073697529733181, 0.015672340989112854, -0.04349655285477638, 0.0649767741560936, 0.020658181980252266, -0.006174223031848669, 0.02121216431260109, 0.02660902589559555, 0.011624694801867008, -0.04439007490873337, 0.053361013531684875, 0.0035807813983410597, -0.018165260553359985, -0.014475024305284023, 0.010472054593265057, -0.02618013508617878, -0.00024571799440309405, -0.0023611264768987894, 0.0652269572019577, 0.006822024937719107, -0.010811591520905495, 0.03670579940080643, 0.02039012685418129, 0.057614170014858246, 0.04917934164404869 ]