Skip to content
Snippets Groups Projects
Commit 109736d3 authored by Robert Butora's avatar Robert Butora
Browse files

engine: changes output of vlkb-nullvals calc so it is easy to parse

parent 647365d5
No related branches found
No related tags found
No related merge requests found
......@@ -136,8 +136,8 @@ int cmd_nullvals(int argc, char * argv[])
unsigned long long null_cnt;
unsigned long long total_cnt;
double fill_ratio = fitsfiles::calc_nullvals(argv[1], /*hdunum*/1, null_cnt, total_cnt);
cout << "fill ratio: " << fill_ratio << "% null_cnt/total_cnt : " << null_cnt
<< "/" << total_cnt << endl;
// fill_ratio_[%] null_cnt total_cnt
cout << fill_ratio << " " << null_cnt << " " << total_cnt << endl;
rc = EXIT_SUCCESS;
}
break;
......@@ -146,7 +146,8 @@ int cmd_nullvals(int argc, char * argv[])
std::cerr
<< "Usage: nullvals <filename.fits>\n"
<< std::endl
<<"Calculates number of undefined pixels (null values).\n"
<<"Calculates ratio of undefined pixels in image; returns three values:\n"
<<"<percentage-of-null-values> <count-of-nulls> <count-of-allpixels>\n"
<< std::endl;
rc = EXIT_FAILURE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment