Code Monkey home page Code Monkey logo

smokeinthecity's Introduction

SmokeInTheCity

The online home of the analysis code used for the paper published in ES&T.

This is a public project. Anyone is free to view and download the code stored here. Some of the figures have been published and are owned by Environmental Science and Technology. If you want to use any figures stored here please contact me first. If you have questions, use any of this code, or find any errors I ask that you please contact me [email protected].

Data

This project is limited to 1 Gb of storage. As a result, I am not able to store all of the data required to run all of the scripts. ECMWF reanalysis .nc data and some EPA monitoring time series data has been withheld to save space. All scripts used to download data and their associated URLs are imbedded in the analysis scripts. If there is anything missing that you would like to access please email me.

smokeinthecity's People

Contributors

stevenbrey avatar stevenjoelbrey avatar

Watchers

James Cloos avatar  avatar  avatar

smokeinthecity's Issues

Double check all uses of R's match() command

On 01/27/2016 I found a massive error in assignReanalysisTDataToMonitor.R I used the match() function incorrectly. This instance has been fixed, though it will likely be replaced by a for loop so that I do not ever have to worry about it again.

In every other script relevant to analysis, double check the use of the match() function. If used incorrectly stations metadata could be wrong, matching ozone and PM time series could be wrong. Worth double checking every use based on the error I found.

Plot suggestion

Fill triangles and leave non-significant circles open. right now its the non significant locations that jump.

Carefully consider POC numbers for AQS sites

It has come to my attention (unfortunately well past when it should have come to my attention) that I should have considered POC much more carefully in my aggregation of the AQS monitoring data. I am pretty sure I did not make use of the PM data nearly as effectively as possible because I did not consider every POC (instrument) at each location. I would consider myself lucky if there was not some semi-significant error associated with my analysis because of this oversight. I am going to fix the problem and update the progress here.

Now, my PM and Ozone (even CO) station IDs will look like SSCCCNNNN-Q, where everything but the Q (POC number) will be used to identify co-location and including the Q is the level where time series data will be considered for each instrument.

Documentation here: http://aqsdr1.epa.gov/aqsweb/aqstmp/airdata/FileFormats.html

1.1. Monitors
For the purposes of AQS, a monitor does not refer to a specific piece of equipment. Instead, it reflects that a given pollutant (or other parameter) is being measured at a given site.

Identified by:
The site (state + county + site number) where the monitor is located AND

The pollutant code AND

POC โ€“ Parameter Occurrence Code. Used to uniquely identify a monitor if there is more than one device measuring the same pollutant at the same site.

For example monitor IDs are usually written in the following way:

SS-CCC-NNNN-PPPPP-Q

where SS is the State FIPS code, CCC is the County FIPS code, and NNNN is the Site Number within the county (leading zeroes are always included for these fields), PPPPP is the AQS 5-digit parameter code, and Q is the POC. For example:

01-089-0014-44201-2

is Alabama, Madison County, Site Number 14, ozone monitor, POC 2.

1.2. Pollutant Standards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.