#!/bin/bash # Install tool according to https://github.com/ISI-MIP/isimip-qc # Schema definitions: ROUND='ISIMIP3b' DATATYPE='OutputData' SECTOR='water_global' # Define working directories: UNCHECKED_DIR=/YOUR-PATH/TO/UNCHECKED-FILES CHECKED_DIR=/YOUR-PATH/TO/CHECKED-FILES # needed in case of copying or moving files after successfull checks LOG_DIR=/YOUR-PATH/TO/LOG-FILES echo $UNCHECKED_DIR echo $CHECKED_DIR echo $LOG_DIR # Uncomment to only show the working directories: #exit # Create working directories if needed: [ ! -d $CHECKED_DIR ] && mkdir -p $CHECKED_DIR [ ! -d $LOG_DIR ] && mkdir -p $LOG_DIR # Additional definitions for options # When using your own local build of the ISIMIP simulation protocol. By default the tool # relies on the official online protocol at protocol.isimip.org PROTOCOL_LOC=/YOUR-PATH/qc-env/isimip-protocol-3 # Command line: isimip-qc $ROUND/$DATATYPE/$SECTOR/ \ --log-level=INFO \ --log-path=$LOG_DIR \ --unchecked-path=$UNCHECKED_DIR \ --checked-path=$CHECKED_DIR # Other useful options: # --protocol-location=$PROTOCOL_LOC # see above # --fix # fix warnings after finishing the tests. Mainly concerns meta data available from the protocol # --fix-datamodel # rewriting to requested data model (compressed NetCDF4 classic). Uses cdo or nccopy which need to be available on your machine # --move # --copy # Move or copy files to $CHECKED_DIR # --minmax or -r # check if values are in a valid range defined in the protocol.