Local Macros in Stata Using Regular Expressions

Regular expressions can dramatically make your scripting simpler, more automated, and enable you to embed systematically-important information in filenames, variables, dictionaries, and paths. With enough practice, xkcd reminds us that regexp can also make you a superhero. Stata provides a very nice table of their regular expressions and offers some helpful examples, but these seem … Continue reading Local Macros in Stata Using Regular Expressions

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

Merging Innumerable Tables into LaTeX? (Mac OS/X)

Sometimes you simply have to run models that test dozens of different hypotheses and therefore are left with a lot of output to work through.  For example, if I'm interested in how crops respond to extreme heat, there's a bevy of specifications to work through, but more importantly, numerous crops to test.  I use the … Continue reading Merging Innumerable Tables into LaTeX? (Mac OS/X)

Calculating degree days with NumPy

Michael Roberts offers an extremely helpful post at G-FEED, including R code for generating the season growing degree days measure used in the seminal Schlenker Roberts 2009 paper on nonlinear crop responses to temperature.  Since many of the papers claiming to follow the approach don't actually adhere to it, he's posted code in the interest … Continue reading Calculating degree days with NumPy

Product Carbon Footprinting Conference: Berlin, Feb. 26/27

Keeps your eyes open for this upcoming conference which looks to be very interesting, building upon previous meetings of the Dialogue Forum Low Carbon Society, a consortium of primarily German and other European NGOs, research centers, and companies. International Approaches to Product Carbon Footprinting and Carbon Labelling. The Road Ahead for Business. For the very … Continue reading Product Carbon Footprinting Conference: Berlin, Feb. 26/27

Products… or product constellations?

A heated discussion has been bubbling over at work regarding life-cycle and/or supply chain emissions [reductions] and the methods by which companies should capture and report these. So take an LCA perspective of product X. You will begin and end with a set of processes, materials, and energies 'consumed' across the product's life cycle - … Continue reading Products… or product constellations?

The (carbon) label says it all

Leaving the rest of the country in its carbon-constrained dust yet again, California introduced the Carbon Labeling Act of 2009 earlier this month which will require the California Air Resources Board (CARB) to "develop and implement a program for the voluntary assessment, verification, and standardized labeling of the carbon footprint, as defined, of consumer products … Continue reading The (carbon) label says it all

What can a single company do? or, “A whole lotta carbon”

I've been spending much of the past few days reviewing the CDP6 responses that include Scope 3 "indirect" emissions. As a brief backgrounder, the Scope 1, 2, and 3 terminology was adopted by the Greenhouse Gas Protocol's Corporate Standard, and revised as "direct" and "indirect" emissions in the ISO 14064 documents. The emissions caused by … Continue reading What can a single company do? or, “A whole lotta carbon”