1 function [t,varargout]=rsac2time(name)
2 % convert rsac MODIS/VIIRS file names to time value
3 str=regexp(name,'\.[0-9]+\.','match');
5 error('NASA time string not found')
7 % detect level data, file name is not *.mat
10 s1 = regexp(name,'\.[A-0]+\.','match');
13 s2 = regexp(name,'\.[0-9]+\.','match');
15 s2 = [s2(2:end-1),'00'];
19 str=regexp(name,'\.[0-9]+\.','match');
21 str=['20',str(2:end-1)]; %yyyydddHHMMSSS