martibosch / invest-ucm-calibration

Automated calibration of the InVEST urban cooling model with simulated annealing

Home Page:https://doi.org/10.5194/gmd-14-3521-2021

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

running multiple days

niklasbokeolen opened this issue · comments

Hello again,
sorry for disturbing with this but I seems to get an error when running with mulitple days (station measurments) using the example data:
It works well with the single day for station measurement.

The error I get is attached in the figure below
image

Thank you in advance for your guidance.

And by the way there is an error in the user guide for the calibration with multiple days. A flag is incomplete, I have added the missing part in bold below (edit, the bold function seems to not work so the added part is between the **)

$ invest-ucm-calibration lulc.tif biophysical-table.csv factors
--ref-et-raster-filepaths ref_et0.tif ref_et1.tif
--station-t-filepath station-t.csv
--station-locations**-filepath** station-locations.csv --num-steps 10
--num-update-logs 10 --dst-filepath calibrated-params.json

Regards

Niklas

Hello @niklasbokeolen,

sorry for the delay in my response and thank you for using this tool and reporting this. The error in the user guide has been fixed in 7f63d89 and will be included in the next release.

Regarding your error, in order to calibrate the model for multiple days, the file provided as--station-t-filepath must have the same number of rows as the provided number of evapotranspiration rasters. In your case, station-t.csv must have two rows, the first corresponding to the temperature measurements of the date of ref_et0.tif and the second (and last) row corresponding to the date of ref_et1.tif.

Is that the case?

Best,
Martí

Hej @martibosch
Thanks for you reply.
Since I also tested with the example data provided here with the same result I do not think that was the issue.
However, when using the lausanne-heat-islands conda environment it all worked which makes me think that something in my setup was not correct.
So in a way this has been solved now I will close the issue.

Thank you

Best

Niklas