IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37790


Ignore:
Timestamp:
Jan 9, 2015, 6:28:40 PM (12 years ago)
Author:
eugene
Message:

output should take on supplied format if no output catalog already exists, and format is specified

Location:
branches/eam_branches/ipp-20140904/Ohana/src/dvomerge
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/dvomerge/include/dvomerge.h

    r37585 r37790  
    4141int    REPLACE_BY_PHOTCODE;
    4242int    FORCE_MERGE;
     43char  *UPDATE_CATFORMAT;
    4344
    4445int    MATCHED_TABLES;
  • branches/eam_branches/ipp-20140904/Ohana/src/dvomerge/src/args.c

    r37584 r37790  
    5656    FORCE_MERGE = TRUE;
    5757    remove_argument (N, argc, argv);
     58  }
     59
     60  UPDATE_CATFORMAT = NULL;
     61  if ((N = get_argument (argc, argv, "-update-catformat"))) {
     62    remove_argument (N, &argc, argv);
     63    UPDATE_CATFORMAT = strcreate (argv[N]);
     64    remove_argument (N, &argc, argv);
    5865  }
    5966
  • branches/eam_branches/ipp-20140904/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c

    r37584 r37790  
    175175      LoadCatalog (&outcatalog, outlist[0].regions[j], outcatalog.filename, "w", NsecfiltOutput);
    176176
    177       // if no catalog already exists, use the input catalog to define the format
     177      // if no catalog already exists, use the input catalog to define the format or the specified format
    178178      if (outcatalog.Naves_disk == 0) {
    179         outcatalog.catformat = incatalog.catformat;
     179        if (UPDATE_CATFORMAT) {
     180          outcatalog.catformat = dvo_catalog_catformat (UPDATE_CATFORMAT);
     181        } else {
     182          outcatalog.catformat = incatalog.catformat;
     183        }
    180184      }
    181185
Note: See TracChangeset for help on using the changeset viewer.