Fix the error caused by an empty search result
It seems like, if no S1 scene is found, the following error is produced:
File "", line 9, in File "/usr/local/lib/python2.7/site-packages/pysmm/derive_SM.py", line 54, in get_map masksnow=masksnow) File "/usr/local/lib/python2.7/site-packages/pysmm/GEE_wrappers.py", line 1071, in get_S1 doi_index = np.argmin(np.abs(dates - doi)) File "/usr/local/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 1033, in argmin return argmin(axis, out) ValueError: attempt to get argmin of an empty sequence
Another solution would be to search for the nearest S1 scene instead of on the same day only