IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42212


Ignore:
Timestamp:
May 18, 2022, 4:04:14 PM (4 years ago)
Author:
eugene
Message:

adding ingest for UHS2022 (J + K)

Location:
branches/eam_branches/ipp-20220316/Ohana/src/addstar
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20220316/Ohana/src/addstar/Makefile

    r41563 r42212  
    358358$(SRC)/loadukirt_uhs_readstars_ugps.$(ARCH).o \
    359359$(SRC)/loadukirt_uhs_readstars_ulas.$(ARCH).o \
     360$(SRC)/loadukirt_uhs_readstars_uhs2022.$(ARCH).o \
    360361$(SRC)/loadukirt_uhs_table.$(ARCH).o \
    361362$(SRC)/parse_csv.$(ARCH).o \
  • branches/eam_branches/ipp-20220316/Ohana/src/addstar/include/ukirt_uhs.h

    r42166 r42212  
    11
    2 typedef enum {UKIRT_MODE_NONE, UKIRT_MODE_UHS, UKIRT_MODE_UGCS, UKIRT_MODE_UGPS, UKIRT_MODE_ULAS} UkirtMode;
     2typedef enum {UKIRT_MODE_NONE, UKIRT_MODE_UHS, UKIRT_MODE_UGCS, UKIRT_MODE_UGPS, UKIRT_MODE_ULAS, UKIRT_MODE_UHS2022} UkirtMode;
    33
    44# define NSTARS_MAX 10000000
     
    5555UKIRT_Stars *loadukirt_uhs_readstars_ulas (FILE *f, char *buffer, int *nstart, AddstarClientOptions *options, int *nstars);
    5656UKIRT_Stars *loadukirt_uhs_readstars_uhs (FILE *f, char *buffer, int *nstart, AddstarClientOptions *options, int *nstars);
     57UKIRT_Stars *loadukirt_uhs_readstars_uhs2022 (FILE *f, char *buffer, int *nstart, AddstarClientOptions *options, int *nstars);
    5758
    5859
  • branches/eam_branches/ipp-20220316/Ohana/src/addstar/src/args_loadukirt_uhs.c

    r41341 r42212  
    3434    UKIRT_MODE = UKIRT_MODE_ULAS;
    3535    UKIRT_NFILTER = 5;
     36    remove_argument (N, argc, argv);
     37  }
     38  if ((N = get_argument (*argc, argv, "-uhs2022"))) {
     39    UKIRT_MODE = UKIRT_MODE_UHS2022;
     40    UKIRT_NFILTER = 2;
    3641    remove_argument (N, argc, argv);
    3742  }
     
    152157static void help () {
    153158
    154   fprintf (stderr, "USAGE: loadukirt_uhs [options] (file) [-uhs | -ugcs | -ulas | -ugps] [..more files]\n");
     159  fprintf (stderr, "USAGE: loadukirt_uhs [options] (file) [-uhs | -ugcs | -ulas | -ugps | -uhs2022] [..more files]\n");
    155160  fprintf (stderr, "  add data from UKIRT CSV file to DVO\n");
    156   fprintf (stderr, "  mode is required : -uhs | -ugcs | -ulas | -ugps\n\n");
     161  fprintf (stderr, "  mode is required : -uhs | -ugcs | -ulas | -ugps | -uhs2022\n\n");
    157162
    158163  fprintf (stderr, "  optional flags:\n");
  • branches/eam_branches/ipp-20220316/Ohana/src/addstar/src/loadukirt_uhs_readstars.c

    r42077 r42212  
    2222    case UKIRT_MODE_ULAS: {
    2323      UKIRT_Stars *stars = loadukirt_uhs_readstars_ulas (f, buffer, nstart, options, nstars);
     24      return stars;
     25    }
     26     
     27    case UKIRT_MODE_UHS2022: {
     28      UKIRT_Stars *stars = loadukirt_uhs_readstars_uhs2022 (f, buffer, nstart, options, nstars);
    2429      return stars;
    2530    }
Note: See TracChangeset for help on using the changeset viewer.