Exemple #1
0
 def test_sim_map_empty_messy(self):
     """Test the simulation of an empty map."""
     simulate_map(width_ra=2,
                  width_dec=2.,
                  outdir=self.emptydir,
                  baseline='messy',
                  nbin=100)
Exemple #2
0
def sim_map(obsdir_ra, obsdir_dec):
    simulate_map(count_map=gauss_src_func,
                 length_ra=30.,
                 length_dec=30.,
                 outdir=(obsdir_ra, obsdir_dec), mean_ra=180,
                 mean_dec=45, speed=1.5,
                 spacing=0.5, srcname='Dummy', channel_ratio=0.8,
                 baseline="flat")
Exemple #3
0
 def test_sim_map_empty(self):
     """Test the simulation of an empty map."""
     out_ra, _ = \
         simulate_map(width_ra=2, width_dec=2., outdir=self.emptydir)
     probe = os.path.join(out_ra, 'Ra0.fits')
     assert os.path.exists(probe)
     with fits.open(probe) as hdul:
         assert hdul[0].header['Declination Offset'] != 0.
Exemple #4
0
 def test_sim_map_empty_slope(self):
     """Test the simulation of an empty map."""
     simulate_map(width_ra=2,
                  width_dec=2.,
                  outdir=self.emptydir,
                  baseline='slope')
Exemple #5
0
 def test_sim_map_empty(self):
     """Test the simulation of an empty map."""
     simulate_map(width_ra=2, width_dec=2., outdir=self.emptydir)