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

代码优化(驱动插值,网格映射方法,驱动降尺度,共享pixelset) #269

Merged
merged 5 commits into from
May 27, 2024

Conversation

zhangsp8
Copy link
Contributor

  1. 网格映射方法:原“格点到pixelset的映射”和“pixelset到格点的映射”合并为一个类型"spatial_mapping",定义此类型可同时进行双向的映射;
  2. 驱动插值:从驱动到patch的插值除原有的面积加权平均外,增加了双线性插值;
  3. 驱动降尺度方案:先将格点上的驱动赋值到格点与patch的每个交集上,在每个交集上做降尺度,再将每个patch内的交集上的驱动做面积加权平均,得到patch上的驱动;
  4. 共享pixelset:简化原有代码,若pixelset有共享,则pixelset%has_shared = .true.,并用pixelset%pctshared记录所占面积百分比;更改后,做空间映射时,不再需要显式指定面积百分比(如crop相关的代码);
  5. 一些代码格式调整。

对namelist文件的更改:

  1. 增加DEF_Forcing_Interp_Method,默认值为'arealweight',表示面积加权平均插值,可选'bilinear',表示双线性插值;
  2. 增加DEF_USE_Forcing_Downscaling,默认值为.false.,表示不做降尺度,可改为.true.,表示降尺度。

@CoLM-SYSU CoLM-SYSU merged commit 934364c into CoLM-SYSU:master May 27, 2024
24 checks passed
xuxh1 pushed a commit to xuxh1/CoLM202X that referenced this pull request Oct 26, 2024
代码优化(驱动插值,网格映射方法,驱动降尺度,共享pixelset)
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

Successfully merging this pull request may close these issues.

2 participants