Skip to content

Commit

Permalink
force lon (in rotated grids) to be -180:180
Browse files Browse the repository at this point in the history
  • Loading branch information
miturbide committed Nov 28, 2019
1 parent b8be0bf commit eb584ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/loadGridData.R
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ loadGridDataset <- function(var, grid, dic, level, season, years, members, time,
Variable$varName <- "Frequency Index"
attr(Variable, "description") <- paste0(var, "-based threshold exceedance count index")
}
if ("lon" %in% names(latLon$xyCoords)) latLon$xyCoords$lon[which(latLon$xyCoords$lon>180)] <- latLon$xyCoords$lon[which(latLon$xyCoords$lon>180)] - 360
attr(Variable, "daily_agg_cellfun") <- cube$timePars$aggr.d
attr(Variable, "monthly_agg_cellfun") <- cube$timePars$aggr.m
attr(Variable, "verification_time") <- time
Expand Down

0 comments on commit eb584ea

Please sign in to comment.