Opened 4 years ago

Closed 4 years ago

#2432 closed enhancement (wontfix)

wcst_import - new variables which can be used in hooks

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 10.0
Component: wcst_import Version: 9.8
Keywords: Cc: Dimitar Misev, Vlad Merticariu, Peter Baumann
Complexity: Medium

Description

There are 2 new variables which can be used in hooks inside the ingredients file:

  • WCST_INPUT_FILE: absolute path to original input file name currently processed
  • WCST_INGESTED_FILE: absolute path to file successfully imported (after hook* only)

For example:

"hooks": [
    {
      "description": "resized input files.",
      "when": "before_ingestion",
      "cmd": "gdalwarp -of GTiff -tr 5000 5000 -overwrite \"$WCST_INPUT_FILE\" \"$WCST_INPUT_FILE.resized\"",
      "abort_on_error": true,
      "replace_path": ["$WCST_INPUT_FILE.resized"]
    },
    {
      "description": "remove resized files.",
      "when": "after_ingestion",
      "cmd": "rm -f $WCST_INPUT_FILE"
    }
]

Also, add the descriptions for these environment variables in the doc

  • PATH
  • LD_LIBRARY_PATH
  • PWD
  • LOGNAME
  • GROUPS

Change History (1)

comment:1 by Bang Pham Huu, 4 years ago

Resolution: wontfix
Status: assignedclosed
Note: See TracTickets for help on using tickets.