|
OpenZGY/Python Public API (ALPHA)
Access seismic data stored in ZGY format.
|
Operations other than read and write. More...
Public Member Functions | |
| def | __init__ (self, iocontext=None) |
| Create a new concrete instance of ZgyUtils. More... | |
| def | delete (self, filename) |
| Delete a file. More... | |
Operations other than read and write.
Operations other than read and write. Any operations that don't fit into ZgyReader or ZgyWriter go here. Such as deleting a file. Or any other operation that does not need the file to be open first.
| def openzgy.api.ZgyUtils.__init__ | ( | self, | |
iocontext = None |
|||
| ) |
Create a new concrete instance of ZgyUtils.
Create a new concrete instance of ZgyUtils. The reason you need to supply a file name or a file name prefix is that you need to provide enough information to identify the back-end that this instance will be bound to. So if you have registered a back-end named "xx", both "xx://some/bogus/file.zgy" and just "xx://" will produce an instance that works for your XX backend, For performance reasons you should consider caching one ZgyUtils instance for each back end you will be using. Instead of just creating a new one each time you want to invoke a method. Just remember that most operations need an instance created with the same prefix.
| def openzgy.api.ZgyUtils.delete | ( | self, | |
| filename | |||
| ) |
Delete a file.
Works both for local and cloud files.
Delete a file. Works both for local and cloud files. Note that the instance must be of the correct (local or cloud) type.
1.8.17