Redundant code in mo_edk_setvario.f90 file ? #2
bibek-ux
started this conversation in
Show and tell
Replies: 2 comments 1 reply
|
This is great you found that. I will fix this upstream when I find the time. Unfortunately we can't accept PRs on github since this is only a mirror! Cheers, Sebastian |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hallo mHM/edk team,
I compiled the edk after cloning from git and ran it for regirding my precipitation data. However, the variogram plot plotted using variogram.dat produced unexpected results.(SS attached). The lag distance was way too much in each bin.

After some digging, I realized that the edk program seems to normalize, the lag distance before actual variogram fitting using the Nelder-Mead optimization method by dividing each lag distance in each bins by largest lag distance, however in the OPTI subroutine of mo_edk_setvario.f90 file, I found a redundant line of code that was basically, scaling the lag distance twice (1st and last line in the SS attached). I commented the redundant line , recompiled everything, changed the bin size and ran edk with openmp. I have also attached the empirical and variogram fitted plot after correction as well as the variogram values and confirmation stats.
I commented the second "where (gamma(:,1) > 0._dp) gamma(:,1) = gamma(:,1) * gmax(1)" assuming that "call stats" , requires lag distance to be in normalized state. Does this create any other problem for the code ?
Danke
All reactions