Program Listing for File INSTRUCTION.md¶
↰ Return to documentation for file (median_calculation/INSTRUCTION.md)
# Build
Under construction...
# Run
Assume that we have the following FITS files
```sh
$ ls /mnt/ssd/
asteroid_sim_epoch10.fits asteroid_sim_epoch2.fits asteroid_sim_epoch4.fits asteroid_sim_epoch6.fits asteroid_sim_epoch8.fits
asteroid_sim_epoch1.fits asteroid_sim_epoch3.fits asteroid_sim_epoch5.fits asteroid_sim_epoch7.fits asteroid_sim_epoch9.fits
```
## Run without timestamps
```sh
$ cd /path/to/umap/build/directory/
$ NUM_VECTORS=10000 ./src/median_calculation/run_random_vector -f /mnt/ssd/asteroid_sim_epoch
```
## Run with timestamps
```sh
$ cd /path/to/umap/build/directory/
$ NUM_VECTORS=10000 TIMESTAMP_FILE=timestamps.csv ./src/median_calculation/run_random_vector -f /mnt/ssd/asteroid_sim_epoch
```
A timestamp file looks like this:
```sh
$ cat timestamps.csv
1
5
20
```
The value of the n-th line is the timestamp of the n-th image file.