# ITRI - Basic PARGE Tutorial
###### tags: `Project`
### 1. Start PARGE
`host:~/Downloads/ReSe_Software_Linux/parge$ ./parge_linux.sh`
#### then click OK

#### GUI will show as below

### 2. Orthorectification
#### 2.1. Import hyperspectral raw data
- Go to `File/Import/HYPERSPEC`
- It will show

- Click `Select Image File` to select a hyperspec data
- Click `Nano-5`
- Click `Select GPS/INS File` to select gps_imu.txt
- Click `Select Sync File` to select frameIndex.txt with accordance to the hyperspec raw data
- Click `Import Data`, wait a moment
- Finally, click `Done`
#### 2.2. Create DEM
- Go to Help to download Global DEM
- Import DEM, Go to `DEM/Import/Global Elevation`
- Note that DEM pixel resolution should set to 1 m
- This step can be skipped if there is a ready-to-use DEM
#### 2.3. Processor
- Go to `Processor/Direct Processor`

- Click `Select DEM File`, note that DEM resolution/pixel size is 1m. A set of DEM files are prepared & can be downloaded here https://drive.google.com/drive/folders/1bqVKdJ6Hi9cCzcV-Hxzirr1p8BpY9qJG?usp=sharing
- Note `Output Pixel Size [m]`: 0.05
- Click `Process Image Cube`
- Click `Show Result/RGB`


### 3. Batch Processing Using GUI
#### 3.1. Batch file preparation
- Go to `File/Export/Batch Process File`, GUI will show this

- An example of batch file in which one can modify to generate different batch file

#### 3.2. Batch Processing
- Go to `Processor/Batch/File Processor`, then add multiple batch files (note that each batch file represents one hyperspectral raw image information)
- Finally `Run`

### 4. Batch Processing Using Command Line
Refer to manual guide, a command line can be like this
```
./idl87/bin/bin.linux.x86_64/idl -rt="/home/basic/Downloads/ReSe_Software_Linux/parge/parge.sav" -args media/basic/ssd256/itri_dennis/hyperspectral_data_2/batch_process_1
```
But I got an issue below

Replied by Daniel:
"As for the error: the strpped down idl VM included in the ReSe distribution can (apparently) not be used in runtime mode on Linux.
Please try with -vm instead for testing (this will show the splashscreen then). For operational use, you'd need a full IDL installation and a runtime license."
Basically, it needs a full IDL installation and a runtime license to call PARGE via command line.
### 5. Mosaicking via GUI
- Go to `Processor/Mosaicking`
- `Add files`, select multiple files with name *_bsq_geo.bsq (which are generated after orthorectification )
- Note that `Size of the pixels [m]` should set to 0.05 (5cm)

- Then `Run Process`
### 6. Mosaicking via command line
- ReSe will implement it upon request