Repository navigation
Environment: offshore chlorophyll-a around Moorea (#23) - #138
Merged
Merged
Conversation
Weekly NOAA S-NPP VIIRS science-quality chlorophyll-a (4 km, NOAA STAR and CoastWatch ERDDAP) as a productivity proxy. Pixels beside the island read tens of times the open ocean, so each week is the median of an offshore ring: ocean pixels within 30 km of Moorea's centre and at least 10 km from any land or coastal pixel (no value in more than half the weeks), Tahiti's included. - fetch-external.mjs --only=chlorophyll writes external/chlorophyll-weekly.csv - chlorophyll_weekly table and sets.chl (week holding the set date); IMPORTER_VERSION 9 - /ocean: Ocean colour section (weekly series, seasonal cycle) and chlorophyll vs catch rate per season, with the set-by-set adjusted test - chl joins the /drivers variables; sources credited on /about and the footer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #23.
What. Weekly chlorophyll-a offshore of Mo'orea as a productivity proxy. The source is NOAA S-NPP VIIRS science-quality weekly composites (4 km), from NOAA STAR and CoastWatch ERDDAP. It runs from 2012 to the present on a single sensor, so the whole study period is on one calibration.
The offshore ring. Pixels touching the island read 1–2 mg/m³, against about 0.05 mg/m³ in the open ocean. They are contaminated by land in the pixel, the lagoon floor showing through, and haze. So each week is the median of an offshore ring:
A land or coastal pixel is one with no value in more than half the weeks. "Never valid" missed most of Mo'orea, because coastal pixels do get a value now and then. Weeks with fewer than 10 cloud-free ring pixels are left blank. The job throws if the ring shrinks below 40 pixels, so an upstream grid change fails the weekly refresh instead of quietly moving the ring.
Changes
fetch-external.mjs --only=chlorophyllwritesexternal/chlorophyll-weekly.csv: 671 weeks, 641 with a value. The weekly refresh picks it up automatically.chlorophyll_weeklytable, andsets.chlholds the value for the week containing the set date.IMPORTER_VERSIONgoes to 9.chlis added to the /drivers variables.A result worth a look. Seasons with greener offshore water had lower catch rates.
For comparison, SST drops to p = 0.88 in the same model, because SST is the calendar. Season is left out of the set-by-set adjustment, because chlorophyll varies mostly between seasons. The page presents this as a lead to test, not a cause, and adds no finding card. I've asked Jodie on #23 whether it deserves one.
Checks
pnpm lint,pnpm checkandpnpm testall pass. A new import test checks the ring values stay open-ocean and that sets join to the right week.🤖 Generated with Claude Code