Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
# Script to evaluate small sample behavior of Weibull parameter MLEs -------- | |
library(fitdistrplus) | |
library(dplyr) | |
library(tidyr) | |
library(gridExtra) | |
library(parallel) | |
library(ggplot2) | |
library(viridis) |
This file contains 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
library(parallel) | |
# Create matrix to store result ------------------------------------------- | |
M <- 4 | |
N <- 6 | |
A <- matrix(0, nrow = M, ncol = N) | |
list <- list(3, 4, 6) | |
# Serial version ---------------------------------------------------------- |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
library(rgdal) | |
library(rgeos) | |
library(raster) | |
library(gdalUtils) | |
# gdalinfo("GFED40_MQ_199506_BA.hdf") | |
# sds <- get_subdatasets("GFED40_MQ_199506_BA.hdf") | |
# sds |
This file contains 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
library(RCurl) | |
# Fetching burn rasters --------------------------------------------------- | |
# get and read the file listing from the usgs server | |
prefix <- 'https://rmgsc.cr.usgs.gov/outgoing/baecv/BAECV_CONUS_v1_2017/' | |
download.file(prefix, destfile = 'listing.txt') | |
out <- readLines('listing.txt') | |
# now create paths to each tar.gz file by processing the html |
This file contains 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
# Importing data from USDA into large data file --------------------------- | |
library(stringr) | |
library(tidyverse) | |
convert_to_df <- function(file) { | |
# takes a text file as input and parses the file to generate a data.frame | |
lines <- readLines(file) | |
# identify blank lines which denote separate files |
This file contains 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
library(raster) | |
library(tidyverse) | |
library(lubridate) | |
library(mgcv) | |
# Boulder temperature prediction ------------------------------------------ | |
# Goal: use historical temperature data to predict the weather a week from today | |
# Fetch raw data from NOAA | |
data_url <- "https://www.esrl.noaa.gov/psd/boulder/data/boulderdaily.complete" |
This file contains 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
print("Hello, world!") |