[Thread Prev][Thread Next][Index]

RE: [ferret_users] Correlation between one point and 2D spatial data



Hi Iskandar,
                    Please check your ssh data by filling the 2d data with fill ssh[l=1] command. If my guess is correct the ssh data is not in proper grid. Your error says q has only 2 points in x dimension.
Once you make sure your data is proper assign time axis for both data and save them preferably in a single file ( not mandatory but it will be easy to handle) then try the variance , it should work. 
with best regards,
Sudheer
º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤º¤ø,¸¸,ø¤º
Sudheer Joseph
Scientist
Indian National Centre for Ocean Information Services (INCOIS)
Post Box No.21, IDA Jeedimetla P.O. Hyderabad,
Andhra Pradesh, India., Pin - 500 055
Tel : +91-40-23044600(R),  +91-40-23886047(O),
Fax: +91-40-23895011(O) ,
Mob :+91-40-9440832534,
E-mail:sjo@xxxxxxxxxxxxxx; sjo@xxxxxxxxxxxxx;sjo.India@xxxxxxxxx
Web- http://oppamthadathil.tripod.com
º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤º¤ø,¸¸,ø¤º
"The ultimate measure of a man is not where he stands
in moments of comfort and convenience, but where he
stands at times of challenge and controversy."
Martin Luther King, Jr.
º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤º¤ø,¸¸,ø¤º



________________________________________
From: owner-ferret_users@xxxxxxxx [owner-ferret_users@xxxxxxxx] on behalf of 'Iskhaq Iskandar' via _OAR PMEL Ferret Users [ferret_users@xxxxxxxx]
Sent: Friday, January 15, 2016 12:37 PM
To: ferret_users@xxxxxxxx
Subject: [ferret_users] Correlation between one point and 2D spatial data

Dear Ferret users,

I am trying to compute a correlation between an observed current at one location (1D data: varies in time only) with SSH of a basin-wide region (2D data in x,y and time).

What I did is something like this:

-------------------
use daily-ssh.nc
use daily-current.nc
set mem/size=600

def axis/t=1-jan-2009:19-May-2010:1/unit=days tday
let ssh = sla[d=1, gt=tday]
let uvel = u[d=2, gt=tday]

let p = uvel
let q = ssh
go variance

shade correl
!
can data/a
can var/a
can mem
--------------------

But I got an error like:

-------
 *** NOTE: Ambiguous coordinates on X axis: P*Q-P*Q + 1
 *** NOTE: Ambiguous coordinates on X axis: Q*MASK_PQ
 *** NOTE: Ambiguous coordinates on X axis: COVAR / (P_VAR_MASK*Q_VAR_MASK)^.5
 *** NOTE: Ambiguous coordinates on X axis: P_DEV_MASK * Q_DEV_MASK
 **ERROR: dimensions improperly specified: must be a 2D region
--------

If I change between P and Q, I will get an error like:

--------
*** NOTE: Ambiguous coordinates on X axis: P*Q-P*Q + 1
 *** NOTE: Ambiguous coordinates on X axis: Q*MASK_PQ
 *** NOTE: Ambiguous coordinates on X axis: COVAR / (P_VAR_MASK*Q_VAR_MASK)^.5
 *** NOTE: Ambiguous coordinates on X axis: P_DEV_MASK * Q_DEV_MASK
 **ERROR: inconsistent sizes of data regions: X axis
          Q has 3 points (I=0:2)
          expression has 301 points (I=001:301)
---------

Do you have any suggestion?
Thank you for help.

Best regards,
Iskhaq



---------------------------------------------------------------- Dr. Iskhaq Iskandar Jurusan Fisika, Fakultas MIPA Universitas Sriwijaya Kampus Inderalaya, Ogan Ilir (OI) Sumatra Selatan, 30662 INDONESIA Phone: +62 (711) 580743 Fax: +62 (711) 580268 E-mail: iskhaq.iskandar@xxxxxxxxx http://iskhaq.wordpress.com/ ----------------------------------------------------------------

Email secured by Check Point



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

Privacy Policy | Disclaimer | Accessibility Statement