{ "info": { "author": "U\u011fur \u00c7ayo\u011flu", "author_email": "urcyglu@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Science/Research", "Natural Language :: English", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3 :: Only", "Topic :: Scientific/Engineering :: GIS", "Topic :: Scientific/Engineering :: Information Analysis" ], "description": "cdochain\n========\n\nThis module helps create chains of cdo commands for easy manipulation of\nclimate data.\n\nFeatures\n^^^^^^^^\n\n- Method execution is lazy and gets processed only on function call\n ``Chain.execute()``.\n- Input supports Unix style pathname pattern search.\n- The Input will be first run with\n `glob `__ and checked if\n several files match.\n :exclamation: *If that is the case a temporary file will be created*.\n- Output can be a file on disc, an\n `netCDF4.Dataset `__\n or (not) masked\n `numpy.ndarray `__.\n\nInstallation\n------------\n\n.. code:: bash\n\n python3.5 -m pip install cdochain --pre\n\n--- or ---\n\n.. code:: bash\n\n git clone https://github.com/OnionNinja/cdochain.git\n cd cdochain\n python3.5 setup.py install\n\nTL;DR\n-----\n\n.. code:: python\n\n from cdochain import chaining as cch\n\n input = './tests/testdata/sresa1b_ncar_ccsm3-example.nc'\n output = './enso34-mm.nc'\n data = cch.Chain(ifile=input, ofile=output)\n enso34 = data.sellonlatbox(190,240,-5,5).monmean()\n out = enso34.execute()\n\nUsage\n-----\n\nThis module implements `method\nchaining `__ for the\n`Climate Data Operators `__ (CDO)\ntool from the Max Planck Institute for Meteorology. Let us start:\n\n.. code:: python\n\n from cdochain import chaining as cch\n\nFor initialisation one has to define **input**, **output**, and may\ndefine several **options**.\n\nInput\n~~~~~\n\nNow we have to define the files we want to work on:\n\n- To use one file\n\n.. code:: python\n\n input = './tests/testdata/sresa1b_ncar_ccsm3-example.nc'\n\n- To use several files you can give a Unix style pattern\n\n.. code:: python\n\n input = './tests/testdata/*.nc'\n\n*This creates a temporary file* :exclamation:\n\nOutput\n~~~~~~\n\nFor defining the output we have several options.\n\n- To output a **file on disc**:\n\n.. code:: python\n\n data = cch.Chain(ifile=input, ofile='/path/to/output.nc')\n\n- To output an **netcdf4.Dataset** object:\n\n.. code:: python\n\n data = cch.Chain(ifile=input, ofile='netCDF4')\n\n- To output an **numpy.ndarray** object:\n\n.. code:: python\n\n data = cch.Chain(ifile=input, ofile='array:') # numpy.ndarray\n # or\n data = cch.Chain(ifile=input, ofile='maarray:') # masked numpy.ndarray\n\n```` defines the variable to be extracted and saved to\nnumpy.ndarray.\n\nOptions\n~~~~~~~\n\nAs for options one can use the same as described on the `CDO\nwebsite `__.\nThe default is ``options='-O -f nc'``.\n\n**Operations**\n~~~~~~~~~~~~~~\n\nThe operations defined in\n`CDO `__ can now\nbe used on the data element.\n\n.. code:: python\n\n analysis = data.sellonlatbox(190,240,-5,5).sellevidx(1).mermean()\n fn = analysis.execute()\n\nHave fun :neckbeard:", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/OnionNinja/cdochain", "keywords": "netcdf,cdo,wrapper,chaining", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "cdochain", "package_url": "https://pypi.org/project/cdochain/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cdochain/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/OnionNinja/cdochain" }, "release_url": "https://pypi.org/project/cdochain/0.2b3/", "requires_dist": null, "requires_python": null, "summary": "Easy chaining of cdo methods.", "version": "0.2b3" }, "last_serial": 2191621, "releases": { "0.2a73": [ { "comment_text": "", "digests": { "md5": "4273ab88a5952a9104f3ac1fcaed678c", "sha256": "e5cc9868d019a0bc8cf9a96f7b3d247e897fa74356dc2bc7f2f366109f396a14" }, "downloads": -1, "filename": "cdochain-0.2a73.tar.gz", "has_sig": false, "md5_digest": "4273ab88a5952a9104f3ac1fcaed678c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5297, "upload_time": "2016-06-08T09:29:39", "url": "https://files.pythonhosted.org/packages/b8/87/19f9a1111c044352bb9b609087d292bde13c1e7f493a6b68519957a09724/cdochain-0.2a73.tar.gz" } ], "0.2b1": [ { "comment_text": "", "digests": { "md5": "dcddc720c6b3ccefe36470fb7610dd78", "sha256": "88f5442d49eeac1f776fdd4c600165b7d76abcb6c324c381a69de78690a71254" }, "downloads": -1, "filename": "cdochain-0.2b1.tar.gz", "has_sig": false, "md5_digest": "dcddc720c6b3ccefe36470fb7610dd78", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5668, "upload_time": "2016-06-09T08:50:34", "url": "https://files.pythonhosted.org/packages/ad/97/d971076681135a3c1229e250161c911a181cd65c50a9eb6e3c45677d0d03/cdochain-0.2b1.tar.gz" } ], "0.2b3": [ { "comment_text": "", "digests": { "md5": "2f452a0b55dc346e6cc1980057a159e1", "sha256": "452a6400d4dd3936854947aa02aa535f271e73ac169d20ec61453db4ca645036" }, "downloads": -1, "filename": "cdochain-0.2b3.tar.gz", "has_sig": false, "md5_digest": "2f452a0b55dc346e6cc1980057a159e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5729, "upload_time": "2016-06-28T13:19:00", "url": "https://files.pythonhosted.org/packages/bb/f6/e27b219b14b840fb2d49e2b00790f38e90aee23dfab3079e42a5269053f2/cdochain-0.2b3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2f452a0b55dc346e6cc1980057a159e1", "sha256": "452a6400d4dd3936854947aa02aa535f271e73ac169d20ec61453db4ca645036" }, "downloads": -1, "filename": "cdochain-0.2b3.tar.gz", "has_sig": false, "md5_digest": "2f452a0b55dc346e6cc1980057a159e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5729, "upload_time": "2016-06-28T13:19:00", "url": "https://files.pythonhosted.org/packages/bb/f6/e27b219b14b840fb2d49e2b00790f38e90aee23dfab3079e42a5269053f2/cdochain-0.2b3.tar.gz" } ] }