Cannot run cluster.exe from command line

Topics about the trajectory clustering program for HYSPLIT.
Post Reply
cg gc
Posts: 5
Joined: March 28th, 2018, 1:18 am
Registered HYSPLIT User: Yes

Cannot run cluster.exe from command line

Post by cg gc »

After some help from Barbara and a few tweaks to the individual tdump files (removing ALL of the MET data except for pressure), I was able to get my clusters to run from the GUI, however, with a very long list of clusters to make, I thought I would make a script to run from the command line. This is where I get stuck.

I am running the same code from the online tutorial found here: ... j_clus.bat

The problem starts with this line: "dir /b tdump84122??????? >INFILE"
The error message:
File Not Found
The system cannot find the path specified.

It does this no matter what tdump files I tell it to find. The files are in the hysplit4/working, cluster/endpts directory, AND in the cluster/working directories. The CCONTROL file is created fine. The INFILE is not created.

I made the trajectory length, ridiculously small just to see if it would even finish. But, no. The clusters are fine in the GUI, but not in command line.

A text file of the batch script is attached. It has been shortened because this is where the problem lies.

Does anyone know what is going on and how I can correct it?

I apologize if this question has been posted before. I tried searching, but all of my search terms were not used because they were too common.
(665 Bytes) Downloaded 150 times
Posts: 451
Joined: November 9th, 2012, 4:23 pm
Registered HYSPLIT User: Yes

Re: Cannot run cluster.exe from command line

Post by barbara.stunder »

Substituting in the variables, the batch file has
cd c:\hysplit4\working
There is no other "cd" command, so that is the directory it is in when looking for the tdump files in the dir command.
Verify the CCONTROL is in that directory.

Try it manually without running the script. This should make the file INFILE.
cd c:\hysplit4\working
dir /b tdump84122???????? >INFILE

You need to have files named "tdump84122<8_more_characters>" to create INFILE.
Post Reply

Return to “Cluster Analysis”