[Met_help] [rt.rap.ucar.edu #95366] History for MET installation on Windows

George McCabe via RT met_help at ucar.edu
Thu May 28 15:52:30 MDT 2020


----------------------------------------------------------------
  Initial Request
----------------------------------------------------------------

Good afternoon,

I hope you all are doing well.

We have a summer student at WPC who is working remotely and we have
concerns about her Internet and her VPN connection to WPC. She will be
using MET MODE for her project.

As a backup, is there any way she can install MET on windows? This isn't
something we've thought about and we were wondering if it was even possible.

Thank you and have a great day!

Mike

-- 
Michael J. Erickson

Research Scientist
Cooperative Institute for Research in Environmental Sciences (CIRES)
NOAA/NWS/Weather Prediction Center
Phone:  301-683-1546


----------------------------------------------------------------
  Complete Ticket History
----------------------------------------------------------------

Subject: MET installation on Windows
From: George McCabe
Time: Tue May 26 12:44:41 2020

Julie,

Tomorrow at 11am MST, Hank and I are going to meet with a few people
from NOAA to discuss how we have set up MET on Windows. We should
probably ask Tara, but I would think this person could sit in on that
meeting if they are available.

Also, I meant to ask you if where an updated install script is that I
should use to build MET. I was going to try to build MET on my Windows
laptop before that meeting and I recall last time I was using an old
version of the install script.

Thanks,
George

On Tue May 26 12:39:40 2020, michael.j.erickson at noaa.gov wrote:
> Good afternoon,
>
> I hope you all are doing well.
>
> We have a summer student at WPC who is working remotely and we have
> concerns about her Internet and her VPN connection to WPC. She will
be
> using MET MODE for her project.
>
> As a backup, is there any way she can install MET on windows? This
isn't
> something we've thought about and we were wondering if it was even
possible.
>
> Thank you and have a great day!
>
> Mike
>



------------------------------------------------
Subject: MET installation on Windows
From: George McCabe
Time: Wed May 27 10:10:32 2020

Hi Mike,

Yes, you can install MET on Windows. I have done this using WSL
(Windows Subsystem for Linux) to create a Linux environment and
installed there. It was not very difficult to build in this
environment. We also have a Docker image for MET and METplus that can
be used to obtain the tools easily. Hank (another METplus engineer)
has done this on Windows.

I know it is short notice, but Hank and I are holding a meeting with a
few people from NOAA at 11am MST (1pm EST - less than an hour away!)
to go over what we did to get set up on Windows. If you and/or your
intern would like I can invite you to this meeting. If not, I can give
you some more information on the subject. We could also schedule
another meeting to go over it if you'd prefer that. Let me know what
you think.

Thanks,
George

On Tue May 26 12:39:40 2020, michael.j.erickson at noaa.gov wrote:
> Good afternoon,
>
> I hope you all are doing well.
>
> We have a summer student at WPC who is working remotely and we have
> concerns about her Internet and her VPN connection to WPC. She will
be
> using MET MODE for her project.
>
> As a backup, is there any way she can install MET on windows? This
isn't
> something we've thought about and we were wondering if it was even
possible.
>
> Thank you and have a great day!
>
> Mike
>



------------------------------------------------
Subject: MET installation on Windows
From: Michael Erickson - NOAA Affiliate
Time: Thu May 28 05:17:16 2020

Hi George,

Thank you for your helpful and quick response! Sadly yesterday was a
bit
busy, so I am just looking at this email now. Thank you for inviting
us to
your meeting yesterday.

If you do have any information already written up on this, we'd be
happy to
take a look at it. A meeting may not be necessary yet, but possibly
early
to mid next month. Thank you for the offer!

This intern starts at WPC (remotely) next week and we are thinking
ahead in
case she has internet issues and will need to work with MET remotely
on her
windows laptop. I'm glad to hear that this is an option!

Thanks,

Mike

On Wed, May 27, 2020 at 12:10 PM George McCabe via RT
<met_help at ucar.edu>
wrote:

> Hi Mike,
>
> Yes, you can install MET on Windows. I have done this using WSL
(Windows
> Subsystem for Linux) to create a Linux environment and installed
there. It
> was not very difficult to build in this environment. We also have a
Docker
> image for MET and METplus that can be used to obtain the tools
easily. Hank
> (another METplus engineer) has done this on Windows.
>
> I know it is short notice, but Hank and I are holding a meeting with
a few
> people from NOAA at 11am MST (1pm EST - less than an hour away!) to
go over
> what we did to get set up on Windows. If you and/or your intern
would like
> I can invite you to this meeting. If not, I can give you some more
> information on the subject. We could also schedule another meeting
to go
> over it if you'd prefer that. Let me know what you think.
>
> Thanks,
> George
>
> On Tue May 26 12:39:40 2020, michael.j.erickson at noaa.gov wrote:
> > Good afternoon,
> >
> > I hope you all are doing well.
> >
> > We have a summer student at WPC who is working remotely and we
have
> > concerns about her Internet and her VPN connection to WPC. She
will be
> > using MET MODE for her project.
> >
> > As a backup, is there any way she can install MET on windows? This
isn't
> > something we've thought about and we were wondering if it was even
> possible.
> >
> > Thank you and have a great day!
> >
> > Mike
> >
>
>
>
>

--
Michael J. Erickson

Research Scientist
Cooperative Institute for Research in Environmental Sciences (CIRES)
NOAA/NWS/Weather Prediction Center
Phone:  301-683-1546

------------------------------------------------
Subject: MET installation on Windows
From: George McCabe
Time: Thu May 28 08:35:19 2020

Hi Mike,

Hank typed up instructions on how to set up Docker to run MET/METplus
from
his Windows laptop (pasted below along with some useful links). It is
possible to install the software yourself, but the Docker approach
appears
to be the preferred solution because you don't have to build anything
and
worry about dependencies. You just obtain the Docker image, mount
directories, and you are ready to run. We will eventually simplify
this
process, but the instructions below should be straightforward enough
to get
started. Please let me know if you have any questions, as these
instructions were based on things we presented in the meeting
yesterday, so
they may be unclear out of context. We are also happy to set up a
meeting
once you get started if you need to get set up on Windows. I'm going
to
close this ticket, but feel free to reopen.

Hope you are doing well and staying safe!

Thanks,
George



install Docker Desktop for windows
open a windows command prompt
make a directory for your "stuff" (mkdir C:\Users\Hank\Data)
Do the following in your data directory
  git clone https://github/NCAR/METplus
  download
https://github.com/NCAR/METplus/releases/download/v3.0/sample_data-
precipitation-3.0.tgz

docker pull dtcenter/met:9.0.2

run the container (change your C: directory unless your name is Hank
":)
map your windows drive to whatever you want, although I have the
attached
system.conf file set up for /data

example docker command line
docker run --rm -it -v <windows_directory>:<docker_directory>
dtcenter/met:9.0.2 /bin/bash

The one I run
docker run --rm -it -v C:\Users\Hank\Data:/data dtcenter/met:9.0.2
/bin/bash

Inside the container now...

mkdir /data/out
cd /data
tar -zxvf sample_data-precipitation-3.0.tgz
export METPLUS_DISABLE_PLOT_WRAPPERS=FALSE

  - the python environment in the MET container is not set up for
plotting
right now, George and I will put that on our to-do list

cd METplus/parm/use_cases/model_applications/precipitation
 python3 ../../../../ush/master_metplus.py -c
GridStat_fcstHREFmean_obsStgIV_NetCDF.conf -c /data/system.conf

-master_metplus is the driver of everything
-GridStat config file has all the configurations and data locations
you are
doing stats on
- system.conf points to where your input data lives, met binaries and
where
output data goes

Hopefully you will have some output in
/data/out/model_applications/precipitation/GridStat_fcstHREFmean_obsStgIV_NetCDF/

Useful links

Reminder of docker instructions
https://dtcenter.org/community-code/model-evaluation-tools-met/docker-
container-met-8-1


METplus releases with tarball locations
https://github.com/NCAR/METplus/releases

METplus Users Guide
https://ncar.github.io/METplus/Users_Guide/

On Thu, May 28, 2020 at 5:17 AM Michael Erickson - NOAA Affiliate via
RT <
met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=95366 >
>
> Hi George,
>
> Thank you for your helpful and quick response! Sadly yesterday was a
bit
> busy, so I am just looking at this email now. Thank you for inviting
us to
> your meeting yesterday.
>
> If you do have any information already written up on this, we'd be
happy to
> take a look at it. A meeting may not be necessary yet, but possibly
early
> to mid next month. Thank you for the offer!
>
> This intern starts at WPC (remotely) next week and we are thinking
ahead in
> case she has internet issues and will need to work with MET remotely
on her
> windows laptop. I'm glad to hear that this is an option!
>
> Thanks,
>
> Mike
>
> On Wed, May 27, 2020 at 12:10 PM George McCabe via RT
<met_help at ucar.edu>
> wrote:
>
> > Hi Mike,
> >
> > Yes, you can install MET on Windows. I have done this using WSL
(Windows
> > Subsystem for Linux) to create a Linux environment and installed
there.
> It
> > was not very difficult to build in this environment. We also have
a
> Docker
> > image for MET and METplus that can be used to obtain the tools
easily.
> Hank
> > (another METplus engineer) has done this on Windows.
> >
> > I know it is short notice, but Hank and I are holding a meeting
with a
> few
> > people from NOAA at 11am MST (1pm EST - less than an hour away!)
to go
> over
> > what we did to get set up on Windows. If you and/or your intern
would
> like
> > I can invite you to this meeting. If not, I can give you some more
> > information on the subject. We could also schedule another meeting
to go
> > over it if you'd prefer that. Let me know what you think.
> >
> > Thanks,
> > George
> >
> > On Tue May 26 12:39:40 2020, michael.j.erickson at noaa.gov wrote:
> > > Good afternoon,
> > >
> > > I hope you all are doing well.
> > >
> > > We have a summer student at WPC who is working remotely and we
have
> > > concerns about her Internet and her VPN connection to WPC. She
will be
> > > using MET MODE for her project.
> > >
> > > As a backup, is there any way she can install MET on windows?
This
> isn't
> > > something we've thought about and we were wondering if it was
even
> > possible.
> > >
> > > Thank you and have a great day!
> > >
> > > Mike
> > >
> >
> >
> >
> >
>
> --
> Michael J. Erickson
>
> Research Scientist
> Cooperative Institute for Research in Environmental Sciences (CIRES)
> NOAA/NWS/Weather Prediction Center
> Phone:  301-683-1546
>
>

--
George McCabe - Software Engineer III
National Center for Atmospheric Research
Research Applications Laboratory
303-497-2768
---
My working day may not be your working day. Please do not feel obliged
to
reply to this email outside of your normal working hours.

------------------------------------------------
Subject: MET installation on Windows
From: Michael Erickson - NOAA Affiliate
Time: Thu May 28 14:31:32 2020

Thank you George! We will probably request further assistance in the
next
couple of weeks and appreciate all your help.

Mike

On Thu, May 28, 2020 at 10:35 AM George McCabe via RT
<met_help at ucar.edu>
wrote:

> Hi Mike,
>
> Hank typed up instructions on how to set up Docker to run
MET/METplus from
> his Windows laptop (pasted below along with some useful links). It
is
> possible to install the software yourself, but the Docker approach
appears
> to be the preferred solution because you don't have to build
anything and
> worry about dependencies. You just obtain the Docker image, mount
> directories, and you are ready to run. We will eventually simplify
this
> process, but the instructions below should be straightforward enough
to get
> started. Please let me know if you have any questions, as these
> instructions were based on things we presented in the meeting
yesterday, so
> they may be unclear out of context. We are also happy to set up a
meeting
> once you get started if you need to get set up on Windows. I'm going
to
> close this ticket, but feel free to reopen.
>
> Hope you are doing well and staying safe!
>
> Thanks,
> George
>
>
>
> install Docker Desktop for windows
> open a windows command prompt
> make a directory for your "stuff" (mkdir C:\Users\Hank\Data)
> Do the following in your data directory
>   git clone https://github/NCAR/METplus
>   download
>
> https://github.com/NCAR/METplus/releases/download/v3.0/sample_data-
precipitation-3.0.tgz
>
> docker pull dtcenter/met:9.0.2
>
> run the container (change your C: directory unless your name is Hank
":)
> map your windows drive to whatever you want, although I have the
attached
> system.conf file set up for /data
>
> example docker command line
> docker run --rm -it -v <windows_directory>:<docker_directory>
> dtcenter/met:9.0.2 /bin/bash
>
> The one I run
> docker run --rm -it -v C:\Users\Hank\Data:/data dtcenter/met:9.0.2
> /bin/bash
>
> Inside the container now...
>
> mkdir /data/out
> cd /data
> tar -zxvf sample_data-precipitation-3.0.tgz
> export METPLUS_DISABLE_PLOT_WRAPPERS=FALSE
>
>   - the python environment in the MET container is not set up for
plotting
> right now, George and I will put that on our to-do list
>
> cd METplus/parm/use_cases/model_applications/precipitation
>  python3 ../../../../ush/master_metplus.py -c
> GridStat_fcstHREFmean_obsStgIV_NetCDF.conf -c /data/system.conf
>
> -master_metplus is the driver of everything
> -GridStat config file has all the configurations and data locations
you are
> doing stats on
> - system.conf points to where your input data lives, met binaries
and where
> output data goes
>
> Hopefully you will have some output in
>
>
/data/out/model_applications/precipitation/GridStat_fcstHREFmean_obsStgIV_NetCDF/
>
> Useful links
>
> Reminder of docker instructions
>
> https://dtcenter.org/community-code/model-evaluation-tools-
met/docker-container-met-8-1
>
>
> METplus releases with tarball locations
> https://github.com/NCAR/METplus/releases
>
> METplus Users Guide
> https://ncar.github.io/METplus/Users_Guide/
>
> On Thu, May 28, 2020 at 5:17 AM Michael Erickson - NOAA Affiliate
via RT <
> met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=95366 >
> >
> > Hi George,
> >
> > Thank you for your helpful and quick response! Sadly yesterday was
a bit
> > busy, so I am just looking at this email now. Thank you for
inviting us
> to
> > your meeting yesterday.
> >
> > If you do have any information already written up on this, we'd be
happy
> to
> > take a look at it. A meeting may not be necessary yet, but
possibly early
> > to mid next month. Thank you for the offer!
> >
> > This intern starts at WPC (remotely) next week and we are thinking
ahead
> in
> > case she has internet issues and will need to work with MET
remotely on
> her
> > windows laptop. I'm glad to hear that this is an option!
> >
> > Thanks,
> >
> > Mike
> >
> > On Wed, May 27, 2020 at 12:10 PM George McCabe via RT
<met_help at ucar.edu
> >
> > wrote:
> >
> > > Hi Mike,
> > >
> > > Yes, you can install MET on Windows. I have done this using WSL
> (Windows
> > > Subsystem for Linux) to create a Linux environment and installed
there.
> > It
> > > was not very difficult to build in this environment. We also
have a
> > Docker
> > > image for MET and METplus that can be used to obtain the tools
easily.
> > Hank
> > > (another METplus engineer) has done this on Windows.
> > >
> > > I know it is short notice, but Hank and I are holding a meeting
with a
> > few
> > > people from NOAA at 11am MST (1pm EST - less than an hour away!)
to go
> > over
> > > what we did to get set up on Windows. If you and/or your intern
would
> > like
> > > I can invite you to this meeting. If not, I can give you some
more
> > > information on the subject. We could also schedule another
meeting to
> go
> > > over it if you'd prefer that. Let me know what you think.
> > >
> > > Thanks,
> > > George
> > >
> > > On Tue May 26 12:39:40 2020, michael.j.erickson at noaa.gov wrote:
> > > > Good afternoon,
> > > >
> > > > I hope you all are doing well.
> > > >
> > > > We have a summer student at WPC who is working remotely and we
have
> > > > concerns about her Internet and her VPN connection to WPC. She
will
> be
> > > > using MET MODE for her project.
> > > >
> > > > As a backup, is there any way she can install MET on windows?
This
> > isn't
> > > > something we've thought about and we were wondering if it was
even
> > > possible.
> > > >
> > > > Thank you and have a great day!
> > > >
> > > > Mike
> > > >
> > >
> > >
> > >
> > >
> >
> > --
> > Michael J. Erickson
> >
> > Research Scientist
> > Cooperative Institute for Research in Environmental Sciences
(CIRES)
> > NOAA/NWS/Weather Prediction Center
> > Phone:  301-683-1546
> >
> >
>
> --
> George McCabe - Software Engineer III
> National Center for Atmospheric Research
> Research Applications Laboratory
> 303-497-2768
> ---
> My working day may not be your working day. Please do not feel
obliged to
> reply to this email outside of your normal working hours.
>
>

--
Michael J. Erickson

Research Scientist
Cooperative Institute for Research in Environmental Sciences (CIRES)
NOAA/NWS/Weather Prediction Center
Phone:  301-683-1546

------------------------------------------------


More information about the Met_help mailing list