-
Notifications
You must be signed in to change notification settings - Fork 2
/
radar_sweeps.cmd
33 lines (24 loc) · 911 Bytes
/
radar_sweeps.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
:: Creates folders for individual sweeps and move radar images into the appropriate directories
:: Written by Daniel Hueholt
:: Undergraduate Research Assistant at Environment Analytics
:: October 2018
@ECHO OFF
:: Prepare to count through the list of sweeps. User must input the start and end number of sweeps.
set /p start="Enter first sweep number: "
set /p end="Enter final sweep number: "
set /p scanType="PPI or RHI? "
IF /I "%scanType%"=="PPI" (
:: Make folders
FOR /L %%A IN (%start%,1,%end%) DO mkdir "Sweep %%A"
:: Move appropriate images to the new folders
FOR /L %%A IN (%start%,1,%end%) DO move *.%%A.ang* "Sweep %%A"
ECHO.Completed!
)
IF /I "%scanType%"=="RHI" (
:: Make folders
FOR /L %%A IN (%start%,1,%end%) DO mkdir "Sweep %%A"
:: Move appropriate images to the new folders
FOR /L %%A IN (%start%,1,%end%) DO move *.%%A.* "Sweep %%A"
ECHO.Completed!
)
ECHO ON