{ "info": { "author": "Michael Hirsch, Ph.D.", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Fortran", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering :: Atmospheric Science" ], "description": "[![Build Status](https://travis-ci.org/scivision/hwm93.svg?branch=master)](https://travis-ci.org/scivision/hwm93)\n[![Coverage Status](https://coveralls.io/repos/github/scivision/hwm93/badge.svg?branch=master)](https://coveralls.io/github/scivision/hwm93?branch=master)\n[![Build status](https://ci.appveyor.com/api/projects/status/4g7131qb0vk4p8q7?svg=true)](https://ci.appveyor.com/project/scivision/hwm93)\n[![PyPi version](https://img.shields.io/pypi/pyversions/hwm93.svg)](https://pypi.python.org/pypi/hwm93)\n[![PyPi formats](https://img.shields.io/pypi/format/hwm93.svg)](https://pypi.python.org/pypi/hwm93)\n[![PyPi Download stats](http://pepy.tech/badge/hwm93)](http://pepy.tech/project/hwm93)\n\n\n# HWM93 in Python\n\nNASA Horizontal Wind Model HWM93 in Python ≥ 3.6\n\n\n![image](tests/example.png)\n\nWorks with many Fortran compilers, including:\n\n* Gfortran 5, 6, 7, 8\n* Intel `ifort`\n* PGI `pgf90`\n* Nvidia `flang`\n\n\n## Install\n\n pip install -e .\n \ntest by \n\n pytest -sv\n\n## Usage\n\nHWM93 can be used from the command line or as an imported Python module in other programs.\nMatlab ≥ R2014b also can use HWM93.\n\n### Command line\n\n RunHWM93 -h\n \nWrite data to NetCDF (HDF5) with `-o` option.\n \n### import module\n\n```python\nimport hwm93\nfrom datetime import datetime\n\nwinds = hwm93.run(t=datetime(2017,11,12,8), altkm=150., \n glat=65., glon=-148., f107a=150, f107=150, ap=4)\n```\n\n`winds` is an [xarray.Dataset](http://xarray.pydata.org/en/stable/generated/xarray.Dataset.html)\n\n```\n \nDimensions: (alt_km: 1)\nCoordinates:\n * alt_km (alt_km) float64 150.0\nData variables:\n meridional (alt_km) float64 4.827\n zonal (alt_km) float64 -20.5\nAttributes:\n time: 2017-11-12T08:00:00\n glat: 65.0\n glon: -148.0\n``` \n\nIf you want just a single variable, say\n```python\nprint(winds.zonal.values)\n```\n\n### Matlab\n\nYou can import this Python module from Matlab ≥ R2014b as in [hwm93.m](hwm93.m)\n\n## Notes\n\n### [Optional] Fortran-only use\n\nMost users don't need this.\n```sh\ncd bin\ncmake ..\ncmake --build .\nctest -V\n````\n \nor\n\n```sh\nf2py -c src/hwm93_sub.f -m hwm93 only: gws5 :\n```\n\n\n### Reference\n\nOriginal A. E. Hedin Fortran 77 HWM93 [code](ftp://hanna.ccmc.gsfc.nasa.gov/pub/modelweb/atmospheric/hwm93/)", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/scivision/hwm93", "keywords": "mesosphere,stratosphere,thermosphere", "license": "", "maintainer": "", "maintainer_email": "", "name": "hwm93", "package_url": "https://pypi.org/project/hwm93/", "platform": "", "project_url": "https://pypi.org/project/hwm93/", "project_urls": { "Homepage": "https://github.com/scivision/hwm93" }, "release_url": "https://pypi.org/project/hwm93/0.9.1/", "requires_dist": null, "requires_python": ">= 3.6", "summary": "Horizontal Wind Model 1993 in Python", "version": "0.9.1" }, "last_serial": 4177661, "releases": { "0.9.1": [ { "comment_text": "", "digests": { "md5": "bf92315806325198600ee866b67dfbf8", "sha256": "ffef80911b5abe51c743286a4c5b5ddfa5289e48a8fd8809fa55735e7013d3b9" }, "downloads": -1, "filename": "hwm93-0.9.1.tar.gz", "has_sig": false, "md5_digest": "bf92315806325198600ee866b67dfbf8", "packagetype": "sdist", "python_version": "source", "requires_python": ">= 3.6", "size": 22997, "upload_time": "2018-08-16T19:00:00", "url": "https://files.pythonhosted.org/packages/b5/b2/24957d7cda05437e9fab3c707dedc23fd0425c8c193cc4a591566a0591a0/hwm93-0.9.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bf92315806325198600ee866b67dfbf8", "sha256": "ffef80911b5abe51c743286a4c5b5ddfa5289e48a8fd8809fa55735e7013d3b9" }, "downloads": -1, "filename": "hwm93-0.9.1.tar.gz", "has_sig": false, "md5_digest": "bf92315806325198600ee866b67dfbf8", "packagetype": "sdist", "python_version": "source", "requires_python": ">= 3.6", "size": 22997, "upload_time": "2018-08-16T19:00:00", "url": "https://files.pythonhosted.org/packages/b5/b2/24957d7cda05437e9fab3c707dedc23fd0425c8c193cc4a591566a0591a0/hwm93-0.9.1.tar.gz" } ] }