{ "info": { "author": "Mike Kittridge", "author_email": "mullenkamp1@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Build Tools" ], "description": "nzmetservice - A Python package for handling New Zealand MetService forecast data\r\n==================================================================================\r\n\r\nThe nzmetservice package contains various functions for downloading, processing, and handling of New Zealand MetService forecast data.\r\nThis package is not associated with the MetService.\r\n\r\n.. Documentation\r\n.. --------------\r\n.. The primary documentation for the package can be found `here `_.\r\n\r\nInstallation\r\n------------\r\nnzmetservice can be installed via pip or conda::\r\n\r\n pip install nzmetservice\r\n\r\nor::\r\n\r\n conda install -c mullenkamp nzmetservice\r\n\r\nThe core dependencies are `Pandas `_ and `xarray `_.\r\n\r\nUsage\r\n-----\r\nftp_transfer\r\n~~~~~~~~~~~~\r\nThe ftp_transfer functions does as the name implies. It looks at the output_path on your local drive then compares it to the MetService ftp site and downloads what is on the ftp site that isn't in the output_path.\r\nIt can be loaded in from the basic module:\r\n\r\n.. code:: python\r\n\r\n from nzmetservice import ftp_transfer\r\n\r\nAnd feed it with the necessary parameters:\r\n\r\n.. code:: python\r\n\r\n ftp_transfer(ftp_path, username, password, output_path)\r\n\r\nYou will likely want to create a scheduled task to run a script containing this function once an hour.\r\n\r\nSelection and processing\r\n~~~~~~~~~~~~~~~~~~~~~~~~\r\nThe other two functions are simple selection and conversion tools.\r\n\r\n.. code:: python\r\n\r\n import pandas as pd\r\n from nzmetservice import select_bounds, to_df, datasets\r\n\r\n pd.options.display.max_columns = 10\r\n\r\n #####################################\r\n ### Parameters\r\n\r\n min_lat = -47\r\n max_lat = -40\r\n min_lon = 166\r\n max_lon = 175\r\n nc1_path = datasets.get_path('wrf_hourly_precip_nz8km_test')\r\n\r\n ####################################\r\n ### Examples\r\n\r\n ms1 = select_bounds(nc1_path, min_lat, max_lat, min_lon, max_lon)\r\n\r\n ms_df = to_df(ms1, to_rate=True)\r\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mullenkamp/nzmetservice", "keywords": "rainfall forecast", "license": "", "maintainer": "", "maintainer_email": "", "name": "nzmetservice", "package_url": "https://pypi.org/project/nzmetservice/", "platform": "", "project_url": "https://pypi.org/project/nzmetservice/", "project_urls": { "Homepage": "https://github.com/mullenkamp/nzmetservice" }, "release_url": "https://pypi.org/project/nzmetservice/1.0.3/", "requires_dist": null, "requires_python": "", "summary": "functions to download and process metservice data", "version": "1.0.3" }, "last_serial": 4658559, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "2d6240a39419afb7d524a754fb220075", "sha256": "bd61d80aaf6ba977ba5577404b063978b4ad78ba91f391eb2e05331e4b4cc063" }, "downloads": -1, "filename": "nzmetservice-1.0.1.tar.gz", "has_sig": false, "md5_digest": "2d6240a39419afb7d524a754fb220075", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1933665, "upload_time": "2019-01-04T01:32:11", "url": "https://files.pythonhosted.org/packages/11/df/f5a612ab6eed1c9754c12155881463d92583cfedcd3a64d062134f5eaf6c/nzmetservice-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "7cd20aa0e9c6395e1dc29402062b2980", "sha256": "b5ef2a6fe00823c8f644677abf3b8a9c8096eeda000d18f6b12ece1758b667e4" }, "downloads": -1, "filename": "nzmetservice-1.0.2.tar.gz", "has_sig": false, "md5_digest": "7cd20aa0e9c6395e1dc29402062b2980", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1933636, "upload_time": "2019-01-04T01:48:22", "url": "https://files.pythonhosted.org/packages/3d/fe/b8a9e903a90029428735954607a40fcfc678d833f775b851fb65328b6250/nzmetservice-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "9a0795b522844f506b5780393c0de1ae", "sha256": "f36f09c6220edcf86b3da200ccdb22e4fca3e87f82d0ca7973b7dda792c9704d" }, "downloads": -1, "filename": "nzmetservice-1.0.3.tar.gz", "has_sig": false, "md5_digest": "9a0795b522844f506b5780393c0de1ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1934212, "upload_time": "2019-01-04T02:49:57", "url": "https://files.pythonhosted.org/packages/9a/2a/2b22e5e905ac321c82d7a8d67947f65e6620db7e3f1246b6a056f70c0c1a/nzmetservice-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9a0795b522844f506b5780393c0de1ae", "sha256": "f36f09c6220edcf86b3da200ccdb22e4fca3e87f82d0ca7973b7dda792c9704d" }, "downloads": -1, "filename": "nzmetservice-1.0.3.tar.gz", "has_sig": false, "md5_digest": "9a0795b522844f506b5780393c0de1ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1934212, "upload_time": "2019-01-04T02:49:57", "url": "https://files.pythonhosted.org/packages/9a/2a/2b22e5e905ac321c82d7a8d67947f65e6620db7e3f1246b6a056f70c0c1a/nzmetservice-1.0.3.tar.gz" } ] }