Skip to content

Commit b94e3f7

Browse files
authored
Merge pull request #189 from jklymak/fix-rad-degrees
Fix rad degrees
2 parents c268bc9 + 8cee59c commit b94e3f7

File tree

9 files changed

+30
-13
lines changed

9 files changed

+30
-13
lines changed

tests/_copyresultstoexpected.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""
2+
If we run the tests and decide we want all the test results to be copied over, this is faster...
3+
"""
4+
from pathlib import Path
5+
from shutil import copy
6+
7+
todo = {'example-data/example-seaexplorer/L0-timeseries-test/dfo-eva035-20190718.nc':
8+
'expected/example-seaexplorer/L0-timeseries',
9+
'example-data/example-seaexplorer-raw/L0-timeseries-test/dfo-bb046-20200908.nc': 'expected/example-seaexplorer-raw/L0-timeseries',
10+
'example-data/example-slocum/L0-timeseries/dfo-rosie713-20190615.nc': 'expected/example-slocum/L0-timeseries',
11+
'example-data/example-slocum-littleendian/L0-timeseries-test/dfo-maria997-20220614.nc': 'expected/example-slocum-littleendian/L0-timeseries'
12+
13+
}
14+
15+
for td in todo:
16+
copy(td, todo[td])
17+

tests/example-data/example-seaexplorer-raw/deployment.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,21 +128,21 @@ netcdf_variables:
128128
source: Heading
129129
long_name: glider heading angle
130130
standard_name: platform_orientation
131-
units: rad
131+
units: degrees
132132
coordinates: time depth latitude longitude
133133

134134
pitch:
135135
source: Pitch
136136
long_name: glider pitch angle
137137
standard_name: platform_pitch_angle
138-
units: rad
138+
units: degrees
139139
coordinates: time depth latitude longitude
140140

141141
roll:
142142
source: Roll
143143
long_name: glider roll angle
144144
standard_name: platform_roll_angle
145-
units: rad
145+
units: degrees
146146
coordinates: time depth latitude longitude
147147

148148
# data parameters
@@ -329,7 +329,7 @@ profile_variables:
329329
instrument_ctd:
330330
comment: pumped CTD
331331
calibration_date: "2018-11-02"
332-
calibration_report:
332+
calibration_report:
333333
factory_calibrated: "yes"
334334
long_name: Seabird Glider Payload CTD
335335
make_model: Seabird GPCTD

tests/example-data/example-seaexplorer/deploymentRealtime.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,21 +124,21 @@ netcdf_variables:
124124
source: Heading
125125
long_name: glider heading angle
126126
standard_name: platform_orientation
127-
units: rad
127+
units: degrees
128128
coordinates: time depth latitude longitude
129129

130130
pitch:
131131
source: Pitch
132132
long_name: glider pitch angle
133133
standard_name: platform_pitch_angle
134-
units: rad
134+
units: degrees
135135
coordinates: time depth latitude longitude
136136

137137
roll:
138138
source: Roll
139139
long_name: glider roll angle
140140
standard_name: platform_roll_angle
141-
units: rad
141+
units: degrees
142142
coordinates: time depth latitude longitude
143143

144144
# data parameters

tests/example-data/example-slocum-littleendian/deployment.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,21 +128,21 @@ netcdf_variables:
128128
source: m_heading
129129
long_name: glider heading angle
130130
standard_name: platform_orientation
131-
units: rad
131+
units: degrees
132132
coordinates: time depth latitude longitude
133133

134134
pitch:
135135
source: m_pitch
136136
long_name: glider pitch angle
137137
standard_name: platform_pitch_angle
138-
units: rad
138+
units: degrees
139139
coordinates: time depth latitude longitude
140140

141141
roll:
142142
source: m_roll
143143
long_name: glider roll angle
144144
standard_name: platform_roll_angle
145-
units: rad
145+
units: degrees
146146
coordinates: time depth latitude longitude
147147

148148
# profile info:

tests/example-data/example-slocum/deploymentRealtime.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,19 +121,19 @@ netcdf_variables:
121121
source: m_heading
122122
long_name: glider heading angle
123123
standard_name: platform_orientation
124-
units: rad
124+
units: degrees
125125

126126
pitch:
127127
source: m_pitch
128128
long_name: glider pitch angle
129129
standard_name: platform_pitch_angle
130-
units: rad
130+
units: degrees
131131

132132
roll:
133133
source: m_roll
134134
long_name: glider roll angle
135135
standard_name: platform_roll_angle
136-
units: rad
136+
units: degrees
137137

138138
# profile info:
139139
waypoint_latitude:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)