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

Tweak the help.

parent ecadf897
function data = get_CFS_forcing(Mobj, modelTime, varargin) function data = get_CFS_forcing(Mobj, modelTime, varargin)
% Get the required parameters from CFSv2 products to force FVCOM. % Get the required parameters from CFSv2 reanalysis products to force
% FVCOM.
% %
% data = get_CFS_forcing(Mobj, modelTime) % data = get_CFS_forcing(Mobj, modelTime)
% %
% DESCRIPTION: % DESCRIPTION:
% Using OPeNDAP, extract the necessary parameters to create an FVCOM % Using the NOAA OPeNDAP server, extract the necessary parameters to
% forcing file. Requires the air_sea toolbox. % create an FVCOM forcing file.
% %
% INPUT: % INPUT:
% Mobj - MATLAB mesh object. Must contain fields: % Mobj - MATLAB mesh object. Must contain fields:
...@@ -13,30 +14,33 @@ function data = get_CFS_forcing(Mobj, modelTime, varargin) ...@@ -13,30 +14,33 @@ function data = get_CFS_forcing(Mobj, modelTime, varargin)
% have_lonlat - boolean to signify whether coordinates are spherical % have_lonlat - boolean to signify whether coordinates are spherical
% or cartesian. % or cartesian.
% modelTime - Modified Julian Date start and end times % modelTime - Modified Julian Date start and end times
% varargin - parameter/value pairs % varargin - optional parameter/value pairs:
% - list of variables to extract: % - list of variables to extract:
% 'varlist', {'nshf', 'uwnd', 'vwnd'} % 'varlist', {'tmp2m', 'uwnd', 'vwnd'}
% %
% OUTPUT: % OUTPUT:
% data - struct of the data necessary to force FVCOM. These can be % data - struct of the data necessary to force FVCOM. These can be
% interpolated onto an unstructured grid in Mobj using grid2fvcom.m. % interpolated onto an unstructured grid in Mobj using grid2fvcom.m.
% Contains vectors of the longitude and latitude data (lon, lat).
% %
% The parameters which can be obtained from the NCEP data are: % The parameters which can be obtained from the NCEP data are:
% - u wind component (uwnd) % - Net shortwave radiation surface (nswrs = uswrf - dswrf) [surface]
% - v wind component (vwnd) % - Downward longwave radiation surface (dlwrf) [surface]
% - Downward longwave radiation surface (dlwrf) % - Surface pressure (pressfc) [surface]
% - Net shortwave radiation surface (nswrs = uswrf - dswrf) % - u wind component (uwnd) [10m]
% - Air temperature (air) % - v wind component (vwnd) [10m]
% - Relative humidity (rhum) % - Air temperature (tmp2m) [2m]
% - Precipitation rate (prate) % - Precipitation rate (prate) [surface]
% - Surface pressure (pres or press) % - Specific humidity (q2m) [2m]
% - Latent heat flux (lhtfl) % - Relative humidity (rhum) [2m] - calculated from q2m.
% - Potential evaporation rate (pevpr) % - Latent heat flux (lhtfl) [surface]
% - Evaporation rate (Et) [surface]
% %
% In addition to these, the momentum flux (tau) is calculated from wind % Relative humidity is calculated from specific humidity with the QAIR2RH
% data. Precipitation is converted from kg/m^2/s to m/s. Evaporation (Et) % function (see fvcom-toolbox/utilities). Precipitation is converted from
% is calculated from the mean daily latent heat net flux (lhtfl) at the % kg/m^2/s to m/s. Evaporation (Et) is calculated from the mean daily
% surface. Precipitation-evaporation is also created (P_E). % latent heat net flux (lhtfl) at the surface. Precipitation-evaporation is
% also created (P_E).
% %
% EXAMPLE USAGE: % EXAMPLE USAGE:
% To download the default set of data (see list above): % To download the default set of data (see list above):
...@@ -53,7 +57,7 @@ function data = get_CFS_forcing(Mobj, modelTime, varargin) ...@@ -53,7 +57,7 @@ function data = get_CFS_forcing(Mobj, modelTime, varargin)
% Rory O'Hara Murray (Marine Scotland Science) % Rory O'Hara Murray (Marine Scotland Science)
% %
% Revision history: % Revision history:
% 2015-05-19 First version based on get_NCEP_forcing.m. % 2015-05-19 First version loosely based on get_NCEP_forcing.m.
% %
%========================================================================== %==========================================================================
......
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