Skip to content

Instantly share code, notes, and snippets.

@joefutrelle
Created February 12, 2014 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joefutrelle/8964195 to your computer and use it in GitHub Desktop.
Save joefutrelle/8964195 to your computer and use it in GitHub Desktop.
resolver config for sb imgs
<resolvers>
<resolver name="pid">
<var name="root">/mnt/svalbard/dives</var>
<match var="pid" pattern="((([A-Z]+)\.)?((\d{6})\d\d)\.(\d+)\.(\d+))(\.(\w+))?"
groups="lid _ pfx ymd ym ts1 ts2 _ ext">
<!-- high-priority cruises -->
<match var="ym" value="200303">
<path var="dir" match="${root}/200303_OC387/processed/color_corrected/*">
<path match="${dir}/${lid}.jpeg"/>
</path>
</match>
<match var="ym" value="200407">
<path var="dir" match="${root}/200407_CH0804/Images_cc/*/ColorCorrected">
<path match="${dir}/${lid}.jpg"/>
</path>
</match>
<match var="ym" value="200504">
<path match="${root}/200504_KayKay/Images/i20050417/${lid}.tif"/>
</match>
<match var="ym" value="200804">
<path var="dir" match="${root}/200804_PR/at_sea/processed/images/i200804*-corrected-chrismurf">
<var name="df">
<value>down</value>
<value>front</value>
</var>
<path match="${dir}/${df}/${lid}.jpg"/>
</path>
</match>
</match>
</resolver>
</resolvers>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment