Home > atmlab > retrieval > spareice > CollocationRetrievalDatabaseProduct.m

CollocationRetrievalDatabaseProduct

PURPOSE ^

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

DOWNLOAD ^

CollocationRetrievalDatabaseProduct.m

SOURCE CODE ^

0001 classdef CollocationRetrievalDatabaseProduct < handle
0002     properties (Abstract)
0003         dbname;
0004         date1;
0005         date2;
0006         sat1;
0007         sat2;
0008         fields;
0009         collocation_limits;
0010         collocation_filters;
0011     end
0012     methods
0013         function getdata(self, varargin)
0014             D = datasets();
0015             [self.data, self.localcols] = D.(self.dbname).read(self.date1, self.date2, ...
0016                 {self.sat1, self.sat2}, ...
0017                 self.fields, ...
0018                 self.collocation_limits, ...
0019                 self.collocation_filters);
0020 %             N = size(self.data, 2);
0021 %             [dat, I] = sortrows(self.data, self.localcols.TIME1);
0022 %             [ye, mo, da, ho, mi, se] = unixsecs2date(dat(:, self.localcols.TIME1));
0023 %             cf = D.CFSR;
0024 %             S = cached_evaluation(@cf.read_from_grid, dat(:, self.localcols.LAT1), dat(:, self.localcols.LON1), [ye, mo, da, ho, mi, se], {'TMP_L1'});
0025 %             self.data(I, N+1) = S.TMP_L1;
0026 %             self.localcols.CFSR_Skin_temperature = N+1;
0027         end
0028     end
0029 end

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