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
example.md: example.Rmd | |
./knit | |
example.ipynb: example.md | |
notedown example.md | sed 's/%%r/%%R/' > example.ipynb |
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
######################################################### | |
## Intro to Simulation - R/Stats Intro Series | |
## Designed by: Corey Chivers, 2013 | |
## Department of Biology, McGill University | |
######################################################### | |
##@ 0.1 @## | |
rm(list=ls()) # Housekeeping | |
#setwd('<my working directory>') # set working dir |
Hello Tommy here 👋
Hello World 👋
Hello WORLD 👋 New laptop! 😄
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
# outF = open("run_cumulusMX.sh", "w") | |
# line = “mono /home/pi/CumulusMX/CumulusMX.exe &” | |
# outF.write(line) | |
# outF.close() | |
import os | |
os.system("mono /home/pi/CumulusMX/CumulusMX.exe &") |
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
mono /home/pi/CumulusMX/CumulusMX.exe & |
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
""" | |
Mask xarray dataset using a shapefile [closed] | |
https://stackoverflow.com/a/64587946/9940782 | |
""" | |
from typing import Tuple | |
import geopandas as gpd | |
import xarray as xr | |
import rasterio as rio | |
from pathlib import Path | |
import numpy as np |
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
# environment_rioxarray.sh | |
conda create -n rioxarray --yes | |
conda activate rioxarray | |
conda install -c conda-forge geopandas --yes | |
conda install -c conda-forge rioxarray rasterio --yes | |
conda install -c conda-forge matplotlib tqdm jupyterlab ipython pip ruamel.yaml xarray descartes statsmodels scikit-learn black mypy --yes | |
# test it has worked | |
ipython -c "import geopandas; import rioxarray; import xarray" |
OlderNewer