Skip to content

Instantly share code, notes, and snippets.

@dahoal
dahoal / dev.find_fd.py
Created July 17, 2020 04:00
detect flash drought events and their length
import matplotlib.pyplot as plt
import xarray as xr
import tempfile
import dask
import regionmask
import os
import numpy as np
from glob import glob
import pandas as pd
@dahoal
dahoal / AWRA_SPI.py
Last active July 9, 2020 01:58
calculate index with dask
#===================================== job script ================================================
#!/bin/bash
#PBS -N spi
#PBS -P w35
#PBS -q normal
#PBS -l walltime=05:00:00
#PBS -l mem=190GB
#PBS -l ncpus=10
#PBS -l storage=gdata/w35+gdata/hh5+gdata/rr8
#PBS -l jobfs=100GB