Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide curve names as header row in ~A line #375

Open
4 tasks
kinverarity1 opened this issue Jul 25, 2020 · 0 comments
Open
4 tasks

Provide curve names as header row in ~A line #375

kinverarity1 opened this issue Jul 25, 2020 · 0 comments
Labels
enhancement las-writer-code A bug or enhancement relating to code which creates LAS files

Comments

@kinverarity1
Copy link
Owner

kinverarity1 commented Jul 25, 2020

Provide an option in LASFile.write to put curve names in the ~A row.

This is related to #30 and #90 which address reading this kind of data in.

What is the desired behaviour?

For this input LAS file:

~Curve Information
 DEPT.M        :    1   DEPTH
 CALI.mm       :    2   CALIPER
 DENS.g/cc     :    3   DENSITY
 Gamm.CPS      :    4   Gamma
~Parameter Information
~Other Information
~A
    0.05      -0.0      -0.0      -0.0      
    0.10      -0.0      -0.0      -0.0     

You would be able to do las.write(..., mnemonics_header_row=True):

~Curve Information
 DEPT.M        :    1   DEPTH
 CALI.mm       :    2   CALIPER
 DENS.g/cc     :    3   DENSITY
 Gamm.CPS      :    4   Gamma
~Parameter Information
~Other Information
~A Depth      CALI      DENS      Gamm
    0.05      -0.0      -0.0      -0.0
    0.10      -0.0      -0.0      -0.0

Edge cases to be handled with regression tests

  • where mnemonics are missing from the ~C section, there should be the appropriate lasio-generated UNKNOWN mnemonic in the ~A header row only (not in the ~C section)
  • where duplicate mnemonics exist, the ~A header row should contain these as duplicates, NOT the lasio-generated GAMM[1], GAMM[2] etc with suffixes
  • where mnemonics are longer than the specified write fmt, the width of the column in the data section will need to be increased to cater for the increased length of the mnemonic
  • when the data section is wrapped, specifying mnemonics_header_row=True should revert to False, and a logger.warning call made to inform the user/application that this doesn't work.
@kinverarity1 kinverarity1 added data-section-parser A bug or enhancement relating to the data section parser las-writer-code A bug or enhancement relating to code which creates LAS files and removed data-section-parser A bug or enhancement relating to the data section parser labels May 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement las-writer-code A bug or enhancement relating to code which creates LAS files
Projects
None yet
Development

No branches or pull requests

1 participant