Skip to content

Instantly share code, notes, and snippets.

View deeplycloudy's full-sized avatar

Eric Bruning deeplycloudy

  • Lubbock, TX
View GitHub Profile
@deeplycloudy
deeplycloudy / get_dois.sh
Created June 1, 2021 22:26
DOI URLs scraped from webpages
# Here’s the URL to a journal’s search results page for papers from the Geostationary Lightning Mapper that
# were published from 2018-2021. There are several pages of results; below is an example of the third and final URL
# Download the webpage. Do this for each page of the search results, changing the URL and output filename:
curl "https://journals.ametsoc.org/search?access_0=all&fromDate=2018&page=3&pageSize=50&q1=geostationary+lightning+mapper&sort=relevance&toDate=2021" > page3dois.txt
# Then concatenate all three files, and save out just the DOIs linked on each page.
cat page[1-3]dois.txt | grep -Eoi '<a [^>]+>' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@deeplycloudy
deeplycloudy / cartopy_feature_distance.py
Created November 19, 2021 23:22
Distance from Cartopy feature polygon
import cartopy.feature as cfeature
import pyproj
from shapely.geometry import Point
from shapely.ops import transform as shapely_transform
# Some location of interest. Also used as center of projection.
wgs84_pt = Point(-72.2495, 43.886)
# Set up projections
@deeplycloudy
deeplycloudy / 20220809-1000Z-GLM-Wisconsin-non-lightning-events.ipynb
Last active August 9, 2022 18:26
20220809-1000Z-GLM-Wisconsin-non-lightning-events
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@deeplycloudy
deeplycloudy / gist:a13b198d2660f0b30bf7c3994a07b3e6
Created September 7, 2023 16:08
Windows doesn't like this conda environment
name: atmo5331
channels:
- conda-forge
dependencies:
- python
- jupyterlab
- numpy
- scipy
- pandas
- xarray