deepdisc.astrodet.hsc
Functions
|
Get tract and patch from SkyCoord |
|
Get HSC data given tract/patch info or SkyCoord |
|
Get HSC data given tract/patch info or SkyCoord |
|
Module Contents
- get_tract_patch_from_coord(coord, f='data/hsc/tracts_patches_UD-COSMOS.txt')[source]
Get tract and patch from SkyCoord
- Parameters:
coord (SkyCoord) – Coodinate of object
f (str) – Path to UD-COSMOS.txt data file
- Returns:
tract (Astropy HDUData) – Tract ID
patch ([int, int]) – Patch ID tuple
- get_hsc_data(dirpath, filters=['g', 'r', 'i'], 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_DR3_data(dirpath, filters=['g', 'r', 'i'], 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