Skip to content

Commit

Permalink
Fixed arpae PM2.5 parameter to align with acceptedParameters value (#699
Browse files Browse the repository at this point in the history
)

* Fixed arpae PM2.5 parameter to align with acceptedParameters value

Co-authored-by: Alex Dunn <[email protected]>
  • Loading branch information
alexdunncs and alexdunnjpl authored Mar 31, 2020
1 parent 4b9a42b commit 8317793
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion adapters/arpae.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const parameters = {
'21': { parameter: 'c6h5-ch3', unit: 'ug/m3' },
'38': { parameter: 'no', unit: 'ug/m3' },
'82': { parameter: 'o-xylene', unit: 'ug/m3' },
'111': { parameter: 'pm2.5', unit: 'ug/m3' }
'111': { parameter: 'pm25', unit: 'ug/m3' }
};

const locations = {
Expand Down
2 changes: 1 addition & 1 deletion data_scripts/arpae-parameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ request(csvUrl, (err, res, data) => {
let parameters = {};
parsed.forEach((el) => {
parameters[el.IdParametro] = {
parameter: el.PARAMETRO.split('(')[0].toLowerCase().trim(),
parameter: el.PARAMETRO.split('(')[0].toLowerCase().trim().replace('.', ''),
unit: el.UM
};
});
Expand Down

0 comments on commit 8317793

Please sign in to comment.