Skip to content
Snippets Groups Projects
Commit dea0b74e authored by Lene Wasskog's avatar Lene Wasskog
Browse files

doc: Update env-sample and README

parent cfe550d9
No related branches found
No related tags found
No related merge requests found
...@@ -29,29 +29,26 @@ The model (as per 2024-04-19) assumes that a weather data file named `YYYY_with_ ...@@ -29,29 +29,26 @@ The model (as per 2024-04-19) assumes that a weather data file named `YYYY_with_
In order to run the model, the following environment variables need to be set: In order to run the model, the following environment variables need to be set:
```bash ```bash
# Default value is False
DEBUG=False
# This is used to auto generate some variables and file names # This is used to auto generate some variables and file names
MODEL_ID="ADASMELIAE" MODEL_ID="ADASMELIAE"
# The start date MM-DD of the model # The start date MM-DD of the model
START_DATE_MM_DD=03-01 START_DATE_MM_DD=03-01
# The end date MM-DD of the model # The end date MM-DD of the model
END_DATE_MM_DD=04-01 END_DATE_MM_DD=04-01
# Default value is False
DEBUG=False
# Where your script resides # Where your script resides
HOME_DIR=/foo/home/ADASMELIAE/ HOME_DIR=/foo/home/ADASMELIAE/
# Path to folder for intermediary results
TMP_DIR=/foo/home/ADASMELIAE/tmp/
# Path to the weather data # Path to the weather data
WEATHER_DATA_DIR=/foo/weather/ WEATHER_DATA_DIR=/foo/weather/
# Path to directory for intermediary results # Used to construct filename from current year
TMP_DIR=/foo/home/ADASMELIAE/tmp/ WEATHER_DATA_FILENAME_DATEFORMAT="%Y_with_forecast.nc"
# Path to the output (GeoTIFF) files as seen from the running model code # Path to the output (GeoTIFF) files as seen from the running model code
RESULT_TIF_DIR=/foo/out/tif/ RESULT_TIF_DIR=/foo/out/tif/
# Path to the generated mapfile as seen from the running model code # Path to the generated mapfile as seen from the running model code
RESULT_MAPFILE_DIR=/foo/out/mapfile/ RESULT_MAPFILE_DIR=/foo/out/mapfile/
# Used to construct filename from current year
WEATHER_DATA_FILENAME_DATEFORMAT="%Y_with_forecast.nc"
# Path to optional CSV file with polygons for masking result.
MASK_FILE=europe_coastline.csv
# The path to the output (GeoTIFF files) as seen from Mapserver # The path to the output (GeoTIFF files) as seen from Mapserver
MAPSERVER_RESULT_TIF_DIR=/foo/mapserver/data/ADASMELISAE/ MAPSERVER_RESULT_TIF_DIR=/foo/mapserver/data/ADASMELISAE/
# Where your generated MAPFILE and query templates should be placed # Where your generated MAPFILE and query templates should be placed
...@@ -62,6 +59,8 @@ MAPSERVER_LOG_FILE=/foo/mapserver/log/ADASMELISAE.log ...@@ -62,6 +59,8 @@ MAPSERVER_LOG_FILE=/foo/mapserver/log/ADASMELISAE.log
MAPSERVER_IMAGE_PATH=/foo/mapserver/image/ MAPSERVER_IMAGE_PATH=/foo/mapserver/image/
# The value of the EXTENT parameter in Mapserver's mapfile. Units are DD (Decimal degrees) # The value of the EXTENT parameter in Mapserver's mapfile. Units are DD (Decimal degrees)
MAPSERVER_EXTENT="-23.5 29.5 62.5 70.5" MAPSERVER_EXTENT="-23.5 29.5 62.5 70.5"
# Path to optional CSV file with polygons for masking result.
MASK_FILE=europe_coastline.csv
``` ```
...this is the contents of the `env-sample` file ...this is the contents of the `env-sample` file
...@@ -80,6 +79,7 @@ The model outputs GeoTIFF files, two per day in the season/period of calculation ...@@ -80,6 +79,7 @@ The model outputs GeoTIFF files, two per day in the season/period of calculation
- `result_WARNING_STATUS_[YYYY-MM-DD].tif`, which indicates migration risk. - `result_WARNING_STATUS_[YYYY-MM-DD].tif`, which indicates migration risk.
- 2 = Low migration risk (yellow) - 2 = Low migration risk (yellow)
- 3 = Medium migration risk (orange)
- 4 = High migration risk (red) - 4 = High migration risk (red)
- `result_[YYYY-MM-DD].tif`, which contains the daily maximum air temperature - `result_[YYYY-MM-DD].tif`, which contains the daily maximum air temperature
......
# Use this as an example to create your own .env file # Use this as an example to create your own .env file
# Default value is False
DEBUG=False
# This is used to auto generate some variables and file names # This is used to auto generate some variables and file names
MODEL_ID="ADASMELIAE" MODEL_ID="ADASMELIAE"
# Where your application resides # The start date MM-DD of the model
HOME_DIR=/home/foo/2023_vips_in_space/ADASMELIAE/ START_DATE_MM_DD=03-01
# The end date MM-DD of the model
END_DATE_MM_DD=04-01
# Where your script resides
HOME_DIR=/foo/home/ADASMELIAE/
# Path to folder for intermediary results
TMP_DIR=/foo/home/ADASMELIAE/tmp/
# Path to the weather data # Path to the weather data
WEATHER_DATA_DIR=in/ WEATHER_DATA_DIR=/foo/weather/
# Used for iterating the weather data files # Used to construct filename from current year
WEATHER_DATA_FILENAME_PATTERN="met_1_0km_nordic-*.nc" WEATHER_DATA_FILENAME_DATEFORMAT="%Y_with_forecast.nc"
# Used to extract date info from the filename
WEATHER_DATA_FILENAME_DATEFORMAT="met_1_0km_nordic-%Y-%m-%d.nc"
# Names of weather parameters in NetCDF files
# Hourly precipitation
RR="RR"
# Relative humidity (2m)
UM="UM"
# Timezone for weather data/daily aggregations
LOCAL_TIMEZONE="Europe/Oslo"
# Path to optional CSV file with polygons for masking result.
# MASK_FILE=Norge_landomrader.csv
# Path to the output (GeoTIFF) files as seen from the running model code # Path to the output (GeoTIFF) files as seen from the running model code
DATA_DIR=out/ RESULT_TIF_DIR=/foo/out/tif/
# Path to the generated mapfile as seen from the running model code # Path to the generated mapfile as seen from the running model code
MAPFILE_DIR=mapfile/ RESULT_MAPFILE_DIR=/foo/out/mapfile/
# The path to the output (GeoTIFF files) as seen from Mapserver # The path to the output (GeoTIFF files) as seen from Mapserver
MAPSERVER_DATA_DIR=/foo/mapserver/data/ADASMELIAE/ MAPSERVER_RESULT_TIF_DIR=/foo/mapserver/data/ADASMELISAE/
# Where your generated MAPFILE and query templates should be placed # Where your generated MAPFILE and query templates should be placed
MAPSERVER_MAPFILE_DIR=/foo/mapserver/wms/ADASMELIAE/ MAPSERVER_RESULT_MAPFILE_DIR=/foo/mapserver/wms/ADASMELISAE/
# Where mapserver logs for this WMS are written # Where mapserver logs for this WMS are written
MAPSERVER_LOG_FILE=/foo/mapserver/log/ADASMELIAE.log MAPSERVER_LOG_FILE=/foo/mapserver/log/ADASMELISAE.log
# Path to the temporary directory for writing temporary files and images. Must be writable by the user the web server is running as # Path to the temporary directory for writing temporary files and images. Must be writable by the user the web server is running as
MAPSERVER_IMAGE_PATH=/foo/mapserver/tmp/ MAPSERVER_IMAGE_PATH=/foo/mapserver/image/
# The value of the EXTENT parameter in Mapserver's mapfile. Units are DD (Decimal degrees) # The value of the EXTENT parameter in Mapserver's mapfile. Units are DD (Decimal degrees)
MAPSERVER_EXTENT="-1.5831861262936526 52.4465003983706595 39.2608060398730458 71.7683216082912736" MAPSERVER_EXTENT="-23.5 29.5 62.5 70.5"
# Path to optional CSV file with polygons for masking result.
# Default value is false MASK_FILE=europe_coastline.csv
#DEBUG=True \ No newline at end of file
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment