<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi All,</p>
<p>Thanks for the reply Will!&nbsp;</p>
<p>But is there any way to suppress the warning and let the code run? I'm having too many warning.</p>
<p><br>
</p>
<p>I'm copying the 1st part of the code (before doing SVD)&nbsp;here, if anybody could help to clean it up!&nbsp;<span style="font-size: 12pt;">There is no error message&nbsp;but probably I&nbsp;did something wrong .</span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span style="font-size: 12pt;">Thanks in advance!</span></p>
<p><span style="font-size: 12pt;">Bithi&nbsp;</span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><br>
</p>
<div>;********************************************************</div>
<div>&nbsp;load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;</div>
<div>&nbsp;load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;</div>
<div>&nbsp;load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot;</div>
<div>&nbsp;load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl&quot;</div>
<div>;*********************************************************</div>
<div>&nbsp; &nbsp; &nbsp;begin</div>
<div>&nbsp; &nbsp; &nbsp;</div>
<div>&nbsp; &nbsp;;********************************</div>
<div>&nbsp; &nbsp;;read binary files</div>
<div>&nbsp; &nbsp;;********************************</div>
<div>&nbsp; &nbsp;data_path = &quot;/scratch/lustreD/b/bde/seaice_bin/&quot; &nbsp;</div>
<div>&nbsp; &nbsp;;data_filename= &quot;bt_197812_n07_v02_n.bin&quot;</div>
<div>&nbsp; &nbsp; nrows = 448</div>
<div>&nbsp; &nbsp; ncols = 304</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp; ;************* read sic data *************************************************************************</div>
<div>&nbsp; ; documentation of the data at &nbsp; http://nsidc.org/data/docs/daac/nsidc0079_bootstrap_seaice.gd.html&nbsp;</div>
<div>&nbsp; ; 2-byte integer is NCL type &quot;short&quot;</div>
<div>&nbsp; ; divide stored value by 10 to get the percent (SIC values stored as 0-1000)</div>
<div>&nbsp; ; land is registered as 1200 andnorth pole as 1100</div>
<div>&nbsp; ;***************************************************************************************************</div>
<div>&nbsp;&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp;nrec=0</div>
<div>&nbsp; &nbsp; &nbsp;Idims1 = (/448,304/)</div>
<div>&nbsp; &nbsp; &nbsp;</div>
<div>&nbsp; &nbsp; &nbsp;</div>
<div>&nbsp; &nbsp; fils = systemfunc(&quot;ls /scratch/lustreD/b/bde/seaice_bin/*.bin&quot;)</div>
<div><br>
</div>
<div>&nbsp; &nbsp; SIC = new((/dimsizes(fils),nrows,ncols/),”short&quot;) &nbsp; ; predefine array for data files</div>
<div>&nbsp; &nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;do gg =0,dimsizes(fils)-1</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; setfileoption(&quot;bin&quot;,&quot;ReadByteOrder&quot;,&quot;LittleEndian&quot;)</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;SIC(gg,:,:) = fbindirread(fils(gg),nrec,dims1,&quot;short&quot;)</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;end do</div>
<div><br>
</div>
<div>&nbsp; &nbsp; &nbsp;printVarSummary(SIC)</div>
<div>&nbsp; &nbsp; &nbsp;printMinMax(SIC,True)</div>
<div>&nbsp;&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp;SIC_f= short2flt(SIC)</div>
<div>&nbsp; &nbsp; &nbsp;SIC_f@_FillValue = -999</div>
<div>&nbsp; &nbsp; SIC_f = SIC_f/10</div>
<div>&nbsp; &nbsp; printVarSummary(SIC_f)</div>
<div>&nbsp; &nbsp; printMinMax(SIC_f,True)</div>
<div><br>
</div>
<div>&nbsp;&nbsp;</div>
<div>&nbsp; &nbsp; SIC_f = where(SIC_f .gt. 100,SIC_f@_FillValue,SIC_f)&nbsp;</div>
<div>&nbsp; &nbsp; SIC_f@_FillValue = -999</div>
<div>&nbsp; &nbsp; printVarSummary(SIC_f)</div>
<div>&nbsp; &nbsp; printMinMax(SIC_f,True)</div>
<div>&nbsp;&nbsp;</div>
<div><br>
</div>
<div>&nbsp; &nbsp;&nbsp;</div>
<div>&nbsp; &nbsp;;*********************** &nbsp;read lat-lon for 25x25 km grid points in polar stereographic projection&nbsp;*</div>
<div>&nbsp; ; documentation for the grid ;http://nsidc.org/data/polar_stereo/tools_geo_pixel.html#psn25_pss25_lats</div>
<div>&nbsp; ; Grids that determine the latitude of a given pixel for the 25 km grids for either hemisphere</div>
<div>&nbsp; ; 4-byte integer(little endian), scaled by 100,000</div>
<div>&nbsp; ; Each array location (i, j) contains the latitude/longitude value at the center of the ;corresponding data grid cells</div>
<div>&nbsp; ; 304 columns x 448 rows, range = [31.102, 89.836] for lats ; 304 columns x 448 rows, range = ;[-180.000, 179.814] for lons</div>
<div>&nbsp; ;****************************************************************************************************</div>
<div><br>
</div>
<div>&nbsp;setfileoption(&quot;bin&quot;,&quot;ReadByteOrder&quot;,&quot;LittleEndian&quot;)</div>
<div>&nbsp;lat = fbindirread(&quot;/scratch/lustreD/b/bde/seaice_bin/psn25lats_v3.dat&quot;,0,(/nrows,ncols/), &quot;integer&quot;) /100000.</div>
<div>&nbsp;lon = fbindirread(&quot;/scratch/lustreD/b/bde/seaice_bin/psn25lons_v3.dat&quot;,0,(/nrows,ncols/), &quot;integer&quot;) /100000.</div>
<div><br>
</div>
<div>&nbsp;lat@units = &quot;degrees_north&quot;</div>
<div>&nbsp;lon@units = &quot;degrees_east&quot;</div>
<div>&nbsp;printVarSummary(lon)</div>
<div>&nbsp;printVarSummary(lat)</div>
<div><br>
</div>
<div>&nbsp;print(max(lon)&#43;&quot; &quot; &#43;min(lon))</div>
<div>&nbsp;print(max(lat)&#43;&quot; &quot; &#43;min(lat))</div>
<div>&nbsp; &nbsp;</div>
<div>&nbsp; &nbsp; SIC_f@lat2d &nbsp;= lat</div>
<div>&nbsp; &nbsp; SIC_f@lon2d &nbsp;= lon</div>
<div><br>
</div>
<div>&nbsp; &nbsp; &nbsp;printVarSummary(SIC_f)</div>
<div>&nbsp; &nbsp; &nbsp;printMinMax(SIC_f,True)</div>
<div><br>
</div>
<div>;************* remove mean ****************8</div>
<div>ice_ano= dim_rmvmean_n_Wrap(SIC_f,0) &nbsp;;timexlatxlon</div>
<div>printVarSummary(ice_ano)</div>
<div>printMinMax(ice_ano,True)</div>
<div><br>
</div>
<div>&nbsp;if(any(ismissing(ice_ano))) then</div>
<div>&nbsp; &nbsp; print(&quot;Your data contains some missing values. Beware.&quot;)</div>
<div>&nbsp; end if</div>
<div><br>
</div>
<div><br>
</div>
<div>;; SVD will not contain any data with missingvalue so change fillvalue to 0.0&nbsp;</div>
<div>;; http://www.ncl.ucar.edu/Support/talk_archives/2013/3756.html</div>
<div><br>
</div>
<div><br>
</div>
<div>ice_ano@_FillValue=0.0</div>
<div>delete(ice_ano@_FillValue)</div>
<div>printVarSummary(ice_ano)</div>
<div><br>
</div>
<div>&nbsp; ;**************************************************</div>
<div>&nbsp; &nbsp;; split into month and year</div>
<div>&nbsp;;******************************************************** &nbsp;</div>
<div>&nbsp; ice_ym = new((/12,35,448,304/),&quot;float&quot;)</div>
<div><br>
</div>
<div>&nbsp; m = 0&nbsp;</div>
<div>&nbsp; y = 0</div>
<div><br>
</div>
<div>&nbsp; do ii = 2,421</div>
<div><br>
</div>
<div>&nbsp; ; print(ii)</div>
<div>&nbsp; ; print(m)</div>
<div>&nbsp; ; print(y)</div>
<div><br>
</div>
<div>&nbsp; &nbsp;ice_ym(m,y,:,:) = ice_ano(ii,:,:)</div>
<div><br>
</div>
<div>&nbsp; &nbsp;m = m&#43;1&nbsp;</div>
<div><br>
</div>
<div>&nbsp; if (m .eq. 12)&nbsp;</div>
<div>&nbsp; &nbsp;y = y&#43;1</div>
<div>&nbsp; &nbsp;m = 0</div>
<div>&nbsp; end if</div>
<div><br>
</div>
<div>&nbsp; end do</div>
<div>&nbsp; printVarSummary(ice_ym)</div>
<div>&nbsp;&nbsp;</div>
<div><br>
</div>
<div>&nbsp;ice_Jan=ice_ym(0,:,:,:)</div>
<div>&nbsp;copy_VarCoords(ice_ym(0,0,:,:),ice_Jan)</div>
<div>&nbsp;printVarSummary(ice_Jan)</div>
<div><br>
</div>
<div>&nbsp;ice_Feb=ice_ym(1,:,:,:)</div>
<div>&nbsp;copy_VarCoords(ice_ym(0,0,:,:),ice_Feb)</div>
<div>&nbsp;printVarSummary(ice_Feb)</div>
<div>&nbsp;</div>
<div>&nbsp; ice_Dec=ice_ym(11,:,:,:)</div>
<div>&nbsp;copy_VarCoords(ice_ym(0,0,:,:),ice_Dec)</div>
<div>&nbsp;printVarSummary(ice_Dec)</div>
<div><br>
</div>
<div><br>
</div>
<div>ice_Wint = new((/3,35,448,304/),&quot;float&quot;)&nbsp;</div>
<div>ice_Wint(0,:,:,:)=ice_Dec</div>
<div>ice_Wint(1,:,:,:)=ice_Jan</div>
<div>ice_Wint(2,:,:,:)=ice_Feb</div>
<div>&nbsp;printVarSummary(ice_Wint)</div>
<div>&nbsp;printMinMax(ice_Wint,True)</div>
<div><br>
</div>
<div>&nbsp;ice_djf=dim_avg_n_Wrap(ice_Wint,0)</div>
<div>&nbsp;printVarSummary(ice_djf)</div>
<div>&nbsp;printMinMax(ice_djf,True)</div>
<div><br>
</div>
<div>&nbsp; if(any(ismissing(ice_djf))) then</div>
<div>&nbsp; &nbsp; print(&quot;Your data contains some missing values. Beware.&quot;)</div>
<div>&nbsp; end if</div>
<div>&nbsp;</div>
<div><br>
</div>
<div>&nbsp;;***********************************************************************************************************</div>
<div>&nbsp; &nbsp;; read Z500 data and remove climatology for each winter month</div>
<div>&nbsp;;***********************************************************************************************************</div>
<div>&nbsp; &nbsp; &nbsp;in &nbsp; = addfile(&quot;/scratch/lustreD/b/bde/reanalysis/ERA_data/ERA_z500_lowreso.nc&quot;,&quot;r&quot;)</div>
<div><br>
</div>
<div>&nbsp; &nbsp; &nbsp;lat1 &nbsp;= in-&gt;latitude</div>
<div>&nbsp; &nbsp; &nbsp;lon1 &nbsp;= in-&gt;longitude</div>
<div>&nbsp; &nbsp; &nbsp;printVarSummary(lat1)</div>
<div>&nbsp; &nbsp; &nbsp;printVarSummary(lon1)</div>
<div>&nbsp; &nbsp;</div>
<div>&nbsp; &nbsp; latz=lat1({90:20})</div>
<div>&nbsp; &nbsp; l1 = dimsizes(latz)</div>
<div>&nbsp;&nbsp;</div>
<div><br>
</div>
<div>&nbsp; &nbsp;z500 = (short2flt(in-&gt;z)) ;m2/s2 geopotential</div>
<div>&nbsp; &nbsp;printVarSummary(z500)</div>
<div>&nbsp; &nbsp;printMinMax(z500,True)</div>
<div>&nbsp; &nbsp; z5 = (z500(0,0,:)/9.8) &nbsp; &nbsp; &nbsp; &nbsp; ;geopotential height&nbsp;</div>
<div>&nbsp; &nbsp;</div>
<div>&nbsp; &nbsp; copy_VarCoords(z500,z5)</div>
<div>&nbsp; &nbsp; printVarSummary(z5)</div>
<div>&nbsp; &nbsp; printMinMax(z5,True)</div>
<div><br>
</div>
<div>&nbsp; &nbsp;z_35 =z5(2:421,:,:); &nbsp; &nbsp; &nbsp; &nbsp; ;timesteps for 1979-2013, 35 years</div>
<div>&nbsp; &nbsp;printVarSummary(z_35)</div>
<div>&nbsp; &nbsp;printMinMax(z_35,True)</div>
<div><br>
</div>
<div>&nbsp; &nbsp; zClm = clmMonTLL( z_35 ) &nbsp; &nbsp; &nbsp; ; monthly climatology (12xlatxlon)</div>
<div>&nbsp; &nbsp; &nbsp; printVarSummary(zClm)&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; printMinMax(zClm,True)</div>
<div><br>
</div>
<div>;************* remove monthly climatology and calculate anomaly for each month *************</div>
<div>&nbsp; zAno= calcMonAnomTLL (z_35,zClm)</div>
<div>&nbsp; &nbsp; &nbsp; printVarSummary(zAno)&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; printMinMax(zAno,True) &nbsp; &nbsp; &nbsp;;time(420=35*12)xlatxlon for zanomaly</div>
<div><br>
</div>
<div><br>
</div>
<div>&nbsp;if(any(ismissing(zAno))) then</div>
<div>&nbsp; &nbsp; print(&quot;Your data contains some missing values. Beware.&quot;)</div>
<div>&nbsp; end if</div>
<div><br>
</div>
<div><br>
</div>
<div>;; SVD will not contain any data with missingvalue so change fillvalue to 0.0&nbsp;</div>
<div>&nbsp;zAno@_FillValue=0.0</div>
<div>&nbsp;delete(zAno@_FillValue)</div>
<div>&nbsp;printVarSummary(zAno)</div>
<div>&nbsp;printMinMax(zAno,True)</div>
<div><br>
</div>
<div>&nbsp;if(any(ismissing(zAno))) then</div>
<div>&nbsp; &nbsp; print(&quot;Your data contains some missing values. Beware.&quot;)</div>
<div>&nbsp; end if</div>
<div><br>
</div>
<div><br>
</div>
<div>;********************* &nbsp; split in monthsxyear of the z-anomaly ***********************************</div>
<div>&nbsp;z_ym = new((/12,35,dimsizes(lat1),dimsizes(lon1)/),&quot;float&quot;)</div>
<div><br>
</div>
<div>&nbsp; m = 0&nbsp;</div>
<div>&nbsp; y = 0</div>
<div><br>
</div>
<div>&nbsp; do ii = 0,419</div>
<div><br>
</div>
<div>&nbsp; &nbsp;z_ym(m,y,:,:) = zAno(ii,:,:)</div>
<div><br>
</div>
<div>&nbsp; &nbsp;m = m&#43;1&nbsp;</div>
<div><br>
</div>
<div>&nbsp; if (m .eq. 12)&nbsp;</div>
<div>&nbsp; &nbsp;y = y&#43;1</div>
<div>&nbsp; &nbsp;m = 0</div>
<div>&nbsp; end if</div>
<div>&nbsp; end do</div>
<div>&nbsp;</div>
<div>&nbsp; printVarSummary(z_ym)</div>
<div>&nbsp; printMinMax(z_ym,True)</div>
<div><br>
</div>
<div><br>
</div>
<div>&nbsp;z_Jan=z_ym(0,:,:,:)</div>
<div>&nbsp;printVarSummary(z_Jan)</div>
<div><br>
</div>
<div>&nbsp;z_Feb=z_ym(1,:,:,:)</div>
<div>&nbsp;printVarSummary(z_Feb)</div>
<div>&nbsp;</div>
<div>&nbsp; z_Dec=z_ym(11,:,:,:)</div>
<div>&nbsp; printVarSummary(z_Dec)</div>
<div><br>
</div>
<div><br>
</div>
<div>z_Wint = new((/3,35,dimsizes(latz),dimsizes(lon1)/),&quot;float&quot;)&nbsp;</div>
<div>z_Wint(0,:,:,:)=z_Dec(:,{90:20},:)</div>
<div>z_Wint(1,:,:,:)=z_Jan(:,{90:20},:)</div>
<div>z_Wint(2,:,:,:)=z_Feb(:,{90:20},:)</div>
<div>&nbsp;printVarSummary(z_Wint)</div>
<div>&nbsp;printMinMax(z_Wint,True)</div>
<div><br>
</div>
<div>z_djf=dim_avg_n_Wrap(z_Wint,0)</div>
<div>z_djf!0=&quot;time&quot;</div>
<div>&nbsp;printVarSummary(z_djf)</div>
<div>&nbsp;printMinMax(z_djf,True)</div>
<div><br>
</div>
<div>if(any(ismissing(z_djf))) then</div>
<div>&nbsp; &nbsp; print(&quot;Your data contains some missing values. Beware.&quot;)</div>
<div>&nbsp; end if</div>
<div><br>
</div>
<div><br>
</div>
<div>&nbsp; &nbsp;;***********************************************************</div>
<div>&nbsp; &nbsp;; calculate SVD</div>
<div>&nbsp; &nbsp;;*****************************************<span style="font-size: 12pt;">&nbsp;*******</span></div>
<div><span style="font-size: 12pt;">&nbsp;</span></div>
<div><span style="font-size: 12pt;">&nbsp;;posted before</span></div>
<div></div>
<div><br>
</div>
<div></div>
<div><br>
</div>
<div></div>
<div>&nbsp; &nbsp; &nbsp;end</div>
<div><br>
</div>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Will Hobbs &lt;will.hobbs@utas.edu.au&gt;<br>
<b>Sent:</b> Wednesday, December 16, 2015 6:29 PM<br>
<b>To:</b> Bithi De; ncl-talk@ucar.edu<br>
<b>Subject:</b> Re: [ncl-talk] How to resolve SVD warning: column contains constant</font>
<div>&nbsp;</div>
</div>
<div>
<div>Bithi</div>
<div><br>
</div>
<div>You will have constant values in the SIC array anywhere that is a) land, b) perenially ice covered or c) never ice covered. Any of these conditions are physically plausible &nbsp;for some data points in either the Arctic or Southern Ocean, and you would get
 the same warning with a regular cross-correlation using escort()</div>
<div><br>
</div>
<div>In short, it's not (necessarily) a problem and is encountered in almost all gridded ocean data.</div>
<div><br>
</div>
<div>Will</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; border-bottom:medium none; border-left:medium none; padding-bottom:0in; padding-left:0in; padding-right:0in; border-top:#b5c4df 1pt solid; border-right:medium none; padding-top:3pt">
<span style="font-weight:bold">From: </span>Bithi De &lt;<a href="mailto:bde@purdue.edu">bde@purdue.edu</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Thursday, 17 December 2015 10:19 AM<br>
<span style="font-weight:bold">To: </span>&quot;<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>&quot; &lt;<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>[ncl-talk] How to resolve SVD warning: column contains constant<br>
</div>
<div><br>
</div>
<div>
<div dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi All,</p>
<p>I am calculating SVD between seaice concentration anomaly (documentation of the data at&nbsp;&nbsp;
<a href="http://nsidc.org/data/docs/daac/nsidc0079_bootstrap_seaice.gd.html">http://nsidc.org/data/docs/daac/nsidc0079_bootstrap_seaice.gd.html</a>&nbsp;) and geopotential height anomaly from ERA-interim data, for winter(35years). I am not getting any error until
 the step for calculating SVD. <br>
</p>
<p>The part of my code is as follows:</p>
<p>;***********************************************************<br>
&nbsp;&nbsp; ; calculate SVD<br>
&nbsp;;**************************************************<br>
&nbsp; ; Z-anomaly (timexlatxlon)<br>
</p>
<p>&nbsp;&nbsp; nxy = dimsizes(lon1)*dimsizes(latz)&nbsp;&nbsp; ;size(space)<br>
&nbsp;&nbsp;&nbsp; ntim = 35&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;size(time)<br>
&nbsp; <br>
&nbsp;&nbsp; ; reorder so time varying fast <br>
&nbsp;&nbsp; ; create spacextime matrix for Z_ano</p>
<p><br>
&nbsp;&nbsp;&nbsp; Z = z_djf(longitude|:,latitude|:,time|:)<br>
&nbsp;&nbsp;&nbsp; printVarSummary(Z)<br>
&nbsp;&nbsp;&nbsp; Z2 = onedtond(ndtooned(Z),(/nxy,ntim/))&nbsp; ;convert into spacextime matrix<br>
&nbsp;&nbsp;&nbsp; printVarSummary(Z2)<br>
&nbsp;&nbsp;&nbsp; printMinMax(Z2,True)<br>
&nbsp; <br>
Z2!0=&quot;space&quot;<br>
Z2!1=&quot;time&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
</p>
<p>&nbsp; <a href="mailto:Z2@_FillValue=0.0">Z2@_FillValue=0.0</a><br>
&nbsp;delete(Z2@_FillValue)<br>
&nbsp;printVarSummary(Z2)<br>
&nbsp;printMinMax(Z2,True)<br>
<br>
&nbsp;if(any(ismissing(Z2))) then<br>
&nbsp;&nbsp;&nbsp; print(&quot;Your data contains some missing values. Beware.&quot;)<br>
&nbsp; end if&nbsp;&nbsp;&nbsp; ; did not get any error<br>
<br>
&nbsp;&nbsp; ;********* SIC anomaly *********************<br>
&nbsp;&nbsp; ; create spacextime matrix for sic_ano(timex448x304) ; 448rows x304columns in 25kmx25km grid<br>
&nbsp;&nbsp; <br>
<br>
&nbsp; xy=448*304<br>
&nbsp; si = ice_djf(::-1,::-1,::-1)&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; ;dimension reordering --&gt;448x304xtime<br>
&nbsp; printVarSummary(si)</p>
<p><br>
&nbsp;&nbsp;&nbsp; Si2 = onedtond(ndtooned(si),(/xy,ntim/))&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;convert into (spacextime)<br>
&nbsp;&nbsp;&nbsp; printVarSummary(Si2)<br>
&nbsp;&nbsp;&nbsp; printMinMax(Si2,True)</p>
<p>Si2!0=&quot;space&quot;<br>
Si2!1=&quot;time&quot;<br>
<br>
&nbsp;<a href="mailto:Si2@_FillValue=0.0">Si2@_FillValue=0.0</a><br>
&nbsp;delete(Si2@_FillValue)<br>
&nbsp;printVarSummary(Si2)<br>
&nbsp;printMinMax(Si2,True)<br>
<br>
&nbsp;if(any(ismissing(Si2))) then<br>
&nbsp;&nbsp;&nbsp; print(&quot;Your data contains some missing values. Beware.&quot;)<br>
&nbsp; end if&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; did not get any error<br>
<br>
<br>
; check if some columns has constant value<br>
p2d=Si2(time|:,space|:)<br>
printVarSummary(p2d)<br>
<br>
p2d_dims = dimsizes(p2d) ; I assume this is time x p1d<br>
<br>
ntim = p2d_dims(0)<br>
np1d = p2d_dims(1)<br>
<br>
;do i=0,np1d-1<br>
&nbsp; ;pmin = min(p2d(:,i))<br>
&nbsp;; pmax = max(p2d(:,i))<br>
&nbsp; ;if(pmin.eq.pmax) then<br>
&nbsp; ;&nbsp; print(&quot;p2d contains all constant values at np1d = &quot; &#43; i)<br>
&nbsp; ;end if<br>
;end do <br>
&nbsp; exit<br>
<br>
&nbsp; ; delete([/Z,Zano,SIC,si/])<br>
<br>
&nbsp;&nbsp; ;***************************************************<br>
&nbsp;&nbsp; ;spatial plot of 1st mode of left and right singular vector<br>
&nbsp;&nbsp; ;************************************************************* <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nsvd = nxy<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; svLeft = new((/nsvd,nxy/),float)&nbsp;&nbsp; ; pre-allocate space<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; svRight = new((/nsvd,xy/),float) <br>
<br>
&nbsp;&nbsp;&nbsp; pc = svdcov_sv(Z2,Si2,nsvd,svLeft,svRight)<br>
<br>
&nbsp;&nbsp; printVarSummary(pc)&nbsp;</p>
<p>&nbsp; end<br>
</p>
<p>;; giving warning ==&gt; all Y values in columns are missing or constant</p>
<h1>*********</h1>
<p>I checked for Si2 following the <a id="LPlnk886053" href="http://www.ncl.ucar.edu/Support/talk_archives/2011/2803.html">
http://www.ncl.ucar.edu/Support/talk_archives/2011/2803.html</a> and it is shows it has constant value.
<br>
</p>
<p>Could you suggest how I can solve it?</p>
<p><br>
</p>
<p>Thanks in advance!</p>
<p>Bithi De</p>
<p>Purdue University<br>
</p>
<p><br>
</p>
<br>
<p></p>
<p><br>
</p>
</div>
</div>
</div>
</span>
<p style="font-size:10pt; line-height:10pt; font-family:Calibri,sans-serif"><br>
<br>
University of Tasmania Electronic Communications Policy (December, 2014). <br>
This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained
 in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.
</p>
</div>
</div>
</div>
</body>
</html>