Skip to content

Instantly share code, notes, and snippets.

@adamml
Last active July 29, 2016 11:06
Show Gist options
  • Save adamml/1c4e0ab92fefdb25ac18b05dd7fde3ee to your computer and use it in GitHub Desktop.
Save adamml/1c4e0ab92fefdb25ac18b05dd7fde3ee to your computer and use it in GitHub Desktop.
Grok patterns for oceanographic instrumentation
#Spiddal CTD output
%{MI_PREFIX}%{SPACE}%{IDRONAUT_OCEAN7_304}
#Spiddal Fluorometer
%{MI_PREFIX}%{WETLABS_ECO_FLNTU_3137}
#Patterns for the prefix added by the MI Spiddal Observatory
MI_INST [a-zA-Z0-9._-]+
MI_PREFIX %{TIMESTAMP_ISO8601}\|%{MI_INST}\|
#Patterns for instrument outputs
IDRONAUT_OCEAN7_304 %{NUMBER:pressure}%{SPACE}%{NUMBER:temperature}%{SPACE}%{NUMBER:conductivity}%{SPACE}%{NUMBER:salinity}%{SPACE}%{NUMBER:sound_velocity}%{SPACE}%{TIME}
WETLABS_ECO_FLNTU_3137 %{MONTHNUM}\/%{MONTHDAY}\/%{YEAR}%{SPACE}%{TIME}%{SPACE}%{NUMBER:wavelength_fluorescence}%{SPACE}%{INT:chlorophyll_counts}%{SPACE}%{NUMBER:wavelength_turbidity}%{SPACE}%{INT:turbidity_counts}%{SPACE}%{NUMBER:thermistor}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment