[Met_help] [rt.rap.ucar.edu #100368] History for replace character/value
John Halley Gotway via RT
met_help at ucar.edu
Mon Jul 12 11:16:09 MDT 2021
----------------------------------------------------------------
Initial Request
----------------------------------------------------------------
Hello,
I know I can use "censor_thresh" and "censor_val" to replace certain values
in the config file of MET, but how about some characters? Like "_" or "NA"
in the input file (NetCDF ), how to replace them to some certain value,
like 0? It seems it doesn't work if I do:
censor_thresh = [ _ ];
censor_val = [ 0 ];
Is it possible to replace that in MET?
Thank you
Binyu
----------------------------------------------------------------
Complete Ticket History
----------------------------------------------------------------
Subject: replace character/value
From: John Opatz
Time: Tue Jun 29 09:05:34 2021
Good morning Binyu,
Thank you for submitting your question. As it stands, I think that
replacing characters is beyond MET. You should be able to employ a
Python
script that does preprocessing for characters like "_" and "NA", but I
don't think MET does.
I'll assign this ticket to John HG for a more definitive answer, but
he
will not return to the office until after the 6th next month.
Thanks,
-John O.
On Mon, Jun 28, 2021 at 4:35 PM binyu.wang at noaa.gov via RT <
met_help at ucar.edu> wrote:
>
> Mon Jun 28 16:35:00 2021: Request 100368 was acted upon.
> Transaction: Ticket created by binyu.wang at noaa.gov
> Queue: met_help
> Subject: replace character/value
> Owner: Nobody
> Requestors: binyu.wang at noaa.gov
> Status: new
> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=100368 >
>
>
> Hello,
>
> I know I can use "censor_thresh" and "censor_val" to replace certain
values
> in the config file of MET, but how about some characters? Like "_"
or "NA"
> in the input file (NetCDF ), how to replace them to some certain
value,
> like 0? It seems it doesn't work if I do:
>
> censor_thresh = [ _ ];
> censor_val = [ 0 ];
> Is it possible to replace that in MET?
> Thank you
>
> Binyu
>
>
--
John Opatz
Associate Scientist III
NCAR RAL and DTC
Boulder, Colorado
+1 303-497-8305
------------------------------------------------
Subject: replace character/value
From: binyu.wang at noaa.gov
Time: Tue Jun 29 09:50:23 2021
Hello John,
Got it, thank you.
Binyu
On Tue, Jun 29, 2021 at 11:05 AM John Opatz via RT <met_help at ucar.edu>
wrote:
> Good morning Binyu,
>
> Thank you for submitting your question. As it stands, I think that
> replacing characters is beyond MET. You should be able to employ a
Python
> script that does preprocessing for characters like "_" and "NA", but
I
> don't think MET does.
>
> I'll assign this ticket to John HG for a more definitive answer, but
he
> will not return to the office until after the 6th next month.
>
> Thanks,
>
> -John O.
>
> On Mon, Jun 28, 2021 at 4:35 PM binyu.wang at noaa.gov via RT <
> met_help at ucar.edu> wrote:
>
> >
> > Mon Jun 28 16:35:00 2021: Request 100368 was acted upon.
> > Transaction: Ticket created by binyu.wang at noaa.gov
> > Queue: met_help
> > Subject: replace character/value
> > Owner: Nobody
> > Requestors: binyu.wang at noaa.gov
> > Status: new
> > Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=100368 >
> >
> >
> > Hello,
> >
> > I know I can use "censor_thresh" and "censor_val" to replace
certain
> values
> > in the config file of MET, but how about some characters? Like
"_" or
> "NA"
> > in the input file (NetCDF ), how to replace them to some certain
value,
> > like 0? It seems it doesn't work if I do:
> >
> > censor_thresh = [ _ ];
> > censor_val = [ 0 ];
> > Is it possible to replace that in MET?
> > Thank you
> >
> > Binyu
> >
> >
>
> --
> John Opatz
> Associate Scientist III
> NCAR RAL and DTC
> Boulder, Colorado
> +1 303-497-8305
>
>
------------------------------------------------
More information about the Met_help
mailing list