ResInsight icon indicating copy to clipboard operation
ResInsight copied to clipboard

Sector Model Export: Option "Local coordinates" gives wrong MAPAXIS and COORD values

Open hhgs opened this issue 4 months ago • 4 comments

Local coordinates means COORD coordinates should be reported as delta from global grid origin (X,Y). For MAPAXIS, it could be 2 alternatives: 1) dummy data for spatial unaware grid or 2) actual global grid origin. The second will be consistent with RMS behavior.

MAPAXES -0.47181084E+06 -0.65218040E+07 -0.47181084E+06 -0.65218050E+07 -0.47180984E+06 -0.65218050E+07 /

COORD 0.47181084E+06 0.65226430E+07 0.18351990E+04 0.47182353E+06 0.65226320E+07 0.18619310E+04 0.47188922E+06 0.65227080E+07 0.18415820E+04 0.47190119E+06 0.65226975E+07 0.18679960E+04 0.47196216E+06 0.65227780E+07 0.18369709E+04 0.47197516E+06 0.65227655E+07 0.18668719E+04 0.47203512E+06 0.65228480E+07 0.18323600E+04 0.47204913E+06 0.65228340E+07 0.18657480E+04

Image

hhgs avatar Jul 31 '25 12:07 hhgs

this could also be related to https://github.com/OPM/ResInsight/issues/11970

RezaeiDoust avatar Aug 13 '25 09:08 RezaeiDoust

Suggest that this issue is postponed to after the release. This fix requires quite a lot of refactoring.

magnesj avatar Aug 26 '25 13:08 magnesj

Since stability of the release is important, I think we can postpone it to after the release

RezaeiDoust avatar Aug 26 '25 13:08 RezaeiDoust

Suggested solution: Replace the "Export in Local Coordinates" checkbox with a "Coordinate Transformation" drop-down box with three options:

  • "None": Map axes not exported, raw UTM in coordinates.
  • "Preserve Map Axis": Original mapaxis exported, coordinates transformed from UTM with inverse of map axis (so they are correct when reimported with map axis).
  • "Translated to Origo": No mapaxis in export. Model moved to origo. Ie. same as "None", but around origi.

Any thoughts, @hhgs and @RezaeiDoust ?

kriben avatar Sep 26 '25 13:09 kriben