Skip to content

Instantly share code, notes, and snippets.

View barronh's full-sized avatar

Barron H. Henderson barronh

View GitHub Profile
@barronh
barronh / earthjsonfromwrf.py
Last active April 25, 2024 00:11
Creates a json in the format required by earth[1] from Weather Research and Forecasting (WRF) outputs.
from __future__ import print_function, unicode_literals
import os
import json
import numpy as np
from netCDF4 import Dataset
import argparse
from argparse import RawDescriptionHelpFormatter
@barronh
barronh / cmaq2sat.py
Last active July 6, 2020 21:52
Convert CMAQ input/output to Satellite L3-like file
import os
import sys
import numpy as np
import PseudoNetCDF as pnc
if len(sys.argv) < 6:
print("""Usage: {} CONCPATH METCRO2D METCRO3D OUTPATH KEY [AverKern]
Description:
@barronh
barronh / geopandasobsmap.ipynb
Last active September 29, 2022 18:31
GeoPandasObsMap.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@barronh
barronh / pseudonetcdfcmaq.ipynb
Created May 21, 2020 10:33
PseudoNetCDFCMAQ.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@barronh
barronh / csv2camxemis.ipynb
Last active March 8, 2022 20:35
CSV2CAMxEMIS.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@barronh
barronh / cmaq_ozone_evaluation.ipynb
Last active April 28, 2022 16:51
CMAQ_Ozone_Evaluation.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@barronh
barronh / betr_py3.patch
Last active January 13, 2021 20:13
Patch necessary to update BETR-Global from Python2 to Python3
This patch can be used to update the folder dowloaded from
https://sourceforge.net/projects/betrs/files/BETR-Research-1.0.tar.gz/download.
The original file is Python2 compliant. After the patch, the tutorial works on
Google Colab using Python3.
diff -ru BETR-Global/BETRS.py BETR-Global3/BETRS.py
--- BETR-Global/BETRS.py 2010-09-28 03:03:24.000000000 +0000
+++ BETR-Global3/BETRS.py 2021-01-13 18:33:01.000000000 +0000
@@ -23,8 +23,9 @@
from numpy import *
import sys
@barronh
barronh / AQS_API.ipynb
Created March 12, 2021 16:45
Python AQS API Example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@barronh
barronh / goes16_custom.ipynb
Last active May 8, 2023 17:37
GOES16_AOD_and_TrueColor.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@barronh
barronh / MICS.ipynb
Last active March 17, 2023 17:48
MICS to CMAQ
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.