Versions Compared

Key

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

...

Code Block
languagepowershell
#GEO
PARAMETER = 12004
lat        long    level  date       time    value
#DATA
36.15      -5.35     0   19970810    1200    300.9
34.58      32.98     0   19970810    1200    301.6
41.97      21.65     0   19970810    1200    299.4
45.03       7.73     0   19970810    1200    294
45.67       9.7      0   19970810    1200    302.2
44.43       9.93     0   19970810    1200    293.4

 


#FORMAT XYV (Compact format)

...

Code Block
languagepowershell
#GEO
#FORMAT XY_VECTOR
# lat    lon   height   date       time      u       v
#DATA
80       0      0      20030617    1200   -4.9001  -8.3126
80       5.5    0      20030617    1200   -5.6628  -7.7252
80       11     0      20030617    1200   -6.4254  -7.13829

 


#FORMAT POLAR_VECTOR (Polar Vector format)

...

  1. Use the functions provided, e.g.

    Code Block
    languagepowershell
    lats = latitudes(gpt)
    vals = values(gpt)
    rh   = values(gpt, 'rh') # assuming NCOLS format with a value column of name 'rh'


  2. Use column indexing, e.g.

    Code Block
    languagepowershell
    lats = gpt['latitude']
    vals = gpt['value']
    rh   = gpt['rh'] # assuming NCOLS format with a value column of name 'rh'


To assign values to a column, again there are 2 methods, but they have different behaviours:

...

  geo_clean = remove_missing_values (geo_source) 

Missing coordinates in geopoints

It is possible (since Metview 5.7.0) to include missing values in the latitude or longitude columns (or both). A point with either coordinate missing will be excluded from any operation that requires location information.