comparison.model_selection.regrid_observations#

regrid_observations(path='/media/hpc_backup/yanitski/projects/pdr/observational_data/MilkyWay/', mission=None, nu_planck=713000000000.0, target_header=None, target_kernel=None, output_file='obs_regridded.fits', cal_error=0, sig_th=3)[source]#

This function will regrid the specified mission data to the specified target header. This prepares the observational data for comparison to simulated data. For now, the target header must

Parameters:
  • path – The directory storing the mission folders. Each mission folder should contain the relevant fits files.

  • mission – The mission you wish to regrid. The default functionality is to regrid all missions.

  • target_header – The target header, which must have longitude on axis 1 and latitude on axis 2. An optional axis 3 may be used for the velocity. If there is not a third dimension, the data will be regridded with a spacing of 1 km/s.

  • target_kernel – The kernel to use for regridding.

Returns:

Float – 0 for success; 1 for fail