Hi, I'd like to automate a series of calls to the CatalogStarGenerator script. My anticipated workflow was to place a series of 'run' commands (with parameters specified with the -p switch) in a text file and then execute this file somehow. However, this doesn't seem to work, since one needs to click on the "Run" button to execute the script. I'm sure I'm doing something silly... could somebody suggest how I could automate a series of calls to the CatalogStarGenerator script? As a minimal example, I'd like to stick the following two commands in a text file and have them run without me having to interact with the GUI.
run -x -p="sgen_useImageMetadata,false" -p="sgen_width,3352" -p="sgen_height,2532" -p="sgen_projection,0" -p="sgen_ra,140.95624907820334" -p="sgen_dec,50.766868161759604" -p="sgen_epoch,2451544.5" -p="sgen_rotation,-89.64123220744744" -p="sgen_resolution,0.0007912807534924661" -p="sgen_xpixsz,7.4" -p="SDSS_magMin,1000" -p="SDSS_magMax,1000" -p="SDSS_magnitudeFilter,gmag" -p="SDSS_classFilter,0" -p="sgen_projectionOriginMode,0" -p="sgen_vizierServer,http://vizier.u-strasbg.fr/" -p="sgen_autoGraphics,false" -p="sgen_minMagnitude,13" -p="sgen_maxMagnitude,19" -p="sgen_backgroundMagnitude,21.5" -p="sgen_PSF,1" -p="sgen_FWHM,3" -p="sgen_beta,2" -p="sgen_generateNoise,true" --md5="375eb5938b12e994dbcb6788f26784a6" -p="isGlobalTarget,true" -p="isViewTarget,false" "$PXI_SRCDIR/scripts/AdP/CatalogStarGenerator.js"
run -x -p="sgen_useImageMetadata,false" -p="sgen_width,3352" -p="sgen_height,2532" -p="sgen_projection,0" -p="sgen_ra,139.95" -p="sgen_dec,56.86" -p="sgen_epoch,2451544.5" -p="sgen_rotation,-89.64123220744744" -p="sgen_resolution,0.0007912807534924661" -p="sgen_xpixsz,7.4" -p="SDSS_magMin,1000" -p="SDSS_magMax,1000" -p="SDSS_magnitudeFilter,gmag" -p="SDSS_classFilter,0" -p="sgen_projectionOriginMode,0" -p="sgen_vizierServer,http://vizier.u-strasbg.fr/" -p="sgen_autoGraphics,false" -p="sgen_minMagnitude,13" -p="sgen_maxMagnitude,19" -p="sgen_backgroundMagnitude,21.5" -p="sgen_PSF,1" -p="sgen_FWHM,3" -p="sgen_beta,2" -p="sgen_generateNoise,true" --md5="375eb5938b12e994dbcb6788f26784a6" -p="isGlobalTarget,true" -p="isViewTarget,false" "$PXI_SRCDIR/scripts/AdP/CatalogStarGenerator.js"
Thanks,
Bob