IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 6, 2015, 10:03:56 AM (11 years ago)
Author:
eugene
Message:

add options to cast to force single-precision floats or long long int (stuffed into double); fits table I/O puts int64 into opihi double vector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20150429/src/opihi/cmd.data/read_vectors.c

    r38367 r38406  
    487487  }
    488488  if (start < 0) ESCAPE ("invalid range: start < 0\n");
    489   if (start >= header.Naxis[1]) ESCAPE ("invalid range: start >= Ny (%d)\n", header.Naxis[1]);
     489  if (start >= header.Naxis[1]) ESCAPE ("invalid range: start >= Ny ("OFF_T_FMT")\n", header.Naxis[1]);
    490490  if (Nrows < 0) ESCAPE ("invalid range: Nrows < 0\n");
    491491
    492492  // just a warning:
    493493  if (start + Nrows > header.Naxis[1]) {
    494     if (VERBOSE) gprint (GP_ERR, "NOTE: reading last block will return only %d rows\n", header.Naxis[1] - start);
     494    if (VERBOSE) gprint (GP_ERR, "NOTE: reading last block will return only "OFF_T_FMT" rows\n", header.Naxis[1] - start);
    495495  }
    496496
     
    555555   
    556556    vecType = OPIHI_INT;
    557     if (!strcmp (type, "double") || !strcmp (type, "float")) {
     557    if (!strcmp (type, "double") || !strcmp (type, "float") || !strcmp (type, "int64_t")) {
    558558      vecType = OPIHI_FLT;
    559559    }
Note: See TracChangeset for help on using the changeset viewer.