Cleaning Berkeley Earth’s BEST Gridded Daily Temperature Data

You may have recently seen air quality maps produced by the Berkeley Earth group, especially in the wake of the horrific Camp Fire whose death toll now exceeds 80. For example, here's their real-time visualization of PM2.5 concentrations. For several years, the Berkeley Earth team had primarily worked on producing gridded weather datasets with solid … Continue reading Cleaning Berkeley Earth’s BEST Gridded Daily Temperature Data

Bounding Boxes for All US States

Sometimes you come across an API that requires bounding box coordinates to subset your query, but which doesn't offer an interactive map to actually create one and extract those min/max values. No fear, here are the extents of each US state and territory in NAD83 coordinates using the 2017 US Census 1:500,000 shapefile. https://gist.github.com/a8dx/2340f9527af64f8ef8439366de981168 To … Continue reading Bounding Boxes for All US States

Identify nth-Degree Neighbors Using R’s Simple Features Package, Simply

You're more likely to complain about the neighbors upstairs who are making noise after midnight than those in an apartment two buildings away. Proximity matters and that's patently obvious, but oftentimes it takes a bit of work to identify who is close and who isn't. While raster data is packaged in a consistent gridded format for … Continue reading Identify nth-Degree Neighbors Using R’s Simple Features Package, Simply

Converting .TXT/.GRD Climate Data Files to netCDF Format

Climate data is packaged and distributed in too many file formats.  Under ideal circumstances, you could easily convert data from formats you're not familiar with (and don't have scripts to handle), to those that you do. This is why analogous tools like Stat/Transfer for statistical databases often used by social scientists, are so helpful.  If a stranger … Continue reading Converting .TXT/.GRD Climate Data Files to netCDF Format