Changeset 19658
- Timestamp:
- 09/17/19 10:38:52 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/scheduler.cc
r19654 r19658 1054 1054 // night (above the required horizon) or is circumpolar 1055 1055 // above that horizon 1056 // 1057 // Considtions are: 1058 // ((Rises after sun-rise or before sun-set) and 1059 // (Culminates after sun-rise or before sun-set) and 1060 // (Sets after sun-rise or before sun-set) and 1061 // (object not circumpolar/rise-trans-set valid)) 1062 // or is circumpolar below the defined horizon 1063 // 1064 if (check.vis_obj==-1 || 1065 (check.vis_obj==0 && 1066 (rise <sun_set || rise >sun_rise) && 1067 (trans<sun_set || trans>sun_rise) && 1068 (set <sun_set || set >sun_rise))) 1056 switch (check.vis_obj) 1057 { 1058 case -1: 1059 // Object is not visible above the requested horizon 1069 1060 return; 1061 1062 case 0: 1063 // Object crosses the local meridian 1064 // Rises after sun-rise or before sun-set 1065 // Culminates after sun-rise or before sun-set 1066 // Sets after sun-rise or before sun-set 1067 if ((rise <sun_set || rise >sun_rise) && 1068 (trans<sun_set || trans>sun_rise) && 1069 (set <sun_set || set >sun_rise)) 1070 return; 1071 1072 break; 1073 1074 case 1: 1075 // Object is always visible above the requested horizon 1076 break; 1077 } 1070 1078 1071 1079 Info("Source "+name+" might be observable.");
Note:
See TracChangeset
for help on using the changeset viewer.