source: LMDZ6/branches/LMDZ_ECRad/libf/phylmd/ecrad/test/i3rc/smooth1D.m

Last change on this file was 4728, checked in by idelkadi, 13 months ago

Update of ecrad in the LMDZ_ECRad branch of LMDZ:

  • version 1.6.1 of ecrad
  • files are no longer grouped in the same ecrad directory.
  • the structure of ecrad offline is preserved to facilitate updating in LMDZ
  • cfg.bld modified to take into account the new added subdirectories.
  • the interface routines and those added in ecrad are moved to the phylmd directory
File size: 107 bytes
Line 
1function [Ds] = smooth1D(D)
2Ds=D;
3s = length(Ds);
4Ds(2:s-1) = 0.25 .* (D(1:s-2)+D(3:s)) + 0.5 .* D(2:s-1);
Note: See TracBrowser for help on using the repository browser.