|
|
|
|
|
|
|
|
# 🗺️ `nc2mbtiles`
|
|
|
|
|
|
The `nc2mbtiles` command converts an aggregated monthly NetCDF with sectors as variables into daily MBTiles.
|
|
|
|
|
|
## 📌 Usage
|
|
|
|
|
|
```bash
|
|
|
nes nc2mbtiles -i --input_file INPUT.nc -o --output_path output_path -f --mbtiles_file mbtiles_name -gs --geostructure geostructure.geojson
|
|
|
```
|
|
|
|
|
|
Use `-h` or `--help` to view the full list of available options:
|
|
|
|
|
|
```bash
|
|
|
nes nc2mbtiles --help
|
|
|
```
|
|
|
|
|
|
## 🔧 Arguments
|
|
|
|
|
|
| Argument | Description |
|
|
|
|------------------|-----------------------------------------------------------------------------------------|
|
|
|
| `-i`, `--input_file` | Path to the input NetCDF file (required) |
|
|
|
| `-o`, `--output_path` | Path where the mbtiles will be saved (required) |
|
|
|
| `f`, `--mbtiles_file` | Name for the mbtile files, will be used as a prefix for the daily mbtiles (required)|
|
|
|
| `-gs`, `--geostructure` |Optional path to geostructure file, allowing to skip the manual computation. |
|
|
|
|
|
|
## 💡 Examples
|
|
|
|
|
|
### Use case 1: Convert a monthly aggregated NetCDF (outputted from PHENOMENA summary)
|
|
|
|
|
|
```bash
|
|
|
nes nc2mbtiles -i IP_ch4.nc -o /home/processed_data -f IP_ch4
|
|
|
```
|
|
|
|
|
|
### Use case 1: Convert a monthly aggregated NetCDF with optional geojson
|
|
|
|
|
|
```bash
|
|
|
nes nc2mbtiles -i IP_ch4_202401.nc -o /home/processed_data -f IP_ch4 -gs peninsula_2024.geojson
|
|
|
``` |
|
|
\ No newline at end of file |