diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2019-02-14 14:51:39 +0100 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2019-02-14 14:55:23 +0100 |
| commit | 12689e3d858d66e5e00e8d99f9326ef91cc0a384 (patch) | |
| tree | d797ce54ab1a2d8539204f70d3aa59ba66f603ae /test | |
| parent | 365526921aa330fbfb185569cbfbb54ca5714f6c (diff) | |
| download | PROJ-12689e3d858d66e5e00e8d99f9326ef91cc0a384.tar.gz PROJ-12689e3d858d66e5e00e8d99f9326ef91cc0a384.zip | |
deformation: Replace +t_obs with +dt
The +t_obs parameter was confusing for users since it effectively
overwrote the observation time in input coordinates. To make it more clear
what is the operation is doing, users are now required to directly specify
the time span for which they wish to apply a given deformation. The parameter
+dt has been added for that purpose. The new parameter is mutually
exclusive with +t_epoch. +dt is used when deformation
for a set amount of time is needed and +t_epoch is used (in
conjunction with the observation time of the input coordinate) when
deformation from a specific epoch to the observation time is needed.
Diffstat (limited to 'test')
| -rw-r--r-- | test/gie/deformation.gie | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/test/gie/deformation.gie b/test/gie/deformation.gie index e4d87fe2..37f62e6e 100644 --- a/test/gie/deformation.gie +++ b/test/gie/deformation.gie @@ -12,13 +12,12 @@ The input coordinate is located at lon=60, lam=-160 - somewhere in Alaska. <gie> ------------------------------------------------------------------------------- -Test using both horizontal and vertical grids as well as the +tobs parameter +Test the +dt parameter ------------------------------------------------------------------------------- operation +proj=deformation +xy_grids=alaska +z_grids=egm96_15.gtx - +t_epoch=2016.0 +t_obs=2000.0 +ellps=GRS80 + +ellps=GRS80 +dt=16.0 # 2016.0 - 2000.0 ------------------------------------------------------------------------------- tolerance 0.1 mm -direction inverse ignore pjd_err_failed_to_load_grid accept -3004295.5882503074 -1093474.1690603832 5500477.1338251457 expect -3004295.7025 -1093474.2106 5500477.3444 @@ -28,7 +27,7 @@ roundtrip 5 # Here we test 120W 40N which is well outside the alaska grid. accept -2446353.8001 -4237209.0750 4077985.572 expect failure errno grid_area -accept -2446353.8001 -4237209.0750 4077985.572 2000 +accept -2446353.8001 -4237209.0750 4077985.572 expect failure errno grid_area @@ -46,20 +45,20 @@ expect -3004295.7025 -1093474.2106 5500477.3444 2000.0 roundtrip 5 ------------------------------------------------------------------------------- -operation proj=deformation xy_grids=alaska t_epoch=2016.0 t_obs=2017.0 +operation proj=deformation xy_grids=alaska +dt=1.0 ellps=GRS80 expect failure pjd_err_no_args -operation proj=deformation z_grids=egm96_15.gtx t_epoch=2016.0 t_obs=2017.0 +operation proj=deformation z_grids=egm96_15.gtx +dt=1.0 ellps=GRS80 expect failure pjd_err_no_args operation proj=deformation xy_grids=nonexisting z_grids=egm96_15.gtx - t_epoch=2016.0 t_obs=2017.0 ellps=GRS80 + +dt=1.0 ellps=GRS80 expect failure pjd_err_failed_to_load_grid operation proj=deformation xy_grids=alaska z_grids=nonexisting - t_epoch=2016.0 t_obs=2017.0 ellps=GRS80 + +dt=1.0 ellps=GRS80 expect failure pjd_err_failed_to_load_grid operation proj=deformation xy_grids=alaska z_grids=nonexisting ellps=GRS80 |
