Open CaitlinBate opened 2 years ago
I'll settle in and get started on this now.
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).
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.
tags <- prepare_tag_sheet('Tag_Metadata/Proj58_Metadata_cownoseray.xlsx', header_line = 5, sheet_name = 2)
full_dates
doesn't exist at that point. Thoughts? 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?
A couple of notes regarding FACT version of the code.
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",]
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.
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?
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
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
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.
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.
glatos code comments:
format
variable in step1 that doesnt exist in the gh-pages version. i think it can be removed from the R scipt tooOK, 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.
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
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!!)
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.