Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
thocro
Heating Bias Paper Figures
Commits
f0480104
Commit
f0480104
authored
2 years ago
by
thocro
Browse files
Options
Download
Email Patches
Plain Diff
Update example_fit_to_the_cumulus.R
parent
d0217b65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
example_fit_to_the_cumulus.R
example_fit_to_the_cumulus.R
+1
-1
No files found.
example_fit_to_the_cumulus.R
View file @
f0480104
...
...
@@ -23,7 +23,7 @@ cumulus$local_hour <- as.numeric(format.POSIXct(cumulus$local, "%H"))
###############################################################################
cumulus_lag
<-
lag
(
cumulus
)
cumulus
$
distance
<-
geosphere
::
distHaversine
(
cumulus
[,
2
:
3
],
cumulus_lag
[,
2
:
3
])
cumulus
$
distance
<-
geosphere
::
distHaversine
(
cumulus
[,
2
:
3
],
cumulus_lag
[,
2
:
3
])
/
1000
cumulus
$
time_lag
<-
as.numeric
(
difftime
(
cumulus
$
date
,
cumulus_lag
$
date
,
units
=
"secs"
))
cumulus
$
ship.speed
<-
cumulus
$
distance
/
cumulus
$
time_lag
cumulus
$
heading
<-
geosphere
::
bearing
(
cumulus
[,
2
:
3
],
cumulus_lag
[,
2
:
3
])
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment