Common grads Functions

Source: Internet
Author: User
Tags acos asin mathematical functions

Grads functions are classified into two types,

The first type is the calculation of lattice/site data, which is called an analysis function;

Another type is used in Script Programming (GS). The latter type is called a script function.

The first type of analysis function is divided into two sub-classes: lattice analysis and site analysis:

1) lattice Analysis

Absolute Value ABS (expr)

Cosine/arccosine cos (expr) ACOs (expr)

SINE/arcsin (expr) asin (expr)

Tangent/arc tangent Tan (expr) atan2 (expr1, expr2) [expr1/expr2]

Exponential exp (expr)

Log (expr) log10 (expr)

Power Function POW (expr1, expr2) expr1expr2

String Length of the right triangle/Full wind speed MAG (u_expr, v_expr) SQRT (u * u + V * V)

Square Root SQRT (expr)

Weighted/unweighted average ave (expr, dim_expr1, dim_expr2, tincr, {|-B}) mean ()

Weighted/unweighted region average aave (expr, {xdim1, xdim2, ydim1, ydim2 | global | G}) amean ()

Average tmave (undefine_or_weight_expr, expr, texpr1, texpr2)

Weighted/unweighted regions and asum (expr, {xdim1, xdim2, ydim1, ydim2 | global | G}) asumg ()

Weighted vertical integral (ps_expr, expr, top)

Common Point Gint (expr)

Max (expr, dim1, dim2, tincr) min ()

Maxloc (expr, dim1, dim2, tincr) minloc ()

Spatial correlation/regression scorr (expr1, expr2, {xdim1, xdim2, ydim1, ydim2 | global | G}) sregr ()

Time Correlation/regression tcorr (expr1, expr2, tdim1, tdim2) tregr ()

Constant const (expr, const, {|-u |-})

Remove maskout (expr, mask_expr)

Hop point SKIP (expr, skip_x, skip_y)

Weighted 9-Point Smoothing smth9 (expr) 1-D 3-Point Smoothing

Central difference cdiff (expr, dim)

Time loop tloop (expr)

Extreme Value position maxloc (expr, dim1, dim2, tincr) minloc ()

Feature value position findlvl (expr, expr_to_find, lev1, lev2)

Functions of physical quantity calculation in meteorology:

Virtual temperature, relative humidity ratio wet tvrh2q (TV _expr, rh_expr) g/g

Virtual temperature, relative humidity temperature tvrh2t (TV _expr, rh_expr) degk

Vertical Vortex hcurl (u_expr, v_expr)

Central difference calculation horizontal divergence hdivg (expr1, expr2)

Full wind speed MAG (u_expr, v_expr)

2) site analysis

Insert from grid point to site gr2stn (grid_expr, {stn_expr | Lon, lat},-)

Collect and generate the lattice field coll2gr (cnum, {num |-u })

Cressman interpolation oacres (grid_expr, stn_expr, radii, 1st_guess)

Grid average oabin (grid_expr, stn_expr, {-f |-c })

Time average stnave (expr, dexpr1, dexpr2,-M count)

Minimum value of time series stnmin (expr, dexpr1, dexpr2,-M count)

Maximum value of time series stnmax (expr, dexpr1, dexpr2,-M count)

Convert to 1-D lattice sequence s2g1d (expr)

All mathematical functions abs, cos, ACOs, sin, asin, tan, atan2, exp, log, log10, pow, Mag, SQRT

Second, script functions include:

Abs, log, log10: math_abs, math_log, math_log10

Sin, cos, Tan: math_sin, math_cos, math_tan

Asin, ACOs, atan2: math_asin, math_acos, math_atan

Math_sinh, math_cosh, math_tanh

Math_asinh, math_acsh, math_atanh

Pow, SQRT: math_pow, math_sqrt, math_exp

Integer: math_nint, math_int

Remainder: math_fmod, math_mod

String processing functions: math_strlen, valnum, wrdpos, strlen

Sublin, subwrd, substr

Numeric format conversion function: math_format

File operation functions: read, write, close

Common grads Functions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.