Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{"lastUpload":"2020-10-09T16:17:26.309Z","extensionVersion":"v3.4.3"} |
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
/* | |
Fit a GEV distribution in stan | |
Code is largely based on previous code by | |
Cameron Bracken: http://bechtel.colorado.edu/~bracken/tutorials/stan/ | |
and Yenan Wu: http://discourse.mc-stan.org/t/troubles-in-rejecting-initial-value/1827 | |
*/ | |
functions{ | |
real gev_lpdf(vector y, real mu, real sigma, real xi) { | |
vector[rows(y)] z; | |
vector[rows(y)] lp; |
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
READ_GHCN_dly <- function(filename){ | |
require(data.table) | |
require(readr) | |
require(magrittr) | |
require(stringr) | |
require(lubridate) | |
# filename implies that the location of the file is already known | |
# if not, use the station ID to get the filename: | |
# filename <- paste0('http://www1.ncdc.noaa.gov/pub/data/ghcn/daily/all/', stn, '.dly') | |
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
--- | |
title: "Sea Ice" | |
output: | |
html_document: default | |
html_notebook: default | |
--- | |
First load up any relevant packages. | |
This script uses the `pacman` package to make sure any required packages are ready to go -- it's a nice tool. |