Skip to content

Commit 747371b

Browse files
committed
Fixed bug in get_ereefs_ts() in mmp check.
1 parent bf51dad commit 747371b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: ereefs
22
Title: Useful Functions to Handle eReefs and EMS model Output
3-
Version: 3.2.4
3+
Version: 3.2.5
44
Encoding: UTF-8
55
Authors@R: c(person("Barbara", "Robson", email="[email protected]",
66
role = c("aut", "cre")),
@@ -43,7 +43,7 @@ URL: https://ereefs.info
4343
Date: 2021-08-18
4444
License: MIT + file LICENSE
4545
LazyData: true
46-
Imports: ncdf4 (>= 1.16),
46+
Imports: ncdf4 (== 1.19),
4747
plyr (>= 1.8.4),
4848
dplyr (>= 0.7.6),
4949
magrittr,

R/data_extraction_functions.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ get_ereefs_ts <- function(var_names=c('Chl_a_sum', 'TN'),
526526
if (layer=='integrated') return(get_ereefs_depth_integrated_ts(var_names, location_latlon, start_date, end_date, input_file, input_grid, eta_stem, override_positive))
527527
if ((layer=='bottom')&&(length(location_latlon[,1])>1)) stop('Only one location can be given if layer==bottom')
528528
# if (layer=='bottom') return(get_ereefs_bottom_ts(var_names, location_latlon, start_date, end_date, input_file, input_grid, eta_stem, override_positive))
529-
if (location_latlon[[1]]=="mmp") {
529+
if (location_latlon[[1]][1]=="mmp") {
530530
location_latlon <- data.frame(latitude=mmp_sites$latitude, longitude=mmp_sites$longitude)
531531
mmp <- TRUE
532532
} else {

0 commit comments

Comments
 (0)