Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support converting .dat file to .nc file #21

Closed
zxdawn opened this issue Dec 25, 2018 · 8 comments
Closed

Support converting .dat file to .nc file #21

zxdawn opened this issue Dec 25, 2018 · 8 comments
Labels

Comments

@zxdawn
Copy link

zxdawn commented Dec 25, 2018

It's convenient to convert dat file to nc file in command line:

cdo -f nc import_binary ${ctl_file} ${ncname}

How to deal with it in python?

@zxdawn
Copy link
Author

zxdawn commented Dec 25, 2018

I'm using os.system() to run the command. Maybe, there's a better solution.

@Try2Code
Copy link
Owner

hey! sorry for being late. the call looks like

from cdo import Cdo

cdo = Cdo()

cdo.import_binary(input=ctl_file,output='output.nc')

@zxdawn
Copy link
Author

zxdawn commented Feb 11, 2019

@Try2Code Thanks, I'll test it after holiday~

@Try2Code
Copy link
Owner

the github notification must have got lost in my mail folder during holiday 🤷‍♀️

@Try2Code
Copy link
Owner

btw: have a nice holiday - and don't read mail ;-)

@Try2Code
Copy link
Owner

Try2Code commented Jul 4, 2019

any update @zxdawn ??

@zxdawn
Copy link
Author

zxdawn commented Jul 6, 2019

@Try2Code I remember that it works well :) Sorry for the late update.

@zxdawn zxdawn closed this as completed Jul 6, 2019
@viictor-m
Copy link

hey! sorry to bring this up again.
i'm trying to this (windows based) and it doesnt work.
the error message is "[WinError 2] System could not find the specified archive". Could you help me, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants