Skip to content

Commit

Permalink
Import Log LAS Data - replace space with underscore (#2584)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbasti authored Oct 30, 2024
1 parent c466b3f commit ab45b5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Src/WitsmlExplorer.Frontend/tools/lasFileTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ export const parseLASHeader = (sectionData: string) => {
.filter((line) => line.trim() != "" && !line.startsWith("#"));
const headerData = lines.map((line, index) => {
const endOfCurveNameIndex = line.indexOf(".");
const curveName = line.slice(0, endOfCurveNameIndex).trim();
const curveName = line
.slice(0, endOfCurveNameIndex)
.trim()
.replaceAll(" ", "_");
const unit = line.slice(endOfCurveNameIndex + 1).split(/\s+/)[0];
return {
index,
Expand Down

0 comments on commit ab45b5e

Please sign in to comment.