#!/usr/bin/env python
import cdsapi
import calendar
import os
# Time of dataset
year_start = 2015
year_end = 2020
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 GEE as gee | |
from GEElt.collections import MODISVImerge, reduceAnomaly, getTime, sequentialMap | |
from GEElt.ts import ts_extract | |
from GEElt.resources import * | |
from GEElt.colorbrewer import * | |
from geetools import bitreader | |
import numpy as np |
Command | Shortcut |
---|---|
Python: Go to Next Cell | Ctrl+Alt+] |
Python: Go to Previous Cell | Ctrl+Alt+[ |
Python: Change Cell to Code | Ctrl+; C |
Python: Change Cell to Markdown | Ctrl+; M |
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
alias cp='cp -i' | |
alias mv='mv -i' | |
alias rm='rm -iv' | |
alias mkdir='mkdir -p' | |
alias ps='ps auxf' | |
alias ..='cd ..' | |
alias ...='cd ../..' | |
alias ....='cd ../../..' |
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
# From https://stackoverflow.com/questions/41487642/how-to-export-contours-created-in-scikit-image-find-contours-to-shapefile-or-geo | |
import rasterio as rio | |
flpth = '/Users/seb/Documents/Codes/VolcGIS/volcanoes/Agung/_hazard/Tephra/Agung_VEI3_P5.tif' | |
schema = {"geometry": "Polygon", "properties": {"value": "int"}} | |
maskVal = 1000 | |
with rio.open(flpth) as src: |