Skip to content

Commit

Permalink
Updated roff_to_grdecl to take more decimal places and updated refere…
Browse files Browse the repository at this point in the history
…nce case to use ES instead of ES-MDA and to use realization 5
  • Loading branch information
oddvarlia committed Nov 23, 2023
1 parent 72a1cfd commit 44c321e
Show file tree
Hide file tree
Showing 5 changed files with 142 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FIELDPAR
0.447098 -0.927440 -1.783724 -1.779856 -1.377484 -0.837286
0.147021 1.467986 2.252399 1.935624 0.675510 -1.029712
-1.740869 -1.493789 -1.025163 -0.561259 0.190373 1.198527
1.933705 1.891515 -0.237759 -1.565184 -2.145870 -1.851009
-1.065883 -0.309973 0.144969 0.454058 0.777521 0.792289
-1.140442 -1.817651 -2.422033 -2.245800 -1.117669 0.198838
0.997043 1.348484 1.432888 1.049439 0.051081 -0.270271
-0.882617 -1.002432 -0.517790 0.006057 0.349438 0.661678
0.761552 0.443853 1.324635 1.198460 1.034424 0.958445
0.609836 -0.074205 -0.533611 -0.450062 -0.173472 -0.016950
0.946168 0.829610 0.848574 0.902655 0.762767 0.539844
0.502182 0.667901 0.869349 0.940380 0.508920 0.171294
-0.418960 -0.853561 -0.685653 0.020410 0.767431 1.256002
1.482821 1.339439 0.837855 1.017726 0.570070 0.113773
0.139909 0.395753 0.537889 0.636208 0.650089 0.267184
1.547967 2.257389 2.394032 2.175692 1.481595 0.293701
-0.689676 -0.839896 -0.534310 -0.438225 0.533903 0.598970
0.768949 0.995810 0.652911 -0.235753 -0.798399 -0.577965
-0.042197 0.321953 -0.298679 -0.554095 -0.510240 -0.191156
-0.017750 -0.056757 -0.076666 0.027956 0.225848 0.436121
-0.130117 0.208504 0.303349 0.289653 0.307984 0.262606
-0.012830 -0.325936 -0.348092 -0.201635 -0.149689 0.716518
1.061123 1.116685 1.125341 0.942664 0.565075 0.350993
0.342241 0.095186 0.159186 0.339051 0.536755 0.872774
1.073062 0.884147 0.618887 0.660174 0.848796 0.923782
-0.811227 -0.970458 -0.523682 0.273424 0.859210 1.074106
1.111742 1.010802 0.826875 0.964549 -0.802556 -0.300340
0.289659 0.684550 0.918973 1.156564 1.130898 0.524125
-0.270094 -0.546243 -0.158704 0.589777 0.931844 0.770551
0.608384 0.595577 0.278034 -0.422383 -0.909196 -0.863655
-0.063359 0.297077 0.687111 0.990942 1.229250 1.056377
0.243139 -0.713582 -1.104926 -0.803159 0.210439 -0.018716
-0.048111 0.171952 0.503154 0.677603 0.616088 0.393471
0.110746 -0.013123 /
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FIELDPAR
0.447098 -0.927440 -1.783724 -1.779856 -1.377484 -0.837286
0.147021 1.467986 2.252399 1.935624 0.675510 -1.029712
-1.740869 -1.493789 -1.025163 -0.561259 0.190373 1.198527
1.933705 1.891515 -0.237759 -1.565184 -2.145870 -1.851009
-1.065883 -0.309973 0.144969 0.454058 0.777521 0.792289
-1.140442 -1.817651 -2.422033 -2.245800 -1.117669 0.198838
0.997043 1.348484 1.432888 1.049439 0.051081 -0.270271
-0.882617 -1.002432 -0.517790 0.006057 0.349438 0.661678
0.761552 0.443853 1.324635 1.198460 1.034424 0.958445
0.609836 -0.074205 -0.533611 -0.450062 -0.173472 -0.016950
0.946168 0.829610 0.848574 0.902655 0.762767 0.539844
0.502182 0.667901 0.869349 0.940380 0.508920 0.171294
-0.418960 -0.853561 -0.685653 0.020410 0.767431 1.256002
1.482821 1.339439 0.837855 1.017726 0.570070 0.113773
0.139909 0.395753 0.537889 0.636208 0.650089 0.267184
1.547967 2.257389 2.394032 2.175692 1.481595 0.293701
-0.689676 -0.839896 -0.534310 -0.438225 0.533903 0.598970
0.768949 0.995810 0.652911 -0.235753 -0.798399 -0.577965
-0.042197 0.321953 -0.298679 -0.554095 -0.510240 -0.191156
-0.017750 -0.056757 -0.076666 0.027956 0.225848 0.436121
-0.130117 0.208504 0.303349 0.289653 0.307984 0.262606
-0.012830 -0.325936 -0.348092 -0.201635 -0.149689 0.716518
1.061123 1.116685 1.125341 0.942664 0.565075 0.350993
0.342241 0.095186 0.159186 0.339051 0.536755 0.872774
1.073062 0.884147 0.618887 0.660174 0.848796 0.923782
-0.811227 -0.970458 -0.523682 0.273424 0.859210 1.074106
1.111742 1.010802 0.826875 0.964549 -0.802556 -0.300340
0.289659 0.684550 0.918973 1.156564 1.130898 0.524125
-0.270094 -0.546243 -0.158704 0.589777 0.931844 0.770551
0.608384 0.595577 0.278034 -0.422383 -0.909196 -0.863655
-0.063359 0.297077 0.687111 0.990942 1.229250 1.056377
0.243139 -0.713582 -1.104926 -0.803159 0.210439 -0.018716
-0.048111 0.171952 0.503154 0.677603 0.616088 0.393471
0.110746 -0.013123 /
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FIELDPAR
0.503113 -0.799470 -1.598637 -1.615574 -1.292307 -0.819767
0.138596 1.461228 2.251478 1.935624 0.905848 -0.554307
-1.128175 -0.983294 -0.698322 -0.414831 0.212575 1.186959
1.927342 1.890818 0.086528 -0.970846 -1.356143 -1.079773
-0.496326 -0.007297 0.254879 0.480148 0.781358 0.792656
-0.778309 -1.228349 -1.622521 -1.506935 -0.715314 0.312437
1.005669 1.344614 1.431900 1.049514 0.110624 -0.171868
-0.761244 -0.899838 -0.455863 0.032057 0.353409 0.659689
0.760971 0.443853 1.321224 1.193276 1.026787 0.951865
0.609244 -0.070772 -0.532136 -0.450062 -0.173472 -0.016950
0.946168 0.829610 0.848574 0.902655 0.762767 0.539844
0.502182 0.667901 0.869349 0.940380 0.508920 0.171294
-0.418960 -0.853561 -0.685653 0.020410 0.767431 1.256002
1.482821 1.339439 0.837855 1.017726 0.570070 0.113773
0.139909 0.395753 0.537889 0.636208 0.650089 0.267184
1.547967 2.257389 2.394032 2.175748 1.481448 0.292881
-0.691356 -0.840922 -0.532808 -0.435148 0.533903 0.599393
0.772311 1.003626 0.663861 -0.220564 -0.778281 -0.566565
-0.042683 0.324821 -0.298609 -0.551718 -0.496264 -0.147628
0.080352 0.152999 0.263475 0.316717 0.281956 0.352902
-0.130090 0.210363 0.314432 0.324933 0.405219 0.576351
0.750075 0.705298 0.307757 -0.118992 -0.149618 0.716920
1.062580 1.123354 1.162760 1.121591 1.058959 1.083995
0.922619 0.316041 0.159186 0.339011 0.535740 0.871985
1.085140 0.930327 0.702547 0.757706 0.934847 0.981663
-0.811227 -0.970458 -0.523682 0.273299 0.858675 1.074121
1.113757 1.014924 0.831551 0.969309 -0.802556 -0.300340
0.289659 0.684550 0.918973 1.156564 1.130898 0.524125
-0.270094 -0.546243 -0.158704 0.589777 0.931844 0.770551
0.608384 0.595577 0.278034 -0.422383 -0.909196 -0.863655
-0.063359 0.297077 0.687111 0.990942 1.229250 1.056377
0.243139 -0.713582 -1.104926 -0.803159 0.210439 -0.018716
-0.048111 0.171952 0.503154 0.677603 0.616088 0.393471
0.110746 -0.013123 /
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FIELDPAR
1.085490 -0.083315 -0.789288 -0.789165 -0.586990 -0.559373
-0.343767 0.443178 1.368611 1.659485 1.396004 -0.018027
-0.707973 -0.743021 -0.429446 0.045499 0.571962 1.025634
1.257195 1.147056 0.964516 -0.192533 -0.859781 -0.865479
-0.309447 0.450941 0.984185 1.180901 1.168443 0.916860
0.133841 -0.622782 -1.352526 -1.408802 -0.736061 0.083822
0.657309 1.078980 1.313375 1.053631 0.608040 0.462978
0.071475 -0.076535 0.136471 0.274125 0.201012 0.189629
0.146433 -0.216468 1.204505 1.214145 1.052443 0.847742
0.701944 0.616284 0.612844 0.625166 0.450898 0.098987
0.596412 0.390905 0.119961 0.056146 0.351345 0.937799
1.488497 1.676105 1.550723 1.377618 0.671901 0.247238
-0.467125 -0.930896 -0.610653 0.482716 1.704746 2.469764
2.697218 2.474849 1.075824 1.265861 0.641478 -0.024670
-0.044065 0.485255 1.146655 1.710001 1.937257 1.607289
0.827842 1.614957 1.710367 1.349503 0.742882 0.025111
-0.367521 -0.228976 -0.080028 -0.287499 -0.850119 -0.281284
0.100357 0.028347 -0.435972 -0.769479 -0.599738 -0.233174
-0.135364 -0.174462 -1.167160 -1.083778 -0.917895 -0.635228
-0.226548 0.350760 0.858485 0.898071 0.484594 0.075022
0.123900 0.422942 0.516814 0.728286 1.251850 1.850172
2.021211 1.507754 0.494860 -0.579094 0.631539 1.403754
1.700534 1.819185 1.961752 2.035727 1.921305 1.574197
0.853479 -0.314344 1.008672 1.269054 1.405207 1.701192
1.846999 1.527640 1.092091 0.968876 0.953279 0.677045
0.096205 -0.245538 -0.032729 0.666658 1.160043 1.118110
0.865733 0.769952 0.875593 1.104154 -0.428474 -0.396409
0.064377 0.712566 1.143688 1.251336 1.028843 0.511769
-0.009924 -0.242215 0.008843 0.320565 0.446658 0.670320
1.099329 1.364959 1.005827 0.169832 -0.502305 -0.731030
0.303961 0.438725 0.352706 0.279200 0.454325 0.576764
0.131197 -0.782672 -1.533460 -1.800226 0.647334 0.487528
-0.076037 -0.663710 -0.886921 -0.712353 -0.377262 -0.147717
-0.180952 -0.487075 /
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def main(argv):
input_file, fformat="roff", name=param_name, grid=grid_obj
)
print(f"Write file: {output_file} in GRDECL format")
field_obj.to_file(output_file, fformat="grdecl", fmt="%8.4f")
field_obj.to_file(output_file, fformat="grdecl", fmt="%10.6f")
elif suffix.upper() == ".GRDECL":
# Ensure the grdecl file use a fixed format for the values
# to more easily compare it with a reference
Expand All @@ -37,7 +37,7 @@ def main(argv):
input_file, fformat="grdecl", name=param_name, grid=grid_obj
)
print(f"Write file: {output_file} in GRDECL format")
field_obj.to_file(output_file, fformat="grdecl", fmt="%8.4f")
field_obj.to_file(output_file, fformat="grdecl", fmt="%10.6f")


if __name__ == "__main__":
Expand Down

0 comments on commit 44c321e

Please sign in to comment.