... | ... | @@ -121,4 +121,88 @@ To create the final corresponding table (id_table_CaA.txt) between the slip dist |
|
|
|
|
|
### 3\. Run linear combinations
|
|
|
|
|
|
Before running linear combinations, the following operations are needed to set up the procedure. |
|
|
\ No newline at end of file |
|
|
Before running linear combinations, the following operations are needed to set up the procedure. All material needed to run the procedure can be find in `/scratch/projects/cat/Lin_Comb_Babeyko`.
|
|
|
They are:
|
|
|
- `prepare_folders.sh`: this is a script to create the new folder containing the main project and the related sub-folders; also, a copy of all the needed files from the folder `templates/` will be done.
|
|
|
- `dir.txt`: is a file created by `prepare_folders.sh` containing the name of the project. Viene usato dagli script in `run/`, per cui va modificato manualmente in caso vengano sviluppati più progetti simultaneamente (**TO BE IMPROVED**)
|
|
|
- `set_env_lin_comb.sh`: script used by all the scripts contained in the subfolder `run/` which set temporary environment variables to run the procedure
|
|
|
- `bin/`: contiene i file eseguibili (compilati in g++) scritti da Andrey (sono una copia dei piu' recenti in `/scratch/projects/cat/SPTHA/TSUMAPS/bin/`)
|
|
|
- `input/`: contiene la batimetria (`btm.s30r4.NEAM.grd`) e la tabella con i fattori di amplificazione (`poi_AF_sm.lst`)
|
|
|
- `templates/`: contiene i templates dei vari file di configurazione da usare per la procedura che vengono copiati nella cartella di lavoro lanciando ./prepare_folders.sh (**ATTENZIONE**, i files *.cfg sono da modificare adeguandoli al caso trattato)
|
|
|
- ggf.cfg (in cfg/)
|
|
|
- ggf_cat2wt.cfg (in wt/) # per il calcolo delle BS
|
|
|
- ggf_uz2wt.cfg (in wt/) # per il calcolo delle PS
|
|
|
- ggf_wt2mrg.cfg (in mrg/)
|
|
|
- ggf_mrg2mih.cfg (in mih/)
|
|
|
- poi.set.lst (lista dei POIs per cui fare il calcolo)
|
|
|
- run_prepare (in run/)
|
|
|
- run_prefetch (in run/)
|
|
|
- run_cat2wt_list (in run/)
|
|
|
- run_uz2wt_list (in run/)
|
|
|
- run_wt2mrg (in run/)
|
|
|
- run_mrg2mih (in run/)
|
|
|
|
|
|
|
|
|
##### 3.1. Preparazione
|
|
|
|
|
|
Creazione di un file netcdf contenente le sorgenti unitarie (Gaussiane).
|
|
|
Dimensioni: numero di gaussiane, numero di pois, numero di time streps
|
|
|
|
|
|
Preparazione di un file di testo (.dat) con le caratteristiche dei POIs usati per creare il file netcdf delle gaussiane, usando il seguente formato per le colonne
|
|
|
id, lon, lat, id, depth
|
|
|
|
|
|
Creazione della cartella di lavoro:
|
|
|
```
|
|
|
./prepare_folders.sh
|
|
|
```
|
|
|
viene chiesto un nome per il nuovo progetto (ad esempio, nome_progetto) e viene creata una cartella nome_progetto/ con questa struttura:
|
|
|
|
|
|
```
|
|
|
nome_progetto/
|
|
|
|--cat/
|
|
|
|--cfg/
|
|
|
|--mih/
|
|
|
|--mrg/
|
|
|
|--poi/
|
|
|
|--prefetched/
|
|
|
|--run/
|
|
|
`--wt/
|
|
|
```
|
|
|
Viene inoltre creato un file dir.txt che contiene la parola nome_progetto (usato dallo script che viene chiamato da tutti gli eseguibili della procedura per definire le variabili di ambiante temporanee).
|
|
|
|
|
|
|
|
|
|
|
|
##### 3.2. Execution
|
|
|
|
|
|
NOTE: in order to run the procedure it is needed to load specific modules installed in the INGV cluster (on mercalli and auriga machines). They are:
|
|
|
- `module load gcc/6.3.0 hdf5/1.8.18/gcc-6.3.0 netcdf/4.4.1/gcc-6.3.0` on mercalli
|
|
|
- `module load gcc/7.1.0 hdf5/1.10.1/gcc-7.1.0 netcdf/4.4.1/gcc-7.1.0` on auriga
|
|
|
|
|
|
Now, move to the subfolder `run/`
|
|
|
```
|
|
|
cd run/
|
|
|
```
|
|
|
|
|
|
And run:
|
|
|
```
|
|
|
qsub run_prepare
|
|
|
qsub run_prefetch
|
|
|
```
|
|
|
Then, depending on the kind of input sources there are two separate procedures: one for PS sources (reading external files with the tsunami initial conditions) and another for the BS sources (reading the earthquake parameters). They are:
|
|
|
```
|
|
|
./run_cat2wt_list < path_to_zones_list.txt # for BS
|
|
|
./run_uz2wt_list < path_to_zones_list.txt # for PS
|
|
|
```
|
|
|
After each one of the above commands a number of jobs will be launched, one for each zone/region.
|
|
|
|
|
|
IMPORTANT: prima di eseguire, aprire i files run_cat2wt_list e/o run_uz2wt_list e controllare che nella variabile CATFILE ci sia il percorso della cartella contenente i files xxx_parameters_tx_zxxx.txt del caso che si sta sviluppando.
|
|
|
|
|
|
Once all jobs will be concluded, run:
|
|
|
```
|
|
|
./run_wt2mrg < ../poi/poi.set.lst
|
|
|
```
|
|
|
And, finally:
|
|
|
```
|
|
|
qsub run_mrg2mih
|
|
|
```
|
|
|
per creare i files con tutti gli hmax (offshore e/o amplificati) nei POIs selezionati. |
|
|
\ No newline at end of file |