[Thread Prev][Thread Next][Index]

Re: [ferret_users] correlation_with_students_t_test



Hi Alexander
G'day

A few months ago I faced the same problem Karl and Ryo helped me in that. Here is the link for your reference https://www.pmel.noaa.gov/maillists/tmap/ferret_users/fu_2019/msg00295.html

Dear Karl and Ryo
G'day

Thank you for your help the problem is sorted out from your suggestions. I would like to write the procedure for this for others as well.

$ conda env list    !! it will show all the environment in your system !!!
FERRET                *  /home/srathore/anaconda3/envs/FERRET     !! this is my ferret env path !!
$ conda activate FERRET     !! to activate FERRET env !!
$ vi .bashrc   

open the bash script and go to the end of the script as shown in the attached image and in the end of the file add the line path/of/your/FERRET-env/lib/python3.7/site-packages/pyferret depend on the path of your env (mine is /home/srathore/anaconda3/envs/FERRET) !!

save the file and close it.

now you can check the function

$ conda activate FERRET
(FERRET)$ pyferret -nojnl
yes? sh func student*

it will show you....

STUDENT_T_CUTOFF(P,nf)
    Return student-t cutoff
    P: Confidence Limit
    nf: nf (Number in sample)

cheers, saurabh

On Tue, Mar 10, 2020 at 10:35 AM Alexander Audet <alexander.c.audet@xxxxxxxxx> wrote:
Evening pyferret community,

I am trying to get the correlation_with_students_t_test script to work. As can be read in go/help the correlation_with_students_t_test you first need to run go variance and have set up the required P and Q variables to run correlation_with_students_t_test. I have done this, but everytime I try to run the script, an error occurs shown below (I can't decipher it).

Error with Go Variance.                                               
image.png
Interestingly enough (in case this is of help), the same error still occurs if I forget to first run go variance (my variables where still defined). 

Error without using go variance. 
image.png

Also, as stated at the end of this page in the manual, it requires an external function, STUDENT_T_CUTOFF. This appears to be what is failing from the above error. 

Alexander Audet


--


REGARDS

Saurabh Rathore
Research Scholar (PhD.)
Centre For Oceans, Rivers, Atmosphere & Land Science Technology
Indian Institute Of Technology, Kharagpur
contact :- 91- 8345984434

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

Privacy Policy | Disclaimer | Accessibility Statement