metadata:
  # https://github.com/ioos/ioosngdac/wiki/NGDAC-NetCDF-File-Format-Version-2
  acknowledgement: Funding from Fisheries and Oceans Canada, Canadian Foundation for
    Innovation, BC Knowledge Development Fund
  comment: "Calvert Line.  Thruster installed. Built-in O2 inoperative.  External O2 sensor installed; set to 10 s sampling hoping to last three weeks; will turn on 7 Aug. Going around south side of Calvert Island to compare with Maria mission."
  contributor_name: James Pegg, Tetjana Ross, Jody Klymak, Nick Harper
  contributor_role: Lead Technician, Principal Investigator, Principal Investigator, Technician
  creator_email: jklymak@uvic.ca
  creator_name: Jody Klymak
  creator_url: https://cproof.uvic.ca
  # R: real time. P: provisional
  data_mode: 'R'
  # date_created etc: added automatically
  # numbers must be enclosed by strings so YAML keeps as strings
  deployment_id: '10'
  deployment_name: 'dfo-bumblebee998-20260717'
  deployment_start: '2026-07-17'
  deployment_end: '2026-10-15'
  format_version: IOOS_Glider_NetCDF_v2.0.nc
  # id filled automatically...
  glider_name: dfo-bumblebee
  glider_serial: '998'
  glider_model: Slocum G3 Deep
  glider_instrument_name: slocum
  glider_wmo: "8900994"
  institution: C-PROOF
  network: OceanGliders > BOON > Northeast Pacific Ocean > C-PROOF, IOOS
  keywords: "AUVS, Autonomous Underwater Vehicles, Oceans, Ocean Pressure, Water Pressure,
    Oceans, Ocean Temperature, Water Temperature, Oceans, Salinity/Density, Conductivity,
    Oceans, Salinity/Density, Density, Oceans, Salinity/Density, Salinity"
  keywords_vocabulary: GCMD Science Keywords
  license: "This data may be redistributed and used without restriction or warranty"
  metadata_link: "https://cproof.uvic.ca"
  Metadata_Conventions: CF-1.11, Unidata Dataset Discovery v1.0, IOOS Glider DAC
  Conventions: CF-1.11, Unidata Dataset Discovery v1.0, IOOS Glider DAC
  naming_authority: "ca.uvic.cproof"
  platform_type: "Slocum Glider"
  processing_level: "Data provided as is with no expressed or implied assurance of
    quality assurance or quality control."
  project: Calvert Line
  project_url: https://cproof.uvic.ca
  publisher_email: jklymak@uvic.ca
  publisher_name: Jody Klymak
  publisher_url: https://cproof.uvic.ca
  references: URL
  # https://www.nodc.noaa.gov/General/NODC-Archive/seanamelist.txt
  sea_name: Northeast Pacific Ocean (limit-180)
  source: Observational data from a profiling glider.
  standard_name_vocabulary: CF Sandard Name Table v49
  summary: Calvert
  transmission_system: IRIDIUM
  wmo_id: "8900994"
  deployment_vessel: "GH VII"
  deployment_station: "HKP04"
  deployment_latitude: "51.75"
  deployment_longitude: "-127.97"


glider_devices:
  pressure:
    make: Micron
    model: Pressure
    serial: '130003'
  ctd:
    make: RBR
    model: RBRlegato3 CTD
    serial: '208550'
    long_name: RBRlegato3 CTD
    make_model: RBR RBRlegato3 CTD
    factory_calibrated: " "
    calibration_date: "28-Jan-2022"
    calibration_report: " "
    Thermal_lag_constants_[alpha,tau] : [None,None]
    dTdC : 1
    comment1: 'A detailed report of how the lag was determined can be found on https://cproof.uvic.ca. No thermal lag constants were applied to the data.'

  optics:
    make: Wetlabs
    model: FLBBCDSLC
    serial: '7035'
  oxygen:
    make: AADI
    model: Optode4831
    serial: '1027'
    calibration_constants[c0, c1, c2, c3, c4, c5, c6] : [2.71367e-3,1.09551e-4,2.59557e-6,1.81448e2,-2.61703e-1,-3.72374e1,3.66571]
    Comment: 'Calibration constants from manufacturer'
    internal_salinity: '35 PSU'

# map between glider variables and netcdf variables.  This shouldn't
# change too much.
netcdf_variables:
  # Time and Place:
  time:
    source: sci_m_present_time
    long_name: Time
    standard_name: time
    calendar: gregorian
    units: seconds since 1970-01-01T00:00:00Z
    axis: T
    observation_type: "measured"
    coordinates: time depth latitude longitude

  latitude:
    source: m_gps_lat
    long_name: latitude
    standard_name: latitude
    units: degrees_north
    axis: Y
    coordinates: time depth latitude longitude
    observation_type: measured
    platform: platform
    reference: WGS84
    valid_max: 90.0
    valid_min: -90.0
    coordinate_reference_frame: urn:ogc:crs:EPSG::4326

  longitude:
    source: m_gps_lon
    long_name: longitude
    standard_name: longitude
    units: degrees_east
    axis: X
    coordinates: time depth latitude longitude
    observation_type: measured
    platform: platform
    reference: WGS84
    valid_max: 180.0
    valid_min: -180.0
    coordinate_reference_frame: urn:ogc:crs:EPSG::4326

  heading:
    source: m_heading
    long_name: glider heading angle
    standard_name: platform_orientation
    units: rad
    coordinates: time depth latitude longitude

  pitch:
    source: m_pitch
    long_name: glider pitch angle
    standard_name: platform_pitch_angle
    units: rad
    coordinates: time depth latitude longitude

  roll:
    source: m_roll
    long_name: glider roll angle
    standard_name: platform_roll_angle
    units: rad
    coordinates: time depth latitude longitude

  # profile info:
  waypoint_latitude:
    source: c_wpt_lat
    long_name: waypoint latitude
    standard_name: latitude
    units: degree_north
    coordinates: time depth latitude longitude

  waypoint_longitude:
    source: c_wpt_lon
    long_name: waypoint longitude
    standard_name: longitude
    units: degree_east
    coordinates: time depth latitude longitude

  # data parameters
  conductivity:
    source: sci_water_cond
    long_name: water conductivity
    standard_name: sea_water_electrical_conductivity
    units: S m-1
    coordinates: time depth latitude longitude
    instrument: instrument_ctd
    valid_min: 0.
    valid_max: 10.
    observation_type: "measured"
    accuracy: "0.0003"
    precision: "0.001"
    resolution: "0.0001"

  temperature:
    source: sci_water_temp
    long_name: water temperature
    standard_name: sea_water_temperature
    units: Celsius
    units_metadata: "temperature: on_scale"
    coordinates: time depth latitude longitude
    instrument: instrument_ctd
    valid_min: -5.0
    valid_max: 50.0
    observation_type: "measured"
    accuracy: "0.002"
    precision: "0.002"
    resolution: "0.00005"

  pressure:
    source: sci_water_pressure
    long_name: water pressure
    standard_name: sea_water_pressure
    units: dbar
    coordinates: time depth latitude longitude
    conversion: bar2dbar
    valid_min: 0.0
    valid_max: 2000.0
    positive: "down"
    reference_datum: "sea-surface"
    instrument: "instrument_ctd"
    observation_type: "measured"
    accuracy: "0.5"
    precision: "0.02"
    resolution: "0.01"

  potential_temperature:
    long_name: potential temperature
    standard_name: sea_water_potential_temperature
    units: Celsius
    coordinates: time depth latitude longitude
    units_metadata: "temperature: on_scale"
    method: potential_temperature

  potential_density:
    long_name: potential density
    standard_name: sea_water_potential_density
    coordinates: time depth latitude longitude
    units: kg m-3
    method: potential_density

  potential_temperature_adjusted:
    long_name: potential temperature adjusted
    standard_name: sea_water_potential_temperature
    units: Celsius
    coordinates: time depth latitude longitude
    units_metadata: "temperature: on_scale"

  potential_density_adjusted:
    long_name: potential density adjusted
    standard_name: sea_water_potential_density
    coordinates: time depth latitude longitude
    units: kg m-3

# optics:
  chlorophyll:
    source: sci_flbbcd_chlor_units
    long_name: chlorophyll
    standard_name: concentration_of_chlorophyll_in_sea_water
    units: mg m-3
    coordinates: time depth latitude longitude

  cdom:
    source: sci_flbbcd_cdom_units
    long_name: CDOM
    units: ppb
    coordinates: time depth latitude longitude

  backscatter_700:
    source: sci_flbbcd_bb_units
    long_name: 700 nm wavelength backscatter
    units: m-1 sr-1
    comment: Calvert Line.  Thruster installed.  External O2 sensor installed, built in O2 inoperative.
    coordinates: time depth latitude longitude


# Oxygen

#  oxygen_concentration:
#    source:  sci_oxy4_oxygen
#    long_name:    oxygen concentration
#    standard_name: mole_concentration_of_dissolved_molecular_oxygen_in_sea_water
#    units:        umol l-1
#    coordinates:   time depth latitude longitude

#  temperature_oxygen:
#    source:  sci_oxy4_temp
#    long_name:    oxygen sensor temperature
#    standard_name: temperature_of_sensor_for_oxygen_in_sea_water
#    units:        Celsius
#    coordinates:   time depth latitude longitude

  conductivity_QC:
    average_method: 'QC_protocol'
    comment: 'QC_protocol is a method of averaging that takes into account the quality flags of the data. It is used to ensure that only good data is used in the average.'
    flags:   "1 = good data; 3 = bad data, potentially correctable; 4 = bad data; 8 = estimated data"

  temperature_QC:
    average_method: 'QC_protocol'
    comment: 'QC_protocol is a method of averaging that takes into account the quality flags of the data. It is used to ensure that only good data is used in the average.'
    flags:   "1 = good data; 3 = bad data, potentially correctable; 4 = bad data; 8 = estimated data"

  salinity_QC:
    average_method: 'QC_protocol'
    comment: 'QC_protocol is a method of averaging that takes into account the quality flags of the data. It is used to ensure that only good data is used in the average.'
    flags:   "1 = good data; 3 = bad data, potentially correctable; 4 = bad data; 8 = estimated data"

  density_QC:
    average_method: 'QC_protocol'
    comment: 'QC_protocol is a method of averaging that takes into account the quality flags of the data. It is used to ensure that only good data is used in the average.'
    flags:   "1 = good data; 3 = bad data, potentially correctable; 4 = bad data; 8 = estimated data"

  potential_temperature_adjusted_QC:
    average_method: 'QC_protocol'
    comment: 'QC_protocol is a method of averaging that takes into account the quality flags of the data. It is used to ensure that only good data is used in the average.'
    flags:   "1 = good data; 3 = bad data, potentially correctable; 4 = bad data; 8 = estimated data"

  potential_density_adjusted_QC:
    average_method: 'QC_protocol'
    comment: 'QC_protocol is a method of averaging that takes into account the quality flags of the data. It is used to ensure that only good data is used in the average.'
    flags:   "1 = good data; 3 = bad data, potentially correctable; 4 = bad data; 8 = estimated data"

  temperature_adjusted_QC:
    average_method: 'QC_protocol'
    comment: 'QC_protocol is a method of averaging that takes into account the quality flags of the data. It is used to ensure that only good data is used in the average.'
    flags:   "1 = good data; 3 = bad data, potentially correctable; 4 = bad data; 8 = estimated data"

  salinity_adjusted_QC:
    long_name: 'Adjusted salinity QC flags'
    average_method: 'QC_protocol'
    comment: 'QC_protocol is a method of averaging that takes into account the quality flags of the data. It is used to ensure that only good data is used in the average.'
    flags:   "1 = good data; 3 = bad data, potentially correctable; 4 = bad data; 8 = estimated data"

  backscatter_700_QC:
    long_name: 'Backscatter 700nm QC flags'
    average_method: 'QC_protocol'
    comment: 'QC_protocol is a method of averaging that takes into account the quality flags of the data. It is used to ensure that only good data is used in the average.'
    flags:   "1 = good data; 3 = bad data, potentially correctable; 4 = bad data; 8 = estimated data"

profile_variables:
  # variables for extract_L1timeseries_profiles processing step...

  profile_id:
    comment: 'Sequential profile number within the trajectory.  This value is unique in each file that is part of a single trajectory/deployment.'
    long_name: 'Profile ID'
    valid_max: 2147483647
    valid_min: 1
    _FillValue: -1

  profile_time:
    comment:  Timestamp corresponding to the mid-point of the profile
    long_name: Profile Center Time
    observation_type: calculated
    platform: platform
    standard_name: time
#    units:             seconds since 1970-01-01T00:00:00Z
    units_metadata: "leap_seconds: none"
    _FillValue: -999


  profile_time_start:
    comment:           Timestamp corresponding to the start of the profile
    long_name: Profile Start Time
    observation_type: calculated
    platform: platform
    standard_name: time
    units: seconds since 1970-01-01T00:00:00Z

  profile_time_end:
    comment:           Timestamp corresponding to the end of the profile
    long_name: Profile End Time
    observation_type: calculated
    platform: platform
    standard_name: time
    units: seconds since 1970-01-01T00:00:00Z

  profile_lat:
    comment:           Value is interpolated to provide an estimate of the latitude at the mid-point of the profile

    long_name: Profile Center Latitude
    observation_type: calculated
    platform: platform
    standard_name: latitude
    units: degrees_north
    valid_max: 90.0
    valid_min: -90.0

  profile_lon:
    comment:           Value is interpolated to provide an estimate of the longitude at the mid-point of the profile
    long_name: Profile Center Longitude
    observation_type: calculated
    platform: platform
    standard_name: longitude
    units: degrees_east
    valid_max: 180.0
    valid_min: -180.0

  u:
    comment:  The depth-averaged current is an estimate of the net current measured while the glider is underwater. The value is calculated over the entire underwater segment, which may consist of 1 or more dives.
    long_name: Depth-Averaged Eastward Sea Water Velocity
    observation_type: calculated
    platform: platform
    standard_name: eastward_sea_water_velocity
    units: m s-1
    valid_max: 10.0
    valid_min: -10.0

  v:
    comment:  The depth-averaged current is an estimate of the net current measured while the glider is underwater. The value is calculated over the entire underwater segment, which may consist of 1 or more dives.
    long_name: Depth-Averaged Northward Sea Water Velocity
    observation_type: calculated
    platform: platform
    standard_name: northward_sea_water_velocity
    units: m s-1
    valid_max: 10.0
    valid_min: -10.0

  lon_uv:
    comment:           Not computed
    long_name: Longitude
    observation_type: calculated
    platform: platform
    standard_name: longitude
    units: degrees_east
    valid_max: 180.0
    valid_min: -180.0

  lat_uv:
    comment:           Not computed
    long_name: Latitude
    observation_type: calculated
    platform: platform
    standard_name: latitude
    units: degrees_north
    valid_max: 90.0
    valid_min: -90.0

  time_uv:
    comment:           Not computed
    long_name: Time
    standard_name: time
    calendar: gregorian
    units: seconds since 1970-01-01T00:00:00Z
    observation_type: calculated

  instrument_ctd:
    calibration_date: "2022-01-28"
    calibration_report: "Cproof.uvic.ca"
    factory_calibrated: "yes"
    long_name: RBRlegato3 CTD
    make_model: RBR RBRlegato3 CTD
    platform: platform
    serial_number: "208550"
    type: platform
    comment: "A detailed report of how the lag was determined can be found on https://cproof.uvic.ca. No thermal lag constants were applied to the data."

  conductivity_QC:
    average_method: 'QC_protocol'
    comment: 'QC_protocol is a method of averaging that takes into account the quality flags of the data. It is used to ensure that only good data is used in the average.'
    flags:   "1 = good data; 3 = bad data, potentially correctable; 4 = bad data; 8 = estimated data"
  temperature_QC:
    average_method: 'QC_protocol'
    comment: 'QC_protocol is a method of averaging that takes into account the quality flags of the data. It is used to ensure that only good data is used in the average.'
    flags:   "1 = good data; 3 = bad data, potentially correctable; 4 = bad data; 8 = estimated data"
  salinity_QC:
    average_method: 'QC_protocol'
    comment: 'QC_protocol is a method of averaging that takes into account the quality flags of the data. It is used to ensure that only good data is used in the average.'
    flags:   "1 = good data; 3 = bad data, potentially correctable; 4 = bad data; 8 = estimated data"
  density_QC:
    average_method: 'QC_protocol'
    comment: 'QC_protocol is a method of averaging that takes into account the quality flags of the data. It is used to ensure that only good data is used in the average.'
    flags:   "1 = good data; 3 = bad data, potentially correctable; 4 = bad data; 8 = estimated data"
  potential_temperature_adjusted_QC:
    average_method: 'QC_protocol'
    comment: 'QC_protocol is a method of averaging that takes into account the quality flags of the data. It is used to ensure that only good data is used in the average.'
    flags:   "1 = good data; 3 = bad data, potentially correctable; 4 = bad data; 8 = estimated data"
  potential_density_adjusted_QC:
    average_method: 'QC_protocol'
    comment: 'QC_protocol is a method of averaging that takes into account the quality flags of the data. It is used to ensure that only good data is used in the average.'
    flags:   "1 = good data; 3 = bad data, potentially correctable; 4 = bad data; 8 = estimated data"
  temperature_adjusted_QC:
    average_method: 'QC_protocol'
    comment: 'QC_protocol is a method of averaging that takes into account the quality flags of the data. It is used to ensure that only good data is used in the average.'
    flags:   "1 = good data; 3 = bad data, potentially correctable; 4 = bad data; 8 = estimated data"
  salinity_adjusted_QC:
    long_name: 'Adjusted salinity QC flags'
    average_method: 'QC_protocol'
    comment: 'QC_protocol is a method of averaging that takes into account the quality flags of the data. It is used to ensure that only good data is used in the average.'
    flags:   "1 = good data; 3 = bad data, potentially correctable; 4 = bad data; 8 = estimated data"
  backscatter_700_QC:
    long_name: 'Backscatter 700nm QC flags'
    average_method: 'QC_protocol'
    comment: 'QC_protocol is a method of averaging that takes into account the quality flags of the data. It is used to ensure that only good data is used in the average.'
    flags:   "1 = good data; 3 = bad data, potentially correctable; 4 = bad data; 8 = estimated data"