WikiPrint - from Polar Technologies

Function:

As for ?Phyton, a Matlab function (?loadSystem4.m) has been created in order to access the hindcast of the System4 stored in the SPECS-EUPORIAS Data Portal in a user-friendly way. This would be a typical call to the function:

 [data,run,ens,frc,lat,lon] = loadSystem4(dataset,var,season,leadMonth,varargin);

Obligatory input arguments:

Optional input arguments (varargin):

Outputs returned by the function:

Example:

In this example, the loadSystem4 function is used to read the maximum temperature for the Iberian Peninsula in August for the whole hindcast period (1981-2010), considering the initialization of the first of June (two-month lead time thus) for a single member (member5, for instance).

dataset = 'http://www.meteo.unican.es/tds5/dodsC/system4/System4_Seasonal_15Members.ncml';
var = 'Maximum_temperature_at_2_metres_since_last_24_hours_surface';
[data,run,ens,frc,lat,lon] = loadSystem4(dataset,var,{'Aug';'Aug'},2,'members',5,'xlim',[-10 5],'ylim',[35 45]);

The data can be plotted by using the functions from ?MeteoLab, the open-source Matlab toolbox for statistical analysis and data mining in Meteorology created by the ?Santander Meteorology Group.

lon = lon{1};
lat = lat{1};
[nx,ny] = meshgrid(lon,lat);
nod = [nx(:)';ny(:)']';

datay1 = nan(1,size(nod,1));
for ilat = 1:length(lat)
    inod = find(ismember(nod,[lon,repmat(lat(ilat),length(lon),1)],'rows') == 1);
    datay1(:,inod) = nanmean(squeeze(data{1}(1,1,:,ilat,:)) - 273.15);
end

drawStationsValue(datay1,nod,'marker','t','size',0.75,'colorbar','true','clim',[20 40],'resolution','high')
colormap(jet)
title('System4: Mean Maximum Temperature (ºC) in August')