You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When images are copied the MJD is extracted exclusively from the partial MJD embedded in the filename.
This needs to be fixed so that:
The MJD extract is done primarily from the exposure ID (because STH exposures that start on MJD - 1 are given the obs name of MJD)
The MJD extract reverts to using the MJD embedded in the first part of the filename if it can't find an exposure ID (as is the case with Pan-STARRS finders).
The text was updated successfully, but these errors were encountered:
Code has been altered to use the exposure name for extraction of the MJD.
ifany([xinfilename['image_filename'] forxin ['01a', '02a', '03a', '04a']]):
mjd=filename['image_filename'].split('_')[2][3:8]
else:
# Use the old way to get the MJD - relevant for finding charts.mjd=filename['image_filename'].split('_')[1]
mjd=mjd.split('.')[0]
imageDestinationDirectoryName=IMAGEROOT_DESTINATION+publicSchema+'/'+mjd
When images are copied the MJD is extracted exclusively from the partial MJD embedded in the filename.
This needs to be fixed so that:
The text was updated successfully, but these errors were encountered: