The grib2json utility supports batch processing using a "recipe" file. A recipe file allows you to define multiple sets of command-line arguments, one per line.
When a recipe file is provided via the --recipe option:
- The utility reads the recipe file line by line.
- For each line, it merges the arguments found in that line with the original command-line arguments passed to the application.
- Each resulting set of arguments is parsed as a distinct group of
Options. - The
Grib2Json converter then processes all these groups.
Each line in the recipe file should contain the specific arguments for that processing group, which are then combined with the global arguments (like the recipe file path itself).
# Example recipe file content (recipe.txt)
--option1 --option2
--option3 --option4
# Command to run using the recipe
java -cp grib2json.jar net.nullschool.grib2json.Launcher --recipe recipe.txt <input_file>