selecting lon/lat not working
When I do the script below, it does not seem to take the correct box. It gives
Detected dimension sizes:
* dat: 1
* var: 1
* year: 12
* time: 1
* latitude: 2
* longitude: 2
* Total size of involved
which is much less than what it should be... Any ideas why @nperez @aho ? thanks!
The script is
# ATL3
lonmin.atl3 <- -20;
lonmax.atl3 <- 0;
latmin.atl3 <- -3;
latmax.atl3 <- 3
repos_obs <- paste0('/esarchive/obs/ukmo/hadisst_v1.1/monthly_mean/',
'$var$/$var$_$year$.nc')
#sdates_obs <- (sapply(1981:2011, function(x) paste0(x, sprintf('%02d', 06))))
sdates_obs <- (sapply(1981:1982, function(x) paste0(x, sprintf('%02d', 06))))
obs.atl3 <- Start(dat = repos_obs,
var = 'tos',
year = paste0(c(1981,1982), sprintf('%02d', 1:12)),
time = 'all',
latitude_reorder = Sort(),
latitude = values(list(latmin.atl3, latmin.atl3)),
longitude = values(list(lonmin.atl3, lonmin.atl3)),
# latitude = 'all',
# longitude ='all',
latitude_reorder = Sort(),
retrieve = F)