Skip to content

Instantly share code, notes, and snippets.

View rileyhales's full-sized avatar
💧
Focusing

Riley Hales rileyhales

💧
Focusing
View GitHub Profile
@rileyhales
rileyhales / grids-gist-demo.ipynb
Last active September 7, 2023 21:59
Grids Gist Demo.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"""
Convert Acoustic Dopler Velocimeter Vf files to csv and xlsx
Author: Riley Hales
"""
# openpyxl is only necessary if you're exporting to excel
# ! pip install pandas openpyxl
import pandas as pd
import glob
import os
@rileyhales
rileyhales / ceen-534-nwm-homework.ipynb
Last active April 30, 2021 23:14
CEEN 534 NWM homework.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rileyhales
rileyhales / 534_geoglows_inclassactivity.ipynb
Last active April 8, 2021 18:52
534_geoglows_homework.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rileyhales
rileyhales / geoglows_package_tutorial.ipynb
Last active April 19, 2024 08:38
geoglows_package_tutorial.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rileyhales
rileyhales / geoglows_bias_correction.ipynb
Created April 7, 2021 16:35
geoglows_bias_correction
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rileyhales
rileyhales / geoglows_latlon_values.ipynb
Last active April 7, 2021 16:52
geoglows_latlon_values
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rileyhales
rileyhales / geoglows_harvest_data_and_graphs.ipynb
Last active August 12, 2021 21:11
geoglows_harvest_data_and_graphs.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rileyhales
rileyhales / streamflow-predictor.ipynb
Last active December 3, 2021 20:25
Streamflow Predictor
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rileyhales
rileyhales / convert_nc_to_parquet.py
Last active August 28, 2022 18:41
Download hourly NWM retrospective data and convert to daily average
# Convert the daily netcdfs to parquet for more compression and faster
import pandas as pd
import netCDF4 as nc
import glob
from natsort import natsorted
import numpy as np
import os
import datetime