Add the Labrador Current retroflection index (Jutras et al. 2023) - #2
Merged
Conversation
Jutras et al. publish their index as source data with the paper, so this
fetches the authors' own values rather than reimplementing them. It
joins the existing catalog as LCR alongside NAO, AO, AMO, and PDO.
It is the odd one out among them and often the more directly useful: the
other four are atmospheric patterns, while this describes a current -
how much of the Labrador Current turns east at the Grand Banks instead
of continuing along the shelf, and so how much cold, fresh,
oxygen-rich water reaches the Scotian Shelf and Gulf of Maine. For shelf
water properties that is a shorter causal chain than the NAO.
Being the output of one study rather than an operational product, it
carries a citation that travels with it: a new `reference` field on the
catalog entry, surfaced by index_dictionary() both as a column and in
its printed output, and repeated in the fetch_climate_index() docs and
the README. The NOAA indices have no single paper to point at, so their
reference is NA rather than invented.
Two format details, both established from the file rather than assumed:
- The dates are decimal years on a fixed 365-day year. The step
between rows is 1/365 to eleven significant figures; reading them as
365.25 would walk the derived dates off by several days across the
record and move values into neighbouring months.
- Daily values are averaged to monthly, since every other index here
is monthly and attach_climate_index() joins on year and month. The
underlying index is already 12-month smoothed, so little is lost.
Months backed by fewer than half their days are dropped. The 365-day
convention rolls the final record into a January of its own, which would
otherwise appear as a confident-looking January 2015 value resting on a
single day - the failure mode min_coverage guards against elsewhere.
Verified against the live file: 260 monthly values, May 1993 to December
2014, attaching correctly to observations.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
Adds
LCRto the climate index catalog, alongsideNAO,AO,AMO, andPDO.Why this is in datamatch and not derivoce
The first instinct was derivoce, since the index is defined by Lagrangian particle tracking and derivoce already does FTLE/FSLE over the same velocity fields. But Jutras et al. publish the computed index as source data with the paper, so this fetches the authors' own values rather than reimplementing them — which makes it a catalog entry, exactly the thing
fetch_climate_index()already does.Recomputation would still belong in derivoce, and is only needed to extend the record past 2014. For scale: 966 particles per release, weekly from 1993 to 2015, each tracked 3 years at a 10-minute step, via OceanParcels.
Why it is worth having
The other four indices are atmospheric patterns. This one describes a current — how much of the Labrador Current turns east at the Grand Banks instead of continuing along the shelf, and so how much cold, fresh, oxygen-rich water reaches the Scotian Shelf and Gulf of Maine. For shelf water properties that is a shorter causal chain than the NAO.
Citation
It is the output of one study rather than an operational product, so the citation travels with it: a new
referencefield on the catalog entry, surfaced byindex_dictionary()as both a column and printed output, and repeated in thefetch_climate_index()docs and the README.The NOAA indices have no single paper to point at, so their
referenceisNArather than invented.Format details, established from the file rather than assumed
attach_climate_index()joins on year and month. The underlying index is already 12-month smoothed, so little is lost.min_coverageguards against elsewhere in the package.One thing I did not do: the Methods describe normalizing the index to [-1, 1], but the published Figure 3 source data spans -0.089 to 0.175. The docs describe what the file actually contains rather than restating the Methods.
Verification
R CMD check— Status: OK, no errors, warnings, or notes.Note: repo CI could not run — GitHub's hosted runners have been failing at "Set up job" and queueing 2h+. Verification above is local.
🤖 Generated with Claude Code