Skip to content

Instantly share code, notes, and snippets.

View scollis's full-sized avatar
🎯
Focusing

Scott Collis scollis

🎯
Focusing
View GitHub Profile
@scollis
scollis / plotLidar.py
Created December 10, 2022 19:11
quick ingest and plot of HALO LiDAR
import numpy as np
from netCDF4 import Dataset
import os
import datetime
import xarray as xr
import pandas as pd
import matplotlib.dates as mdates
import matplotlib.dates as mdates
from matplotlib import pyplot as plt
from matplotlib.colors import LogNorm
@scollis
scollis / hrrr_best_explore.ipynb
Created July 14, 2022 15:13 — forked from rsignell-usgs/hrrr_best_explore.ipynb
hrrr_best_explore.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@scollis
scollis / getandplotgridsat.py
Created May 8, 2020 18:41
Quick and dirty plot of GridSat using XArray
import cartopy.crs as ccrs
import matplotlib.pyplot as plt
import xarray as xr
import cartopy.feature as cfeature
import matplotlib.ticker as mticker
import urllib
import tempfile
url1 = "https://www.ncei.noaa.gov/thredds/fileServer/satellite/gridsat-goes-conus/2011/04/GridSat-CONUS.goes13.2011.04.25.0915.v01.nc"
(testenv) scollis@stomp:~/pyart/continuous_integration$ conda install -c conda-forge matplotlib=3.0.2
Solving environment: /done
## Package Plan ##
environment location: /homes/scollis/miniconda3/envs/testenv
added / updated specs:
- matplotlib=3.0.2
(testenv) scollis@stomp:~/pyart/continuous_integration$ conda install -c conda-forge matplotlib=3.0.2
Solving environment: /done
## Package Plan ##
environment location: /homes/scollis/miniconda3/envs/testenv
added / updated specs:
- matplotlib=3.0.2
scollis@stomp:~$ conda update conda
Solving environment: done
## Package Plan ##
environment location: /homes/scollis/miniconda3
added / updated specs:
- conda
#!/usr/bin/env bash
#Code adapted from https://gist.github.com/yangj1e/3641843c758201ebbc6c (Modified to Python3.5)
cd ~
#wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda2-2.4.0-Linux-x86_64.sh
wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda3-2.4.1-Linux-x86_64.sh
bash Anaconda3-2.4.1-Linux-x86_64.sh -b
echo 'PATH="/home/ubuntu/anaconda3/bin:$PATH"' >> .bashrc
. .bashrc
import sys
sys.path.append('/Users/scollis/src/')
from pv_atmos.basic import *
from pv_atmos.grids import *
import numpy as np
mm = np.linspace(-120,120,13)
zz = np.linspace(0,18, 5)
bounds=[mm.min(), mm.max(), mm.min(), mm.max(), zz.min(), zz.max()]
import sys
sys.path.append('/Users/scollis/src/')
from pv_atmos.basic import *
from pv_atmos.grids import *
import numpy as np
mm = np.linspace(-120,120,13)
zz = np.linspace(0,18, 5)
bounds=[mm.min(), mm.max(), mm.min(), mm.max(), zz.min(), zz.max()]