Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manuscript #6

Open
SeascapeScience opened this issue Sep 20, 2024 · 10 comments
Open

manuscript #6

SeascapeScience opened this issue Sep 20, 2024 · 10 comments

Comments

@SeascapeScience
Copy link
Contributor

I'm toying with the idea I mentioned of drafting up a manuscript that answers some basic questions using these time series. Should I make a new directory "manuscript"... or would you organize differently?

@btupper
Copy link
Member

btupper commented Sep 20, 2024

Let's start with that - you are doing it in RMarkdown?

@SeascapeScience
Copy link
Contributor Author

I think we can do R markdown. I'll start with that.

@SeascapeScience
Copy link
Contributor Author

Okay, it's there as a markdown document. We can add coded figures as they get finalized.

@btupper
Copy link
Member

btupper commented Sep 20, 2024

FYI - there is a 'setup.R' to source. You may need to do it ala source("../setup.R") but we may need to experiment.

@SeascapeScience
Copy link
Contributor Author

@btupper Here is something we could use for the manuscript.

Q: Are populations increasing?

Answering requires multiple steps.

  1. Subdivide into regions. We could either do this as broad polygons (I'd suggest three: Georges Bank, Gulf of Maine, and Mid Atlantic), or we could break into something like 1-degree rectangles.
  2. Average the data for each species into these regions and convert resulting time series into monthly anomalies.
  3. Test each time series for statistically significant increase (we'll have to decide on a test-- there are lots of choices)
  4. Plot back on map for nice viz

Notes:

  • the data are probably log-normal, so we should use data on a log scale.
  • we could also look at something like proportion of presences

Anyway, I think this would be enough for the core of a fairly simple but valuable paper. Whenever you feel like tackling these figures, let me know if you have questions.

@btupper
Copy link
Member

btupper commented Feb 20, 2025

Yes, looks easy. I might use hexagons for this part since they tile into regional sub-groups easily, are easy to store and follow the shoreline nicely. But if that isn't appealing I can switch to a regular grid.

Log-scale abundance - roger that.

@SeascapeScience
Copy link
Contributor Author

Hexagons could be good. If they're too small, you might find not enough data to detect trends. When I did this with ecomon calanus data, I found 1 degree to be about the right size.

@btupper
Copy link
Member

btupper commented Feb 20, 2025

OK - I'll make them biggish. Iz good?

Image

@btupper
Copy link
Member

btupper commented Feb 22, 2025

This is a decadal anomaly series for total abundance (count/10m^2) as a departure from the full mean. Abundances are transformed with log1p(abundance) as the data are read form disk. We can show the color bar in 'real' unlogged units but it's probably not worrying about that until the end.

If you squint at, say SE of Yarmouth NS you'll see some empty bins. That surprised me as the bins were defined by ALL of the points, and presumably the total abundance will be non-NA in each cell. But, of course, I forgot that each mini-map is for a decade so not every cell gets a value in every decade. So we are good! Per species is next.

@SeascapeScience
Copy link
Contributor Author

Looks good. We also need to do anomalies off the climatology because the sampling is not the same across decades. In other words, the January mean should be subtracted from each January year (within each hexagon), and so on for Feb-Dec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants