<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=""> 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> </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=""> system("rm -f " + output_filename + ".nc") ; remove any pre-existing file</div><div class=""> ncdf = addfile(output_filename+".nc","c") ; open output netCDF file</div><div class=""><br class=""></div><div class=""> ;===================================================================</div><div class=""> ; create global attributes of the file (optional)</div><div class=""> ;===================================================================</div><div class=""> fAtt = True ; assign file attributes</div><div class=""> ; fAtt@title = "NSIDC Bootstrap sea ice concentration"</div><div class=""> ;fAtt@source_file = "original-file.nc"</div><div class=""> ;fAtt@Conventions = "None"</div><div class=""> fAtt@creation_date = systemfunc ("date")</div><div class=""> fileattdef( ncdf, fAtt ) ; copy file attributes</div><div class=""> ;===================================================================</div><div class=""> ; make time an UNLIMITED dimension; recommended for most applications</div><div class=""> ;===================================================================</div><div class=""> filedimdef(ncdf,"time",-1,True) </div><div class=""> ;===================================================================</div><div class=""> ; output variables directly; NCL will call appropriate functions</div><div class=""> ; to write the meta data associated with each variable</div><div class=""> ;===================================================================</div><div class=""> ncdf->svd_slp_season = svd_slp_season</div><div class="">212 printVarSummary(svd_slp_season)</div><div class="">213 printVarSummary(svd_sst_season)</div><div class="">214 ncdf->svd_sst_season = svd_sst_season ; error occurred at or near this line</div><div class=""> ncdf->ts_slp_season = ts_slp_season</div><div class=""> ncdf->ts_sst_season = 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 </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=""> 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: </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=""> 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=""> 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=""> _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=""> 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: </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=""> 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=""> 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=""> _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 </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>