IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 1, 2012, 3:24:39 PM (14 years ago)
Author:
eugene
Message:

support for parallel dvo in mextract, avextract, avmerge, gstar, gcat; remove some if-def-ed out code already moved to libdvo; list -vectors and -buffers options (store names of vectors and buffers in lists); list -copy give error if missing source; catlist, hosts & remote functions to support parallel dvos; skyregion -save option; new skycoverage modes (-min-ubercal; -min-dmag-sys; -min-mcal; -max-mcal); gstar output formatting cleanups; add more average info to gstar output; functions for spectral similarity analysis; coords returns nans for projections off the sphere; fix cumulative function; add name:type option to opihi/read function (eg read a:float 2 b:time 3 c:int 4); line -frac option; vtype function to get vector types; threshold function; write -fits option; code for unfinished mtype function (matching vtype)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.basic/list.c

    r31667 r33662  
    1919    remove_argument (N, &argc, argv);
    2020    RunCommand = TRUE;
     21  }
     22
     23  if ((N = get_argument (argc, argv, "-vectors"))) {
     24    remove_argument (N, &argc, argv);
     25    if (argc != 2) {
     26      gprint (GP_ERR, "USAGE: list (root) -vectors\n");
     27      return (FALSE);
     28    }
     29    ListVectorsToList (argv[1]);
     30    return TRUE;
     31  }
     32
     33  if ((N = get_argument (argc, argv, "-buffers"))) {
     34    remove_argument (N, &argc, argv);
     35    if (argc != 2) {
     36      gprint (GP_ERR, "USAGE: list (root) -buffers\n");
     37      return (FALSE);
     38    }
     39    ListBuffersToList (argv[1]);
     40    return TRUE;
    2141  }
    2242
     
    85105    }
    86106   
     107    // old list must exist, or give an error
    87108    sprintf (line, "%s:n", argv[3]);
    88109    N = get_int_variable (line, &found);
     110    if (!found) {
     111      gprint (GP_ERR, "USAGE: list (newlist) -copy (oldlist) ...\n");
     112      gprint (GP_ERR, "ERROR: missing input list\n");
     113      return (FALSE);
     114    }
     115     
     116
    89117    sprintf (line, "%s:n", argv[1]);
    90118    set_int_variable (line, N);
     
    118146
    119147  // remove the single named entry from the list (finds entry with given name, reduces list length by one)
    120   // return an error if -add is given with no other args
    121148  if ((argc > 2) && (!strcmp (argv[2], "-del"))) {
    122149    if (argc != 4) {
     
    155182
    156183  if (argc != 2) {
    157     gprint (GP_ERR, "USAGE: list (root)                : supply list data, terminate with 'END'\n");
    158     gprint (GP_ERR, "USAGE: list (root) -x (command)   : create list from shell output\n");
    159     gprint (GP_ERR, "USAGE: list (root) -split (words) : create list from words\n");
    160     gprint (GP_ERR, "USAGE: list (root) -add (words)   : extend a list\n");
     184    gprint (GP_ERR, "USAGE: list (root)                                        : supply list data, terminate with 'END'\n");
     185    gprint (GP_ERR, "USAGE: list (root) -x (command)                           : create list from shell output\n");
     186    gprint (GP_ERR, "USAGE: list (root) -vectors                               : create list from vector names\n");
     187    gprint (GP_ERR, "USAGE: list (root) -buffers                               : create list from buffer names\n");
     188    gprint (GP_ERR, "USAGE: list (root) -split (words)                         : create list from words\n");
     189    gprint (GP_ERR, "USAGE: list (root) -splitbychar (char) (word) [(words)..] : create list from words\n");
     190    gprint (GP_ERR, "USAGE: list (root) -add (words)                           : extend a list\n");   
     191    gprint (GP_ERR, "USAGE: list (root) -copy (list)                           : copy a list to a new name\n");
     192    gprint (GP_ERR, "USAGE: list (root) -del (word)                            : delete the entry by value\n");
    161193    return (FALSE);
    162194  }
Note: See TracChangeset for help on using the changeset viewer.