I am running the recreational package for the city of Rio de Janeiro, Brazil, only for the year 2017, with no regression/covariates included, just as a test. Apparently, the AOI is too big because there are > 40 million Twitter points; flicker is ok (see log below). Rio de Janeiro has 1.200 km². Is that really too big? Is there any way around that?
Thanks,
Mariana
Here is the log:
2026-09-15 19:07:52 natcap.invest.utils Level 100 Writing log messages to [C:\InVEST\Meridien_recreation\output\InVEST-recreation-log-2026-09-15–19_07_51.txt]
2026-09-15 19:07:52 natcap.invest.spec Level 100 Starting model with parameters:
Arguments for InVEST recreation 3.20.1:
aoi_path C:\InVEST\Meridien_recreation\dados\RJ_Municipio_UTM23S.shp
cell_size 1000
compute_regression False
end_year 2017
grid_aoi True
grid_type hexagon
n_workers -1
results_suffix test_15Set_1km_new
start_year 2017
workspace_dir C:\InVEST\Meridien_recreation\output
2026-09-15 19:07:53 natcap.invest.recreation.recmodel_client INFO PYRO:natcap.invest.recreation@34.56.65.180:54323
2026-09-15 19:07:53 natcap.invest.recreation.recmodel_client INFO gridding aoi
2026-09-15 19:07:56 natcap.invest.recreation.recmodel_client INFO Contacting server, please wait.
2026-09-15 19:07:56 natcap.invest.recreation.recmodel_client INFO flickr server supports year queries between 2005 and 2017
2026-09-15 19:07:56 natcap.invest.recreation.recmodel_client INFO AOI accepted. Fewer than 752847 flickr points found within AOI extent: [-43.78995827417918, -23.072561547689737, -43.155502138337305, -22.78104673692602]
2026-09-15 19:07:56 natcap.invest.recreation.recmodel_client INFO twitter server supports year queries between 2012 and 2022
2026-09-15 19:07:57 taskgraph.Task ERROR Something went wrong when adding task user-day-calculation (1), terminating taskgraph.
Traceback (most recent call last):
File “taskgraph\Task.py”, line 684, in add_task
File “taskgraph\Task.py”, line 1103, in _call
File “natcap\invest\recreation\recmodel_client.py”, line 745, in _retrieve_user_days
ValueError: The AOI extent is too large. The bounding box [-43.78995827417918, -23.072561547689737, -43.155502138337305, -22.78104673692602] contains up to 91158845 twitter points. Please reduce the extent of the AOI until it contains fewer than 40000000 points.
2026-09-15 19:07:57 natcap.invest.utils ERROR Exception while executing recreation
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 169, in prepare_workspace
File “natcap\invest\spec.py”, line 2201, in execute
File “natcap\invest\recreation\recmodel_client.py”, line 563, in execute
File “taskgraph\Task.py”, line 684, in add_task
File “taskgraph\Task.py”, line 1103, in _call
File “natcap\invest\recreation\recmodel_client.py”, line 745, in _retrieve_user_days
ValueError: The AOI extent is too large. The bounding box [-43.78995827417918, -23.072561547689737, -43.155502138337305, -22.78104673692602] contains up to 91158845 twitter points. Please reduce the extent of the AOI until it contains fewer than 40000000 points.
2026-09-15 19:07:57 natcap.invest.utils INFO Elapsed time: 5.37s
2026-09-15 19:07:57 natcap.invest.utils INFO Execution finished; version: 3.20.1