Functions for manipulation of meteorological data in solar applications.
addpath(genpath('./matlab-pvmeteo'));
User accounts are required to access SoDa and geonames. In most cases these provide optional features (look for the option useweb = false). To use the services, modify the file ./Remote/useraccounts.txt with your credentials and save as useraccounts.m:
copyfile('./Remote/useraccounts.txt','./Remote/useraccounts.m');
% (update `useraccounts.m` with your credentials)
To avoid repeated web requests (or to allow manual downloads), mcclear*.csv and merra2*.csv files can also be retrieved from local folders in the search-path. Files are identified by name (see getremote.searchexisting). The functions merra2_healthcheck and mcclear_healthcheck can be used periodically to auto-rename the files and speed-up the search:
addpath('~/Documents/CAMS/MERRA2');
copyfile('./Remote/resources/merra2_healthcheck.m','~/Documents/CAMS/MERRA2');
addpath('~/Documents/CAMS/McClear');
copyfile('./Remote/resources/mcclear_healthcheck.m','~/Documents/CAMS/McClear');