Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting photoz argument default to True #196

Merged
merged 3 commits into from
Feb 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frb/surveys/panstarrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self,coord,radius,**kwargs):

def get_catalog(self,query_fields=None,release="dr2",
table="stack",print_query=False,
use_psf=False, photoz=False):
use_psf=False, photoz=True):
"""
Query a catalog in the MAST Pan-STARRS database for
photometry.
Expand Down Expand Up @@ -152,7 +152,7 @@ def get_catalog(self,query_fields=None,release="dr2",
user = os.getenv('MAST_CASJOBS_USER')
pwd = os.getenv('MAST_CASJOBS_PWD')
if user is None or pwd is None:
raise IOError("You need to set the MAST_CASJOBS_USER and MAST_CASJOBS_PWD environment variables. Create an account at https://mastweb.stsci.edu/mcasjobs/CreateAccount.aspx to get your credentials.")
raise IOError("You need to set the MAST_CASJOBS_USER and MAST_CASJOBS_PWD environment variables. Create an account at https://mastweb.stsci.edu/mcasjobs/CreateAccount.aspx to get your credentials. Or set photoz=False in get_catalog.")
job = mcj.MastCasJobs(context="HLSP_PS1_STRM", username=user, password=pwd)
photoz_tab = job.quick(photoz_query, task_name="Photo-z cone search")
photoz_tab.rename_column('objID', 'Pan-STARRS_ID')
Expand Down