Package: sep-service-caller
LCO Source Extraction Service CLIsep-service-callerCommand line interface to LCO's source extraction serviceThe source extraction service documentation can be found here:https://github.com/LCOGT/sextractor-serviceInstallationpip install sep-service-callerLoggingLogging is to STDOUT, with the ability to set the log level via the--log-levelargument.Extraction results are posted to LCO's Elasticsearch instance, and by default set to populate
thesource-extractionindex.Thesource-extractionindex can beviewed in Kibana.UsageTo view the help text, simply use the-hflag:sep-service -husage:sep-service[-h]{file,dates}...

PerformsourceextractionviatheLCOsourceextractionservice

positionalarguments:{file,dates}sep-servicesub-commandsfileSpecifyabasenametoperformsourceextractionondatesSpecifyasite/camera/daterangetoperformsourceextractionson.

optionalarguments:-h,--helpshowthishelpmessageandexitThe sep-service-caller has two sub-commands in order to facilitate two distict workflows:file: perform source extraction on a single file, specified by basenamedates: perform source extraction on any number of files, specified by site/camera start and end dateBoth commands accept the same optional parameters, allowing source extraction parameters to be provided.See LCO'sSource Extraction Service DocsExamplesNote: All examples include<archive-auth-token>, which should be replaced by an Archive API Token that has access
to the images that you wish to perform source extraction on.Solve by fileTo view the help text for this subcommand, simply typesep-service file -h. This will show all of the
optional arguments available to you. Only a subset are showcased here.To perform source extraction on a single file,lsc1m005-fa15-20200214-0355-e91sep-servicefilelsc1m005-fa15-20200214-0355-e91<archive-auth-token>Let's try without DEFAULT values!
Note, that you must specify--sep-mode CUSTOMto override the sep service'sdefault valuessep-servicefilelsc1m005-fa15-20200214-0355-e91<archive-auth-token>--sep-modeCUSTOM--threshold8.0In this case, threshold will be set to 8.0, but all other tunable sep parameters will stay at their defaultYou can override as many values as you wish! Go crazy!sep-servicefilelsc1m005-fa15-20200214-0355-e91<archive-auth-token>--sep-modeCUSTOM--threshold8.0--min-area2--noise-modelGLOBALRMSSolve by site/camera/date-rangeTo view the help text for this subcommand, simply typesep-service dates -h. This will show all of the
optional arguments available to you. Only a subset are showcased here.To perform source extraction on all reduced science images (e91) from LSC/fa15 on DAY-OBS 20200214, 20200215, and 20200216:sep-servicedateslscfa152020021420200216<archive-auth-token>Let's try without DEFAULT values!
Note, that you must specify--sep-mode CUSTOMto override the sep service'sdefault valuessep-servicedateslscfa152020021420200216<archive-auth-token>--sep-modeCUSTOM--deblend-n-threshold24In this case, like before, the number of deblending thresholds will be set to 24 but all other tunable sep parameters will stay at their default values.You can override as many values as you wish.sep-servicedateslscfa152020021420200216<archive-auth-token>--sep-modeCUSTOM--threshold8.0--min-area2--noise-modelGLOBALRMS