Output path error when including numbers
Posted: March 26th, 2021, 10:51 am
I am working on trying to automate HYSPLIT back trajectories for several locations and want to direct the resulting trajectories files to directories labeled with the location of the site with the format: site_XN_YE_Zmagl, e.g. site_19N_20E_100magl. Whenever I try this, the output files are not saved properly. I figured out that the output fails to save correctly whenever there is any digit 0-9 within the desired output file path and the resulting trajectory file name is saved as the parent folder I want it to save to appended with the filename in the CONTROL file. When the output path only contains letters and underscores, there is no problem and the files save perfectly.
For example, if the CONTROL text file has the output path
/User/hysplit_output/site_15N_20W_100magl/
And the file name
traj_test_output
The trajectory file saves as "site_15N_20W_100magltraj_test_output" in the "hysplit_output" directory, but if it is set up like so:
Output path = /User/hysplit_output/site_fifteenN_twentyW_onehundredmagl/
file name = traj_test_output
The trajectory file saves in the "site_fifteenN_twentyW_onehundredmagl" directory normally.
Does anyone know if this is an outstanding bug? Have others been able to include digits in their output file paths without issue?
I am running HYSPLIT v5.0.0 on a macOS Catalina v10.15
For example, if the CONTROL text file has the output path
/User/hysplit_output/site_15N_20W_100magl/
And the file name
traj_test_output
The trajectory file saves as "site_15N_20W_100magltraj_test_output" in the "hysplit_output" directory, but if it is set up like so:
Output path = /User/hysplit_output/site_fifteenN_twentyW_onehundredmagl/
file name = traj_test_output
The trajectory file saves in the "site_fifteenN_twentyW_onehundredmagl" directory normally.
Does anyone know if this is an outstanding bug? Have others been able to include digits in their output file paths without issue?
I am running HYSPLIT v5.0.0 on a macOS Catalina v10.15