Comments (7)
Hi + sorry for the delay
the problem is, that this solutions looks good for a single line (showname,showdate,showtime,showyear,showcode) but becomes tricky for things like showlevel, where multiple vertical axes are shown (one line per variable). it looks like this
% cdo showlevel ../icon/oce.nc [Wed 2017-02-15|16:01:52]
250 750 1250 1750 2250 2750 3250 3750 4250 4750
0
0
0
0
0
250 750 1250 1750 2250 2750 3250 3750 4250 4750
250 750 1250 1750 2250 2750 3250 3750 4250 4750
250 750 1250 1750 2250 2750 3250 3750 4250 4750
250 750 1250 1750 2250 2750 3250 3750 4250 4750
0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000
0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000
0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000
250 750 1250 1750 2250 2750 3250 3750 4250 4750
25 100 250 500 875 1400 2100 3000 4000 5000
25 100 250 500 875 1400 2100 3000 4000 5000
To be consistent with your suggestion the return value should be a nested array, which reduces the beauty of it.
Do you have any suggestion for this?
cheers
ralf
from cdo-bindings.
It could be added a argument to return a list or return a string. This let us choose the format of output.
from cdo-bindings.
I finished a first guess. Could you have a look and run some tests on it? Pls check if it's useful for you
cheers
ralf
from cdo-bindings.
Added some code to return the list directly if the operator outputs only a single line like showname, showdate or showtimestamp.
from cdo-bindings.
I close this one - IMO the feature is there. but pls, feel free to open an new ticket, if anything is missing.
cheers + thanks !
-ralf
from cdo-bindings.
Hi, again + sorry for the delay
I've tested the autoSplit argument and it works fine. Thank you for the improvement 👍
In [3]: cdo.showdate(input='/path/to/some_file.nc', autoSplit=' ')
Out[3]:
['2017-04-18',
'2017-04-19',
'2017-04-20',
'2017-04-21',
'2017-04-22',
'2017-04-23',
'2017-04-24',
'2017-04-25']
from cdo-bindings.
thx for testing and your input!
from cdo-bindings.
Related Issues (20)
- Error loading netCDF4 after installing CDO HOT 7
- Support converting .dat file to .nc file HOT 8
- Apply new syntax for calls with mutiple inputs HOT 24
- Segmentation fault when using bindings HOT 1
- Process using cdo cannot be ctrl-C'd HOT 7
- Feature request: PyCDO for/from Bash HOT 3
- New release on PyPI HOT 5
- cdo=Cdo() #####FileNotFoundError: [WinError 2] HOT 3
- Mention how the bindings are supported in python-cdo package from conda-forge HOT 2
- threaded cdo HOT 6
- help(cdo.<operator name>) does not work anymore
- cdo-bindings fail with cdo2.0.0 HOT 2
- `muldpm` was `muldpy` in conda cdo HOT 1
- Hi sir,I am trying to install python-cdo by using "conda create -n cdo_test python=3 cdo python-cdo" and it shows error. HOT 2
- Python binding captures "kill" and "KeyboardInterrupt" signals in all processes after initialization HOT 4
- Hard coded `-s` HOT 2
- Can not initialize Cdo object for CDO version 1.9.10 HOT 5
- clarify license of `cdo-bindings` HOT 3
- Cannot initialize with specified cdopath HOT 1
- Bug: returnXDataset=True and force=False are incompatible in the python bindings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cdo-bindings.