Giter Club home page Giter Club logo

Comments (9)

FatAnorexic avatar FatAnorexic commented on August 25, 2024 2

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.

jpcho89 avatar jpcho89 commented on August 25, 2024

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.

ness31 avatar ness31 commented on August 25, 2024

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.

hmb1 avatar hmb1 commented on August 25, 2024

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.

jpcho89 avatar jpcho89 commented on August 25, 2024

from pynco.

hmb1 avatar hmb1 commented on August 25, 2024

@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.

S2021L avatar S2021L commented on August 25, 2024

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.

czender avatar czender commented on August 25, 2024

@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.

czender avatar czender commented on August 25, 2024

This well-targeted initial issue has turned into a hodgepodge of help questions on unrelated issues. Closing.

from pynco.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.