Skip to content

Commit

Permalink
add rporv workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Trine Alsos (CCN GGP GGP8) committed Sep 26, 2024
1 parent 4209590 commit 438a6f7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/subscript/grav_subs_maps/grav_subs_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,16 @@ def main_gravmaps(
if singledate not in added_dates:
if singledate in restart_index:
rsb = rest.restartView(restart_index[singledate])
grav.add_survey_RFIP(singledate, rsb)
if rest.has_kw("RFIPGAS"):
grav.add_survey_RFIP(singledate, rsb)
else:
logger.info(
"RFIPGAS missing in restart file. "
"Cannot use RFIP in gravity calculations. "
"Will try to use RPORV method instead"
)
grav.add_survey_RPORV(singledate, rsb)

subsidence.add_survey_PRESSURE(singledate, rsb)
added_dates.append(singledate)
else:
Expand Down
11 changes: 10 additions & 1 deletion src/subscript/grav_subs_points/grav_subs_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,16 @@ def main_gravpoints(
if singledate not in added_dates:
if singledate in restart_index:
rsb = rest.restartView(restart_index[singledate])
grav.add_survey_RFIP(singledate, rsb)
if rest.has_kw("RFIPGAS"):
grav.add_survey_RFIP(singledate, rsb)
else:
logger.info(
"RFIPGAS missing in restart file. "
"Cannot use RFIP in gravity calculations. "
"Will try to use RPORV method instead"
)
grav.add_survey_RPORV(singledate, rsb)

subsidence.add_survey_PRESSURE(singledate, rsb)
added_dates.append(singledate)
else:
Expand Down

0 comments on commit 438a6f7

Please sign in to comment.