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

DM-27767: Add special raw file template #445

Merged
merged 7 commits into from Jan 8, 2021
Merged

DM-27767: Add special raw file template #445

merged 7 commits into from Jan 8, 2021

Conversation

timj
Copy link
Member

@timj timj commented Nov 25, 2020

No description provided.

@timj timj force-pushed the tickets/DM-27767 branch 5 times, most recently from 770e510 to d66b36d Compare January 7, 2021 19:19
default: "{run:/}/{datasetType}.{component:?}/{tract:?}/{patch:?}/{visit.day_obs:?}/{exposure.day_obs:?}/{band:?}/{subfilter:?}/{physical_filter:?}/{visit:?}/{exposure.obs_id:?}/{datasetType}_{component:?}_{tract:?}_{patch:?}_{band:?}_{physical_filter:?}_{visit:?}_{exposure.obs_id:?}_{detector.full_name:?}_{instrument:?}_{skymap:?}_{skypix:?}_{run}"
# For raw-type files do not include band or filter in hierarchy
# and remove band from file name
physical_filter+detector+exposure: "{run:/}/{datasetType}.{component:?}/{exposure.day_obs}/{exposure.obs_id}/{datasetType}_{component:?}_{instrument:?}_{physical_filter}_{exposure.obs_id}_{detector.full_name}_{run}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems a little strange that instrument moves around. You don't want it before band in the default template, for example?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I've moved instrument to the front in the default to match.

This lets us group visits by the day they occurred and reduces the number
of files in a "directory"
Exposure defaults to the OBSID (which is commonly used for raw
data file names) and detector now uses the detector name rather
than number.
@timj timj merged commit 2fe403e into master Jan 8, 2021
@timj timj deleted the tickets/DM-27767 branch January 8, 2021 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants