catenp


Namecatenp JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryPython client for extracting data from CATE archives to numpy arrays
upload_time2024-08-22 12:54:43
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
DESCRIPTION
===========

Python client for extracting data from CATE archives to numpy arrays

INSTALLATION
------------


    pip install catenp


USAGE
-----

See also `catenp.catenumpy.Example`


    from catenp import Authenticate,ArchiveInfo,DatabaseInfo,GetData

    # Authenticate to the server
    tk = Authenticate(serverAddress,serverPort,cateUserName,catePassword)
   
    # Get basic archive infor like channel raneg and sample rate
    info = ArchiveInfo(serverAddress,serverPort,cateUserName)
    print("Info: ")
    for kk in info: print(kk,":",info[kk])
   
   
    # Get database info and broad archive coverage
    info = DatabaseInfo(serverAddress,serverPort,cateUserName)
    print("Info: ")
    for kk in info: 
        if kk !="segments": 
            print("  ",kk,":",info[kk])
        else:
            print("  segments:")
            for xx in info[kk]:
                for ll in xx: print("    ",ll,":",xx[ll]) 
            print("")


    # Get detailed database coverage in a time and channel range 
    cov = DatabaseCoverage(serverAddress,serverPort,cateUserName,
                            "2024-05-01T08:30:00+00:00",
                            "2024-05-01T09:30:00+00:00",
                            0,16000
                            )
    print("Info: ")
    for xx in cov["query"]: 
        print("\n")
        for kk in xx:
            if kk!="row_series_info": 
                print(kk,":",xx[kk])
            else:
                print("row_series_info:")
                for rr in xx["row_series_info"]:
                    print(rr["min_time"],rr["max_time"],rr["min_channel"],rr["max_channel"],rr["data_url"])
                    
                    
    # Extract some data for a time and channel range  
    arr=GetData(serverAddress,serverPort,cateUserName,tstart,tstop,cstart,cstop)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "catenp",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Motion Signal Technologies <kit.chambers@motionsignaltechnologies.com>",
    "download_url": "https://files.pythonhosted.org/packages/91/2f/ef62fd068afb14b7a2bbc2cf4557438a08a740908f3565602723b978f6cd/catenp-0.1.0.tar.gz",
    "platform": null,
    "description": "\nDESCRIPTION\n===========\n\nPython client for extracting data from CATE archives to numpy arrays\n\nINSTALLATION\n------------\n\n\n    pip install catenp\n\n\nUSAGE\n-----\n\nSee also `catenp.catenumpy.Example`\n\n\n    from catenp import Authenticate,ArchiveInfo,DatabaseInfo,GetData\n\n    # Authenticate to the server\n    tk = Authenticate(serverAddress,serverPort,cateUserName,catePassword)\n   \n    # Get basic archive infor like channel raneg and sample rate\n    info = ArchiveInfo(serverAddress,serverPort,cateUserName)\n    print(\"Info: \")\n    for kk in info: print(kk,\":\",info[kk])\n   \n   \n    # Get database info and broad archive coverage\n    info = DatabaseInfo(serverAddress,serverPort,cateUserName)\n    print(\"Info: \")\n    for kk in info: \n        if kk !=\"segments\": \n            print(\"  \",kk,\":\",info[kk])\n        else:\n            print(\"  segments:\")\n            for xx in info[kk]:\n                for ll in xx: print(\"    \",ll,\":\",xx[ll]) \n            print(\"\")\n\n\n    # Get detailed database coverage in a time and channel range \n    cov = DatabaseCoverage(serverAddress,serverPort,cateUserName,\n                            \"2024-05-01T08:30:00+00:00\",\n                            \"2024-05-01T09:30:00+00:00\",\n                            0,16000\n                            )\n    print(\"Info: \")\n    for xx in cov[\"query\"]: \n        print(\"\\n\")\n        for kk in xx:\n            if kk!=\"row_series_info\": \n                print(kk,\":\",xx[kk])\n            else:\n                print(\"row_series_info:\")\n                for rr in xx[\"row_series_info\"]:\n                    print(rr[\"min_time\"],rr[\"max_time\"],rr[\"min_channel\"],rr[\"max_channel\"],rr[\"data_url\"])\n                    \n                    \n    # Extract some data for a time and channel range  \n    arr=GetData(serverAddress,serverPort,cateUserName,tstart,tstop,cstart,cstop)\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Python client for extracting data from CATE archives to numpy arrays",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/motionsignaltechnologies/cate-numpy"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "912fef62fd068afb14b7a2bbc2cf4557438a08a740908f3565602723b978f6cd",
                "md5": "0448134e2cc7f834de6549e687bdc4bd",
                "sha256": "729bdf5aa5f41aff1ad1108ebc0e241c58e57b741723bc19197621176a05f459"
            },
            "downloads": -1,
            "filename": "catenp-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0448134e2cc7f834de6549e687bdc4bd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 6362,
            "upload_time": "2024-08-22T12:54:43",
            "upload_time_iso_8601": "2024-08-22T12:54:43.475666Z",
            "url": "https://files.pythonhosted.org/packages/91/2f/ef62fd068afb14b7a2bbc2cf4557438a08a740908f3565602723b978f6cd/catenp-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-22 12:54:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "motionsignaltechnologies",
    "github_project": "cate-numpy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "catenp"
}
        
Elapsed time: 0.36863s