lasio
lasio copied to clipboard
Write las ascii object to memory as JSON
Is your feature request related to a problem? Please describe. I need to send my edited las file to an API, but I dont want to send the lasio object. I want to send the LAS ascii object.
Describe the solution you'd like Ability to write ascii to memory using lasio.
Describe alternatives you've considered writing the file to local disk and reading it.
Additional context OSDU
Lasio can write the Lasio object out to the text formats: csv, and json.
csv
LASFile.to_csv(file_ref, mnemonics=True, units=True, units_loc='line', **kwargs)
json
LASFile.to_json()
or
json.dumps(LASFile, cls=las.JSONEncoder)
At the moment the only way to serialise the complete LASFile lasio object is to write it back to LAS, so I have tagged this as an enhancement.