@@ -1508,7 +1508,7 @@ int main( const int argc, const char **argv)
15081508 double t_low = oct_4_1957;
15091509 double t_high = jan_1_2057;
15101510 int rval, i, j, prev_i;
1511- bool show_summary = false , add_new_line = false ;
1511+ bool show_summary = false , add_new_line = false , all_single = false ;
15121512
15131513 if ( argc == 1 )
15141514 {
@@ -1569,6 +1569,9 @@ int main( const int argc, const char **argv)
15691569 case ' s' :
15701570 my_tles_only = true ;
15711571 break ;
1572+ case ' S' : /* treat each observation individually */
1573+ all_single = true ;
1574+ break ;
15721575 case ' t' :
15731576 tname = param;
15741577 break ;
@@ -1633,14 +1636,14 @@ int main( const int argc, const char **argv)
16331636 shellsort_r ( obs, n_obs, sizeof ( obs[0 ]), compare_obs, NULL );
16341637
16351638 for ( n_objects = i = 0 ; (size_t )i < n_obs; i++)
1636- if ( !i || id_compare ( obs + i - 1 , obs + i) || field_mode)
1639+ if ( !i || id_compare ( obs + i - 1 , obs + i) || field_mode || all_single )
16371640 n_objects++;
16381641 objects = (object_t *)calloc ( n_objects, sizeof ( object_t ));
16391642 assert ( objects);
16401643 if ( !field_mode)
16411644 printf ( " %d objects\n " , (int )n_objects);
16421645 for ( n_objects = i = prev_i = 0 ; (size_t )i < n_obs; i++)
1643- if ( !i || id_compare ( obs + i - 1 , obs + i) || field_mode)
1646+ if ( !i || id_compare ( obs + i - 1 , obs + i) || field_mode || all_single )
16441647 {
16451648 objects[n_objects].obs = obs + i;
16461649 if ( n_objects)
0 commit comments