deepdisc.preprocessing.get_data
Attributes
Functions
|
|
|
|
|
Get HSC data given tract/patch info or SkyCoord |
|
Get HSC data given tract/patch info or SkyCoord |
|
Get HSC data given tract/patch info or SkyCoord |
|
Get HSC data given tract/patch info or SkyCoord |
|
|
|
|
|
|
|
WARNING!!!!! |
Module Contents
- get_DC2_data(dirpath, filters=['u', 'g', 'r', 'i', 'z', 'y'], tract=10054, patch=[0, 0], coord=None, cutout_size=[128, 128])[source]
Get HSC data given tract/patch info or SkyCoord
- Parameters:
dirpath (str) – Path to HSC image file directory
filters (list) – A list of filters for your images. Default is [‘g’, ‘r’, ‘i’].
tract (int) – An integer used for specifying the tract. Default is 10054|
patch ([int, int]) – Patch #,#. Default is [0,0]
coord (SkyCoord) – Astropy SkyCoord, when specified, overrides tract/patch info and attempts to lookup HSC filename from ra, dec. Default is None
cutout_size ([int, int]) – Size of cutout to use (set to None for no cutting). Default is [128, 128]
form (The image filepath is in the) – {dirpath}/deepCoadd/HSC-{filter}/{tract}/{patch[0]},{patch[1]}/calexp-HSC-{filter}-{tract}-{patch[0]},{patch[1]}.fits
- Returns:
data – HSC data array with dimensions [filters, N, N]
- Return type:
ndarray
- get_HSC(dirpath, filters=['G', 'R', 'I', 'Z', 'Y'], tract=10054, patch=[0, 0], coord=None, cutout_size=[128, 128], get_psf=False)[source]
Get HSC data given tract/patch info or SkyCoord
- Parameters:
dirpath (str) – Path to HSC image file directory
filters (list) – A list of filters for your images. Default is [‘g’, ‘r’, ‘i’].
tract (int) – An integer used for specifying the tract. Default is 10054|
patch ([int, int]) – Patch #,#. Default is [0,0]
coord (SkyCoord) – Astropy SkyCoord, when specified, overrides tract/patch info and attempts to lookup HSC filename from ra, dec. Default is None
cutout_size ([int, int]) – Size of cutout to use (set to None for no cutting). Default is [128, 128]
form (The image filepath is in the) – {dirpath}/deepCoadd/HSC-{filter}/{tract}/{patch[0]},{patch[1]}/calexp-HSC-{filter}-{tract}-{patch[0]},{patch[1]}.fits
- Returns:
data – DC2 data array with dimensions [filters, N, N]
- Return type:
ndarray
- get_DC2_data_alltracts(dirpath, filters=['u', 'g', 'r', 'i', 'z', 'y'], tract=10054, patch=[0, 0], coord=None, cutout_size=[128, 128], get_psf=False)[source]
Get HSC data given tract/patch info or SkyCoord
- Parameters:
dirpath (str) – Path to HSC image file directory
filters (list) – A list of filters for your images. Default is [‘g’, ‘r’, ‘i’].
tract (int) – An integer used for specifying the tract. Default is 10054|
patch ([int, int]) – Patch #,#. Default is [0,0]
coord (SkyCoord) – Astropy SkyCoord, when specified, overrides tract/patch info and attempts to lookup HSC filename from ra, dec. Default is None
cutout_size ([int, int]) – Size of cutout to use (set to None for no cutting). Default is [128, 128]
form (The image filepath is in the) – {dirpath}/deepCoadd/HSC-{filter}/{tract}/{patch[0]},{patch[1]}/calexp-HSC-{filter}-{tract}-{patch[0]},{patch[1]}.fits
- Returns:
data – DC2 data array with dimensions [filters, N, N]
- Return type:
ndarray
- get_DC2_psf_alltracts(dirpath, filters=['u', 'g', 'r', 'i', 'z', 'y'], tract=10054, patch=[0, 0], coord=None, cutout_size=[128, 128], get_psf=False)[source]
Get HSC data given tract/patch info or SkyCoord
- Parameters:
dirpath (str) – Path to HSC image file directory
filters (list) – A list of filters for your images. Default is [‘g’, ‘r’, ‘i’].
tract (int) – An integer used for specifying the tract. Default is 10054|
patch ([int, int]) – Patch #,#. Default is [0,0]
coord (SkyCoord) – Astropy SkyCoord, when specified, overrides tract/patch info and attempts to lookup HSC filename from ra, dec. Default is None
cutout_size ([int, int]) – Size of cutout to use (set to None for no cutting). Default is [128, 128]
form (The image filepath is in the) – {dirpath}/deepCoadd/HSC-{filter}/{tract}/{patch[0]},{patch[1]}/calexp-HSC-{filter}-{tract}-{patch[0]},{patch[1]}.fits
- Returns:
data – HSC data array with dimensions [filters, N, N]
- Return type:
ndarray
- get_cutout(dirpath, tract, patch, sp, nblocks=4, filters=['u', 'g', 'r', 'i', 'z', 'y'], plot=False, get_psf=True)[source]