Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map factors from WRF #127

Open
ChristinaHood opened this issue Dec 16, 2024 · 2 comments
Open

map factors from WRF #127

ChristinaHood opened this issue Dec 16, 2024 · 2 comments

Comments

@ChristinaHood
Copy link

I'm looking at EMEP's calculations of cell area for a global run, driven by WRF v4.6.

In GridValues_mod.f90 the map factors at the centre of each cell are interpolated from boundary values of MAPFAC_UY and MAPFAC_VX. Is there a reason for using this approach rather than reading the additional WRF variable(s) MAPFAC_MX and MAPFAC_MY which are already defined at cell centres?

@gitpeterwind
Copy link
Member

The MAPFAC_UY and MAPFAC_VX (xm_i and xm_j in the emep model) are actually the important ones: they steer the advection of pollutants through the gridcell boundaries.
The other mapping factors "xm" in the code are used to determine the area of the gridcells and are less important. In addition the mapping factors are very smooth (except for near poles in lat lon projection), and the interpolation method will have negligible effects.
So in short, we could use directly the wrf values, but we do not expect that it will give any significant change in results.

Did you notice any problem related to this? We do not use wrf at our institute, so we completely rely on feedback like yours to improve the wrf interface!

@ChristinaHood
Copy link
Author

Thanks for the helpful clarifications Peter. I agree that this difference of approach is unlikely to cause any significant change.

I was looking at values of GridArea_m2 written out from within the code and the Area_Grid_km2 output variable in the _fullrun.nc file, also the AREA2D variable from WRF (which is calculated using the internal equivalents of MAPFAC_MX), and trying to understand the differences. The WRF output variable had an associated bug, after fixing WRF and making use of the EMEP 'coord_in_processor' function to obtain relevant values of GridArea_m2, all three of these are now only very slightly different (0.01% - rounding error level?) so I think the confusion is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants