Process population file depends on the input

read_population(file = NULL, time_periods = NULL)

Arguments

file

Default = NULL. String for path to population files (NetCDF or CSV). The CSV file need to have columns latitude, longitude, and years. For example, [latitude, longitude, 2020, 2021, ...]

time_periods

Default = NULL. Integer vector for selected time periods to process. If not specified, use the whole time periods from the data.