c2pap web portal python batch script

In this paget I (Antonio Ragagnin) present you batch jobs for c2papcosmosim.uc.lrz.de with the script c2pap_batch.py.

Given a list of clusters previously extracted from the c2pap web portal (the output file name is dataset.csv), the script c2pap_batch.py automatize the process of sending the same jobs parameter to all those haloes.

The script takes the parameter -s {Service name} where the service name can be SMAC, SimCut, PHOX, query, the path of the dataset file name -f {daraset.csv}, the job parameters must be set with -p and must consist of the value displayes in the web portal.

Below a list of all parameters. Note: they are case sensitive.

                    Form parameters.
                    SimCut:
                    IMG_Z_SIZE
                    r500factor
                    
                    SMAC:
                    content
                    IMG_SIZE
                    IMG_Z_SIZE
                    PROJECT
                    r500factor
                    
                    PHOX:
                    mode
                    instrument (-1 for generic)
                    instrument_a (only if generic)
                    instrument_fov (only if generic)
                    t_obs_input
                    img_z_size
                    simulate
                

For instance the following will run a SMAC job over all objects in the dataset.csv: python c2pap_batch.py -f dataset.csv -s SMAC -p content="bolometric x-ray luminosity" IMG_SIZE=512 IMG_Z_SIZE=5000 PROJECT='along z, xy plane' r500factor=2.0 -u

To avoid running duplicate jobs, use the flags --existing-jobs --cache-jobs cachefile.pickle to make the script check for existing jobs with identical parameters.

For any question ask me (Antonio Ragagnin) using the address antonio.ragagnin (at) inaf.it or a more updated one on my home page aragagnin.github.io.