[Thread Prev][Thread Next][Index]

Re: [ferret_users] Installation of pyferret on windows 10 Bash wsl



Hi Mark,

Did you install PyFerret from a tar file?  If so then you've used Finstall to create the ferret_paths.sh file.  Finstall is the same under csh or bash; it will create ferret_paths.csh and ferret_paths.sh.  The bash shell ferret_paths.sh contains the definition of Faddpath:

## Faddpath: a tool to quickly add paths to the search lists
Faddpath() { if [ -n "$*" ]
             then
                 export FER_GO="$FER_GO $*"
                 export FER_DATA="$FER_DATA $*"
                 export FER_DESCR="$FER_DESCR $*"
                 export FER_GRIDS="$FER_GRIDS $*"
             else
                 echo "    Usage: Faddpath new_directory_1 ..."
             fi }

So check your ferret_paths.sh file.


If you have used the miniconda install, I don't know quite where Faddpath is defined, but I use that installation and Faddpath seems to work fine.


You can also explicitly add paths, something along these lines:

export FER_DATA="$FER_DATA /home/users/myhome/data"
export FER_GO="$FER_GO /home/users/myhome/jnls"

so you could just make yourself a shell script that does this, and run it before you start pyferret.

Ansley

On 10/11/2022 10:18 PM, Mark Williams wrote:

Hello all

 

I used Ferret some time ago and want to run some old scripts for a project I am doing.  I have a Windows 10 PC and have used wsl to run bash and install Ubuntu.  In the past I had a systems manager doing the setting up, however I have managed to go through the installation process and seem to have got everything up running (pyferret).  The display is fine, I can run the tutorial just fine.   Now I want to use Faddpath to add pathnames to find my data and .jnl files.  I have tried adding this to the my_ferret_paths file but when I do this ferret does not work properly.  I have looked up the installation guide “settting up to run ferret” but this seems to directed to C shell users.

 

Any suggestions greatly appreciated.

 

Mark


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement