Skip to content

Instantly share code, notes, and snippets.

View ccarouge's full-sized avatar

Claire Carouge ccarouge

View GitHub Profile
@ccarouge
ccarouge / gist:c5401a281ff2894202ef
Last active September 18, 2015 04:56
Using HERE documents with qsub
#!/bin/bash
module load intel-fc/15.0.3.187
module load intel-cc/15.0.3.187
module load openmpi/1.8.8
module load netcdf/4.3.3.1
export WRFIO_NCD_LARGE_FILE_SUPPORT=1
./configure
#from netCDF4 import Dataset
import xarray
from scipy.stats import norm
import numpy as np
import matplotlib.pyplot as plt
list_indices = ['tasmax']
indices = list_indices[0]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ccarouge
ccarouge / mrsos.ipynb
Created May 20, 2019 03:32
mrsos skewness
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def least_sq_correlation(da, test):
"""
Calculate the least squares correlation against multiple
locations simultaneously
Args:
da (xarray.DataArray): Input data field
test: 1D Timeseries to test all locations against
Returns:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ccarouge
ccarouge / First try.ipynb
Last active July 25, 2019 01:55
Correlation and p-value between 2 arrays of 3 dimensions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.