Due to a shift in policy, from 0900 GMT on Wednesday 14th July 2021, we will be disabling ssh access to the server for external users. External users who wish to continue to access code repositories on the server will need to switch to using https. This can be accomplished in the following way: 1) On the repo on gitlab, use the clone dialogue and select ‘Clone with HTTPS’ to get the address of the repo; 2) From within the checkout of your repo run: $ git remote set-url origin HTTPS_ADDRESS. Here, replace HTTPS_ADDRESS with the address you have just copied from GitLab. Pulls and pushes will now require you to enter a username and password rather than using a ssh key. If you would prefer not to enter a password each time, you might consider caching your login credentials.

Commit 07c1b6ba authored by Pierre Cazenave's avatar Pierre Cazenave

Add the beginnings of a child function to actually convert the pp files to...

Add the beginnings of a child function to actually convert the pp files to something more sensible (e.g. NetCDF)
parent 10f20e88
......@@ -91,6 +91,7 @@ stash = [2, 3, 407, 408, 409, 4222, 9229, 16004];
vars = {'uwnd', 'uwnd', 'vwnd', 'vwnd', 'slp_rho', 'slp_theta', ...
'surface_air_pressure', 'air_sw', 'air_lw', ...
'rhum', 'prate', 'temp_model', 'temp_press'};
ns = length(stash);
% From where will we be downloading the data?
......@@ -259,5 +260,24 @@ cd(remote, URL);
nf = length(files);
for i = 1:nf
tmpdata = mget(remote, files{i});
ftpdata.(vars{i}).data =
function pp2nc(file, convsh)
% Child function to call the convsh program to convert the obscure pp
% format to a sensible NetCDF which we can more easily read.
% Assume convsh is in /usr/local unless otherwise told.
if nargin == 1
convsh = '/usr/local/bin/convsh';
if exist(file, 'file') ~= 2
error('File %s not found', file)
[path, name, ext] = fileparts(file);
out = fullfile(path, [name, '.nc']);
system([convsh, '-i ',
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment