Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion python/apogee_drp/apred/qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -4786,7 +4786,8 @@ def old_makeVisHTML(load=None, plate=None, mjd=None, survey=None, apred=None, te
apStarRelPath = None
if (objtype != 'SKY') & (objid != '2MNone') & (objid != '2M') & (objid != ''):
# Find which healpix this star is in
healpix = apload.obj2healpix(objid)
#healpix = apload.obj2healpix(objid)
healpix = apload.get_healpix(jdata["RA"], jdata["DEC"])
healpixgroup = str(healpix // 1000)
healpix = str(healpix)

Expand Down
5 changes: 3 additions & 2 deletions python/apogee_drp/apred/rv.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def doppler_rv(star,apred,telescope,mjd=None,nres=[5,4.25,3.5],windows=None,twea
startab['v_apred'] = gitvers
startab['mjdbeg'] = np.min(allvisits['mjd'].astype(int))
startab['mjdend'] = np.max(allvisits['mjd'].astype(int))
startab['healpix'] = apload.obj2healpix(star)
startab['healpix'] = apload.get_healpix(startab["ra"], startab["dec"])
startab['nvisits'] = nallvisits
# Copy data from visit
tocopy = ['ra','dec','glon','glat','jmag','jerr','hmag','herr','kmag','kerr','src_h','catalogid',
Expand Down Expand Up @@ -884,7 +884,8 @@ def visitcomb(allvisit,starver,load=None, apred='r13',telescope='apo25m',nres=[5
apstar.header['V_APRED'] = (plan.getgitvers(), 'APOGEE software version')
apstar.header['APRED'] = (apred, 'APOGEE reduction version')
apstar.header['STARVER'] = (starver, 'apStar version')
apstar.header['HEALPIX'] = ( apload.obj2healpix(allvisit['apogee_id'][0]), 'HEALPix location')
#apstar.header['HEALPIX'] = ( apload.obj2healpix(allvisit['apogee_id'][0]), 'HEALPix location')
apstar.header["HEALPIX"] = (apload.get_healpix(allvisit['ra'].max(),allvisit['dec'].max())[0], 'HEALPix location')
try :apstar.header['SNR'] = (np.nanmedian(apstar.flux[0,:]/apstar.err[0,:]), 'Median S/N per apStar pixel')
except :apstar.header['SNR'] = (0., 'Median S/N per apStar pixel')
apstar.header['RA'] = (allvisit['ra'].max(), 'right ascension, deg, J2000')
Expand Down