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 c5209c2f authored by Pierre Cazenave's avatar Pierre Cazenave

Merge branch 'master' into pica

parents d48b49b3 5b304a3c
This diff is collapsed.
function rh = qair2rh(qair, temp, varargin)
% Convert specific humitidy to relative humidity.
%
% INPUTS:
% qair - Specific humidity. Dimensionless ratio of water mass /
% total air mass.
% temp - Temperature. Celsius.
% press - Pressure, optional. Millibar. Assume as 1013.25 if
% missing.
%
% OUTPUT:
% rh - relative humidity, ratio of actual water mixing ratio to
% saturation mixing ratio.
%
% NOTES:
% Translated from the R code here:
% http://earthscience.stackexchange.com/questions/2360
%
% Author(s):
% Pierre Cazenave (Plymouth Marine Laboratory)
if nargin == 2
press = 1013.25;
end
es = 6.112 * exp((17.67 * temp) / (temp + 243.5));
e = qair * press / (0.378 * qair + 0.622);
rh = e / es;
rh(rh > 1) = 1;
rh(rh < 0) = 0;
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