# OCR Tools Open Climate Research is an ongoing project that aims to facilitate creative experimentation with modeled climate data. OCR Tools aims to be much more than a climate data viewer by enabling non-scientists to utilize a wide range of datasets and providing users with simple feedback conducive to learning. In addition to providing basic analysis functions, OCR Tools includes organizational and creative tools.
## Installing / Getting started
Run the following to install: `python pip install ocrtools `
## Examples
Open a NetCDF dataset with
` python import ocrtools as ocr cesm_TS = ocr.load('path/to/cesm_TS_data.nc', var='TS') `
If var is omitted, ocrtools will print out all variables in the dataset and ask you to specify a variable(s) of interest via command line. The dataset is then opened as an Xarray Dataset
Create a scope object
` python lima_peru = ocr.scope(location='Lima, Peru', yr0=1950, yrf=2000) `
Location can also be specified by keyword arguments lat_min, lat_max, lon_min, and lon_max; or if none of these are given, location can be specified interactively by selecting areas on a map
Subset your data
`python lima_TS = ocr.subset(cesm_TS, lima_peru) `
Select an area on a map and take the spatial average
`python from ocrtools import plt map_selection = ocr.scope() `
`shell [OCR] Creating new scope object Enter yr0: Enter yrf: Select area(s) on map and close the pop-up window `
<img src=”http://andreschang.com/unlinked/tk_selector_screenshot.png” width=70%/>
`shell [OCR] Finished writing new scope object `
`python peru_TS = ocr.subset(cesm_TS, map_selection) peru_avg_TS = ocr.spatial_average(peru_TS) peru_avg_TS['TS'].plot() plt.show() `
Metadata
Release files for ocrtools 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ocrtools-1.0.0.tar.gz | 40.4 MB | Without provenance | Details for ocrtools-1.0.0.tar.gz |
Release files / ocrtools-1.0.0.tar.gz
| Download URL | ocrtools-1.0.0.tar.gz |
|---|---|
| Size | 40.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75e25ac2bc68f7a772f54b7c1e39645285850905342507ff348795230370d7bb
|
|
BLAKE2b-256 checksum How to use checksums |
a5847b1e9992d3a09dfc8146d7c6f6df6fb6b107d4076d314471a230ed6613ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Security for ocrtools 1.0.0
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.