{"id":29802956,"url":"https://github.com/amirmardan/segy_loader","last_synced_at":"2025-07-28T10:44:44.408Z","repository":{"id":279113792,"uuid":"937484137","full_name":"AmirMardan/segy_loader","owner":"AmirMardan","description":"A tool for loading segy file and create a seis file","archived":false,"fork":false,"pushed_at":"2025-03-23T19:12:42.000Z","size":8881,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T20:22:50.605Z","etag":null,"topics":["segy","segyio","seismic","seismic-data","seismic-processing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AmirMardan.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-23T06:51:38.000Z","updated_at":"2025-03-23T19:12:44.000Z","dependencies_parsed_at":"2025-03-23T20:21:40.964Z","dependency_job_id":null,"html_url":"https://github.com/AmirMardan/segy_loader","commit_stats":null,"previous_names":["amirmardan/segy_loader"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AmirMardan/segy_loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirMardan%2Fsegy_loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirMardan%2Fsegy_loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirMardan%2Fsegy_loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirMardan%2Fsegy_loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AmirMardan","download_url":"https://codeload.github.com/AmirMardan/segy_loader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirMardan%2Fsegy_loader/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267504032,"owners_count":24098336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["segy","segyio","seismic","seismic-data","seismic-processing"],"created_at":"2025-07-28T10:44:43.480Z","updated_at":"2025-07-28T10:44:44.393Z","avatar_url":"https://github.com/AmirMardan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Segy Loader\nThis is a package that allows me to load segy files and select the appropriate bytes for acquisition parameters and convert the data to a `h5` file. This `h5` file has a `seis` extension which can be loaded using `load_seis` (check the examples) and be manipulated easily.\n\n- [Segy Loader](#segy-loader)\n- [Load a `segy` file](#load-a-segy-file)\n- [Installation](#installation)\n  - [Using `pyrpoject.toml`](#using-pyrpojecttoml)\n  - [Using `setup.py`](#using-setuppy)\n\n## Load a `segy` file\n```python\nfrom path_loader import data_path  # noqa: F401\nfrom segy_loader import load_segy\n\nload_segy()\n```\n![segy_loader](./readme_files/segy.png)\n\nAfter saving as a `seis` file, it can be loaded using `segy_loader.io.load_seis` which returns a  `Seis` object with multiple functionalities.\n\n```Python\nfrom segy_loader.io import load_seis\npath = osp.abspath(osp.join(osp.dirname(__file__), \"../data/seis/42.seis\"))\n\ndata = load_seis(path)\n```\nThis only load the `seis` file, but `data` allows easy data manipulation and sorting.\n\n![seismic](./readme_files/seismic.png)\n\nExamples are available in the [Example](https://github.com/AmirMardan/segy_loader/tree/main/example) folder.\n\n## Installation\n\n1. Install Python 3.11.6\n    ```bash\n    pyenv install 3.11.6\n    ```\n    If you don't have `pyenv` installed, use \n    ```bash\n    curl https://pyenv.run | bash\n    ```\n    first.\n\n### Using `pyrpoject.toml`\n2. Install `Poetry` and add it to your system's path.\n   ```bash\n   curl -sSL https://install.python-poetry.org | python3 -\n   ```\n3. Add it to your system's path\n   ```bash\n   echo 'export PATH=\"$HOME/Library/Application Support/pypoetry/venv/bin:$PATH\"' \u003e\u003e ~/.zshrc\n   ```\n   You can check if it is installed using `poetry --version`\n4. Create a virtual environment\n   ```bash\n    poetry env use python3.11.6\n   ```\n4. Activate the virtual environment\n   ```bash\n    source $(poetry env info --path)/bin/activate\n   ```\n5. Install requirements\n   ```bash\n    poetry install\n   ```\n6. Call `load_segy()`\n   ```bash\n   python -c \"from segy_loader import load_segy;load_segy()\" \n   ```\n\n### Using `setup.py`\n\n2. Create a virtual environemnt \n   ```bash\n   pyenv virtualenv 3.11.6 0_segy_loader_venv\n   ```\n   You can check the environments using `pyenv virtualenvs` or `pyenv versions`\n3. Activate the virtual environment\n   ```bash\n   pyenv activate 0_segy_loader_venv\n   ```\n4. Install requirements\n   ```bash\n   python -m pip install -r requirements.txt\n   ```\n5. Install `segy_loader`\n   ```bash\n   python -m pip install -e .\n   ```\n   or \n   ```bash\n   python -m pip install git+https://github.com/AmirMardan/segy_loader.git\n   ```\n6. Call `load_segy()`\n   ```bash\n   python -c \"from segy_loader import load_segy;load_segy()\" \n   ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirmardan%2Fsegy_loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famirmardan%2Fsegy_loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirmardan%2Fsegy_loader/lists"}