Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Extracts the longitudes of all the geopoints and returns them as a vector.


Anchor
max
max
Anchor
min
min

geopoints max ( geopoints,geopoints )
geopoints min ( geopoints,geopoints )

...

Returns the maximum (minimum) value of all geopoints values. Missing values are bypassed in this calculation. If there are no valid values, then nil is returned.


Anchor
mean
mean

number mean ( geopoints )

Computes the mean of the geopoints. Missing values are bypassed in this calculation. If there are no valid values, then nil is returned.


Anchor
nearest_gridpoint
nearest_gridpoint

geopoints nearest_gridpoint ( fieldset,geopoints )

Generates a set of geopoints from a field. The first field of the input fieldset is used. The result is a set of geopoints whose locations are from the original geopoints, but whose values are those of the nearest gridpoints in the field to the geopoints given as a second parameter. Where it is not possible to generate a sensible value due to lack of valid data in the fieldset, the internal geopoints missing value is used (this value can be checked for with the built-in variable geo_missing_value or removed with the function remove_missing_values).


Anchor
offset
offset

geopoints offset ( geopoints,number,number )
geopoints offset ( geopoints,list)

Modifies the locations of a set of geopoints by specified amounts. The offsets can be specified either as two separate numbers or as a 2-element list. The original geopoints variable is unaffected; the functions return a new variable.


Anchor
polar_vector
polar_vector

geopoints polar_vector ( geopoints, geopoints )

Combines two single-parameter geopoints variables into a polar vector style geopoints variable. The first represents speed, the second represents direction. Both input geopoints variables should contain the same number of points.


Anchor
remove_duplicates
remove_duplicates

geopoints remove_duplicates ( geopoints )

Returns a new geopoints variable that contains just one instance of any duplicate geopoint. Two geopoints are considered to be duplicates of each other if the files have the same format and the points have the same coordinates, height, date, time and values.


Anchor
remove_missing_values
remove_missing_values

geopoints remove_missing_values ( geopoints )

Returns a new geopoints variable that contains just the non-missing values from the input geopoints variable. A geopoint is considered to be missing if either its value or value2 members are missing.


Anchor
set_latitudes
set_latitudes

geopoints set_latitudes ( geopoints, number or vector or list )
geopoints set_longitudes ( geopoints, number or vector or list )
geopoints set_levels ( geopoints, number or vector or list )
geopoints set_dates ( geopoints, number or vector or list )
geopoints set_stnids ( geopoints, list )
geopoints set_times ( geopoints, number or vector or list )
geopoints set_values ( geopoints, number or vector or list )
geopoints set_values ( geopoints, number or string, number or vector or list )

...

Code Block
languagepy
gpt['latitude'] = |30, 40, 50|
gpt['value'] = |12.4, 13.3, 1.1|
gpt[name_of_column_4] = |3.3, 4.4, 5.5|
gpt['precip'] = |0.3, 0.2, 0.1|


Anchor
stnids
stnids

list stnids ( geopoints )

Extracts the station id strings from all the geopoints and returns them as a list.


Anchor
subsample
subsample

geopoints subsample ( geopoints, geopoints )

...

You can use function remove_missing_values() if you need to get rid of the missing valued points in the returned geopoints variable.


Anchor
sum
sum

number sum ( geopoints )

Computes the sum of the geopoints. Missing values are bypassed in this calculation. If there are no valid values, then nil is returned.


Anchor
values
values

vector or list values ( geopoints )
vector or list values ( geopoints, number )
vector or list values ( geopoints, string )

...