mask2scansubroutine mask2scan( int *mask, pixeltype pixelization, scandef *scan)Purpose: Allocates and defines the S2HAT scandef structure, scan, corresponding to a observed sky patch defined by a mask, mask. The scan structure has to be defined and identical on all the employed processors prior to any call to the transform routines. This can be achieved by calling the routine by either all procs or just one proc, e.g., root, followed by a call to mpi_scanbcast. Parameters: input:
The middle-of-the-way solutions are also possible and advisable especially for multi-connected sky coverages. In such cases the mask could be simplified, e.g., singly-connected though still saving some FLOPS and memory in comparison with the full sky cases. N.B.2. Note that on the input to s2hat_map2alm routines the unobserved pixels should be explicitly masked out by setting their values to zero. On the output of the s2hat_alm2map routines one should explicitly mask the pixels which were not observed. |