[Thread Prev][Thread Next][Index]

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



Sorry.  Should have made this reply all to go to all users.

 

From: Mark Williams <mmw@xxxxxxxxxxxxxxxx>
Sent: Monday, 17 October 2022 11:32 AM
To: 'Ansley Manke' <a.c.manke@xxxxxxxxx>
Subject: RE: [ferret_users] Installation of pyferret on windows 10 Bash wsl

 

Hi Ansley

 

Thanks very much for the very clear instructions.  I used the miniconda install.  It seems that there is a file under the name ferret_paths_template.sh in the directory home/miniconda3/envs/FER/bin with the same code as below.  I have explicitly added my paths as suggested and created a shell script which is executed from the .profile file.  I have also added extra multiple paths with space delimiters, all of which works.

 

There does seem to be a problem with the display in pyferret V7.6 but I got it to work with the version 7.5 install.  I got this from ferret users archive, specifically from the response https://www.pmel.noaa.gov/maillists/tmap/ferret_users/fu_2019/msg01059.html

 

Thanks

 

Mark

 

 

 

From: owner-ferret_users@xxxxxxxx <owner-ferret_users@xxxxxxxx> On Behalf Of Ansley Manke
Sent: Thursday, 13 October 2022 1:45 PM
To: ferret_users@xxxxxxxx
Subject: 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