Skip to content

BI500 open_raw outputs #1258

Description

@leewujung

This is from discussions with @praneethratna and @jmjech for adding support for BI500 data. For context, after BI500 support is added we could move forward to the closely related EK500 data.

Different from the raw data contained in EK60 and EK80, BI500 files contain nominally "calibrated" Sv data, which came from applying a suite of parameters (through a parameter file) that users put in to configure EK500, and the echosounder applies these parameters to the raw data to output BI500 files.

This creates a situation where the parsed BI500 data are not "raw" in itself and are more equivalent to the Sv datasets generated from compute_Sv. In theory we could leverage the SONAR-netCDF4 v2.0 generalization to store the nominally calibrated Sv data into the backscatter_r variable, but this may cause confusion with other echosounders, for which backscatter_r contains uncalibrated data.

For the first shot we can do the following:

echodata, ds_cal = open_raw(raw_file="BI500_FILEPATH", ..., metadata_file="METADATA. ekprm")

The key things are:

  • Generate 2 sets of outputs from BI500 data: echodata and ds_cal (instead of only the single echodata output for all other sonar models):

    • echodata contain all raw data variables and all user-input config parameters from the parameter file that are used in calibration
    • ds_cal contains the Sv data recorded in the BI500 files, and all user-input config parameters from the parameter file that are used in calibration. These are what are in Sv datasets generated by compute_Sv
  • Change the previous xml_path (which was only used for AZFP data to read the XML file associated with the 01A file) to metadata_file (which can then be used to pass in both AZFP XML file or the BI500 parameter file)

  • Not part of this issue: Add function to reapply calibration parameters to BI500 data #1259

@praneethratna and @jmjech: Please feel free to point out anything incorrect and other things I may have missed!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions