# makeitseg2
`makeitseg2` is a Python module that converts SEGY or SU (Seismic Un*x) files to SEG2 (or DAT) files. It also supports converting stream data to SEG2 format.
### Getting Started
A working example is provided in the "test.ipynb" file.
### Prerequisites
Before installing `makeitseg2`, ensure that `obspy` is installed. You can install it via pip using the following command:
``` bash
pip install obspy
```
## Installation
Since the pip installation for the latest version of makeitseg2 is not yet available, you can download the repository and install it using the setup file.
``` bash
git clone https://github.com/yourusername/makeitseg2.git
cd makeitseg2
python setup.py install
```
## How it works
To use makeitseg2, you can import it and call the from_file function to convert SEGY or SU files to SEG2 format. Optionally, you can call the from_data function to convert stream data to SEG2 format.
``` python
import makeitseg2
# Convert SEGY or SU file to SEG2
makeitseg2.from_file(SEGY_or_SU_filename, newConverted_SEG2_file_name)
# Convert stream data to SEG2
makeitseg2.from_data(src_rcvr_location, sampling_interval, trace_Array, newConverted_SEG2_file_name)
```
If `newConverted_SEG2_file_name` is not provided, the new SEG2 file will have the same name as the original and will be placed in the `Converted_SEG2` folder.
Raw data
{
"_id": null,
"home_page": "",
"name": "makeitseg2",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "segy,su,seismic,seg2,segy to seg2 converter,su to seg2 converter,segy to dat file converter,su to dat file converter,segy to dat file converter using python",
"author": "Shanu Biswas",
"author_email": "shanubiswas119@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/1b/4d/f81c1a7d72df300e5016d6e7c8df32768aa608184b54226f144b49901b19/makeitseg2-1.0.0.tar.gz",
"platform": null,
"description": "# makeitseg2\n\n`makeitseg2` is a Python module that converts SEGY or SU (Seismic Un*x) files to SEG2 (or DAT) files. It also supports converting stream data to SEG2 format.\n\n### Getting Started\n\nA working example is provided in the \"test.ipynb\" file.\n\n### Prerequisites\n\nBefore installing `makeitseg2`, ensure that `obspy` is installed. You can install it via pip using the following command:\n\n``` bash\npip install obspy\n```\n\n## Installation\n\nSince the pip installation for the latest version of makeitseg2 is not yet available, you can download the repository and install it using the setup file.\n\n``` bash\ngit clone https://github.com/yourusername/makeitseg2.git\ncd makeitseg2\npython setup.py install\n```\n## How it works\n\nTo use makeitseg2, you can import it and call the from_file function to convert SEGY or SU files to SEG2 format. Optionally, you can call the from_data function to convert stream data to SEG2 format.\n\n``` python\nimport makeitseg2\n\n# Convert SEGY or SU file to SEG2\nmakeitseg2.from_file(SEGY_or_SU_filename, newConverted_SEG2_file_name)\n\n# Convert stream data to SEG2\nmakeitseg2.from_data(src_rcvr_location, sampling_interval, trace_Array, newConverted_SEG2_file_name)\n```\nIf `newConverted_SEG2_file_name` is not provided, the new SEG2 file will have the same name as the original and will be placed in the `Converted_SEG2` folder.\n",
"bugtrack_url": null,
"license": "",
"summary": "makeitseg2",
"version": "1.0.0",
"project_urls": null,
"split_keywords": [
"segy",
"su",
"seismic",
"seg2",
"segy to seg2 converter",
"su to seg2 converter",
"segy to dat file converter",
"su to dat file converter",
"segy to dat file converter using python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "dd8b874c1183beaa3d347a77bc962c4cee30c6e9a19e3cd6bedb34a4e35c3548",
"md5": "6c8a671961312266389a9198f461facb",
"sha256": "593d54f69b5244b0dad1fdf65f53d9a0985c62b871fa9ce4ff91147869dc3f25"
},
"downloads": -1,
"filename": "makeitseg2-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6c8a671961312266389a9198f461facb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 6079,
"upload_time": "2024-03-07T09:49:49",
"upload_time_iso_8601": "2024-03-07T09:49:49.184401Z",
"url": "https://files.pythonhosted.org/packages/dd/8b/874c1183beaa3d347a77bc962c4cee30c6e9a19e3cd6bedb34a4e35c3548/makeitseg2-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1b4df81c1a7d72df300e5016d6e7c8df32768aa608184b54226f144b49901b19",
"md5": "75389bc8476d9dc64b9eaa2c562a30b9",
"sha256": "5492d9076aceb0caba758db48cdc4df02ceabca72093b2c05e5e851efcfb35e1"
},
"downloads": -1,
"filename": "makeitseg2-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "75389bc8476d9dc64b9eaa2c562a30b9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5989,
"upload_time": "2024-03-07T09:49:51",
"upload_time_iso_8601": "2024-03-07T09:49:51.023680Z",
"url": "https://files.pythonhosted.org/packages/1b/4d/f81c1a7d72df300e5016d6e7c8df32768aa608184b54226f144b49901b19/makeitseg2-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-07 09:49:51",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "makeitseg2"
}