[Thread Prev][Thread Next][Index]

Re: [ferret_users] Co relation coefficient.



hello Satyam,
  
You didn't specified from which data set p and q has to be taken,I think this is the cause of your error.

yes? set mode metafile
yes? set data pottm2008.nc
yes? set data pottmp.2008.nc
yes? let p = pottmp[y=35,d=1]
yes? let q = temperature[y=35,d=2]
yes? go variance

Now see it works or not.

On Wed, May 27, 2015 at 2:53 PM, Satyam Srivastava <satyam.srivastava.au@xxxxxxxxx> wrote:
Thanks Samir for your kind reply but i have already tried that as well..

yes? set mode metafile
yes? set data pottm2008.nc
yes? set data pottmp.2008.nc
yes? let p = pottmp[y=35]
yes? let q = temperature[y=35]
yes? go variance
... Variance and Covariance: Instructions:
Use the LET/QUIET command to define the variable(s) P (and Q) as
your variable(s) of interest (e.g. yes? LET/QUIET P = u[x=180,y=0])
The variance of P will be variable P_VAR  (Q --> Q_VAR)
The covariance will be COVAR The correlation will be CORREL.
Type GO VAR_N to obtain n/n+1 statistical correction factor
...
yes? go var_n
CANCEL MODE VERIFY
 **ERROR: variable unknown or not in data set: TEMPERATURE[Y=35]
IF `nm1 eq 0` then exit/script
Command file, command group, or REPEAT execution aborted


On Wed, May 27, 2015 at 12:01 PM, samir pokhrel <pokhrelsamir@xxxxxxxxx> wrote:
Dear Satyam,

Make Sure that your p and q dimensions matches, it seems from your code that longitude of p vary from 0:30N and that of q from 0 to 1N. Please correct it and verify

Regards
Samir

On Wed, May 27, 2015 at 11:39 AM, Satyam Srivastava <satyam.srivastava.au@xxxxxxxxx> wrote:
Hi Folks,

I am trying to calculate the co relation coefficient for two different data set I have already gone through the ferret FAQ, from there i got the idea to compute for a single data set can any one help me for two different data set on different grids and they are time series data.

as i am trying the same concept but i am getting the errors as follows:


yes? set mode metafile
yes? use pottm2008.nc
yes? use pottmp.2008.nc
yes? let p=temperature[x=0:30,y=0:35]
yes? let q=pottmp[x=0:1,y=0:35]
yes? go var_n
CANCEL MODE VERIFY
 **ERROR: variable unknown or not in data set: MASK_PQ
IF `nm1 eq 0` then exit/script
Command file, command group, or REPEAT execution aborted
yes?


--
Regards,

Satyam Srivastava,
J.R.F,
K. Banerjee Centre of Ocean Sciences, 
University of Allahabad,
Allahabad.
+918756123444




--
Samir Pokhrel
Climate and Global Modelling Division
Indian Institute of Tropical Meteorology
NCL Post, Pashan
Pune-411008
INDIA



--
Regards,

Satyam Srivastava,
J.R.F,
K. Banerjee Centre of Ocean Sciences, 
University of Allahabad,
Allahabad.
+918756123444




--
Regards,
Chinnu Sachidanandan
Physical Oceanography Division
National Institute of Oceanography
csachidanandan@xxxxxxx


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

Privacy Policy | Disclaimer | Accessibility Statement