dr-guangtou / unagi

Search and download data from Hyper Suprime-Cam (HSC) Subaru Strategic Survey (SSP)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[New] Method to check whether a coordinate is covered by HSC

dr-guangtou opened this issue · comments

  • There are multiple ways to do this using SQL search, but neither is fast enough to check a large number of galaxies.
  • If we could keep a copy of the Tract/Patch information of HSC footprints, there might be faster way to do this.

Will think more on this...

Here is how to do it using SQL search:

-- Find coadded patch images SELECT pdr2_wide.mosaic.tract , pdr2_wide.mosaic.patch , pdr2_wide.mosaic.filter01 FROM pdr2_wide.mosaic JOIN public.skymap USING (skymap_id) WHERE patch_contains(patch_area, wcs, 35, 40)

This is done with the recent commit, but it is slow and not perfect.

In fact, just try to generate image at that location and see what's going on might be faster...