I had a file which was going to create a cdf in a directory and then append data to the CDF, using formatDataSet. Ther error was opaque:
java.io.FileNotFoundException: java.io.FileNotFoundException: /home/jbf/project/juno/u/bill/2026/20260615/data/data_orbit_clat_052.cdf (No such file or directory)
and the format script:
setScriptDescription('read all clat data from Joe and cache it into a CDF file')
iorb= getParam( 'orb', 52, 'Juno Orbit Number', [52,53] )
orb= '%03d' % iorb
tr= 'orbit:junoPJ:'+orb
ephem= getDataSet('vap+das2server:https://jupiter.physics.uiowa.edu/das/server?dataset=Juno/Ephemeris/Jovicentric&interval=15&CLAT',tr)
R= unbundle( ephem, 'radius' )
MLat= unbundle( ephem, 'mlat' )
CLat= unbundle( ephem, 'clat' )
formatDataSet( CLat, PWD + 'data/data_orbit_clat_%s.cdf' % orb )
formatDataSet( R, PWD + 'data/data_orbit_clat_%s.cdf?append=T' % orb )
formatDataSet( MLat, PWD + 'data/data_orbit_clat_%s.cdf?append=T' % orb )
monitor.finished()
The problem is it needed a name to be set explcitly, presumably because it was going to make sure the implicit name didn't exist already.
Also, the run batch tool didn't offer a max when I asked it to generate inputs for :
It had a min but not a max.
The getParam problem is fixed. The 'xrange' wasn't handled, though range was. Now xrange is handled just like range.
The formatDataSet command and GUI export data will both create the directory if it does not exist.