Overview

HTTPS SSH
README
last update: 2018/03/12
GM100 (generation 100 maps)
------------------------------------------------------------------------

Description:
This code generates simulated full-sky polarization maps of LiteBIRD.
By using different random seeds, 100 different maps are generated for
each 15 bands. So 100 * 15 bands = 1500 fits files will be generated.

-----------------------------------------------------------------------

Requirement:
This code is written by python, and needs the following packages.
Versions of those that it is known to work with are:

    - python 2.7.10
    - healpy 1.10.1     
	- astropy 1.2.1
    - numpy 1.14.2
    - pyfits 3.3

--------------------------------------------------------------------------
[gm100]

Usage:
To run the code, in the directory containing main.py run:

    > python main.py [your_config_name.ini]

[...] is option. Without input, "config.ini" is read.
Output maps will be in './Output/'.

If you set 'check = True' at config file, 
100 npy files will be generated at './Output/check/' to check
if generated cmb is equal to what you expect.  

You can share the same large amount maps by this check function.
1. You run gm100 code by your config set as 'check = True'
   and 'check_name = ./check/expected_std[cnt].npy'. At this time.
2. You send ./output/check/expected_std*.npy to ./input/check/ 
   (of another gm100).
3. You run (another) gm100 by config file you used at 1 (but
   check_name can be changed).
4. If you see 'complete' on console just before the end of run,
   CMB and noise maps will be genrated as expected, in other words,
   generated maps at 1 and at 3 are identical.

--------------------------------------------------------------------------
[gmFG]

Usage:
If you need to generate foreground by your settings,
you run:

	> python ./gmFG/main_fg.py [your_config_fg_name.ini]

[...] is option. Without input, "config_fg.ini" is read.
then, you'll get foreground maps at ./gmFG/output_fg/

--------------------------------------------------------------------------

If you execute gm100 and gmFG at the same time,
please rewrite config.ini as

	[foreground]
	generate_foreground = True
	config = fg_config_your_settings.ini

and run gm100. Then gm100 config and gmFG config are
checked whether they have the same parameter.