PRECIS support forum
http://forum.precisrcm.com/

ppnc error
http://forum.precisrcm.com/viewtopic.php?f=1&t=95
Page 1 of 1

Author:  Ibrahim [ Fri Jun 03, 2016 10:00 am ]
Post subject:  ppnc error

Hi there,

When I try to convert .pp file by using ppnc the following appeared in my command terminal

Traceback (most recent call last):
File "/home/precis/um/bin/ppnc", line 15, in ?
from coco import *
ImportError: No module named coco

Author:  dmhg [ Tue Jun 07, 2016 9:22 am ]
Post subject:  Re: ppnc error

Hi Ibrahim,
ppnc has been deprecated in PRECIS 2.0.
We recommend that you use cf-python
http://cfpython.bitbucket.org/
to convert PP to NetCDF.
Installation instructions are on the page.
Let us know if you need further help.
Thank you
David

Author:  Ibrahim [ Wed Jun 08, 2016 10:11 pm ]
Post subject:  Re: ppnc error

Hi David,

I have downloaded the cf-python & netcdf package but after I typed in "cfa" it says Import error: no netcdf4 module found. Can you help me on ths?

Thank you.

Author:  dmhg [ Thu Jun 09, 2016 10:54 am ]
Post subject:  Re: ppnc error

Hi Ibrahim,

Netcdf4-python is one of the dependencies for CF-Python.

You can find it here:

http://unidata.github.io/netcdf4-python/

An easy way to install Python packages is using "pip"

In Debian linux and derivatives (Ubuntu, Mint) you can install pip with

Code:
sudo apt-get install python-pip


In OpenSUSE

Code:
sudo zypper in python-pip


In Fedora, RedHat

Code:
sudo yum install python-pip


Once that's installed, you can type

Code:
sudo pip install cython
sudo pip install numpy
sudo pip install netcdf4-python
sudo pip install cf-python


Hope this helps

David

Author:  RuthCM [ Wed Oct 12, 2016 9:25 pm ]
Post subject:  Re: ppnc error

but if is not broken why to fix it!?? :cry:
I tried to install the cypthon without any success (plus from a quick review of the webpage it seems rather complicated to use) is there any way to make ppnc or pp2nc to run again???

Author:  dmhg [ Fri Oct 14, 2016 3:39 pm ]
Post subject:  Re: ppnc error

Hi,
It wasn't broken per se, but it had requirements for 12 year old libraries in Linux that no longer exist. So it would run OpenSUSE 9.3 from 2005.

cf-python is a vastly superior product, also, producing netcdf which meet the CF compliance standard.

Installation instructions are here.
http://cfpython.bitbucket.org/docs/latest/installation.html

Ruth you may remember David Hassell. This is software that David has written and he is available to help.

The help forum is here
https://bitbucket.org/cfpython/cf-python/issues

Alternatively if you can arrange remote access for me to your PC (and the root password) I can try to install it for you. Email me. :D

David

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/