Changeset 41422 for trunk/Ohana/src/libfits/table/F_set_column.c
- Timestamp:
- Sep 24, 2020, 2:44:55 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libfits/table/F_set_column.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libfits/table/F_set_column.c
r41395 r41422 132 132 } 133 133 134 if (!strcmp (type, " byte")) {134 if (!strcmp (type, "gfbyte")) { 135 135 for (i = 0; i < Nval*Nrow; i++, Pin+=Nbytes, Pout+=Nbytes) { 136 136 *(char *)Pout = (*(char *)Pin - Bzero) / Bscale; … … 338 338 339 339 SET_VALUES("char", char, "char", char, SWAP_NONE, 1); 340 SET_VALUES(" byte",byte, "char", char, SWAP_NONE, 1);340 SET_VALUES("gfbyte", gfbyte, "char", char, SWAP_NONE, 1); 341 341 SET_VALUES("short", short, "char", char, SWAP_BYTE, 1); 342 342 SET_VALUES("int", int, "char", char, SWAP_WORD, 1); … … 345 345 SET_VALUES("double", double, "char", char, SWAP_DBLE, 1); 346 346 347 SET_VALUES("char", char, " byte",byte, SWAP_NONE, 1);348 SET_VALUES(" byte", byte, "byte",byte, SWAP_NONE, 1);349 SET_VALUES("short", short, " byte",byte, SWAP_BYTE, 1);350 SET_VALUES("int", int, " byte",byte, SWAP_WORD, 1);351 SET_VALUES("int64_t", int64_t, " byte",byte, SWAP_DBLE, 1);352 SET_VALUES("float", float, " byte",byte, SWAP_WORD, 1);353 SET_VALUES("double", double, " byte",byte, SWAP_DBLE, 1);347 SET_VALUES("char", char, "gfbyte", gfbyte, SWAP_NONE, 1); 348 SET_VALUES("gfbyte", gfbyte, "gfbyte", gfbyte, SWAP_NONE, 1); 349 SET_VALUES("short", short, "gfbyte", gfbyte, SWAP_BYTE, 1); 350 SET_VALUES("int", int, "gfbyte", gfbyte, SWAP_WORD, 1); 351 SET_VALUES("int64_t", int64_t, "gfbyte", gfbyte, SWAP_DBLE, 1); 352 SET_VALUES("float", float, "gfbyte", gfbyte, SWAP_WORD, 1); 353 SET_VALUES("double", double, "gfbyte", gfbyte, SWAP_DBLE, 1); 354 354 355 355 SET_VALUES("char", char, "short", short, SWAP_NONE, 2); 356 SET_VALUES(" byte",byte, "short", short, SWAP_NONE, 2);356 SET_VALUES("gfbyte", gfbyte, "short", short, SWAP_NONE, 2); 357 357 SET_VALUES("short", short, "short", short, SWAP_BYTE, 2); 358 358 SET_VALUES("int", int, "short", short, SWAP_WORD, 2); … … 362 362 363 363 SET_VALUES("char", char, "int", int, SWAP_NONE, 4); 364 SET_VALUES(" byte",byte, "int", int, SWAP_NONE, 4);364 SET_VALUES("gfbyte", gfbyte, "int", int, SWAP_NONE, 4); 365 365 SET_VALUES("short", short, "int", int, SWAP_BYTE, 4); 366 366 SET_VALUES("int", int, "int", int, SWAP_WORD, 4); … … 370 370 371 371 SET_VALUES("char", char, "int64_t", int64_t, SWAP_NONE, 8); 372 SET_VALUES(" byte",byte, "int64_t", int64_t, SWAP_NONE, 8);372 SET_VALUES("gfbyte", gfbyte, "int64_t", int64_t, SWAP_NONE, 8); 373 373 SET_VALUES("short", short, "int64_t", int64_t, SWAP_BYTE, 8); 374 374 SET_VALUES("int", int, "int64_t", int64_t, SWAP_WORD, 8); … … 378 378 379 379 SET_VALUES("char", char, "float", float, SWAP_NONE, 4); 380 SET_VALUES(" byte",byte, "float", float, SWAP_NONE, 4);380 SET_VALUES("gfbyte", gfbyte, "float", float, SWAP_NONE, 4); 381 381 SET_VALUES("short", short, "float", float, SWAP_BYTE, 4); 382 382 SET_VALUES("int", int, "float", float, SWAP_WORD, 4); … … 386 386 387 387 SET_VALUES("char", char, "double", double, SWAP_NONE, 8); 388 SET_VALUES(" byte",byte, "double", double, SWAP_NONE, 8);388 SET_VALUES("gfbyte", gfbyte, "double", double, SWAP_NONE, 8); 389 389 SET_VALUES("short", short, "double", double, SWAP_BYTE, 8); 390 390 SET_VALUES("int", int, "double", double, SWAP_WORD, 8);
Note:
See TracChangeset
for help on using the changeset viewer.
