GEUS-Glaciology-and-Climate / AWS_v3

PROMICE AWS v3 processor - IDL/GDL
0 stars 0 forks source link

v3 NetCDF files: how to define station location #7

Open mankoff opened 3 years ago

mankoff commented 3 years ago

The current convert-V3-to-NetCDF algorithm implements "H.2.3. Single time series, including deviations from a nominal fixed spatial location" from http://cfconventions.org/cf-conventions/v1.6.0/cf-conventions.html#_single_time_series_including_deviations_from_a_nominal_fixed_spatial_location .

The definition of the "nominal fixed location" is currently:

ds['lon'] = ds['gps_lon'].mean()
ds['lat'] = ds['gps_lat'].mean()

And then the deviations are gps_lon and gps_lat.

However, this may assign the station to a location that it never visited. Should the station location instead be the actual location recorded somewhere in the time series (such as the middle timestamp of the record?). In either case, every time the file is updated, the station location will change. A stationary nominal location could be the location of the first record in 2020, and then that is only updated every X years.