Commits (2)
......@@ -44,7 +44,6 @@ RUN apt-get -y update \
# get WRF dependencies
RUN apt-get -y install \
build-essential \
csh \
gfortran \
h5utils \
......@@ -62,7 +61,6 @@ RUN apt-get -y install \
netcdf-bin \
python3-gdal \
python3-netcdf4 \
wget \
......@@ -82,8 +80,10 @@ RUN ./configure \
RUN useradd -d /home/agrineer -m agrineer -s /bin/bash
RUN rm -rf /home/agrineer
ADD agrineer /home/agrineer
RUN chown -R agrineer.agrineer /home/agrineer
USER agrineer
WORKDIR /home/agrineer/wrf
RUN mkdir gfs_0.25 log output
#RUN mkdir gfs_0.25 log output
# get UCAR-BSD License and place in /home/agrineer/wrf
RUN curl -SL https://ral.ucar.edu/sites/default/files/public/projects/ncar-docker-wrf/ucar-bsd-3-clause-license.pdf > UCAR-BSD-3-Clause-License.pdf
......@@ -138,10 +138,6 @@ RUN curl -SL http://www2.mmm.ucar.edu/wrf/src/wps_files/geog_high_res_mandatory.
# populate sector geos
RUN ./sector_geos
# change agrineer files ownership to agrineer
# takes a really long time
RUN chown -R agrineer.agrineer /home/agrineer
# become root for login
USER root
......@@ -15,7 +15,7 @@ Requirements:
- data capacity depends on maintenance practice.
- OS platform which supports Docker software.
- Time to construct: about 3 hours.
- Time to construct: about 2 hours.
Gnu Public License 3.0 (GPLv3)
......@@ -69,8 +69,9 @@ Replace:
with your time zone. Look in /usr/share/zoneinfo to find your time zone.
You will need to restart the cron daemon once inside the container, see instructions below.
All currently defined sectors are provided in wrf/sectors. You can construct the container faster by removing the sectors (directory) you are not interested in.
Data delivery to the SME project:
The purpose of this container is to provide a way, for interested and capable parties, to contribute with modest computers, or with advanced compute servers, to the generation of data which helps with water management for crop production, world-wide.
......@@ -91,6 +92,15 @@ [email protected]
NOTE: Editing the wrf/scripts/upload.sh file BEFORE building the container preserves
the registration data for rentry into the container.
If you have been using Docker, you may want to clear previously built containers.
Place these aliases in .bashrc:
alias docker-clean-unused='docker system prune --all --force'
alias docker-clean-all='docker container stop $(docker container ls -a -q) && docker system prune -a -f'
and invoke as needed to reclaim disk space.
Build the container:
......@@ -182,7 +192,7 @@ $ echo `hostname` > mpd.hosts
Before running WRF for a sector you must get the forcing files:
Get today's input Global Forecast System (GFS) data run:
Get yesterday's's input Global Forecast System (GFS) data run:
$ wrf/scripts/getdata_gfs.py
......@@ -248,7 +258,7 @@ Do not use crontab, but manually invoke WRF runs.
Recapping above:
For todays run:
For yesterday's run:
$ /home/agrineer/bin/run_wrf SECTOR