+ Which conditions did fieldwork sample?
+
+ The weather on the {plural(data.nights, 'night')} with a gillnet set, against every day of the same
+ {plural(data.months, 'month')} ({month(data.first)} to {month(data.last)}). Months with more
+ fieldwork count for more, so the comparison isn't just wet season against dry. The weather and
+ sea temperature are one series for the whole island, so a night counts once however many
+ nurseries were netted.
+
+
+ The reference includes the fieldwork nights themselves. A difference shows which conditions the
+ data covers; it doesn't say why a trip went ahead or how the sharks responded.
+
+ {#if data.nights}
+
+ {#each data.metrics as m (m.key)}
+
+ {#if m.rows.length}
+ r.bin)}
+ series={[
+ {
+ name: 'Fieldwork nights',
+ color: 'var(--series-1)',
+ values: m.rows.map((r) => r.sampledPct)
+ },
+ {
+ name: 'All days, same months',
+ color: 'var(--muted)',
+ values: m.rows.map((r) => r.referencePct)
+ }
+ ]}
+ yLabel="Share (%)"
+ valueFormat={(v) => `${num(v, v < 10 ? 1 : 0)}%`}
+ />
+ {:else}
+ No values for the fieldwork nights.
+ {/if}
+
+ {/each}
+
+ {:else}
+ No nursery gillnet sets to compare.
+ {/if}
+
diff --git a/src/lib/server/analytics/samplingConditions.test.ts b/src/lib/server/analytics/samplingConditions.test.ts
new file mode 100644
index 0000000..711f843
--- /dev/null
+++ b/src/lib/server/analytics/samplingConditions.test.ts
@@ -0,0 +1,115 @@
+import { expect, it } from 'vitest';
+import type { Dataset } from '../data';
+import { samplingConditions } from './samplingConditions';
+
+type D = Pick