create_task.sh 884 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #! /bin/bash
  2. export dataset_id=2c146972-9b3a-4907-826a-bdb74cc23a2a
  3. export tiff_url="https://object.cscs.ch/v1/AUTH_6ebec77683fb472f94d352be92b5a577/Bjaalie_RUP_T5.5.1/"
  4. export filter="hbp-00138/122/341/381/hbp-00138_122_341_381_s013.tif"
  5. ingestion_param='{
  6. "type": "image",
  7. "num_channels": 3,
  8. "scales":[{
  9. "chunk_sizes": [],
  10. "encoding": "raw",
  11. "data_type": "uint32",
  12. "key": "full",
  13. "resolution": [
  14. 230000,
  15. 230000,
  16. 230000
  17. ],
  18. "size": [
  19. 37000,
  20. 1,
  21. 27000
  22. ],
  23. "voxel_offset": [
  24. 0,
  25. 0,
  26. 0
  27. ]
  28. }]
  29. }'
  30. payload=`echo "$ingestion_param" | jq -c '.'`
  31. cd ./is-nose/ && \
  32. node create_task.js \
  33. --desc "attempt to convert tiff to ng precomp" \
  34. --url $tiff_url \
  35. --filter $filter \
  36. --runtime-limit "5h" \
  37. --ingestion-parameters $payload \
  38. $dataset_id > create_task_2.log 2>&1 && \
  39. cd ..