Commit 35237cba authored by William Roberts's avatar William Roberts
Browse files

Update versions and improve docs

parent a036c7be
FROM centos:7 as centos-mambaforge
RUN touch /etc/sysconfig/64bit_strstr_via_64bit_strstr_sse2_unaligned
RUN yum -y update
RUN curl -L -O https://github.com/conda-forge/miniforge/releases/download/4.10.3-5/Mambaforge-4.10.3-5-Linux-x86_64.sh
RUN bash Mambaforge-4.10.3-5-Linux-x86_64.sh -b
RUN curl -L -O https://github.com/conda-forge/miniforge/releases/download/4.10.3-9/Mambaforge-4.10.3-9-Linux-x86_64.sh
RUN bash Mambaforge-4.10.3-9-Linux-x86_64.sh -b
ENV PATH="/root/mambaforge/bin:${PATH}"
# setup image
......@@ -16,10 +16,10 @@ RUN yum -y install epel-release \
RUN yum -y install glibc-devel
RUN yum -y install make glibc-static
RUN yum -y install libgfortran-static libquadmath-static
RUN yum -y install python36 gcc-gfortran
RUN yum -y install python39 gcc-gfortran
RUN yum -y install swig gcc-c++ glibc-headers python3-devel
RUN yum -y install libstdc++-devel git unzip
RUN mamba install -y -c conda-forge python=3.8 conda-pack netCDF4
RUN mamba install -y -c conda-forge python=3.9 conda-pack netCDF4
# Add ssh keys and known hosts
COPY .ssh /root/.ssh
......
......@@ -388,6 +388,25 @@ One of:
- converted .nc file
### dmv_to_ncdf.py
```console
usage: dmv_to_ncdf.py [-h] [-v] [-o OUTPUT_DIR] [-e EXTENSION] input_file
Convert DMV files to netCDF4 format.
positional arguments:
input_file file to convert
optional arguments:
-h, --help show this help message and exit
-v, --verbose show output to terminal
-o OUTPUT_DIR, --output-dir OUTPUT_DIR
output directory name
-e EXTENSION, --extension EXTENSION
DMV file extension to convert. Can be called multiple times. Defaults to [CSX SUM RNC]
```
### Shell Example
```console
......
......@@ -29,17 +29,17 @@ def process(input_file, output_dir, verbose):
if __name__=='__main__':
parser = argparse.ArgumentParser(description='Process some integers.')
parser.add_argument('input_file', type=str,
parser = argparse.ArgumentParser(description='Convert DMV files to netCDF4 format.')
parser.add_argument('input_file',
help='file to convert')
parser.add_argument('-v', '--verbose',
action="count", default=0,
help='show output to terminal')
parser.add_argument('-o','--output-dir',
help='output directory name')
parser.add_argument('-e','--extensions',
parser.add_argument('-e','--extension',
action='append',
help='dmv file extensions to convert')
help='DMV file extension to convert. Can be called multiple times. Defaults to [CSX SUM RNC]')
args = parser.parse_args()
......
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