Encourage electric vehicle charger projects in your community

Electric vehicle (EV) adoption among one in five Americans living in rural communities is integral to a clean energy future. Everything is trending in the right direction. EV prices are dropping as battery technology improves and maintenance costs are lower than gas-power cars. Automakers are committing to wholly transition to EVs in the next 10–15 years and companies such as GM are partnering with experts to significantly drive down battery costs.

However, comprehensive electric vehicle adoption won’t happen until it’s viable for everyone across the country. 3.3 million Americans face a round trip commute of over 100 miles. Thus they…

Quick tutorial

Keep your momentum going with ssh-keygen

All of my work is done on a remote computer, which would normally require me to enter my password multiple times throughout the day. This small task can be avoided.

In this post, I will describe how to set up keyless entry into a server so you don’t have to type a password each time you log in or scp a file. I will also describe how to remote copy a file through a bastion server without entering a password and how to schedule remote backups.

0. Set up keyless entry

On your local machine, make an RSA key using the following command:



As electric vehicles are adopted the gas tax needs to evolve

Beginning in 2022, an electric version of the Ford F-series, the top-selling vehicle among Americans, goes on the market. An increasing number of automakers, such as GM and Nissan, are committing to transition their fleet into electric vehicles (EVs) in the next 10–15 years. Although EVs only accounted for 2% of the U.S. auto market in recent years, the number registered has tripled in only four years. I’m using the term EV loosely to mean battery electric (BEV) or plug-in hybrid electric vehicles (PHEV).

Some states, including California, New Jersey, and Massachusetts, and some European countries are beginning to phase…

A better solution than copy-and-paste

I spend most of my day working in JupyterLab and each notebook I create tends to have a similar structure. Instead of copy and pasting notebooks, the JupyterLab Templates extension is a solution that allows you to create notebooks you can reuse.

This short post will outline how to install and set up this extension.


Install the jupyterlab_templates packages via pip:

pip install jupyterlab_templates

then install

jupyter labextension install jupyterlab_templates

and enable the extension

jupyter serverextension enable --py jupyterlab_templates

Now we just need to set up the template directory

Set up a template directory

Create a directory where you will store your notebooks. …

Defining a dataset from scratch

Xarray is an open-source Python package for working with labeled multi-dimensional datasets. It is indispensable when working with NetCDF formatted data, which is common in the Earth science community.

Opening a NetCDF file with xarray is straightforward.

ds = xr.open_dataset("/path/to/file.nc")

However, creating a xarray object that you can save to a NetCDF file requires a little more work. In this post, I will go over how to do just that. I will first go over how to convert a pandas DataFrame to a xarray Dataset and then go over how to create a dataset from scratch.

Table of contents

· 1. Pandas DataFrame…

Configuring alacritty, tmux, and zsh for a minimalist setup

Terminal setup

My terminal setup is very minimal. It is a black box that tells me some useful information. The best part is everything aspect has a configuration file — even the terminal emulator.

In this article, I will describe this setup that is ideal for minimalists.

Table of Contents

· Shell setup: zsh
· Terminal setup: alacritty
· Multiplexor setup: tmux
· Final thoughts

1. Shell setup: zsh

I recently switched to zsh solely because it is now the default on macOS. I fell in love with how easy it is to make a beautiful and informative prompt with Oh My Zsh.

Install Oh My Zsh

Install Oh My Zsh by pasting…

What explains the 1940–1975 cooling trend?

In one of my first articles, I addressed the change in ice cover observed on lakes as a result of a warming climate. In response to that article, I received a disparaging email claiming that scientists can’t make up their minds, and once thought the planet was cooling and heading into an ice age.

Since this isn’t the first time I have heard, “scientists changed their minds”, I thought it was important to explain what actually happened during this time to try and dispel this myth.

The global temperature was declining from 1940–1975 (Figure 1); this is a fact. The…

Forget the science, focus on what matters

I have found addressing the evidence for climate change with the general public to be very challenging. Especially given the growing evidence that science comprehension is not an indicator that the public will be concerned [1].

The science backing up human-caused climate change is easy to understand. Yet some people dismiss the idea, regardless of the amount and type of evidence I present. The reason boils down to one thing: they perceive someone else as more trustworthy than I. Psychology has shown us that political affiliation turns out to be the strongest indicator of a person’s “belief” in climate change…

Examples with pandas, NumPy, Xarray, and lists

Dog carrying large branch in its mouth

I often work with data that is too big to fit into memory, which can be an issue if you need all the data to calculate the average. I run into this problem often when working with large ensemble models, which can be tens or sometimes hundreds of gigabytes of data. One tool that has greatly improved my productivity and allowed me to efficiently work with such large datasets in Python is Dask.

This article is meant to showcase how Dask can be used to improve scalability by “chunking” your data before analyzing it. …

How to use the Zenodo REST API to upload data with Python

Published data should be FAIR: Findable, Accessible, Interoperable, and Reusable. Data repositories, such as Zenodo, help ensure research projects are FAIR.

Zenodo is a free platform that allows anyone to upload and store data, making it searchable and providing a digital object identifier (DOI). Uploading small files from your local computer is easy with the drag-and-drop feature on the webpage. But if the files are large and on a remote computer then you need to use Zenodo REST API.

This post describes how to interact with your Zenodo account using the API via Python so you can create projects and…

Luke Gloege, Ph.D.

Climate scientist @ Columbia University. Studying the global carbon cycle. Scientist | Programmer | Dog dad

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store