ocean-tracking-network / otn-workshop-base

OTN's core suite of workshop curricula
https://ocean-tracking-network.github.io/otn-workshop-base/
Other
4 stars 12 forks source link

Day-2 code: make node agnostic #34

Open CaitlinBate opened 2 years ago

CaitlinBate commented 2 years ago

ensure all the day 2 code works for

most of these are done and can be checked off

changes need to work for

changes need to appear in:

. no time urgency here.

jackVanish commented 1 year ago

I'll settle in and get started on this now.

jackVanish commented 1 year ago

One thing while I'm working on this, I don't think gh-pages has a code folder anymore? IIRC we got rid of it so that we only had to maintain the code in one place (master).

jackVanish commented 1 year ago

Had to go do some Remora stuff but I'm noting down a couple of things I encountered and will need to fix here, for posterity or in case someone wants to check them out before I do.

jackVanish commented 1 year ago

act_bubbles_by_array The above comment deals with stuff that was in the ATT section, which has since been removed. GLATOS ACT code seems to work fine but the bubble plot by arrays at the very end seems to show some arrays inland. Can someone have a look and verify that all is well?

jackVanish commented 1 year ago

A couple of notes regarding FACT version of the code.

  1. The alternative method for getting the polygon to plot against (included below) breaks on the readRDS line: #Alternative method of getting the polygon. f <- 'http://biogeo.ucdavis.edu/data/gadm3.6/Rsp/gadm36_USA_1_sp.rds' b <- basename(f) download.file(f, b, mode="wb", method="curl") USA <- readRDS('gadm36_USA_1_sp.rds') FL <- USA[USA$NAME_1=="Florida",]

  2. The FACT version lacks the bubble by array plot, which produces the wonky output above in ACT. After a brief chat with Jon I'm wondering if we want to still include bubble plot by array in the lesson. If so, let me know so that I can put it in there.

jdpye commented 1 year ago

my reasoning in that conversation: The by-array breakdown isn't terribly informative even when it indicates the different gates and their names, and after the cropping we've done by setting the map boundaries it might even be misleading.

The four or so lines of code you pasted in there for the polygon fetch and plot look like they've been smashed together. Assuming the third line starts with USA <- readRDS(.... and that's the one that died?

jackVanish commented 1 year ago

There is now a fresh Migramar lesson up that runs pretty well and seems to spit out information that makes sense. Have a look in the branch if you like https://github.com/ocean-tracking-network/otn-workshop-base/tree/day_2_node_agnostic

jdpye commented 1 year ago

almost got it. :D

https://github.com/ocean-tracking-network/otn-workshop-base/blob/df4ebbe21e6931e40bf65ffe228d3f5f1b4313be/code/day2/1_GlatosCode_MIGRAMAR.R#L210 still has the old lat/lon bounds from the ACT lesson

jackVanish commented 1 year ago

Made a standardized GLATOS code file so that gives us code for each of the four nodes. Next is to get the Actel stuff into a four-node spread, then updating all the lessons to make sure they are textually fine.

jdpye commented 1 year ago

The challenge of Actel is creating the groups of receivers that are 'locations', and the network diagram connecting the 'locations', for each of the regional example datasets.

CaitlinBate commented 1 year ago

glatos code comments:

jackVanish commented 1 year ago

OK, re the above notes:

1 & 3: fixed and committed 2 & 5: I can't say for sure, but I assume that they're missing on purpose. I'm not sure why, but if they're absent in both lessons and code it suggests that we chose not to include them back when we were originally knocking these together. At least, to me. 4: Yeah, GLATOS is using built-in stuff in those instances, I'm pretty sure.

  1. I don't remember if I tested them. I remember updating the text to fix the coordinates, and I may have run them in the process, but I don't specifically remember if I checked them.
CaitlinBate commented 1 year ago

summary: all glatos lessons are node agnostic now

todo: button up actel lessons for other nodes (exists for ACT already). @jackVanish can speak to the progress

CaitlinBate commented 10 months ago

summary: all glatos lessons are node agnostic now

todo: button up actel lessons for other nodes (exists for ACT already). @jackVanish can speak to the progress

current status: nodes we need to support, for which we have example data: ACT, FACT, GLATOS, Migramar, OTN (new!!)