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…
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.
On your local machine, make an RSA key using the following command:
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…
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.
jupyterlab_templates packages via
pip install jupyterlab_templates
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
Create a directory where you will store your notebooks. …
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.
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.
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 by pasting…
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.
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 .
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…
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. …
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…