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 isnpixok()).
Parameters : | m : sequence
|
---|---|
Returns : | info : int
|
Examples
>>> import healpy as hp
>>> hp.pixelfunc.maptype(np.arange(12))
0
>>> hp.pixelfunc.maptype(2)
-1
>>> hp.pixelfunc.maptype([np.arange(12), np.arange(12)])
2
>>> hp.pixelfunc.maptype([np.arange(12), np.arange(768)])
-1