Home > atmlab > retrieval > spareice > ccniwp_proc.m

ccniwp_proc

PURPOSE ^

SYNOPSIS ^

function data = ccniwp_proc(~, data, ~)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

ccniwp_proc.m

SOURCE CODE ^

0001 function data = ccniwp_proc(~, data, ~)
0002 if isempty(data.lat)
0003     data.Surface_elevation = [];
0004     data.Surface_elevation_std = [];
0005     data.CFSR_Skin_temperature = [];
0006 else
0007     data.Surface_elevation = vec2col(get_surface_elevation(data.LAT, data.LON));
0008     data.Surface_elevation_std = vec2col(get_surface_elevation(data.LAT, data.LON, 1));
0009     
0010     [ye, mo, da, ho, mi, se] = unixsecs2date(data.TIME);
0011     dv = [ye, mo, da, ho, mi, se];
0012     [~, I] = sortrows(dv);
0013     D = datasets();
0014     S = D.CFSR.read_from_grid(data.LAT(I), data.LON(I), dv(I, :), {'TMP_L1'});
0015     data.CFSR_Skin_temperature(I) = S.TMP_L1;
0016     data.CFSR_Skin_temperature = vec2col(data.CFSR_Skin_temperature);
0017 end
0018 end

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005