vdfcreate does not create .vdf file - just echoes usage

4 posts / 0 new
Last post
Mark.Stock
vdfcreate does not create .vdf file - just echoes usage
I've just started using vapor, and having a number of problems. Starting with being unable to generate a .vdf using the command listed in the docs (https://www.vapor.ucar.edu/docs/vapor-data-preparation/creating-vdf-file) I'm using Vapor 2.3.0 on RHEL 6.5, installed from binary package. $ /opt/vapor/vapor-2.3.0/bin/vapor-setup.sh $ which vdfcreate /opt/vapor/vapor-2.3.0/bin/vdfcreate $ vdfcreate –dimension 512x512x512 –numts 100 –level 3 –vars3d t:p mydata.vdf Usage: vdfcreate [options] filename OPTION NUM_ARGS DEFAULT ------ -------- ------- -dimension 1 512x512x512 Data volume dimensions expressed in grid points (NXxNYxNZ) ...and on... Is there something obvious that I am missing?
clyne

When I cut-n-paste your command I see hidden characters in the "-dimension" option. If I retype the command at the terminal it works as advertised.

Mark.Stock
Amazing. Thank you. I copy-and-pasted the command-line from this page, and the dashes there are em-dashes, while the command-line (obviously) only accepts the minus character as an argument indicator. Can I suggest that the offending web page be changed to use the proper character?
clyne

Wow! Thanks for catching that. I can't believe we've never heard about this problem before. I've updated all the examples on the page and removed the bogus characters.