Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

hb_findIdx.m 494 B

1234567891011121314151617181920
  1. function [idx,short] = hb_findIdx( range, fullData )
  2. % function idx = hb_findIdx( range, fullData )
  3. short=false;
  4. idx = max(find( fullData < range(1)))+1:max(find(fullData<range(2)));
  5. if length(idx)==0
  6. % idx
  7. idx = 1:max(find(fullData<range(2)));
  8. end
  9. if range(2) > fullData(end)
  10. short=1;
  11. % disp(['Requested range: .. ' num2str( range(2)) ]);
  12. % disp(['Actual range: .. ' num2str(fullData(end)) ]);
  13. % disp(['Short: ' num2str( short) ]);
  14. end
  15. return