-
Notifications
You must be signed in to change notification settings - Fork 5
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
wellio <-> welly objects (python) #6
Comments
Stale issue message |
I'm very close to creating a welly object from a JSON file. I'm able to parse the header, location and curve data. But I'm looking for help in creating the curve object. Let me know if you are open to collaborate. |
Sorry, just seeing this now. We got something working a while back for this but it was fragile. Can you say a little more about what you were trying or provide a link? |
Here is a link to the code for converting a JSON file to a welly object: https://www.discovervolve.com/2020/09/26/navigating-well-log-formats-in-the-volve-oilfield-data-with-the-welly-library/ Also, I have created pull request for this function on the Welly page: agilescientific/welly#138 |
Hi @JustinGOSSES , @discover-volve, It looks like @discover-volve's is working with importing and exporting to JSON that conforms to the Petroware JSON Well Log Format: https://jsonwelllogformat.org. That is interesting, because there was some interest in it back when we built the Wellio.js to Lasio JSON exchange functionality. |
@discover-volve for some context: JSON the file format and JSON the well log format are not the same thing. Petroware made a very bad decision by using a file format name for a well log format. It confuses people. JSON files are defined here: https://www.w3schools.com/js/js_json_intro.asp and here: https://fileinfo.com/extension/json#:~:text=A%20JSON%20file%20is%20a,web%20application%20and%20a%20server. The petroware JSON well log format is a specific schema for writing JSONs that contain well logs. Not all well logs in JSON files are readable by Petroware's JSON projects (some of which are paid products). For example, wellio.js predates Petroware's work, so it doesn't follow their schema. I've stayed away from converting wellio.js and wellioviz.js to Petroware's version of JSON as they haven't been very clear on open licensing and some things are expressly paid products. Basically, I suspect there is a risk of being sued if you write conversion software using their schema. <--- Correction: looks like things are more clear & open now than they were the last time I looked, which admittedly was when Petroware's JSON project first came out. |
Also, if memory serves, LASIO already has a JSON functionality and Welly wraps LASIO, so not sure what parts of LASIO are accessible by Welly? |
We have some examples here in this notebook but probably need to get back to this and clean it up and then reference from README.md https://github.com/JustinGOSSES/wellio.js/blob/master/notebooks/wellio.js%20and%20lasio%20test.ipynb Made as issue #55 |
Welly wraps LASIO only for the LAS format. However, it doesn't wrap the JSON functionality of LASIO and I had to code a function to let Welly handle JSON files. The conversion was from DLIS, LIS, ASC well log formats to JSON for the Volve dataset and the JSON files were provided by Petroware. LAS files are not available. |
I understand that JSON file format and JSON well log format are two different things. Let's name it as LJS : Log JSON Standard, similar to the LAS, LIS naming convention. Just saying!!!! |
Adding @kinverarity1, since there was earlier coordination for the LAS-JSON interface between LASIO and WELLIO.JS and it may make sense to continue collaboration on LAS-JSON interfaces. |
A clarification: The JSON Well Log Format is free and open and has no links to any commercial entity. It has a steering committee of individuals from different parts of the industry. The tools for the format supplied in GitHub are shared under the Apache 2.0 license. Petroware is a company using and promoting this technology; They make reference implementations to prove its sustainability. They have created products and tools that have been contributed to the community, and they also provide commercial products like the bulk-converter they used to convert Volve to JSON. Other than this they have no role with the format whatsoever. "JSON" may be confusing as it may refer to many different things, the JSON Well Log Format has its own schema and may be referred to as JWLF to avoid confusing it with other JSON formats. |
Yeah surely simplest way here is to use the existing bridges between lasio, wellio.js and welly. @discover-volve if you create a |
@kinverarity1 That's exactly what my function does. |
Ah yep sorry I misread the code. I suggest removing e.g. lines 385-392 where the LAS file is written to disk as it's presumably unnecessary. |
The LAS file needs to be stored on the disk so that it can be imported. I'll check if this can be done in memory. |
Would be nice to be able to convert back and forth between a welly.py object and a wellio.js JSON object. They are both objects, so this is probably just a matter of mapping? I'm assuming both retain all the information in the original LAS file.
https://github.com/agile-geoscience/welly
The text was updated successfully, but these errors were encountered: