epa_util
check_cmaq_units(df, param='O3', aqs_param='OZONE')
Short summary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
type
|
Description of parameter |
required |
param
|
type
|
Description of parameter |
'O3'
|
aqs_param
|
type
|
Description of parameter |
'OZONE'
|
Returns:
| Type | Description |
|---|---|
type
|
Description of returned object. |
Source code in monetio/obs/epa_util.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | |
convert_epa_unit(df, obscolumn='SO2', unit='UG/M3')
converts ppb to ug/m3 for SO2 in aqs and airnow datasets See 40 CFR Part 50.5, Appendix A-1 to part 50, appendix A=2 to Part 50. to convert from ppb to ug/m3 multiply by 2.6178.
Also will convert from ug/m3 to ppb.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
pandas dataframe
|
self.df attribute from aqs or airnow class. |
required |
obscolumn
|
string
|
name of column with SO2 data in it. |
'SO2'
|
unit
|
string
|
either 'UG/M3' or 'PPB' (not case sensitive) will convert data to this unit. |
'UG/M3'
|
inplace
|
boolean
|
if TRUE then changes self.df attribute |
required |
Returns:
| Name | Type | Description |
|---|---|---|
df |
pandas dataframe
|
returns dataframe identical to original but with data converted to new unit. |
Source code in monetio/obs/epa_util.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | |
ensure_values_indomain(df, lon, lat)
Short summary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
type
|
Description of parameter |
required |
lon
|
type
|
Description of parameter |
required |
lat
|
type
|
Description of parameter |
required |
Returns:
| Type | Description |
|---|---|
type
|
Description of returned object. |
Source code in monetio/obs/epa_util.py
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | |
get_epa_location_df(df, param, site='', city='', region='', epa_region='', state='')
Short summary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
type
|
Description of parameter |
required |
param
|
type
|
Description of parameter |
required |
site
|
type
|
Description of parameter |
''
|
city
|
type
|
Description of parameter |
''
|
region
|
type
|
Description of parameter |
''
|
epa_region
|
type
|
Description of parameter |
''
|
state
|
type
|
Description of parameter |
''
|
Returns:
| Type | Description |
|---|---|
type
|
Description of returned object. |
Source code in monetio/obs/epa_util.py
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 | |
get_region(df)
Short summary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
type
|
Description of parameter |
required |
Returns:
| Type | Description |
|---|---|
type
|
Description of returned object. |
Source code in monetio/obs/epa_util.py
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | |