Skip to main content

Reader/Writer library for irap files.

Project description

surfio

Surfio is a library for reading and writing surface files. Currently only supports the irap format.

Installation

pip install .

Usage

Irap surfaces can be imported using the from_ascii_file, from_ascii_string, from_binary_file and from_binary_buffer methods of IrapSurface.

import surfio


surface = surfio.IrapSurface.from_ascii_file("./file.irap")
print(surface.header.ncol, surface.header.nrow) # 10, 11
print(surface.values.shape) # (10, 11)

from_ascii_file is equivalent to

with open("./file.irap") as f:
    surface = surfio.IrapSurface.from_ascii_string(f.read())

but is more performant.

Exporting irap surfaces can be done with

    surface = surfio.IrapSurface(
        surfio.IrapHeader(
            ncol=3,
            nrow=2,
            xori=0.0,
            yori=0.0,
            xinc=2.0,
            yinc=2.0,
            xmax=2.0,
            ymax=2.0,
            rot=0.0,
            xrot=0.0,
            yrot=0.0,
        ),
        values=np.zeros((3, 2)),
    )
    surface.to_ascii_file("./file.txt")

which is equivalent to:

with open("./file.irap", mode="w") as f:
    f.write(surface.to_ascii_file())

Development

pip install -e ".[dev]"

Style is enforced via pre-commit:

pre-commit install

C++ development

To configure the project

cmake --preset release-posix

To build it

cmake --build --preset release-posix

To test it

ctest --preset release-posix

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

surfio-0.0.19-cp314-cp314-win_amd64.whl (205.9 kB view details)

Uploaded CPython 3.14Windows x86-64

surfio-0.0.19-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (340.9 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

surfio-0.0.19-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (307.3 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.26+ ARM64manylinux: glibc 2.28+ ARM64

surfio-0.0.19-cp314-cp314-macosx_15_0_arm64.whl (3.1 MB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

surfio-0.0.19-cp313-cp313-win_amd64.whl (201.4 kB view details)

Uploaded CPython 3.13Windows x86-64

surfio-0.0.19-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (340.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

surfio-0.0.19-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (306.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.26+ ARM64manylinux: glibc 2.28+ ARM64

surfio-0.0.19-cp313-cp313-macosx_15_0_arm64.whl (3.1 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

surfio-0.0.19-cp312-cp312-win_amd64.whl (201.3 kB view details)

Uploaded CPython 3.12Windows x86-64

surfio-0.0.19-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (340.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

surfio-0.0.19-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (306.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.26+ ARM64manylinux: glibc 2.28+ ARM64

surfio-0.0.19-cp312-cp312-macosx_15_0_arm64.whl (3.1 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

surfio-0.0.19-cp311-cp311-win_amd64.whl (201.0 kB view details)

Uploaded CPython 3.11Windows x86-64

surfio-0.0.19-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (341.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

surfio-0.0.19-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (306.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.26+ ARM64manylinux: glibc 2.28+ ARM64

surfio-0.0.19-cp311-cp311-macosx_15_0_arm64.whl (3.1 MB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

File details

Details for the file surfio-0.0.19-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: surfio-0.0.19-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 205.9 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for surfio-0.0.19-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 2a411577b39e4839566a7fd74bf5d729b20ecb80285ec0326085735073a0fbe9
MD5 720656b94bc2ae0e1dec37c9ef3a70d5
BLAKE2b-256 f7ea684bd4ccb3358eda49930e9300c9668ba5db1d0674ddfcffff88d2d2355f

See more details on using hashes here.

Provenance

The following attestation bundles were made for surfio-0.0.19-cp314-cp314-win_amd64.whl:

Publisher: publish.yml on equinor/surfio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file surfio-0.0.19-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for surfio-0.0.19-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9c3678bb92bd06c4548f9da3282f5282a09e773d925aded05d23f24fe07ef42d
MD5 806e8d7bb376127b58a113184394fafe
BLAKE2b-256 8baa7bc610c2dd73f7a7ed5c730982fc91a9d13aeb4c1e270c9d293c8d912a0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for surfio-0.0.19-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yml on equinor/surfio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file surfio-0.0.19-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for surfio-0.0.19-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 40a033622d7806e14110d7b35963b886bd7eca978bdd38888dbae9e09f45e9b0
MD5 24635a95327ceb2d28d051c5b8643fba
BLAKE2b-256 68c961bea47748e9d60146a4a8c6dd5e95a3c0a06dca01554f9eb93c3c5f2cd4

See more details on using hashes here.

Provenance

The following attestation bundles were made for surfio-0.0.19-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: publish.yml on equinor/surfio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file surfio-0.0.19-cp314-cp314-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for surfio-0.0.19-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 803ff620863ab8f09fdef599b24f342b2194f24b923099883ccd4d9da48ca23b
MD5 cb50c4ffe4127601c4ac2e54b385cd29
BLAKE2b-256 2a07ffb50519e62a0e821d4aa630462bb8c0da57904a7d61275629f48bbb3e88

See more details on using hashes here.

Provenance

The following attestation bundles were made for surfio-0.0.19-cp314-cp314-macosx_15_0_arm64.whl:

Publisher: publish.yml on equinor/surfio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file surfio-0.0.19-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: surfio-0.0.19-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 201.4 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for surfio-0.0.19-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d5cbc956cb74ceef8f043a45142e2d41ec1e47955b037906a66926f1d3982b85
MD5 f1dca197d7b0d0c27d9ec5021ab2f019
BLAKE2b-256 2db9824a9bf194364a71c2de32c4c56746896d2dea388bf0e041e806aa4f4df1

See more details on using hashes here.

Provenance

The following attestation bundles were made for surfio-0.0.19-cp313-cp313-win_amd64.whl:

Publisher: publish.yml on equinor/surfio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file surfio-0.0.19-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for surfio-0.0.19-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 92657e5bf5d0706df8d3351af7123a6b5a3cc535ac738b3b05e1ca075a9af45c
MD5 6b16216d1822690ec3743e518bffd824
BLAKE2b-256 0fd1a043cf3c91fbce00cd82f23083e4fe34173976a51bd72bea689254131d31

See more details on using hashes here.

Provenance

The following attestation bundles were made for surfio-0.0.19-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yml on equinor/surfio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file surfio-0.0.19-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for surfio-0.0.19-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 01b57150de723b286295fd77520330d9f5d53579d96b427e226bd56f7944e840
MD5 bf7cb17c56d414e95b4e2c8e94fbad21
BLAKE2b-256 9b15000090a14c1c81bf10773ece3ef5c5c476ae6451bd39af58522e87a4cf99

See more details on using hashes here.

Provenance

The following attestation bundles were made for surfio-0.0.19-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: publish.yml on equinor/surfio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file surfio-0.0.19-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for surfio-0.0.19-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 69e6bf2bf6bcff00b2c480eb8da6195e12ea422b2f66bf52022c35b9d6b7ebea
MD5 e0b82f16332f638da2374226289d62e7
BLAKE2b-256 22d45e316abae4f05d6cedf4dd6fe30ddb5b6ae351849502b5cb6ffcad2db888

See more details on using hashes here.

Provenance

The following attestation bundles were made for surfio-0.0.19-cp313-cp313-macosx_15_0_arm64.whl:

Publisher: publish.yml on equinor/surfio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file surfio-0.0.19-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: surfio-0.0.19-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 201.3 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for surfio-0.0.19-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f85f19834655df6787c4043b367ffdc063b46a836c2126ba964215f54b8a29aa
MD5 36f56b6e6385513f89d4770c315594f1
BLAKE2b-256 d93b2f854d4185dd4727a64fc6c56686273b923c88b4827d1b2053ed22220d57

See more details on using hashes here.

Provenance

The following attestation bundles were made for surfio-0.0.19-cp312-cp312-win_amd64.whl:

Publisher: publish.yml on equinor/surfio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file surfio-0.0.19-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for surfio-0.0.19-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 43a47a83fc693e001ebbb49e0ec8fecdf5c6a9435697901ec4a5b81c48b3bafc
MD5 25b9a91dfe01730514275d22dffb5b22
BLAKE2b-256 8a89301800de38b38f6cd9f91315b667756af621435cf862cd8415195a1bda88

See more details on using hashes here.

Provenance

The following attestation bundles were made for surfio-0.0.19-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yml on equinor/surfio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file surfio-0.0.19-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for surfio-0.0.19-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 aea0f57f8c7ddf7f0c2a5ce7a51775cff173d4abe2a62d69c6df69335f42ec13
MD5 d1fa71c74a6886a1b59e8f4739bf846a
BLAKE2b-256 58b9b2499d2fc53dcd351db1dd6142a99fc130a246e705cac03e76f7c303134a

See more details on using hashes here.

Provenance

The following attestation bundles were made for surfio-0.0.19-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: publish.yml on equinor/surfio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file surfio-0.0.19-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for surfio-0.0.19-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 b75a802600544e10a85eb845a281aaed4d4d918a88e46ffc184bd219e51498b6
MD5 a7b5ba09a9d01b0af7a33f2db1256735
BLAKE2b-256 277cd3b984a99f86286a30abd62a296e211ce735598616cbaca12a231ae36d85

See more details on using hashes here.

Provenance

The following attestation bundles were made for surfio-0.0.19-cp312-cp312-macosx_15_0_arm64.whl:

Publisher: publish.yml on equinor/surfio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file surfio-0.0.19-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: surfio-0.0.19-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 201.0 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for surfio-0.0.19-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c5539a4bb46ee08a5ae9e0463dc5bd9fef42f769c152cbbda470b917200e9cb7
MD5 8823d7bf436afcc5468ec704d4dc9ae3
BLAKE2b-256 ed866e8201770e08e3788f709eaeb35ae1d1423e9fd5660e576cbcaa983682a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for surfio-0.0.19-cp311-cp311-win_amd64.whl:

Publisher: publish.yml on equinor/surfio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file surfio-0.0.19-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for surfio-0.0.19-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0f303ed832ea9af29ad617a39724e72a325cacf4e39d62a0f5e4b130e1b50298
MD5 f492f7cabc564aaf46cb9173bd2f530f
BLAKE2b-256 9758621f437b46c4f5a1e30e114c9661658eef2d0920401d8a4e6c72fac07459

See more details on using hashes here.

Provenance

The following attestation bundles were made for surfio-0.0.19-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yml on equinor/surfio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file surfio-0.0.19-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for surfio-0.0.19-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c16e8c0ac5ff76b4433797753d94132502453d92024442e08e44a9d74e89e78c
MD5 ad3a754d0109fd921e33d402c3cf4043
BLAKE2b-256 e1f1ae5cf651e7356184005daa7e47656962789e85b8d48cb7d5abcba9ec6a4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for surfio-0.0.19-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: publish.yml on equinor/surfio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file surfio-0.0.19-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for surfio-0.0.19-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 3251a467657e76cbe65bd66a1fb6780bf7c2d352ea0cdb29d37c6bd7615eae9d
MD5 36d8f8b8bb3c73e5c8f973670ff26b47
BLAKE2b-256 24f59e65e7a67e558201b1a5d557c28f09d61dfaf11b5486958708739083d03b

See more details on using hashes here.

Provenance

The following attestation bundles were made for surfio-0.0.19-cp311-cp311-macosx_15_0_arm64.whl:

Publisher: publish.yml on equinor/surfio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page