Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Grid ADASMELIAE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
Models
GRID
Grid ADASMELIAE
Commits
dea0b74e
Commit
dea0b74e
authored
1 year ago
by
Lene Wasskog
Browse files
Options
Downloads
Patches
Plain Diff
doc: Update env-sample and README
parent
cfe550d9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+9
-9
9 additions, 9 deletions
README.md
env-sample
+22
-26
22 additions, 26 deletions
env-sample
with
31 additions
and
35 deletions
README.md
+
9
−
9
View file @
dea0b74e
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
env-sample
+
22
−
26
View file @
dea0b74e
# 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/ADASMELI
S
AE/
# 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/ADASMELI
S
AE/
# 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/ADASMELI
S
AE.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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment