Sciproc in experimental stage provides tools to select, edit, convert scientific (observed, model-generated) data. It needs Numpy. It’s very experimental, as some functions aren’t tested or only tested in ‘idealised cases’, so please be careful. Please let me know if you would like to contribute. Currently selection from 1D data by coordinates or certain timestep and applying a function repeatedly on a multidimensional matrix is implemented. However selecting, interpolating and editing procedures for multidimensional data is planned in the near future. You might want to use it if you have have any observational data and you want to select a period, make a selection with a certain timestep or make an interpolation. The aim is to make an addition to the cdo climate data operators with python power (see also pynacolada). It should be working with normal numpy data. However, if you want to process netcdf-files, we recommend to use the pynacolada interface which acutally uses sciproc. Typical usage often looks like this:
#!/usr/bin/env python
from numpy import *
from sciproc import *
# select data from a 1-D array:
data = array([1.0,2.0,4.0,2.5])
incoords = array([0.0,1.0,2.0,3.0])
print(datatimeco(data,coords = incoords,outcoords = array([1.0,2.0]))
a = array([[[1,3,2],[2,1,3],[4,1,3]],[[1,2,3],[4,1,2],[3,0,1]]])
print('copy')
print( multifunc(a,[False,False,True],lambda x: copyfunction(x)))
print('take only elements 2 and 3 from third dimension')
print(multifunc(a,[False,False,True],lambda x: secondandthirdelement(x)))
print('take only elements 2 and 3 from second dimension')
print(multifunc(a,[False,True,False],lambda x: secondandthirdelement(x)))
print('reduce dimension')
A Section
A Sub-Section
Release files for sciproc 0.7.23
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sciproc-0.7.23.tar.gz | 27.1 kB | Details |
Release files / sciproc-0.7.23.tar.gz
| Download URL | sciproc-0.7.23.tar.gz |
|---|---|
| Size | 27.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd9706cf9413a7711c4152d935c8d622e2cf863c3005c92b2ea592cb1a5a8648
|
|
BLAKE2b-256 checksum How to use checksums |
547cebf051b5adcad0768a0e926e5ee23092c2d9ade3311f7eb9531cf1370138
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |