Skip to content

Commit

Permalink
Merge pull request #189 from jklymak/fix-rad-degrees
Browse files Browse the repository at this point in the history
Fix rad degrees
  • Loading branch information
jklymak committed Aug 31, 2024
2 parents c268bc9 + 8cee59c commit b94e3f7
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 13 deletions.
17 changes: 17 additions & 0 deletions tests/_copyresultstoexpected.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""
If we run the tests and decide we want all the test results to be copied over, this is faster...
"""
from pathlib import Path
from shutil import copy

todo = {'example-data/example-seaexplorer/L0-timeseries-test/dfo-eva035-20190718.nc':
'expected/example-seaexplorer/L0-timeseries',
'example-data/example-seaexplorer-raw/L0-timeseries-test/dfo-bb046-20200908.nc': 'expected/example-seaexplorer-raw/L0-timeseries',
'example-data/example-slocum/L0-timeseries/dfo-rosie713-20190615.nc': 'expected/example-slocum/L0-timeseries',
'example-data/example-slocum-littleendian/L0-timeseries-test/dfo-maria997-20220614.nc': 'expected/example-slocum-littleendian/L0-timeseries'

}

for td in todo:
copy(td, todo[td])

8 changes: 4 additions & 4 deletions tests/example-data/example-seaexplorer-raw/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,21 +128,21 @@ netcdf_variables:
source: Heading
long_name: glider heading angle
standard_name: platform_orientation
units: rad
units: degrees
coordinates: time depth latitude longitude

pitch:
source: Pitch
long_name: glider pitch angle
standard_name: platform_pitch_angle
units: rad
units: degrees
coordinates: time depth latitude longitude

roll:
source: Roll
long_name: glider roll angle
standard_name: platform_roll_angle
units: rad
units: degrees
coordinates: time depth latitude longitude

# data parameters
Expand Down Expand Up @@ -329,7 +329,7 @@ profile_variables:
instrument_ctd:
comment: pumped CTD
calibration_date: "2018-11-02"
calibration_report:
calibration_report:
factory_calibrated: "yes"
long_name: Seabird Glider Payload CTD
make_model: Seabird GPCTD
Expand Down
6 changes: 3 additions & 3 deletions tests/example-data/example-seaexplorer/deploymentRealtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,21 +124,21 @@ netcdf_variables:
source: Heading
long_name: glider heading angle
standard_name: platform_orientation
units: rad
units: degrees
coordinates: time depth latitude longitude

pitch:
source: Pitch
long_name: glider pitch angle
standard_name: platform_pitch_angle
units: rad
units: degrees
coordinates: time depth latitude longitude

roll:
source: Roll
long_name: glider roll angle
standard_name: platform_roll_angle
units: rad
units: degrees
coordinates: time depth latitude longitude

# data parameters
Expand Down
6 changes: 3 additions & 3 deletions tests/example-data/example-slocum-littleendian/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,21 +128,21 @@ netcdf_variables:
source: m_heading
long_name: glider heading angle
standard_name: platform_orientation
units: rad
units: degrees
coordinates: time depth latitude longitude

pitch:
source: m_pitch
long_name: glider pitch angle
standard_name: platform_pitch_angle
units: rad
units: degrees
coordinates: time depth latitude longitude

roll:
source: m_roll
long_name: glider roll angle
standard_name: platform_roll_angle
units: rad
units: degrees
coordinates: time depth latitude longitude

# profile info:
Expand Down
6 changes: 3 additions & 3 deletions tests/example-data/example-slocum/deploymentRealtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,19 @@ netcdf_variables:
source: m_heading
long_name: glider heading angle
standard_name: platform_orientation
units: rad
units: degrees

pitch:
source: m_pitch
long_name: glider pitch angle
standard_name: platform_pitch_angle
units: rad
units: degrees

roll:
source: m_roll
long_name: glider roll angle
standard_name: platform_roll_angle
units: rad
units: degrees

# profile info:
waypoint_latitude:
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit b94e3f7

Please sign in to comment.