Skip to content

Collections of scripts to generate HIPs images for LIneA

License

Notifications You must be signed in to change notification settings

linea-it/hipsimage_gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HiPSimage with Aladin

This guide outlines the steps required to install and run the HiPS (Hierarchical Progressive Surveys) image creation program using the Aladin software.

Prerequisites

Installation

  1. Clone the program repository:

    git clone https://github.com/linea-it/hipsimage_gen
    cd hipsimage_gen
  2. Copy create_hips.sh.template to create_hips.sh:

    cp create_hips.sh.template create_hips.sh
  3. Modify the environment variables as needed in create_hips.sh:

    WARNING: Note that ALADINPATH is mandatory.

    Name Mandatory Default Description
    ALADINPATH yes - Directory where the Aladin executable is located.
    HISP_TITLE no DR2 HiPS title
    CREATOR_DID no CDS/P/DES/DR2 HiPS identifier
    PIXELCUT_G no "-1.23 508.7 log" Allows you to specify how pixels are mapped in this value range to g band
    PIXELCUT_R no "-2.357 1039 log" Allows you to specify how pixels are mapped in this value range to r band
    PIXELCUT_I no "-2.763 881.7 log" Allows you to specify how pixels are mapped in this value range to i band
    HIPS_MAXMEM no all available in the system Maximum memory used (in GB)
    HIPS_MAXTHREADS no all available in the system Maximum threads used
    OUTPUT_DIR no './outputs' Output dir
  4. Prepare source images: The source images must be separated by band in each directory: g, r and i. Example:

    tree inputs
    inputs
    ├── g
    │   ├── DES0354-1624_r4931p01_g.fits.fz
    │   ├── DES0354-1915_r4931p01_g.fits.fz
    │   ├── DES0354-1958_r4931p01_g.fits.fz
    │   └── DES2111-0207_r4575p01_g.fits.fz
    ├── i
    │   ├── DES0354-1624_r4931p01_i.fits.fz
    │   ├── DES0354-1915_r4931p01_i.fits.fz
    │   ├── DES0354-1958_r4931p01_i.fits.fz
    │   └── DES2111-0207_r4575p01_i.fits.fz
    └── r
        ├── DES0354-1624_r4931p01_r.fits.fz
        ├── DES0354-1915_r4931p01_r.fits.fz
        ├── DES0354-1958_r4931p01_r.fits.fz
        └── DES2111-0207_r4575p01_r.fits.fz
  5. And each directory must be added in the function get_inputdir_per_band in its respective band (in create_hips.sh):

    function get_inputdir_per_band() {
    case $1 in
        'g') echo '<path/to/source/images/in/band/g>' ;;  # CHANGE PATH!
        'r') echo '<path/to/source/images/in/band/r>' ;;  # CHANGE PATH!
        'i') echo '<path/to/source/images/in/band/i>' ;;  # CHANGE PATH!
    esac
    }

Execute

time ./create_hips.sh 2> error 1> log & 

HIPS execution on LIneA

https://docs.google.com/document/d/1yn-Uuax0VCVMxA4PsGHCwaoY43Dz-BIj6wrUUEXLGUQ/

About

Collections of scripts to generate HIPs images for LIneA

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages