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

cutout: removes unused temp_dir param from imcopydav

parent 146db22c
Branches
Tags
No related merge requests found
......@@ -189,7 +189,7 @@ int cmd_mergefiles(int argc, char * argv[])
int cmd_imcopy(int argc, char * argv[])
{
if((argc == 4))
if(argc == 4)
{
std::string infilename{argv[1]};
int extnum = std::stoi(std::string{argv[2]});
......@@ -221,12 +221,11 @@ int cmd_imcopy(int argc, char * argv[])
int cmd_imcopydav(int argc, char * argv[])
{
if((argc == 4) || (argc == 5))
if(argc == 4)
{
std::string url{argv[1]};
int extnum = std::stoi(std::string{argv[2]});
std::string pixfilter{argv[3]};
std::string temp_root = ((argc == 5) ? argv[4] : "/tmp" );
try
{
imcopydav(url, extnum, pixfilter);
......@@ -241,11 +240,10 @@ int cmd_imcopydav(int argc, char * argv[])
else
{
std::cerr
<< "Usage: imcopydav url extnum [a:b c:d ...] <temp-root>\n"
<< "Usage: imcopydav url extnum [a:b c:d ...]\n"
<< "\n"
<< "Send to stdout a subimage of N-dimesional FITS-file HDU with N-element pixel filter.\n"
<< "HDU is given by extension number (0=Primary HDU, 1=Ext1, ...)"
<< "<temp-root> is rw storage to hold the fits-cut while streaming (optional, default is '/tmp')"
<< "Examples: \n"
<< " vlkb imcopydav http://localhost:80/tmp/testfile.fits 0 [1:100,1:100,1:100]\n";
return EXIT_FAILURE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment