Skip to content

Instantly share code, notes, and snippets.

View mjharriso's full-sized avatar

Matthew Harrison mjharriso

  • Princeton, NJ, USA
View GitHub Profile

I hereby claim:

  • I am mjharriso on github.
  • I am mharrison7af (https://keybase.io/mharrison7af) on keybase.
  • I have a public key ASAMLM077ncdADOFlnv6DahDmTmZgiqm3ClM0WpXt3YPMgo

To claim this, I am signing this object:

{

Keybase proof

I hereby claim:

  • I am mjharriso on github.
  • I am mharrison7af (https://keybase.io/mharrison7af) on keybase.
  • I have a public key ASAMLM077ncdADOFlnv6DahDmTmZgiqm3ClM0WpXt3YPMgo

To claim this, I am signing this object:

@mjharriso
mjharriso / basemap_ortho_merra.py
Created October 17, 2016 18:32
Reanalysis on ortho projection using Basemap and MIDAS
from midas.rectgrid import *
import numpy as np
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
tlev=184
grid=quadmesh(path='swdn_merra_2014.nc',var='swdn',cyclic=True)
map=Basemap(projection='ortho',lat_0=-45,lon_0=-100,resolution='l')
x,y=map(grid.x_T,grid.y_T)
S=state('swdn_merra_2014.nc',grid=grid,fields=['swdn'],time_indices=np.arange(tlev,tlev+1))