<html><head><meta http-equiv="Content-Type" content="text/html charset=gb2312"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi, all</div><div class=""><br class=""></div><div class="">&nbsp; &nbsp; I want to output the result of SVD for SLP and SIC, but met some puzzling error as below :</div><div class=""><br class=""></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">fatal:Dimension sizes of left hand side do not match right hand side</span></div><div class=""><span style="font-family: Menlo; font-size: 18px;" class="">fatal:["Execute.c":8575]:Execute: Error occurred at or near line 214 in file svd_sic_slp_season.ncl</span>&nbsp;&nbsp; &nbsp;</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">and here below is some part of my scripts</div><div class=""><br class=""></div><div class="">&nbsp; &nbsp;system("rm -f " + output_filename + ".nc") &nbsp; ; remove any pre-existing file</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp;ncdf = addfile(output_filename+".nc","c") &nbsp;; open output netCDF file</div><div class=""><br class=""></div><div class="">&nbsp; &nbsp; ;===================================================================</div><div class="">&nbsp; &nbsp; ; create global attributes of the file (optional)</div><div class="">&nbsp; &nbsp; ;===================================================================</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp;fAtt &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = True &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; assign file attributes</div><div class="">&nbsp; &nbsp; &nbsp; ; fAtt@title &nbsp; &nbsp; &nbsp; &nbsp; = "NSIDC Bootstrap sea ice concentration"</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp;;fAtt@source_file &nbsp; = &nbsp;"original-file.nc"</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp;;fAtt@Conventions &nbsp; = "None"</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp;fAtt@creation_date = systemfunc ("date")</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp;fileattdef( ncdf, fAtt ) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; copy file attributes</div><div class="">&nbsp; &nbsp; ;===================================================================</div><div class="">&nbsp; &nbsp; ; make time an UNLIMITED dimension; recommended &nbsp;for most applications</div><div class="">&nbsp; &nbsp; ;===================================================================</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp;filedimdef(ncdf,"time",-1,True)&nbsp;</div><div class="">&nbsp; &nbsp; ;===================================================================</div><div class="">&nbsp; &nbsp; ; output variables directly; NCL will call appropriate functions</div><div class="">&nbsp; &nbsp; ; to write the meta data associated with each variable</div><div class="">&nbsp; &nbsp; ;===================================================================</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp;ncdf-&gt;svd_slp_season &nbsp;= svd_slp_season</div><div class="">212 &nbsp;printVarSummary(svd_slp_season)</div><div class="">213 &nbsp; printVarSummary(svd_sst_season)</div><div class="">214 &nbsp;ncdf-&gt;svd_sst_season &nbsp;= svd_sst_season &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; error occurred at or near this line</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; ncdf-&gt;ts_slp_season &nbsp;= ts_slp_season</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; ncdf-&gt;ts_sst_season &nbsp;= ts_sst_season</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">and here below is the information from printVarSummary in line 213 and 212&nbsp;</div><div class=""><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Variable: svd_slp_season</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Type: float</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Total Size: 87552 bytes</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 21888 values</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Number of Dimensions: 4</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Dimensions and sizes:<span class="Apple-tab-span" style="white-space:pre">        </span>[season | 4] x [nsvd | 2] x [lat | 19] x [lon | 144]</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Coordinates:&nbsp;</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lat: [-90..-45]</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lon: [ 0..357.5]</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Number Of Attributes: 1</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; _FillValue :<span class="Apple-tab-span" style="white-space:pre">        </span>9.96921e+36</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; min-height: 21px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Variable: svd_sst_season</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Type: float</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Total Size: 403200 bytes</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 100800 values</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Number of Dimensions: 4</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Dimensions and sizes:<span class="Apple-tab-span" style="white-space:pre">        </span>[season | 4] x [nsvd | 2] x [lat | 35] x [lon | 360]</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Coordinates:&nbsp;</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lat: [-45.5..-79.5]</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lon: [0.5..359.5]</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Number Of Attributes: 1</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; _FillValue :<span class="Apple-tab-span" style="white-space:pre">        </span>-1e+30</span></div></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class="">I am puzzled why the error occurred in writing ˇ°svd_sst_seasonˇ±.</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class="">The whole script was also attached and SLP data is from NCEP monthly reanalysis.derived and SIC is&nbsp;</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class="">from HadISST2.2 (<a href="http://www.metoffice.gov.uk/hadobs/hadisst2/data/download.html" class="">http://www.metoffice.gov.uk/hadobs/hadisst2/data/download.html</a>)</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class="">Thank</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class="">Lin</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""></div></body></html>