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
## TEST AIMS temp parquet partition | |
## Each test will run n times | |
## return: vector of executing time for each run | |
## libraries | |
library(arrow) | |
library(dplyr) | |
library(lubridate) | |
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
graph TD | |
A[Project Leader] | |
B[fa:fa-code Dev Lead] | |
C[fa:fa-table Data Lead] | |
A0[Admin] | |
A --> B | |
A --> C | |
B --> D[fa:fa-cloud Cloud Eng] | |
B --> E[fa:fa-code DevOps] |
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
--- | |
title: "Cobertura de Algas en Isla Gorgona" | |
author: 'E. Klein' | |
date: "2021-08-20" | |
output: | |
html_document: | |
toc: TRUE | |
toc_float: TRUE | |
theme: united | |
highlight: tango |
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(robis) | |
## Define the Region of Interest | |
SMwkt <- "POLYGON ((-74.39941 11.21882, -74.29779 11.42349, -73.99292 11.46387, -73.89679 11.37772, -73.96271 11.24306, -74.15222 11.16493, | |
-74.33624 11.13259, -74.39941 11.21882))" | |
## Get the occurrence records for the ROI | |
SMocc <- occurrence(geometry = SMwkt) | |
## get the numero of different scientific names |
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(robis) | |
library(ggplot2) | |
library(forcats) | |
SMwkt <- "POLYGON ((-74.39941 11.21882, -74.29779 11.42349, -73.99292 11.46387, -73.89679 11.37772, -73.96271 11.24306, -74.15222 11.16493, | |
-74.33624 11.13259, -74.39941 11.21882))" | |
SMspp <- checklist(geometry = SMwkt) | |
## make table | |
taxaTBL <- table(SMspp$taxonRank) |
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
getAcumExposure = function(ts, tmin=27.5, tinc=1){ | |
## calculate accumulated exposure | |
## this version does not have gaps in temp bins | |
## ts is a times series of daily values | |
## tmin is the starint temp to accumulate | |
## tinc is the number of decimal places to round temperature | |
## removes NA's | |
ts = ts[!is.na(ts)] | |
ts = ts[ts>=tmin] |
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
import warnings | |
warnings.filterwarnings('ignore') | |
import json | |
import requests | |
import numpy as np | |
import prettytable | |
from sparklines import sparklines | |
def WSsummary(site): |
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
## Get AIMS weather Station ID, name and metadata record link | |
import json | |
import requests | |
import prettytable | |
AIMSurl = "https://api.aims.gov.au/weather/latestreadings" | |
WSjson = json.loads(requests.get(AIMSurl).text) | |
tbl = prettytable.PrettyTable(['Station Name', "Station ID", "Metadata url"]) | |
for station in range(len(WSjson)): |
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
import json | |
import requests | |
import prettytable | |
## get the latest data using AIMS WS wer service | |
AIMSurl = "https://api.aims.gov.au/weather/latestreadings" | |
WSjson = json.loads(requests.get(AIMSurl).text) | |
## print the online status of each of the stations |