[Thread Prev][Thread Next][Index]

Re: [ferret_users] Spatial Correlation with regressxy



Dear Linda,

Check this out:

Re: [ferret_users] [FERRET]calculate spatial correlation of 2 variables


I don't think you need the statement "gt=precip[d=1]" because your L from both data sets are L=1:1
Good luck.

------
Kamoru Abiodun LAWAL, PhD
Post-Doctoral Research Fellow
African Climate and Development Initiative (ACDI),
Geological Sciences Building, 6th Floor,
University of Cape Town, Private Mail Bag X3,
Rondebosch, Cape Town, 7701, South Africa.
Website: www.acdi.uct.ac.za
Phones: +27 78 268 5434 (m); +27 21 650 2902 (o)
E-mails: kamoru.lawal@xxxxxxxxxxxxxxxx  lawal@xxxxxxxxxxxxxx
.........there's no wrong time for doing the right things..........
<<<<----------------------------------------------------------------------------->>>>


On Monday, 19 August 2019, 08:40:19 GMT+2, Molulaqhooa Maoyi <molulaqhooa.maoyi@xxxxxxxxx> wrote:


Dear Ferret Users.

I am struggling to find the spatial correlation between two datasets. I keep on getting the error  SET GRID Q" after defining Q. **ERROR: unknown command: missing
missing. I am not sure what is missing.

Initially, I defined Q without specifying gt=precip[d=1] because both datasets are on the same grid. However, that did not work and tried regridding again by adding gt=precip[d=1]
but that did not work still. Any suggestions?

use final.gpcp.nc
use final.20th.nc
 
let P = precip[d=1]
let Q = prate[d=2, gt=precip[d=1]]
 
SET GRID Q
 exit

go regressxy


... Linear Regression In the XY Plane
... Instructions:
Use the LET command to define new variables
Define the variable P as your independent (X) variable
Define the variable Q as your   dependent (Y) variable
Results will be variables "SLOPE", "INTERCEP" and "RSQUARE"
QHAT will be the regression estimate
Note: If "Y" is your independent variable then
...   "SET GRID Q" after defining Q.
...
 **ERROR: unknown command: missing
missing
Command file, command group, or REPEAT execution aborted
yes? sh d
     currently SET data sets:
    1> ./final.gpcp.nc
 name     title                             I         J         K         L         M         N
 PRECIP   Average Monthly Rate of Precipi  1:720     1:360     ...       1:1       ...       ...
 
    2> ./final.20th.nc
 name     title                             I         J         K         L         M         N
 TIME_BNDS_2
          Time Boundaries                  1:2       ...       ...       1:1       ...       ...
 PRATE    Monthly Precipitation Rate at s  1:720     1:360     ...       1:1       ...       ...



Kind Regards
--
Linda
"Try and Fail than to Fail to Try" - Israel Maoyi

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

Privacy Policy | Disclaimer | Accessibility Statement