Comments (9)
While I've never worked in this area, nor have any experience with test unix/mac applications on windows, I can give it the old college try.
from pynco.
What is the pynco command for "ncra --mro -d time,,,24,24 in.nc out.nc"?
nco.ncra(input= in.nc, output= out.nc, overwrite=True, mro=True, fortran=True, dimension='time,,,12,12') seems to work.
from pynco.
Hello could you please help me trying to concatenate netCDF files using pynco and ncrcat on windows ?
What is the pynco command for "ncrcat -p /datasets/ersst -n 1644,6,1,12,1,yyyymm ersst.v5.188001.nc -o ersst_all.nc"?
Thanks in advance
from pynco.
HI Ness,
To run pynco you need to have NCO commands in your exec path.
I suggest initially you try your command directly with NCO rather than through pynco.
I am not a Windows person; but a quick way to get going with NCO on windows is to install anaconda. That way you don't have to actually build NCO on your local machine.
from pynco.
from pynco.
@ness31
This is how my code looks in LINUX:
opt = [];
opt+=[ "-Y ncrcat", '-p /datasets/ersst', '-n 1644,6,1,12,1,yyyymm' ]
nco.ncra(input="ersst.v5.188001.nc",output="ersst_all.nc", options=opt )
You need the -Y option as Windows doesn't have the notion of symbolic links.
You also need the nco command in your PATH env var
...Henry
from pynco.
Is there any pynco command for "ncks -v variablename in.nc out.nc"? This command is used to split a bigger .nc file to a smaller .nc file based on the variable name.
from pynco.
@S2021L based on the above, try:
opt = [];
opt+=[ "-v variablename" ]
nco.ncks(input="in.nc",output="out.nc", options=opt )
@hmb1 does this look correct?
from pynco.
This well-targeted initial issue has turned into a hodgepodge of help questions on unrelated issues. Closing.
from pynco.
Related Issues (20)
- 1.0 release HOT 4
- Drop python 2?
- Use a more permissive license? HOT 3
- 'Rename' object not iterable HOT 12
- m HOT 8
- Permission denied error using pynco ncks on windows HOT 2
- options HOT 4
- Remove mention of ncdump in README/docs HOT 1
- initialization issue HOT 5
- Initializing `Nco` with `overwrite=True` causes indefinite hang HOT 5
- Atted object passes quotation marks as part of var_name and att_name to subprocess HOT 6
- Read The Docs integration is broken
- Sort out `pynco` vs. `nco` on PyPI HOT 1
- Unknown operator: ncdump HOT 2
- Importing `distutils.spawn` raises DeprecationWarning HOT 4
- Support Python 3.12 HOT 1
- Enable read_array function to return multiple arrays HOT 2
- Please release v1.1.1 and v1.1.2 on pypi.org HOT 3
- Source tarball on PyPI is missing tests/conftest.py HOT 2
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 pynco.