You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current weight file that is saved out by xESMF.Regridder() only has S, col, and row:
However, standard ESMF weight files seem to have way more information. Here's an intermediate weighting file saved out by NCL:
Is there any way to save out this fully detailed weighting file? This might be relevant to #11 to produce a SCRIP file following 12.8 here.
I'm looking to use frac_b to deal with partial area cells when doing conservative remapping to get a conservative integral. This is how it was done for NCAR's CMIP6 remapping here.
The text was updated successfully, but these errors were encountered:
I don't think ESMPy has the option to output frac_a and frac_b. In ESCOMP/CTSM#643 (comment) where the regridding script was switched from NCL to the ESMPy-based OCGIS CLI, only the weights were kept, while frac_a/frac_b were removed.
This request can be raised upstream to ESMPy, but I wonder whether you really need frac_b to calculate the integral? From ESMF docs:
The grid frac arrays (frac_a and frac_b) are calculated by ESMF_RegridWeightGen. For conservative remapping, the grid frac array returns the area fraction of the grid cell which participates in the remapping. For bilinear and patch remapping, the destination grid frac array is one where the grid point participates in the remapping and zero otherwise. For bilinear and patch remapping, the source grid frac array is always set to zero.
By default, the integral sum(field * area) is conserved after xesmf's conservative regridding, unless a renormalization is applied on purpose (#17, not implemented yet). You don't need to know the grid fraction to compute the correct integral. Destination cells at the domain edges will be "diluted" so that the total mass is still the same.
The current weight file that is saved out by
xESMF.Regridder()
only has S, col, and row:However, standard ESMF weight files seem to have way more information. Here's an intermediate weighting file saved out by NCL:
Is there any way to save out this fully detailed weighting file? This might be relevant to #11 to produce a SCRIP file following 12.8 here.
I'm looking to use
frac_b
to deal with partial area cells when doing conservative remapping to get a conservative integral. This is how it was done for NCAR's CMIP6 remapping here.The text was updated successfully, but these errors were encountered: