ECMWFCode4Earth / vAirify

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

select pollutant before interpolation to save time #38

Closed sebsteinig closed 1 month ago

sebsteinig commented 1 month ago

Quick change to select the pollutant before the interpolation. The order of calling methods in xarray does matter, so currently all 2 (or 3 for multilevel) pollutants get interpolated and you just select one afterwards. This means you do a lot of unnecessary interpolations. Speed improvement for transform task should therefore be around factor 2-3.

github-actions[bot] commented 1 month ago

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
238 213 90% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
air-quality-backend/src/etl/forecast/forecast_data.py 100% 🟢
TOTAL 100% 🟢

updated for commit: 1edb34e by action🐍