ECMWFCode4Earth / vAirify

code repository for 2024 Code for Earth project #16
MIT License
1 stars 0 forks source link

BUG - Multi Level data in database not matching the ECMWF forecast for CNN cities #27

Closed mwalker-scottlogic closed 3 weeks ago

mwalker-scottlogic commented 1 month ago

Image

Question posted to mentors about this:

Response from Miha:

mwalker-scottlogic commented 1 month ago

Ticket updated in response to feedback from mentors

sebsteinig commented 1 month ago

I followed https://forum.ecmwf.int/t/convert-mass-mixing-ratio-mmr-to-mass-concentration-or-to-volume-mixing-ratio-vmr/1253 to convert those pollutants with units of mass mixing ratios to mass concentrations. For this I additionally fetch surface pressure and temperature to calculate density and multiply the mass mixing ratios by it.

Results are now nearly identical (but not exactly) to the ECMWF reported values for O3 and NO2. But deviations are only visible in the second decimal, which is more than enough precision (I guess?!). PM10 and PM2.5 are identical to the ECMWF values, so we seem to be doing the correct bilinear interpolation.

image

Associated PR is here: https://github.com/ECMWFCode4Earth/vAirify/pull/40

mwalker-scottlogic commented 1 month ago

Re-tested, there is some deviation over 0.5% in certain cities such as Los Angeles

Image