Skip to content

Conversation

@sauuyer
Copy link

@sauuyer sauuyer commented Jan 27, 2026

Files to Review

  • IFCB_Log-Discrete_IFCB_Data_Processing.ipynb
  • IFCB_Log-Underway_IFCB_Data_Processing.ipynb

Underway and Discrete Log Notebook Updates Summaries

Reasoning: syringeSamplingSpeed (McLane sets this to 20 minutes, i.e., this is a fixed 20 in the header file, which is not always accurate); 20 minutes is accurate in the cases where the sampling volume is 5 mL, but becomes inaccurate when the sampling times are altered. The more operationally precise way to view this is to focus on the default flow rate being 0.25 mL/min (which is true, and is usually accurately represented by the defaults (5 mL SyringeSampleVolume / syringeSamplingSpeed). 0.25 mL/min is only NOT accurate in cases where runSampleFast_Int is changed from 1 (the default) AND runSampleFast == TRUE.

SyringeSampleVolume (this is usually 5 ml unless the sample time is cut short by the operator (usually for testing reasons)
base_flow_rate = 0.25

underway_IFCB_hdr_output['flowRate_mins'] = np.where(
underway_IFCB_hdr_output['runSampleFast'],
base_flow_rate * underway_IFCB_hdr_output["RunFastFactor"],
base_flow_rate
)

New volume analyzed calculation:
underway_IFCB_hdr_output['volumeAnalyzed'] = underway_IFCB_hdr_output['flowRate_mins'] * (underway_IFCB_hdr_output['lookTime']/60)

Underway Notebook Change Summary
";" sep added between sites in cases where there are two sites (e.g., CP10CNSM;CP12CNSW)

s-pearce and others added 11 commits March 14, 2022 10:09
ingest_csvs v2, adds users ability
ingest: fixes <dataFrame>.append deprecation
b1de362 Merge pull request #3 from sauuyer/notebook-cleaning
5318d90 flow rate calc updated. site indicator updated for underway file.
ee64317 Rename IFCB_Log-Moored_IFCB_Data_Processing.ipynb to IFCB_Log-Underway_IFCB_Data_Processing.ipynb
44c3b34 Rename IFCB_Log-Underway_IFCB_Data_Processing.ipynb to IFCB_Log-Moored_IFCB_Data_Processing.ipynb
d90457b added notes about fast factorsettings in md
a6aa809 Merge pull request #2 from sauuyer/pioneer-22
1680167 Delete IFCB_Log_Notebooks/IFCB_Dashboard_Metadata_CSV_shipboard_AR87.ipynb
c3aa3be Delete IFCB_Log_Notebooks/IFCB_Dashboard_Metadata_CSV_shipboard_AR82.ipynb
ab2f2fb updated log notebooks
8cdffda moored and shipboard notebooks updated
0f9ae6c cleaned up variable updates
14e107a Merge pull request #1 from sauuyer/notebook-cleaning
9a7faba Updated code in jupyter notebooks that create dashboard metadata

git-subtree-dir: ifcb-parsing-processing
git-subtree-split: b1de362d6e2ca08d69a040177d4eae78273d5133
…-parsers

Flow rate code changes added through subtree of personal repo
@sauuyer sauuyer requested review from cooleyky and sbeaulieu January 27, 2026 17:54
@sauuyer sauuyer added the enhancement New feature or request label Jan 27, 2026
cooleyky
cooleyky previously approved these changes Feb 3, 2026
Copy link

@cooleyky cooleyky left a comment

Choose a reason for hiding this comment

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

Updates summarized in the PR look good. A future PR should include adding the .ipynb_checkpoints directory to .gitignore

Copy link

Choose a reason for hiding this comment

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

Updates to site tags and volume analyzed calculation worked as expected.

Copy link

Choose a reason for hiding this comment

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

Updates to volume analyzed calculation worked as expected.

sbeaulieu
sbeaulieu previously approved these changes Feb 3, 2026
"\n",
"# Create a column for volumeAnalyzed\n",
"discrete_IFCB_hdr_output['volumeAnalyzed'] = (discrete_IFCB_hdr_output['RunFastFactor'] * discrete_IFCB_hdr_output['runSampleFast_Int']) * discrete_IFCB_hdr_output['flowRate_mins'] * (discrete_IFCB_hdr_output['lookTime']/60)/5\n",
"#discrete_IFCB_hdr_output['volumeAnalyzed'] = (discrete_IFCB_hdr_output['RunFastFactor'] * discrete_IFCB_hdr_output['runSampleFast_Int']) * discrete_IFCB_hdr_output['flowRate_mins'] * (discrete_IFCB_hdr_output['lookTime']/60)/5\n",

Choose a reason for hiding this comment

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

confirmed with Sawyer in Slack that we no longer need the runSampleFast_Int variable

"## SyringeSampleVolume (this is usually 5 ml unless the sample time is cut short by the operator (usually for testing reasons)\n",
"base_flow_rate = 0.25\n",
"\n",
"discrete_IFCB_hdr_output['flowRate_mins'] = np.where(\n",

Choose a reason for hiding this comment

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

looks good

"## SyringeSampleVolume (this is usually 5 ml unless the sample time is cut short by the operator (usually for testing reasons)\n",
"base_flow_rate = 0.25\n",
"\n",
"underway_IFCB_hdr_output['flowRate_mins'] = np.where(\n",

Choose a reason for hiding this comment

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

looks good

" 'lat': [35.95, 36.175, 35.725, 35.95, 35.95, 35.95, 36.175, 35.725, 36.0536, 35.8514],\n",
" 'lon': [-75.125, -74.8267, -74.853, -75.125, -75.3333, -74.8457, -74.8267, -74.853, \n",
" -74.7776, -74.8482]\n",
" 'site': ['CP10CNSM;CP12CNSW', 'CP11NOSM;CP13NOPM', 'CP11SOSM;CP13SOPM', 'CP12WESW', 'CP13EAPM', \n",

Choose a reason for hiding this comment

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

looks good

@sauuyer sauuyer dismissed stale reviews from sbeaulieu and cooleyky via 3619aff February 3, 2026 20:00
@sauuyer sauuyer requested review from cooleyky and sbeaulieu February 3, 2026 20:02
Copy link

@cooleyky cooleyky left a comment

Choose a reason for hiding this comment

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

Looks good

*.py,cover
.hypothesis/
.pytest_cache/
.ipynb_checkpoints
Copy link

Choose a reason for hiding this comment

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

looks good

Copy link

Choose a reason for hiding this comment

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

updates look good

Copy link

Choose a reason for hiding this comment

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

updates to remove runSampleFast_Int look good.

Copy link

Choose a reason for hiding this comment

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

Looks good with runSampleFast_Int removed

"## syringeSamplingSpeed (usually 20 mins), SyringeSampleVolume (usually 5 ml)\n",
"underway_IFCB_output_with_calcs['flowRate_mins'] = underway_IFCB_output_with_calcs['SyringeSampleVolume'] / underway_IFCB_output_with_calcs['syringeSamplingSpeed']\n",
"\n",
"underway_IFCB_hdr_output_with_calcs['flowRate_mins'] = np.where(\n",

Choose a reason for hiding this comment

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

looks good

{
"cells": [
{
"cell_type": "code",

Choose a reason for hiding this comment

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

for next version perhaps consider adding markdown cell at top to describe that this one notebook combines the two notebooks "IFCB_Log-Underway_IFCB_Data_Processing.ipynb" and "Ship_Underway_Lat_and_Lon_Processing.ipynb"

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants