[Met_help] [rt.rap.ucar.edu #92232] History for climo files for METplus
George McCabe via RT
met_help at ucar.edu
Mon Mar 2 09:35:00 MST 2020
----------------------------------------------------------------
Initial Request
----------------------------------------------------------------
I'm back on the task of generating the anomaly correlation after a diversion...
I've managed to kick off a successful CNT run of MET to compute the anomaly correlation, however, I think I accommodated the filenames for the climatologies in a bit of an awkward way (in red below):
#add to line 344 of ush/compare_gridded_wrapper.py:
"INPUT_BASE", "MET_VALID_HHMM", "MET_VALID_MM",
#add new line 361 to ush/compare_gridded_wrapper.py:
self.add_env_var("MET_VALID_MM", time_info['valid_fmt'][4:6]+'15') #jmh: for NCEP 2.5-deg climo filenames; e.g., '0815'
#reference in ac/GridStatConfig_anom-Harvey:
file_name = [ "${INPUT_BASE}/ac/climo/NCEP_2.5deg/pgba_mean.1959${MET_VALID_MM}" ];
I see on page 65 of the user manual the way to create new environment variables in METplus but in my anom.conf file I'm having a difficult time finding a way to retrieve the current month. I've tried all sorts of things but can't seem to find the right source variable or syntax (or both).
Should it be possible to retrieve the current valid month from a variable inside a particular section of the anom.conf file? I see some init/valid time references in the filename_templates section, but those don't work in the new user_env_vars section.
Any help would be much appreciated.
Thanks.
John
----------------------------------------------------------------
Complete Ticket History
----------------------------------------------------------------
Subject: climo files for METplus
From: George McCabe
Time: Fri Sep 20 11:30:46 2019
Hi John,
MET_VALID_HHMM is actually misnamed and contains month and day of the
valid
time, so it should be mmdd. However, if the file name is always named
with
the 15th day of the month, this wont work except for valid runs on the
15th.
The upcoming release of METplus 3.0 (around November) has been changed
to
use CLIMO_GRID_STAT_INPUT_DIR and CLIMO_GRID_STAT_INPUT_TEMPLATE, so
you
can specify the climo file using the valid time any way you need. The
user_env_vars (and a few other configs) section also supports using
filename templates, but you wouldn't need to use that if the CLIMO_
variables are available to you.
I am creating a beta release soon that will have these changes that I
can
provide to you if you'd like to utilize the new functionality. You may
need
to update some configuration files because some variables were
deprecated.
Let me know if you are interested and I can send you the information.
Thanks,
George
On Fri, Sep 20, 2019 at 9:35 AM John Halley Gotway via RT
<met_help at ucar.edu>
wrote:
>
> Fri Sep 20 09:35:23 2019: Request 92232 was acted upon.
> Transaction: Ticket created by johnhg
> Queue: met_help
> Subject: climo files for METplus
> Owner: mccabe
> Requestors: jhenders at aer.com
> Status: new
> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=92232 >
>
>
> I'm back on the task of generating the anomaly correlation after a
> diversion...
>
> I've managed to kick off a successful CNT run of MET to compute the
> anomaly correlation, however, I think I accommodated the filenames
for the
> climatologies in a bit of an awkward way (in red below):
>
> #add to line 344 of ush/compare_gridded_wrapper.py:
>
> "INPUT_BASE", "MET_VALID_HHMM",
"MET_VALID_MM",
>
> #add new line 361 to ush/compare_gridded_wrapper.py:
>
> self.add_env_var("MET_VALID_MM",
time_info['valid_fmt'][4:6]+'15')
> #jmh: for NCEP 2.5-deg climo filenames; e.g., '0815'
>
> #reference in ac/GridStatConfig_anom-Harvey:
>
> file_name = [
> "${INPUT_BASE}/ac/climo/NCEP_2.5deg/pgba_mean.1959${MET_VALID_MM}"
];
>
> I see on page 65 of the user manual the way to create new
environment
> variables in METplus but in my anom.conf file I'm having a difficult
time
> finding a way to retrieve the current month. I've tried all sorts of
things
> but can't seem to find the right source variable or syntax (or
both).
>
> Should it be possible to retrieve the current valid month from a
variable
> inside a particular section of the anom.conf file? I see some
init/valid
> time references in the filename_templates section, but those don't
work in
> the new user_env_vars section.
>
> Any help would be much appreciated.
>
> Thanks.
>
> John
>
------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #92232] climo files for METplus
From: jhenders at aer.com
Time: Fri Sep 20 11:50:26 2019
Hi George,
Thanks for the update.
I'm glad some added functionality will be coming soon. I can wait
until November, since I have a workaround in place. Thanks for the
offer.
John
-----Original Message-----
From: "met_help at ucar.edu" <met_help at ucar.edu>
Reply-To: "met_help at ucar.edu" <met_help at ucar.edu>
Date: Friday, September 20, 2019 at 1:30 PM
To: "Henderson, John" <jhenders at aer.com>
Subject: Re: [rt.rap.ucar.edu #92232] climo files for METplus
Hi John,
MET_VALID_HHMM is actually misnamed and contains month and day of
the valid
time, so it should be mmdd. However, if the file name is always
named with
the 15th day of the month, this wont work except for valid runs on
the 15th.
The upcoming release of METplus 3.0 (around November) has been
changed to
use CLIMO_GRID_STAT_INPUT_DIR and CLIMO_GRID_STAT_INPUT_TEMPLATE,
so you
can specify the climo file using the valid time any way you need.
The
user_env_vars (and a few other configs) section also supports
using
filename templates, but you wouldn't need to use that if the
CLIMO_
variables are available to you.
I am creating a beta release soon that will have these changes
that I can
provide to you if you'd like to utilize the new functionality. You
may need
to update some configuration files because some variables were
deprecated.
Let me know if you are interested and I can send you the
information.
Thanks,
George
On Fri, Sep 20, 2019 at 9:35 AM John Halley Gotway via RT
<met_help at ucar.edu>
wrote:
>
> Fri Sep 20 09:35:23 2019: Request 92232 was acted upon.
> Transaction: Ticket created by johnhg
> Queue: met_help
> Subject: climo files for METplus
> Owner: mccabe
> Requestors: jhenders at aer.com
> Status: new
> Ticket <URL: https://urldefense.proofpoint.com/v2/url?u=https-
3A__rt.rap.ucar.edu_rt_Ticket_Display.html-3Fid-
3D92232&d=DwIDaQ&c=birp9sjcGzT9DCP3EIAtLA&r=cwsO3u-
EzDa8rEVrli7TzQ&m=uqVNKiAegiKYigcsS0m_I0U0Ral5kql560J7_I5FHUI&s=zJu_raGfJIxen21eFjpBWtNUWEBUobkw_xi6Qm3yQJw&e=
>
>
>
> I'm back on the task of generating the anomaly correlation after
a
> diversion...
>
> I've managed to kick off a successful CNT run of MET to compute
the
> anomaly correlation, however, I think I accommodated the
filenames for the
> climatologies in a bit of an awkward way (in red below):
>
> #add to line 344 of ush/compare_gridded_wrapper.py:
>
> "INPUT_BASE", "MET_VALID_HHMM",
"MET_VALID_MM",
>
> #add new line 361 to ush/compare_gridded_wrapper.py:
>
> self.add_env_var("MET_VALID_MM",
time_info['valid_fmt'][4:6]+'15')
> #jmh: for NCEP 2.5-deg climo filenames; e.g., '0815'
>
> #reference in ac/GridStatConfig_anom-Harvey:
>
> file_name = [
>
"${INPUT_BASE}/ac/climo/NCEP_2.5deg/pgba_mean.1959${MET_VALID_MM}" ];
>
> I see on page 65 of the user manual the way to create new
environment
> variables in METplus but in my anom.conf file I'm having a
difficult time
> finding a way to retrieve the current month. I've tried all
sorts of things
> but can't seem to find the right source variable or syntax (or
both).
>
> Should it be possible to retrieve the current valid month from a
variable
> inside a particular section of the anom.conf file? I see some
init/valid
> time references in the filename_templates section, but those
don't work in
> the new user_env_vars section.
>
> Any help would be much appreciated.
>
> Thanks.
>
> John
>
________________________________
This email is intended solely for the recipient. It may contain
privileged, proprietary or confidential information or material. If
you are not the intended recipient, please delete this email and any
attachments and notify the sender of the error.
------------------------------------------------
Subject: climo files for METplus
From: George McCabe
Time: Wed Oct 02 08:38:24 2019
Hi John,
The METplus 3.0-beta1 release is now available on GitHub. If you'd
like you
can download it and try it out. This version requires the use of
Python
3.6.3 or higher, so you will need to run it with a different version
than
the last release. There may also be some configuration changes to
make,
which should be well described in the error messages. We are still
making
changes/improvements for the 3.0 release later this year, but using
this
would allow you to get a head start on the changes needed for the
transition. It will also allow us to get feedback from you if any of
the
new functionality does not work as intended for your use case. Let me
know
if you have any issues getting things set up.
https://github.com/NCAR/METplus/releases/tag/v3.0-beta1
Thanks,
George
On Fri, Sep 20, 2019 at 11:50 AM jhenders at aer.com via RT
<met_help at ucar.edu>
wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=92232 >
>
> Hi George,
>
> Thanks for the update.
>
> I'm glad some added functionality will be coming soon. I can wait
until
> November, since I have a workaround in place. Thanks for the offer.
>
> John
>
>
> -----Original Message-----
> From: "met_help at ucar.edu" <met_help at ucar.edu>
> Reply-To: "met_help at ucar.edu" <met_help at ucar.edu>
> Date: Friday, September 20, 2019 at 1:30 PM
> To: "Henderson, John" <jhenders at aer.com>
> Subject: Re: [rt.rap.ucar.edu #92232] climo files for METplus
>
> Hi John,
>
> MET_VALID_HHMM is actually misnamed and contains month and day
of the
> valid
> time, so it should be mmdd. However, if the file name is always
named
> with
> the 15th day of the month, this wont work except for valid runs
on the
> 15th.
>
> The upcoming release of METplus 3.0 (around November) has been
changed
> to
> use CLIMO_GRID_STAT_INPUT_DIR and
CLIMO_GRID_STAT_INPUT_TEMPLATE, so
> you
> can specify the climo file using the valid time any way you
need. The
> user_env_vars (and a few other configs) section also supports
using
> filename templates, but you wouldn't need to use that if the
CLIMO_
> variables are available to you.
>
> I am creating a beta release soon that will have these changes
that I
> can
> provide to you if you'd like to utilize the new functionality.
You may
> need
> to update some configuration files because some variables were
> deprecated.
> Let me know if you are interested and I can send you the
information.
>
> Thanks,
> George
>
> On Fri, Sep 20, 2019 at 9:35 AM John Halley Gotway via RT <
> met_help at ucar.edu>
> wrote:
>
> >
> > Fri Sep 20 09:35:23 2019: Request 92232 was acted upon.
> > Transaction: Ticket created by johnhg
> > Queue: met_help
> > Subject: climo files for METplus
> > Owner: mccabe
> > Requestors: jhenders at aer.com
> > Status: new
> > Ticket <URL:
> https://urldefense.proofpoint.com/v2/url?u=https-
3A__rt.rap.ucar.edu_rt_Ticket_Display.html-3Fid-
3D92232&d=DwIDaQ&c=birp9sjcGzT9DCP3EIAtLA&r=cwsO3u-
EzDa8rEVrli7TzQ&m=uqVNKiAegiKYigcsS0m_I0U0Ral5kql560J7_I5FHUI&s=zJu_raGfJIxen21eFjpBWtNUWEBUobkw_xi6Qm3yQJw&e=
> >
> >
> >
> > I'm back on the task of generating the anomaly correlation
after a
> > diversion...
> >
> > I've managed to kick off a successful CNT run of MET to
compute the
> > anomaly correlation, however, I think I accommodated the
filenames
> for the
> > climatologies in a bit of an awkward way (in red below):
> >
> > #add to line 344 of ush/compare_gridded_wrapper.py:
> >
> > "INPUT_BASE", "MET_VALID_HHMM",
"MET_VALID_MM",
> >
> > #add new line 361 to ush/compare_gridded_wrapper.py:
> >
> > self.add_env_var("MET_VALID_MM",
time_info['valid_fmt'][4:6]+'15')
> > #jmh: for NCEP 2.5-deg climo filenames; e.g., '0815'
> >
> > #reference in ac/GridStatConfig_anom-Harvey:
> >
> > file_name = [
> >
"${INPUT_BASE}/ac/climo/NCEP_2.5deg/pgba_mean.1959${MET_VALID_MM}" ];
> >
> > I see on page 65 of the user manual the way to create new
environment
> > variables in METplus but in my anom.conf file I'm having a
difficult
> time
> > finding a way to retrieve the current month. I've tried all
sorts of
> things
> > but can't seem to find the right source variable or syntax (or
both).
> >
> > Should it be possible to retrieve the current valid month from
a
> variable
> > inside a particular section of the anom.conf file? I see some
> init/valid
> > time references in the filename_templates section, but those
don't
> work in
> > the new user_env_vars section.
> >
> > Any help would be much appreciated.
> >
> > Thanks.
> >
> > John
> >
>
>
>
>
> ________________________________
>
> This email is intended solely for the recipient. It may contain
> privileged, proprietary or confidential information or material. If
you are
> not the intended recipient, please delete this email and any
attachments
> and notify the sender of the error.
>
>
>
------------------------------------------------
More information about the Met_help
mailing list