|
|
# Preprocessing the data
|
|
|
|
|
|
In order to model the hydrodynamics of a region with SLIM, forcing data need be converted to SLIM-specific data format. Commonly used data, such as TPXO tidal model output, are easily handled with, while other data may need specific treatment. Hereafter, some useful data and their webpages are listed, and an example of a script converting all necessary data is detailed.
|
|
|
In order to model the hydrodynamics of a region with SLIM, forcing data need be converted to SLIM-specific data format. Commonly used data, such as TPXO tidal model output, are easily handled with, while other data may need specific treatment. Hereafter, some useful data and their webpages are listed, and an example of a script converting all necessary data is detailed. For constant, no need to create a file, just give the value as an argument.
|
|
|
|
|
|
## Download
|
|
|
|
... | ... | @@ -126,21 +126,6 @@ The HYCOM data are now converted to SLIM netCDF format. As the data are produced |
|
|
|
|
|
It can become harder if two data sources do not share the same time steps. For 3D HYCOM velocity, one needs to perform a weighted sum over each vertical cell to get the 2D transport. This goes beyond the scope of this introduction.
|
|
|
|
|
|
### Tracer
|
|
|
|
|
|
Create the initial conditions for the Tracer equation
|
|
|
|
|
|
```python
|
|
|
slimPre.write_file(data_dir+'init_tracer.nc', region=None, time=None, data=[('tracer', 0.)])
|
|
|
```
|
|
|
|
|
|
Set the value at the open boundaries
|
|
|
|
|
|
```python
|
|
|
slimPre.write_file(data_dir+'concentration_mexico.nc', region=None, time=None, data=[('tracer',1.)])
|
|
|
slimPre.write_file(data_dir+'concentration_atlantic.nc', region=None, time=None, data=[('tracer',0.)])
|
|
|
```
|
|
|
|
|
|
Exit properly
|
|
|
|
|
|
```python
|
... | ... | |