<div dir="ltr">Hi all,<div><br></div><div>I'm working on a python module which compute superficial flows using simplified shallow water equations. It already works quite well and export results as temporal data sets.</div><div>But I'd like to add the possibility to work with temporal data sets as input (typically rainfall or other input flows).</div><div>I've looked at the documentation of the temporal module, but I haven't figure out what would be the best way to access a strds at a specified time.</div><div>There might be something with get_registered_maps, but I don't know how to select the map when the simulation time is between 'start-time' and 'end-time'. I don't know is SQL would be of any help here.</div><div><br></div><div>currently my program looks like this:</div><div><br></div><div>************</div><div>load grass maps as numpy arrays<br></div><div><br></div><div>while not sim_clock >= sim_duration:<br></div><div>    calculate time-step duration</div><div>    calculate flow and water depth<br></div><div>    write results</div><div><br></div><div>register produced maps in space-time dataset</div><div>************<br></div><div><br></div><div>I was thinking of checking at the beginning of the while loop if there is the current input map is still valid for the current time-step, and ielse loading the new one. Does this approach make sense and how could I do that?</div><div><br></div><div>Thanks for your time.</div><div><br></div><div>Regards,</div><div>Laurent</div></div>