adding file name parsing, improving things a bit and finishing nc2es
script (though by copy&pasting nc2json)