sdss / target_selection

Code to perform target selection for BHM/MWM using catalogdb
https://sdss-target-selection.readthedocs.io
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Issue with 'sdss-target-selection' #347

Open sarkatos opened 1 year ago

sarkatos commented 1 year ago

Hi, I tried to install the 'sdss-target-selection' AFTER installing numpy, and that happened: output_of_terminal.txt We(some LSST AGN SC members) actually just wanted to find the AQMES AGNs/Quasar objects' cordinates from each cartoon in the site: "https://www.sdss.org/dr18/bhm/programs/cartons#bhm_aqmes_med_plan0.5.0" Not the center of the fileds, but the coordinates of the objects themselves. Thanks for your attention. Sincerely, Vítor.

albireox commented 1 year ago

Hi Vítor. There are a couple things you can try, but I don't have a super clear solution to the issue. As you say, one needs to install numpy first and then install sdss-target-selection. This is unfortunate but necessary because a couple of the dependencies (pymangle, mocpy) don't define numpy as a setup_requires dependency.

I'm not very familiar with installing target-selection in Windows, and I'm not 100% sure all those dependencies do work fine there. Are you using Windows directly or a WSL environment? Here are a few things you can try:

But ultimately, I'm not sure that installing target-selection will help you to get the data that you need, since you'll probably also need additional infrastructure (mainly the catalog database) that are not easily available. Instead I think you want to use the already published data with DR18. You can get it from the CAS in SkyServer with a query like

SELECT * FROM mos_target t
    JOIN mos_carton_to_target c2t ON c2t.target_pk = t.target_pk
    JOIN mos_carton c ON c2t.carton_pk = c.carton_pk
    WHERE c.target_selection_planname LIKE "0.5.%"
    AND c.carton LIKE "bhm_aqmes_med"

The description of the database and tables is available here.