Ignore:
Timestamp:
Jun 27, 2010, 4:57:36 PM (15 years ago)
Author:
ansari
Message:

Corrections diverses, Reza 27/06/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosmo/RadioBeam/subtractradsrc.cmd

    r3787 r3789  
    88### Step 1/ Produce an LSS data cube  with appropriate size and redshift using SimLSS
    99# 1.a/ Run SimLSS
    10 csh> ~/Objs/exe/cmvginit3df -a -1 -2 -C -G 0. -F 0 -x 360,4 -y 360,4 -z 128,5 -Z 0.6 -8 1. -n 10000 -O 0,2 -o map3dz06B -T 2
     10csh> ~/Objs/exe/cmvginit3df -a -1 -2 -C -G 0. -F 0 -x 360,3 -y 360,3 -z 256,1.5 -Z 0.56 -8 1. -n 10000 -O 0,2 -o lssz056 -T 2
    1111# 1.b/ Change the X and Z axis of the cube to adapt it to RadioBeam package convention
    1212#  SimLSS output : the radial (redshift) direction along X axis of the cube (TArray)
     
    1515
    1616csh> cat > racube.pic
    17 set f map3dz06B
     17set f lssz056
    1818readfits ${f}_r.fits
    1919rename ${f}_r map
     
    3030saveppf omap lsscube.ppf
    3131
    32 csh> spiapp -term -exec lsscube.ppf
     32csh> spiapp -term -exec racube.pic
    3333
    3434## Step 2/ Produce synchrotron and radio source sky cubes  (cube unit is Temparature- Kelvin)
     
    4141openppf syncube.ppf
    4242openppf nvsscube.ppf
    43 expmeansig syncube val
    44 expmeansig nvsscube val
     43# expmeansig syncube val
     44# expmeansig nvsscube val
    4545c++exec TArray<r_4> fgndcube = syncube+nvsscube; KeepObj(fgndcube);
    4646print fgndcube
    47 expmeansig fgndcube val
     47# expmeansig fgndcube val
    4848saveppf fgndcube fgndcube.ppf
    4949
     
    5353csh> ./Objs/applobe fgndcube.ppf fgndcube_lobe.ppf
    5454csh> ./Objs/applobe lsscube.ppf lsscube_lobe.ppf
     55## Step 3.b/ Correct for the lobe effect by bringing all to a beam of 30 arcmin
     56csh> ./Objs/applobe lsscube_lobe.ppf lsscube_corlobe.ppf 1 30
     57csh> ./Objs/applobe fgndcube_lobe.ppf fgndcube_corlobe.ppf 1 30
    5558
    5659### Step 4/ Compute power spectra
     
    5861## Foreground maps are in temperature
    5962## Noise fluctuations Sigma^2 ~ T_sys^2 / t_obs * DeltaFreq
    60 ## Tsys ~ 50 K , DeltaFreq ~ 0.5 MHz , t_obs ~ 1 day ~ 80 000 s.
    61 ## sigma_noise ~ 0.25 mK
     63## Tsys ~ 50 K , DeltaFreq ~ 0.275 MHz , t_obs ~ 1 day ~ 80 000 s.
     64## sigma_noise ~ 0.35 mK
    6265# 4.a/ LSS power spectrum  without noise
    6366csh> ./Objs/calcpk lsscube.ppf lsspk.ppf 0.2
    6467# and with noise 
    65 csh> ./Objs/calcpk lsscube.ppf lsspkwn.ppf 0.2 0.25
     68csh> ./Objs/calcpk lsscube.ppf lsspkwn.ppf 0.2 0.35
    6669#  with the lobe effect
    6770csh> ./Objs/calcpk lsscube_lobe.ppf lsspklobe.ppf 0.2 
     71csh> ./Objs/calcpk lsscube_corlobe.ppf lsspkcorlobe.ppf 0.2 
     72
    6873# 4.b/ Foreground power spectrum
    6974csh> ./Objs/calcpk fgndcube.ppf fgndpk.ppf 1000
    7075csh> ./Objs/calcpk fgndcube_lobe.ppf fgndpklobe.ppf 1000
     76csh> ./Objs/calcpk fgndcube_corlobe.ppf fgndpkcorlobe.ppf 1000
    7177
    7278# 4.c/ Extract LSS P(k) from Foreground+LSS+noise , after cleaning/subtraction without beam
    73 csh> ./Objs/calcpk2 lsscube.ppf 0.2 fgndcube.ppf 1000 subpk.ppf 0.25
    74 # 4.d / Extract LSS P(k) from Foreground+LSS+noise and beam effect
    75 csh> ./Objs/calcpk2 lsscube_lobe.ppf 0.2 fgndcube_lobe.ppf 1000 subpklobe.ppf 0.25
     79csh> ./Objs/calcpk2 lsscube.ppf 0.2 fgndcube.ppf 1000 subpk.ppf 0.35 0. 0.
     80# 4.d / Extract LSS P(k) from Foreground+LSS+noise and beam effect - correcting for beam to 30 arcmin
     81csh> ./Objs/calcpk2 lsscube_lobe.ppf 0.2 fgndcube_lobe.ppf 1000 subpklobe.ppf 0.35 30. 3.
    7682
    7783### Step 5 / Check the results using spiapp
Note: See TracChangeset for help on using the changeset viewer.