Skip to content

Instantly share code, notes, and snippets.

View rokuingh's full-sized avatar
🎯
Focusing

Ryan O'Kuinghttons rokuingh

🎯
Focusing
  • Earth System Modeling Framework (ESMF) at the National Center for Atmospheric Research (NCAR)
  • BC
  • 07:34 (UTC -07:00)
View GitHub Profile
@rokuingh
rokuingh / GridCellArea.ipynb
Created November 7, 2017 21:35
Retrieving Grid cell areas via Field
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rokuingh
rokuingh / Periodic.ipynb
Created November 7, 2017 21:35
Bilinear regridding with periodic Grids
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rokuingh
rokuingh / ungridded_dimension_regrid.py
Created March 4, 2016 19:23
Regridding with ungridded dimensions using 2D interpolant
# This example demonstrates how to regrid a field with extra dimensions,
# such as time and vertical layers.
# 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
@rokuingh
rokuingh / hycom_roms_regrid.py
Created November 19, 2015 14:43
Example of how to use ESMPy to regrid HYCOM data to a ROMS grid
# This example demonstrates how to regrid from hycom to roms
import os
import ESMF
# This call enables debug logging
ESMF.Manager(debug=True)
# set up file paths
DATADIR = os.path.join(os.getcwd(), "/Users/ryan.okuinghttons/sandbox/esmf_dev/user_codes/3613852")