Re: SVD: Warning all Y values in column are missing or are constant

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu Nov 03 2011 - 10:55:25 MDT

Ivanna,

I believe this error message is telling that across some column (rightmost dimension) of "p2d", all your values are either constant or missing.

To test for this (note that I'm checking the leftmost dimension, because you reorder it later):

p2d_dims = dimsizes(p2d) ; I assume this is time x p1d

ntim = p2d_dims(0)
np1d = p2d_dims(1)

do i=0,np1d-1
  pmin = min(p2d(:,i))
  pmax = max(p2d(:,i))
  if(pmin.eq.pmax) then
    print("p2d contains all constant values at np1d = " + i)
  end if
end do

--Mary

On Nov 3, 2011, at 5:47 AM, Ivanna Mo wrote:

> Hi all,
> Iím working on the SVD analysis. When I run my script,
>
> .
> .
> .
> .
> x=svdcov(t2d(t1d|:,time|:),p2d(p1d|:,time|:),nsvd,homlft,hetlft,homrgt,hetrgt)
> .
> .
> .
> .
>
> I got the error :
>
> SVD: Warning all Y values in column are missing or are constant
>
> I have printed t2d and p2d, the values are not constant. So what does the warning mean and how to solve it?
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Nov 3 10:55:31 2011

This archive was generated by hypermail 2.1.8 : Fri Nov 04 2011 - 08:43:41 MDT