coastwatch-training / CoastWatch-Tutorials

This repository includes CoastWatch training materials and code samples to demonstrate access and usage of environmental and oceanographic satellite data
MIT License
15 stars 2 forks source link

Tutorial-2: time bounds are out of range error #17

Closed shospital closed 1 year ago

shospital commented 1 year ago

"When running Tutorial2 Rmd, I get an error" time bounds are out of range. CCI <- griddap(url=ERDDAP_Node, 'pmlEsaCCI60OceanColorMonthly', time = c('1997-09-04', '2022-12-01'), latitude = ycoord, longitude = xcoord, fields = var[49] ) Error message

[1] "time bounds are out of range"
[1] "You gave: "
[1] "1997-09-04" "2022-12-01"
[1] "Dataset times are: "
[1] "1997-09-04T00:00:00Z" "2023-03-01T00:00:00Z"
Error: rerddap halted
shospital commented 1 year ago

try to update rerddap and RStudio. If it still throws an error, one way to work around it is to add "T00:00:00Z" to the dates:

CCI <- griddap(url=ERDDAP_Node, 'pmlEsaCCI60OceanColorMonthly', time = c('1997-09-04T00:00:00Z', '2022-12-01T00:00:00Z'), latitude = ycoord, longitude = xcoord, fields = var[49] )