[Met_help] [rt.rap.ucar.edu #97990] History for convert(x) used in METPlus
George McCabe via RT
met_help at ucar.edu
Mon Dec 28 08:10:30 MST 2020
----------------------------------------------------------------
Initial Request
----------------------------------------------------------------
George,
I'd like to know the usage of convert(x) in METPlus.
For example, I want to convert the fcst data from km to m,
Can I use FCST_VAR1_OPTIONS = convert(x) = KM_to_M(x); ?
I can not find such a function in the METplus doc.
Can you show me the list of functions for convert(x) in METplus?
If have no KM_to_M(x), can I define a function (y=1000*x) in METplus?
Thanks!
Binbin
----------------------------------------------------------------
Complete Ticket History
----------------------------------------------------------------
Subject: convert(x) used in METPlus
From: George McCabe
Time: Tue Dec 22 14:59:13 2020
Hi Binbin,
There is a list of pre-defined convert functions here:
https://github.com/dtcenter/MET/blob/main_v9.1/met/data/config/ConfigConstants
However, it looks like there is not a function for the conversion you
need. Since that is the case, you can set the following:
FCST_VAR1_OPTIONS = convert(x) = 1000*x;
That should give you the result you need.
Let me know if that doesn't work or if you have any other questions.
Thanks,
George
On Tue Dec 22 14:57:55 2020, mccabe wrote:
> George,
>
> I'd like to know the usage of convert(x) in METPlus.
> For example, I want to convert the fcst data from km to m,
> Can I use FCST_VAR1_OPTIONS = convert(x) = KM_to_M(x); ?
> I can not find such a function in the METplus doc.
> Can you show me the list of functions for convert(x) in METplus?
> If have no KM_to_M(x), can I define a function (y=1000*x) in
METplus?
>
> Thanks!
>
> Binbin
------------------------------------------------
Subject: convert(x) used in METPlus
From: Binbin.Zhou at noaa.gov
Time: Wed Dec 23 06:53:18 2020
George,
I'll test it,
Thanks!
Binbin
On Tue, Dec 22, 2020 at 4:59 PM George McCabe via RT
<met_help at ucar.edu>
wrote:
> Hi Binbin,
>
> There is a list of pre-defined convert functions here:
>
>
>
https://github.com/dtcenter/MET/blob/main_v9.1/met/data/config/ConfigConstants
>
> However, it looks like there is not a function for the conversion
you
> need. Since that is the case, you can set the following:
>
> FCST_VAR1_OPTIONS = convert(x) = 1000*x;
>
> That should give you the result you need.
>
> Let me know if that doesn't work or if you have any other questions.
>
> Thanks,
> George
>
> On Tue Dec 22 14:57:55 2020, mccabe wrote:
> > George,
> >
> > I'd like to know the usage of convert(x) in METPlus.
> > For example, I want to convert the fcst data from km to m,
> > Can I use FCST_VAR1_OPTIONS = convert(x) = KM_to_M(x); ?
> > I can not find such a function in the METplus doc.
> > Can you show me the list of functions for convert(x) in METplus?
> > If have no KM_to_M(x), can I define a function (y=1000*x) in
METplus?
> >
> > Thanks!
> >
> > Binbin
>
>
>
--
Binbin Zhou
IMSG at NOAA/NWS/NCEP/EMC
5830 University Research Ct.
College Park, MD 20740
Binbin.Zhou at noaa.gov
301-683-3683
------------------------------------------------
Subject: convert(x) used in METPlus
From: Binbin.Zhou at noaa.gov
Time: Mon Dec 28 06:49:27 2020
George,
The setting FCST_VAR1_OPTIONS = convert(x) = 1000*x; works fine!
Thanks!
Binbin
On Tue, Dec 22, 2020 at 4:59 PM George McCabe via RT
<met_help at ucar.edu>
wrote:
> Hi Binbin,
>
> There is a list of pre-defined convert functions here:
>
>
>
https://github.com/dtcenter/MET/blob/main_v9.1/met/data/config/ConfigConstants
>
> However, it looks like there is not a function for the conversion
you
> need. Since that is the case, you can set the following:
>
> FCST_VAR1_OPTIONS = convert(x) = 1000*x;
>
> That should give you the result you need.
>
> Let me know if that doesn't work or if you have any other questions.
>
> Thanks,
> George
>
> On Tue Dec 22 14:57:55 2020, mccabe wrote:
> > George,
> >
> > I'd like to know the usage of convert(x) in METPlus.
> > For example, I want to convert the fcst data from km to m,
> > Can I use FCST_VAR1_OPTIONS = convert(x) = KM_to_M(x); ?
> > I can not find such a function in the METplus doc.
> > Can you show me the list of functions for convert(x) in METplus?
> > If have no KM_to_M(x), can I define a function (y=1000*x) in
METplus?
> >
> > Thanks!
> >
> > Binbin
>
>
>
--
Binbin Zhou
IMSG at NOAA/NWS/NCEP/EMC
5830 University Research Ct.
College Park, MD 20740
Binbin.Zhou at noaa.gov
301-683-3683
------------------------------------------------
More information about the Met_help
mailing list