Commit 99e2a318 authored by Matthias Ruester's avatar Matthias Ruester

Get topo30 file with curl

parent deda80c1
FROM alpine:3.11.6
ADD ftp://topex.ucsd.edu/pub/srtm30_plus/topo30/topo30 /root/topo30
RUN apk add --update \
curl \
g++ && \
mkdir /data
RUN curl ftp://topex.ucsd.edu/pub/srtm30_plus/topo30/topo30 -o /root/topo30
COPY *.cpp /root
COPY *.h /root
COPY *.txt /root
......@@ -14,11 +15,13 @@ COPY Makefile /root
WORKDIR /root
RUN g++ -o srtmRead srtmRead.cpp && \
./srtmRead -range 0 360 -90 90 -fmt DSAA && \
./srtmRead -range 0 360 -90 90 -fmt DSBB && \
mv srtmRead.out.grd /data/grid_30.grd && \
./srtmRead -range 0 360 -90 90 -resample 2 -fmt DSAA && \
./srtmRead -range 0 360 -90 90 -resample 2 -fmt DSBB && \
mv srtmRead.out.grd /data/grid_60.grd && \
./srtmRead -range 0 360 -90 90 -resample 4 -fmt DSAA && \
mv srtmRead.out.grd /data/grid_120.grd
./srtmRead -range 0 360 -90 90 -resample 4 -fmt DSBB && \
mv srtmRead.out.grd /data/grid_120.grd && \
./srtmRead -range 0 360 -90 90 -resample 8 -fmt DSBB && \
mv srtmRead.out.grd /data/grid_240.grd
VOLUME [ "/data" ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment