-
Notifications
You must be signed in to change notification settings - Fork 1
Enable Copernicus DEM #427
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
base: master
Are you sure you want to change the base?
Changes from 4 commits
2f6a865
0bbb128
2ac0aac
b43947e
1887034
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,6 +50,7 @@ MODULE mo_agg_topo_cosmo | |
| & itopo_type, & | ||
| & topo_gl, & | ||
| & topo_merit, & | ||
| & topo_copernicus, & | ||
| & topo_aster | ||
|
|
||
| USE mo_topo_sso, ONLY: auxiliary_sso_parameter_cosmo, & | ||
|
|
@@ -271,6 +272,9 @@ SUBROUTINE agg_topo_data_to_target_grid_cosmo(topo_tiles_grid, & | |
| CASE(topo_merit) | ||
| hh = undef_topo | ||
| h_3rows = undef_topo | ||
| CASE(topo_copernicus) | ||
| hh = undef_topo | ||
| h_3rows = undef_topo | ||
| END SELECT | ||
|
|
||
| ! initialize some variables | ||
|
|
@@ -623,6 +627,25 @@ SUBROUTINE agg_topo_data_to_target_grid_cosmo(topo_tiles_grid, & | |
| h22(ie,je,ke) = h22(ie,je,ke) + dhdydy(i) | ||
| ENDIF | ||
| ENDIF | ||
| CASE(topo_copernicus) | ||
|
||
| IF (h_3rows(i,j_c) /= undef_topo) THEN | ||
| ndata(ie,je,ke) = ndata(ie,je,ke) + 1 | ||
| hh_target(ie,je,ke) = hh_target(ie,je,ke) + h_3rows(i,j_c) | ||
| hh2_target(ie,je,ke) = hh2_target(ie,je,ke) + (h_3rows(i,j_c) * h_3rows(i,j_c)) | ||
| IF (lscale_separation) THEN | ||
| hh_target_scale(ie,je,ke) = hh_target_scale(ie,je,ke) + & | ||
| & h_3rows_scale(i,j_c) | ||
| hh2_target_scale(ie,je,ke) = hh2_target_scale(ie,je,ke) + & | ||
| & (h_3rows_scale(i,j_c) * h_3rows_scale(i,j_c)) | ||
| hh_sqr_diff(ie,je,ke) = hh_sqr_diff(ie,je,ke)+ & | ||
| & (h_3rows(i,j_c) - h_3rows_scale(i,j_c))**2 | ||
| ENDIF | ||
| IF(lsso_param) THEN | ||
| h11(ie,je,ke) = h11(ie,je,ke) + dhdxdx(i) | ||
| h12(ie,je,ke) = h12(ie,je,ke) + dhdxdy(i) | ||
| h22(ie,je,ke) = h22(ie,je,ke) + dhdydy(i) | ||
| ENDIF | ||
| ENDIF | ||
| END SELECT | ||
| !$OMP END CRITICAL | ||
| ENDIF | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, could you do me a favor and apply the same changes to the cases above? 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!