src/Entrypoint.scala
1package dacp.ecoflow
2object Op_wpl_correction {
3 def main(args:Array[String]):Unit={
4 val op=new org.apache.spark.sql.dacp.EcoFlowOperator("cn.piflow.bundle.flux.dataCorrection.WplCorrection",Map("source"->"Default"),Set("Fc","Le","Hs","co2_Avg","h2o_Avg","Ts_Avg","rho_a_Avg")){}
5 val protocol=System.out;System.setOut(System.err)
6 try {if(args.headOption.exists(v=>v=="infer" || v=="infer-worker"))
7 xstream.operator.OperatorRunner.infer(args,protocol,op.previewOutputs)(op.inferOutputs)
8 else xstream.operator.OperatorRunner.run(args,protocol)(op.process)}
9 finally System.setOut(protocol)
10 }
11}