Skip to main content

DESCRIPTION

Python client for extracting data from CATE archives to numpy arrays.

You can also read more about CATE numpy usage here.

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)

Metadata

Release files for catenp 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for catenp 0.1.5
File Size Uploaded Provenance Actions
catenp-0.1.5.tar.gz 7.0 kB Without provenance Details for catenp-0.1.5.tar.gz

Release files / catenp-0.1.5.tar.gz

Download URL catenp-0.1.5.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b7a6990be4e1f77331193c56ecc16a69142a03076d9b74a3f623c5ac5acaabe2
BLAKE2b-256 checksum
How to use checksums
66ddcf3d1980046f0f82018c92641764f46b181890285da5d1c577995ab55508
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for catenp 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page