LANDIS-II-Foundation / Tool-LANDVIZ

LANDVIZ Tool for Visualizing LANDIS outputs
3 stars 5 forks source link

[Solved] "Range() step cannot be zero" #38

Closed Klemet closed 5 years ago

Klemet commented 5 years ago

Hello everybody !

I thank you for your incredible work on LANDVIZ. It is truly a very elegant tool for its purpose, and I was delighted to discover it lately. I just wanted to write this issue post in case someone has the same problem that I did in the future. It took me some time to understand where the problem was.

While activating the preproctool, I had the bad surprise to be stuck with a strange error saying something of the likes of "Range() step cannot be zero" when it tried to process the rasters of the max-age output extension.

With some debugging, I finally found the root of the issue. It doesn't come from LANDVIZ. It comes from the metadata xml file generated by the max-age output extension. In this one, the timestep of the extension was indicated as "0"; hence the error that indicated that the step couldn't be 0. A quick editing of the xml file with notepad++ solved everything. I don't know why the metadata .xml was wrongly generated in several of my scenarios, but that's a topic concerning the max-age output extension.

I hope that it might help someone in the future. Have a great day !