{ "info": { "author": "Kyle Wilcox", "author_email": "kyle@axiomdatascience.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Topic :: Scientific/Engineering" ], "description": "# codar2netcdf [![Build Status](https://travis-ci.org/axiom-data-science/codar2netcdf.svg?branch=master)](https://travis-ci.org/axiom-data-science/codar2netcdf)\n\nConverting CODAR Total ASCII files (the final total current speed and direction\nof the combined radial data) into CF NetCDF files.\n\n## Installation\n\n```\n# pip\n$ pip install codar2netcdf\n\n# conda\n$ conda install -c ioos codar2netcdf\n```\n\n## Usage\n\n```python\nIn [1]: from codar2netcdf import CodarAsciiTotals\nIn [2]: w = CodarAsciiTotals('totals.txt')\n\n# Pandas dataframe of the data\nIn [3]: w.data.head()\nOut[3]:\n Longitude Latitude U comp V comp VectorFlag U StdDev V StdDev\n0 -83.004520 25.569613 -14.822 43.085 0 12.89 23.04\n1 -82.905005 25.569578 -19.047 45.790 0 14.71 24.21\n2 -82.805491 25.569473 1.059 9.831 0 12.31 18.06\n3 -83.104110 25.659845 -7.531 38.266 0 9.61 22.19\n4 -83.004520 25.659880 -17.075 44.413 0 11.82 23.51\n...\n\n# Export to netCDF file\nIn [4]: w.export('out.nc', ascii_grid='grid.txt')\n\nIn [5]: import netCDF4\nIn [6]: netCDF4.Dataset('out.nc').variables\nOut[6]:\nOrderedDict([('time', \n int64 time(time)\n _FillValue: -999\n units: seconds since 1970-01-01 00:00:00\n standard_name: time\n calendar: gregorian\n long_name: time\n unlimited dimensions:\n current shape = (1,)\n filling on),\n\n ('lat', \n float64 lat(x, y)\n _FillValue: -999.9\n units: degrees_north\n standard_name: latitude\n axis: Y\n long_name: latitude\n unlimited dimensions:\n current shape = (130, 210)\n filling on),\n\n ('lon', \n float64 lon(x, y)\n _FillValue: -999.9\n units: degrees_east\n standard_name: longitude\n axis: X\n long_name: longitude\n unlimited dimensions:\n current shape = (130, 210)\n filling on),\n\n ('z', \n int64 z(z)\n _FillValue: -999\n units: m\n standard_name: depth\n positive: down\n axis: Z\n long_name: depth\n unlimited dimensions:\n current shape = (1,)\n filling on),\n\n ('u', \n float64 u(time, x, y)\n _FillValue: -999.9\n standard_name: eastward_sea_water_velocity\n long_name: Eastward Surface Current (cm/s)\n units: cm/s\n coordinates: time lon lat\n unlimited dimensions:\n current shape = (1, 130, 210)\n filling on),\n\n ('v', \n float64 v(time, x, y)\n _FillValue: -999.9\n standard_name: northward_sea_water_velocity\n long_name: Northward Surface Current (cm/s)\n units: cm/s\n coordinates: time lon lat\n unlimited dimensions:\n current shape = (1, 130, 210)\n filling on),\n\n ('crs', \n int32 crs()\n long_name: http://www.opengis.net/def/crs/EPSG/0/4326\n grid_mapping_name: latitude_longitude\n epsg_code: EPSG:4326\n inverse_flattening: 298.257223563\n semi_major_axis: 6378137.0\n unlimited dimensions:\n current shape = ()\n filling on, default _FillValue of -2147483647 used)\n])\n```", "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/axiom-data-science/codar2netcdf", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "codar2netcdf", "package_url": "https://pypi.org/project/codar2netcdf/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/codar2netcdf/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/axiom-data-science/codar2netcdf" }, "release_url": "https://pypi.org/project/codar2netcdf/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "A utility to convert CODAR total ASCII files into CF NetCDF files.", "version": "0.0.2" }, "last_serial": 1999370, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "17f18a793ccd16330f53e67174d0d8bb", "sha256": "7629cdad1dd085efbb8fbd91a93622de6e2df73cb90474de4cdd4fd64e2ea18f" }, "downloads": -1, "filename": "codar2netcdf-0.0.1.tar.gz", "has_sig": false, "md5_digest": "17f18a793ccd16330f53e67174d0d8bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5956, "upload_time": "2016-02-29T15:25:19", "url": "https://files.pythonhosted.org/packages/a3/c8/fa1572ca1aaa3e913164cfb02a5c49bf7f193fbeb74b82385162465422e7/codar2netcdf-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "30163273ed1d8e8578249731e6d99e73", "sha256": "db8872b21bc0d97f365f551c9b8a6e297811a14bbbde10a8fe62d0bcf15b48e7" }, "downloads": -1, "filename": "codar2netcdf-0.0.2.tar.gz", "has_sig": false, "md5_digest": "30163273ed1d8e8578249731e6d99e73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6049, "upload_time": "2016-03-10T14:17:12", "url": "https://files.pythonhosted.org/packages/1e/c8/856a83e9cc306f0e25453c0754da20e3306828754602db9825ad2585d970/codar2netcdf-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "30163273ed1d8e8578249731e6d99e73", "sha256": "db8872b21bc0d97f365f551c9b8a6e297811a14bbbde10a8fe62d0bcf15b48e7" }, "downloads": -1, "filename": "codar2netcdf-0.0.2.tar.gz", "has_sig": false, "md5_digest": "30163273ed1d8e8578249731e6d99e73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6049, "upload_time": "2016-03-10T14:17:12", "url": "https://files.pythonhosted.org/packages/1e/c8/856a83e9cc306f0e25453c0754da20e3306828754602db9825ad2585d970/codar2netcdf-0.0.2.tar.gz" } ] }