Skip to main content

A python wrapper to unsio

Project description

ABOUT

UNSIO (Universal Nbody Snapshot Input Output) is an API which perform input/output operations in a generic way, and on different kind of nbody files format (nemo, Gadget binaries 1 and 2, Gadget hdf5, Ramses). By using this API, a user could write only one analysis program which will work on all known files format supported by UNSIO. It's not necessary anymore to know how is implemented a file format, UNSIO will do transparently and automatically all the hard work for you ! With UNSIO, you will spend less time to develop your analysis program. UNSIO comes with an integrated sqlite3 database which can be used to retrieve automatically all your data among terabytes of hard disks.

Features

UNSIO can be used from different languages (C,C++,Fortran and Python)

Supported files format :

Installing python wrapper

pip install python-unsio -U

Usage

  • In the example below, we load a RAMSES simulation and we save it in GADGET3 file format
import unsio.input as uns_in  # unsio reading module

myfile="/home/jcl/output_00004" # input RAMSES simulation
# we instantiate a CUNS_IN object
my_in=uns_in.CUNS_IN(myfile,"gas,stars") # We select components GAS and STARS
#
# Reading
#
if my_in.nextFrame(): # load snapshot
  # read stars positions
  status,poss=my_in.getData("stars","pos")
  # read gas positions
  status,posg=my_in.getData("gas","pos")
  # read gas densities
  status,rho=my_in.getData("gas","rho")
  # read time simulation
  status,timex=my_in.getData("time")
#
# Writing
#
import unsio.output as uns_out # unsio writing module

myoutfile="snapshot.g3" # output file name
# we instantiate a CUNS_OUT object
my_out=uns_out.CUNS_OUT(myoutfile,"gadget3") # select gadget3 output format

# prepare data to be saved
# set time
status=my_out.setData(timex,"time")
# set stars positions
status=my_out.setData(poss,"stars","pos")
# set gas positions
status=my_out.setData(posg,"gas","pos")
# set gas densities
status=my_out.setData(rho,"gas","rho")

# write on file system
my_out.save()
# close
my_out.close()

License

UNSIO is open source and released under the terms of the CeCILL2 Licence

Webpage

PLease isit :

Project details


Download files

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

Source Distribution

python-unsio-0.9.3rc5.tar.gz (25.9 kB view details)

Uploaded Source

Built Distributions

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

python_unsio-0.9.3rc5-cp37-cp37m-manylinux2010_x86_64.whl (6.1 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

python_unsio-0.9.3rc5-cp37-cp37m-manylinux1_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.7m

python_unsio-0.9.3rc5-cp37-cp37m-macosx_10_13_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.7mmacOS 10.13+ x86-64

python_unsio-0.9.3rc5-cp36-cp36m-manylinux2010_x86_64.whl (6.1 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

python_unsio-0.9.3rc5-cp36-cp36m-manylinux1_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.6m

python_unsio-0.9.3rc5-cp36-cp36m-macosx_10_13_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.6mmacOS 10.13+ x86-64

python_unsio-0.9.3rc5-cp35-cp35m-manylinux2010_x86_64.whl (6.1 MB view details)

Uploaded CPython 3.5mmanylinux: glibc 2.12+ x86-64

python_unsio-0.9.3rc5-cp35-cp35m-manylinux1_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.5m

python_unsio-0.9.3rc5-cp35-cp35m-macosx_10_13_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.5mmacOS 10.13+ x86-64

python_unsio-0.9.3rc5-cp34-cp34m-manylinux2010_x86_64.whl (6.1 MB view details)

Uploaded CPython 3.4mmanylinux: glibc 2.12+ x86-64

python_unsio-0.9.3rc5-cp34-cp34m-manylinux1_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.4m

python_unsio-0.9.3rc5-cp34-cp34m-macosx_10_13_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.4mmacOS 10.13+ x86-64

python_unsio-0.9.3rc5-cp27-cp27mu-manylinux2010_x86_64.whl (6.1 MB view details)

Uploaded CPython 2.7mumanylinux: glibc 2.12+ x86-64

python_unsio-0.9.3rc5-cp27-cp27mu-manylinux1_x86_64.whl (4.3 MB view details)

Uploaded CPython 2.7mu

python_unsio-0.9.3rc5-cp27-cp27m-manylinux2010_x86_64.whl (6.1 MB view details)

Uploaded CPython 2.7mmanylinux: glibc 2.12+ x86-64

python_unsio-0.9.3rc5-cp27-cp27m-manylinux1_x86_64.whl (4.3 MB view details)

Uploaded CPython 2.7m

File details

Details for the file python-unsio-0.9.3rc5.tar.gz.

File metadata

  • Download URL: python-unsio-0.9.3rc5.tar.gz
  • Upload date:
  • Size: 25.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4

File hashes

Hashes for python-unsio-0.9.3rc5.tar.gz
Algorithm Hash digest
SHA256 df0439e7273df5e802acc3b38202130d03a2317678ef9b8cc3fcd4fcca7f3ffe
MD5 2e7dd1eca0de5c7086044a6977e2a814
BLAKE2b-256 006501c6d25a06ae505292eb69c944daed71fda7294877ab33f8b98ea2e88495

See more details on using hashes here.

File details

Details for the file python_unsio-0.9.3rc5-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: python_unsio-0.9.3rc5-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.1 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4

File hashes

Hashes for python_unsio-0.9.3rc5-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ecc7d8c2bf3a124ed3754aec3d43abd10e2b3af1a7a7cb510eec6d254afdabbb
MD5 918e37e5fcd520cd2604586f4756767b
BLAKE2b-256 703114b10c2b91dc0d9e932adb9b850843ff97a618db059352d34c314466e74f

See more details on using hashes here.

File details

Details for the file python_unsio-0.9.3rc5-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: python_unsio-0.9.3rc5-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.1.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.0

File hashes

Hashes for python_unsio-0.9.3rc5-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bf103573bda2a133fa57a0878c47c08dd4e2e41de299b8a1e5d4919875547cec
MD5 722b334abb123e6abfaee945fcd7a762
BLAKE2b-256 5ff4216db8eb5b0ba92eaf3afadbfa512306c3e6cb4c2994f15cae2c0b8354d2

See more details on using hashes here.

File details

Details for the file python_unsio-0.9.3rc5-cp37-cp37m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: python_unsio-0.9.3rc5-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.7m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.0

File hashes

Hashes for python_unsio-0.9.3rc5-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 23a9d9dca4371772eedd035766c93f194e5968a5ba14217423a0f87ad74c5c72
MD5 9166654bcc11a21f1ac34f4aa8121f86
BLAKE2b-256 e6501e1dd5302deb22931744bbe7507dd0bf1c2870f43c627936151b6b1bd53b

See more details on using hashes here.

File details

Details for the file python_unsio-0.9.3rc5-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: python_unsio-0.9.3rc5-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.1 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4

File hashes

Hashes for python_unsio-0.9.3rc5-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ba4af267ea4a0e82f6bc74a49659e9200957e11cb03be01238bd516a421cc373
MD5 acef3d98de9ec4a6eb4ddf15e38f08d8
BLAKE2b-256 227ae063cd1cbed72036a9c491aae0ae92224b6a5a83b343d721a8c80dca6bdc

See more details on using hashes here.

File details

Details for the file python_unsio-0.9.3rc5-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: python_unsio-0.9.3rc5-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.1.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.0

File hashes

Hashes for python_unsio-0.9.3rc5-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f938d669107eb7775e6dd1008eae6f83a487177bd592ce91b5c1fc4f7c701e47
MD5 f8616088ef30049f271811d192ff733a
BLAKE2b-256 fff76859f38947c467465fc6982de229392de59321500f7c109fdb7851d8a42c

See more details on using hashes here.

File details

Details for the file python_unsio-0.9.3rc5-cp36-cp36m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: python_unsio-0.9.3rc5-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.6m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.0

File hashes

Hashes for python_unsio-0.9.3rc5-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 ceb7ae4652976d34e46215ea12532aa59a3c8d2cc9cfb479dfd7675c6070fb55
MD5 387ec124253215b63fea344059d1f59d
BLAKE2b-256 3381ebd8786abcba4a940b6174dc1dfac54ee3c35c254bbe61901a7df2880ed1

See more details on using hashes here.

File details

Details for the file python_unsio-0.9.3rc5-cp35-cp35m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: python_unsio-0.9.3rc5-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.1 MB
  • Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4

File hashes

Hashes for python_unsio-0.9.3rc5-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 8d529bb37a08eeb0d53eb00fd050486f39d02635165d1359e6316a7ab932c96e
MD5 6ff11fb330ccb0fb18885c660e89fa5d
BLAKE2b-256 2b090e9d81c4013880fedccc9d4b8108c83f90cfc547bc8d16d8659de19120b3

See more details on using hashes here.

File details

Details for the file python_unsio-0.9.3rc5-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: python_unsio-0.9.3rc5-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.1.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.0

File hashes

Hashes for python_unsio-0.9.3rc5-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e1dfc94fd5bc62644db002aece24a5455eabe5ad224d14f59ccee3dee472f0cb
MD5 dcad6060d3c6380aea59bf9732ae3ce1
BLAKE2b-256 9ee2e8cdf6a9eb629d4120ab142981bd834a62f1b263fb86194b6825fee0a31f

See more details on using hashes here.

File details

Details for the file python_unsio-0.9.3rc5-cp35-cp35m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: python_unsio-0.9.3rc5-cp35-cp35m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.5m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.0

File hashes

Hashes for python_unsio-0.9.3rc5-cp35-cp35m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 49a557197ae44b47461ac6ff797f33bb0ad5a90dddefe6d856d74dafcf4ef1d5
MD5 16657950b8b4a8140146b52ee25fe8a4
BLAKE2b-256 0df03215e6d2f7dabcb8a2e92cbb190da61d3154f5e3eabaae9c6cef0145b255

See more details on using hashes here.

File details

Details for the file python_unsio-0.9.3rc5-cp34-cp34m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: python_unsio-0.9.3rc5-cp34-cp34m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.1 MB
  • Tags: CPython 3.4m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4

File hashes

Hashes for python_unsio-0.9.3rc5-cp34-cp34m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4563848db1219ee873b8f6badfcff42fe433e13b927cc6761effcaaf3d71be31
MD5 dba5397554fa9dbbfeaf99cb8f764fc7
BLAKE2b-256 a8234f8de16846026db0236d22ed35532ab1e7ce3cf1c72e710d7c9d85e2cd27

See more details on using hashes here.

File details

Details for the file python_unsio-0.9.3rc5-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

  • Download URL: python_unsio-0.9.3rc5-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.1.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.0

File hashes

Hashes for python_unsio-0.9.3rc5-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a6c530444f8749eb0bce284cd0f87aa9c8377306c3898d89669321de5ae9f8e1
MD5 8e2a4f75a182e18a9ef491d86d807bbf
BLAKE2b-256 1ad47d7e62ac89542a491388daa1bea4c80d3dd27c29ae67a793e93a4fec9ef9

See more details on using hashes here.

File details

Details for the file python_unsio-0.9.3rc5-cp34-cp34m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: python_unsio-0.9.3rc5-cp34-cp34m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.4m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.0

File hashes

Hashes for python_unsio-0.9.3rc5-cp34-cp34m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 a352b25774ba0cb0dfbb6773a6279958d8a2facbc88bc66a0c2fdb031d71238b
MD5 ff019650e9d07088769fc377afff6ff1
BLAKE2b-256 6398c3aaf96ea66e0fa5a6fec8444ad9bd2ca667c350bdcf51accf53f3e4efbb

See more details on using hashes here.

File details

Details for the file python_unsio-0.9.3rc5-cp27-cp27mu-manylinux2010_x86_64.whl.

File metadata

  • Download URL: python_unsio-0.9.3rc5-cp27-cp27mu-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.1 MB
  • Tags: CPython 2.7mu, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4

File hashes

Hashes for python_unsio-0.9.3rc5-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4459cc87475006c74c664dff85d3891171f27d81b04a75b3a98cd097503599d7
MD5 0c49cc1ca2dce7356a33d371153b0850
BLAKE2b-256 367702068854920077cc3c439aadf445598505fe405d3f6a57c53e75cc1cec1a

See more details on using hashes here.

File details

Details for the file python_unsio-0.9.3rc5-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: python_unsio-0.9.3rc5-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.1.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.0

File hashes

Hashes for python_unsio-0.9.3rc5-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 26ba09f21ae96d41eb48141c9abe0786d93b50c4912fd40b688bfe361db0607a
MD5 33487279d527f5764894f454db2af1cc
BLAKE2b-256 d6bb43319600a6a03a97094ae1a24f5a00e664ccf337897fc438bce36b026ee7

See more details on using hashes here.

File details

Details for the file python_unsio-0.9.3rc5-cp27-cp27m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: python_unsio-0.9.3rc5-cp27-cp27m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.1 MB
  • Tags: CPython 2.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4

File hashes

Hashes for python_unsio-0.9.3rc5-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e241a3962b7769336efe6441a18fb60e7537e912f24d067f07f4c5a1bcfcce2b
MD5 0eed1d90435335dfdb1e19da11149d04
BLAKE2b-256 46d72a0ce9759968cace0e9bc3e37a765cded1cabcf11c48d52c966b2ff9185e

See more details on using hashes here.

File details

Details for the file python_unsio-0.9.3rc5-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

  • Download URL: python_unsio-0.9.3rc5-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.1.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.0

File hashes

Hashes for python_unsio-0.9.3rc5-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 81a6d8f919cf766e3f317fa3031ef8b1696ec50a22c5558e51a44ae95e2269d9
MD5 6948e400dfaaf6926d0830eb4ca9e81e
BLAKE2b-256 2ab64d15603571d1d7818cc8589cca8471f523b353759ba4ea529e988cc3046f

See more details on using hashes here.

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