# lascheck
Python library for checking conformity of Log ASCII Standard (LAS) files to standards
Derived from [lasio](https://github.com/kinverarity1/lasio)
Currently, supports checking against LAS 2.0 standard only
http://www.cwls.org/wp-content/uploads/2014/09/LAS_20_Update_Jan2014.pdf
Simple example
```
>>> las = lascheck.read('sample.las')
>>> las.check_conformity()
>>> las.get_non_conformities()
```
The checks present in the package:
```
The depth value divided by the step value must be a whole number.
The index curve (i.e. first curve) must be depth, time or index.
The only valid mnemonics for the index channel are DEPT, DEPTH, TIME, or INDEX.
Time and date can be included in LAS 2.0 files provided that they are expressed as a number.
"~V" must be the first section.
Embedded blank lines anywhere in the section are forbidden
"~V" is a required section.
"~W" (also known as "WELL INFORMATION SECTION") is a required section.
*"~C" *(also known as ~CURVE INFORMATION SECTION") is a required section.
*"~A" *(also known as ~ASCII LOG DATA") is a required section.
Only one *"~V" *section can occur in an LAS 2.0 file.
~V section must contain the lines: VERS, WRAP.
Only one *"~W" *section can occur in an LAS 2.0 file.
~W section must contain the lines: "STRT", "STOP", "STEP", "NULL", "COMP", "WELL", "FLD", "LOC", "SRVC", "DATE".
Only one *"~C" *section can occur in an LAS 2.0 file.
Only one *"~P" *section can occur in an LAS 2.0 file.
Only one *"~O" *section can occur in an LAS 2.0 file.
The data section ~A is the last section in a file.
The start depth (or time or index) value when divided by the step depth (or time or index) value must be a whole number.
The stop depth (or time or index) value when divided by the step depth (or time or index) value must be a whole number.
If the index is depth, the units must be M (metres), F (feet) or FT (feet).
```
Raw data
{
"_id": null,
"home_page": "https://github.com/MandarJKulkarni/lascheck",
"name": "lascheck",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.5",
"maintainer_email": null,
"keywords": "las, geophysics, version",
"author": "Mandar J Kulkarni.",
"author_email": "\"Mandar J Kulkarni.\" <mjkool@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/76/a2/a9ffb4e83bf02c2b8aa146ef3077b57c1c8c5d61ff4af2a65f80ccc4409c/lascheck-0.1.5.tar.gz",
"platform": null,
"description": "# lascheck\r\nPython library for checking conformity of Log ASCII Standard (LAS) files to standards\r\n\r\nDerived from [lasio](https://github.com/kinverarity1/lasio)\r\n\r\nCurrently, supports checking against LAS 2.0 standard only\r\n\r\nhttp://www.cwls.org/wp-content/uploads/2014/09/LAS_20_Update_Jan2014.pdf\r\n\r\nSimple example\r\n\r\n```\r\n >>> las = lascheck.read('sample.las')\r\n >>> las.check_conformity()\r\n >>> las.get_non_conformities()\r\n```\r\nThe checks present in the package:\r\n\r\n```\r\n The depth value divided by the step value must be a whole number.\r\n\r\n The index curve (i.e. first curve) must be depth, time or index.\r\n\r\n The only valid mnemonics for the index channel are DEPT, DEPTH, TIME, or INDEX.\r\n\r\n Time and date can be included in LAS 2.0 files provided that they are expressed as a number.\r\n\r\n \"~V\" must be the first section.\r\n\r\n Embedded blank lines anywhere in the section are forbidden\r\n\r\n \"~V\" is a required section.\r\n\r\n \"~W\" (also known as \"WELL INFORMATION SECTION\") is a required section.\r\n\r\n *\"~C\" *(also known as ~CURVE INFORMATION SECTION\") is a required section.\r\n\r\n *\"~A\" *(also known as ~ASCII LOG DATA\") is a required section.\r\n\r\n Only one *\"~V\" *section can occur in an LAS 2.0 file.\r\n\r\n ~V section must contain the lines: VERS, WRAP.\r\n\r\n Only one *\"~W\" *section can occur in an LAS 2.0 file.\r\n\r\n ~W section must contain the lines: \"STRT\", \"STOP\", \"STEP\", \"NULL\", \"COMP\", \"WELL\", \"FLD\", \"LOC\", \"SRVC\", \"DATE\".\r\n\r\n Only one *\"~C\" *section can occur in an LAS 2.0 file.\r\n\r\n Only one *\"~P\" *section can occur in an LAS 2.0 file.\r\n\r\n Only one *\"~O\" *section can occur in an LAS 2.0 file.\r\n\r\n The data section ~A is the last section in a file.\r\n \r\n The start depth (or time or index) value when divided by the step depth (or time or index) value must be a whole number.\r\n\r\n The stop depth (or time or index) value when divided by the step depth (or time or index) value must be a whole number.\r\n \r\n If the index is depth, the units must be M (metres), F (feet) or FT (feet).\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "Checking conformity of Log ASCII Standard (LAS) files to LAS 2.0 standard",
"version": "0.1.5",
"project_urls": {
"Homepage": "https://github.com/MandarJKulkarni/lascheck",
"Issues": "https://github.com/MandarJKulkarni/lascheck/issues"
},
"split_keywords": [
"las",
" geophysics",
" version"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d341dbfcde8768e51ccd76dca304c56ccebb58f892f300c6cc8e74a733d72a1b",
"md5": "bc93839e92bb30d6960356c64d25e1f6",
"sha256": "833a5eb0f7d9fdf8f56115fb4eec7f9d6a7dc1148f49a942a1dca65a06e5d16f"
},
"downloads": -1,
"filename": "lascheck-0.1.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "bc93839e92bb30d6960356c64d25e1f6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.5",
"size": 23264,
"upload_time": "2024-09-29T19:50:15",
"upload_time_iso_8601": "2024-09-29T19:50:15.231228Z",
"url": "https://files.pythonhosted.org/packages/d3/41/dbfcde8768e51ccd76dca304c56ccebb58f892f300c6cc8e74a733d72a1b/lascheck-0.1.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "76a2a9ffb4e83bf02c2b8aa146ef3077b57c1c8c5d61ff4af2a65f80ccc4409c",
"md5": "8104781c72a8df7d3f551f62b8f26d8a",
"sha256": "8868273238269d5d64b7b8ad94ea445261aa0ef2f4c663632b1d89d318b9841e"
},
"downloads": -1,
"filename": "lascheck-0.1.5.tar.gz",
"has_sig": false,
"md5_digest": "8104781c72a8df7d3f551f62b8f26d8a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.5",
"size": 23405,
"upload_time": "2024-09-29T19:50:16",
"upload_time_iso_8601": "2024-09-29T19:50:16.752674Z",
"url": "https://files.pythonhosted.org/packages/76/a2/a9ffb4e83bf02c2b8aa146ef3077b57c1c8c5d61ff4af2a65f80ccc4409c/lascheck-0.1.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-29 19:50:16",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "MandarJKulkarni",
"github_project": "lascheck",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "lascheck"
}