Skip to content

Instantly share code, notes, and snippets.

View JiaweiZhuang's full-sized avatar
😈
working hard

Jiawei Zhuang JiaweiZhuang

😈
working hard
View GitHub Profile
@JiaweiZhuang
JiaweiZhuang / cubed_sphere_to_mesh_regrid.py
Created June 19, 2018 19:42
ESMPy cubed-sphere regridding (from src/addon/ESMPy/examples/cubed_sphere_to_mesh_regrid.py in ESMF source code)
# This example demonstrates how to regrid between a cubed sphere Grid and a Mesh.
# The data files can be retrieved from the ESMF data repository by uncommenting the
# following block of code:
#
# import os
# DD = os.path.join(os.getcwd(), "examples/data")
# if not os.path.isdir(DD):
# os.makedirs(DD)
# from ESMF.util.cache_data import cache_data_file
# cache_data_file(os.path.join(DD, "mpas_uniform_10242_dual_counterclockwise.nc"))
@JiaweiZhuang
JiaweiZhuang / CMIP5-MakeFigs-GC.ipynb
Created June 15, 2018 11:21 — forked from naomi-henderson/CMIP5-MakeFigs-GC.ipynb
Same notebook on pangeo.pydata.org
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JiaweiZhuang
JiaweiZhuang / CMIP5-MakeFigs.ipynb
Created June 15, 2018 11:21 — forked from naomi-henderson/CMIP5-MakeFigs.ipynb
CMIP5 multi-model stats notebook from my home linux box
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JiaweiZhuang
JiaweiZhuang / NetCDF_vs_zarr.ipynb
Created April 30, 2018 21:27
I/O comparison of NetCDF and Zarr, using NASA-NEX data
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JiaweiZhuang
JiaweiZhuang / metamodelling.ipynb
Created April 28, 2018 20:55
Performance of different ML algorithms for fitting functions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JiaweiZhuang
JiaweiZhuang / parallel_linregress.ipynb
Created April 25, 2018 22:24
# Parallelizing linear regression (across extra dimension) with Numba and dask
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JiaweiZhuang
JiaweiZhuang / sensitivity_matrix_saprc99.ipynb
Created April 9, 2018 03:17
Sensitivity Matrix for saprc 99 chemical mechanism, plotted interactively with Plotly
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JiaweiZhuang
JiaweiZhuang / nn_performance_py_fortran.ipynb
Created April 4, 2018 03:22
Benchmark NN forward path, numpy vs Pytorch vs Fortran
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JiaweiZhuang
JiaweiZhuang / interactive_plot.ipynb
Created April 3, 2018 03:00
xarray interactive plot
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JiaweiZhuang
JiaweiZhuang / cartopy-plot.ipynb
Created March 19, 2018 23:11
cartopy imshow examples
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.