pro nsx_syntax print,"Syntax: nsx nsxfile1 nsxfile2 sp=sp bk=bk xsp=xsp xbk=xbk, list=list, autox=autox, sfx=sfx, log=log," print," noflat=noflat, noclean=noclean, nohotclean=nohotclean, calavp=calavp, newavp=newavp, avp=avp" print," " print,"" print," The optional 'B file' (nsxfile2) is another raw FITS file where the object has" print," been moved to another position on the slit." print," If 1st argument ends with '.ls' then program assumes this is a file with" print," a list of FITS files." print," Create a 'nsx.tbl' exposure listing using 'nsx file.ls list=nsx.tbl', where" print," 'file.ls' is a listing of all raw NIRES FITS files." print,"" print," You must set NSXDIR (code dir) and NSXOUT (working dir) environment variables." print,"" print,"Options:" print," sp=[as,as] : Specify region to spectrally extract in relative arcseconds." print," bk=[as,as] : Specify region for background in relative arcseconds (multiple bk= may be used)." print," xsp=[pix,pix] : Specify region to spectrally extract (pixels on reddest order#3)." print," xbk=[pix,pix] : Specify region for background (pixels on reddest order #3) (multiple xbk= may be used)." print," list=file : Specify a file to which to write a 'table' listing of exposures." print," list='stdout' : Table listing to standard output." print," autox=1 : Automatically select object extraction range and extract spectrum." print," sfx= : Suffix to label output files." print," log= : Name of log file (default will be root of first FITS file with '.log' extension)." print,"NoFlat=1 : Do not correct for pixel-to-pixel flat field variations." print,"NoClean=1 : Do not correct for cosmic rays (or other artifacts)." print,"NoHotClean=1 : Do not correct for Hot Pixels." print,"Recalibration:" print,"calavp=1 : Calibrate Arcsecs Vs. Pixels (build data file using bright stars)." print,"newavp=1 : Using built data file, create a new AVP calibration set." print,"avp= : Use a specific AVP root code (e.g. 2018-01-20)." end ;printf("Syntax: nsx (raw NIRES FITS files) [ NIRES B file ] [ sp=as,as ] [ bk=as,as ] [ xsp=pix,pix ] [ xbk=pix,pix ] \n"); ;printf("\n"); ;printf(" The optional 'B file' is another raw FITS file where the object has\n"); ;printf(" been moved to another position on the slit.\n"); ;printf(" If 1st argument ends with '.ls' then program assumes this is a file with\n"); ;printf(" a list of FITS files.\n"); ;printf(" Create a 'nsx.tbl' exposure listing using 'nsx file.ls list=nsx.tbl', where\n"); ;printf(" 'file.ls' is a listing of all raw NIRES FITS files.\n"); ;printf("\n"); ;printf(" You must set NSXDIR (code dir) and NSXOUT (working dir) environment variables.\n"); ;printf("\n"); ;printf("Options:\n"); ;printf(" sp= : Specify region to spectrally extract in relative arcseconds.\n"); ;printf(" bk= : Specify region for background in relative arcseconds (multiple bk= may be used).\n"); ;printf(" xsp= : Specify region to spectrally extract (pixels on reddest order#3).\n"); ;printf(" xbk= : Specify region for background (pixels on reddest order #3) (multiple xbk= may be used).\n"); ;printf(" list= : Specify a file to which to write a 'table' listing of exposures.\n"); ;printf(" -list : Table listing to standard output.\n"); ;printf(" -autox : Automatically select object extraction range and extract spectrum.\n"); ;printf(" sfx= : Suffix to label output files.\n"); ;printf(" log= : Name of log file (default will be root of first FITS file with '.log' extension).\n"); ;printf("-NoFlat : Do not correct for pixel-to-pixel flat field variations.\n"); ;printf("-NoClean : Do not correct for cosmic rays (or other artifacts).\n"); ;printf("-NoHotClean : Do not correct for Hot Pixels.\n"); ;printf("\nRecalibration:\n"); ;printf("-calavp : Calibrate Arcsecs Vs. Pixels (build data file using bright stars).\n"); ;printf("-newavp : Using built data file, create a new AVP calibration set.\n"); ;printf(" avp= : Use a specific AVP root code (e.g. 2018-01-20).\n"); ;