[Met_help] [rt.rap.ucar.edu #78738] History for reducing the content of the *_obj.txt output files

John Halley Gotway via RT met_help at ucar.edu
Wed Jul 10 17:04:08 MDT 2019


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


To whom it may concern,

i would like to limit the contents of the file *_obj.txt to what 
concerns the paired clusters, namely the columns corresponding to the 
following metrics:

CLUS PAIR
CEN DIST
ANG DIFF
FCST AREA
OBS AREA
INTER AREA
UNION AREA
SYMM DIFF
FCST INT 50
OBS INT 50
FCST INT 90
OBS INT 90
TOT INTR

is this possible?

thanks

best regards

Antonio Parodi



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

Subject: reducing the content of the *_obj.txt output files
From: Tara Jensen
Time: Mon Nov 21 17:30:17 2016

Antonio,

I see that you are using MODE and would like to have it write out only
selected fields.  At this time we do not have that capability so you
will
have to filter the output using some other utility, e.g. grep.  We
will
take your request as a potential enhancement to consider for a future
release.

Please let us know if you have any other questions.

Thanks,
Tara

On Mon, Nov 21, 2016 at 4:41 PM, Antonio Parodi via RT
<met_help at ucar.edu>
wrote:

>
> Mon Nov 21 16:41:34 2016: Request 78738 was acted upon.
> Transaction: Ticket created by Antonio.parodi at cimafoundation.org
>        Queue: met_help
>      Subject: reducing the content of the *_obj.txt output files
>        Owner: Nobody
>   Requestors: Antonio.parodi at cimafoundation.org
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78738 >
>
>
>
> To whom it may concern,
>
> i would like to limit the contents of the file *_obj.txt to what
> concerns the paired clusters, namely the columns corresponding to
the
> following metrics:
>
> CLUS PAIR
> CEN DIST
> ANG DIFF
> FCST AREA
> OBS AREA
> INTER AREA
> UNION AREA
> SYMM DIFF
> FCST INT 50
> OBS INT 50
> FCST INT 90
> OBS INT 90
> TOT INTR
>
> is this possible?
>
> thanks
>
> best regards
>
> Antonio Parodi
>
>
>


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tara Jensen
Project Manager II
NCAR RAL and DTC
PO Box 3000, Boulder, Colorado 80307 USA
+1 303-497-8479          jensen at ucar.edu

------------------------------------------------
Subject: reducing the content of the *_obj.txt output files
From: John Halley Gotway
Time: Mon Nov 21 21:30:28 2016

Antonio,

I agree with Tara.  It should be fairly easy to strip the information
you
want out of the existing MODE output files.

First, let's figure out the index of the column numbers you want.
I'll
just use a sample MODE output file and examine the header row:

head -1 mode_120000L_20050807_120000V_000000A_obj.txt | sed -r 's/
+/\n/g'
| nl

Here's a subset of what those columns are numbered:

    40 CENTROID_DIST

    41 BOUNDARY_DIST

    42 CONVEX_HULL_DIST

    43 ANGLE_DIFF

    44 AREA_RATIO

    45 INTERSECTION_AREA

    46 UNION_AREA

Next, you're looking for cluster pair lines, and presumably, also the
header row.  Cluster pair lines have "CF###_CO###" in them, so we'll
grep
for that along with the word "VERSION" from the header line:

egrep "CF[0-9][0-9][0-9]_CO[0-9][0-9][0-9]|VERSION"
mode_120000L_20050807_120000V_000000A_obj.txt

After selecting the rows of interest, we'll select out the columns of
interest using awk:

egrep "CF[0-9][0-9][0-9]_CO[0-9][0-9][0-9]|VERSION"
mode_120000L_20050807_120000V_000000A_obj.txt | awk '{print
$40,$41,$42}'

All you'd need to do is list the column numbers you'd like to dump
out.  In
the above example, I've picked columns 40, 41, and 42.

Alternatively, if you are familiar with R, on the following page you
can
find a sample Rscript named "mode_summary.R":

http://www.dtcenter.org/met/users/downloads/analysis_scripts.php

That script reads one or more MODE output files, classifies the line
types,
and dumps out summary information.  You might be able to adapt it for
the
analysis you're doing.

Hope that helps.

Thanks,
John Halley Gotway


On Mon, Nov 21, 2016 at 5:30 PM, Tara Jensen via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78738 >
>
> Antonio,
>
> I see that you are using MODE and would like to have it write out
only
> selected fields.  At this time we do not have that capability so you
will
> have to filter the output using some other utility, e.g. grep.  We
will
> take your request as a potential enhancement to consider for a
future
> release.
>
> Please let us know if you have any other questions.
>
> Thanks,
> Tara
>
> On Mon, Nov 21, 2016 at 4:41 PM, Antonio Parodi via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > Mon Nov 21 16:41:34 2016: Request 78738 was acted upon.
> > Transaction: Ticket created by Antonio.parodi at cimafoundation.org
> >        Queue: met_help
> >      Subject: reducing the content of the *_obj.txt output files
> >        Owner: Nobody
> >   Requestors: Antonio.parodi at cimafoundation.org
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78738 >
> >
> >
> >
> > To whom it may concern,
> >
> > i would like to limit the contents of the file *_obj.txt to what
> > concerns the paired clusters, namely the columns corresponding to
the
> > following metrics:
> >
> > CLUS PAIR
> > CEN DIST
> > ANG DIFF
> > FCST AREA
> > OBS AREA
> > INTER AREA
> > UNION AREA
> > SYMM DIFF
> > FCST INT 50
> > OBS INT 50
> > FCST INT 90
> > OBS INT 90
> > TOT INTR
> >
> > is this possible?
> >
> > thanks
> >
> > best regards
> >
> > Antonio Parodi
> >
> >
> >
>
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Tara Jensen
> Project Manager II
> NCAR RAL and DTC
> PO Box 3000, Boulder, Colorado 80307 USA
> +1 303-497-8479          jensen at ucar.edu
>
>

------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #78738] reducing the content of the *_obj.txt output files
From: Antonio Parodi
Time: Mon Nov 21 22:53:22 2016

Dear All

thanks a lot for your help and suggestions.

I will try both grep and R, i was also looking around for something
with
matlab, but probably i have to write it on my own.

Thanks

best regards

Antonio


Il 22/11/16 05:30, John Halley Gotway via RT ha scritto:
> Antonio,
>
> I agree with Tara.  It should be fairly easy to strip the
information you
> want out of the existing MODE output files.
>
> First, let's figure out the index of the column numbers you want.
I'll
> just use a sample MODE output file and examine the header row:
>
> head -1 mode_120000L_20050807_120000V_000000A_obj.txt | sed -r 's/
+/\n/g'
> | nl
>
> Here's a subset of what those columns are numbered:
>
>      40 CENTROID_DIST
>
>      41 BOUNDARY_DIST
>
>      42 CONVEX_HULL_DIST
>
>      43 ANGLE_DIFF
>
>      44 AREA_RATIO
>
>      45 INTERSECTION_AREA
>
>      46 UNION_AREA
>
> Next, you're looking for cluster pair lines, and presumably, also
the
> header row.  Cluster pair lines have "CF###_CO###" in them, so we'll
grep
> for that along with the word "VERSION" from the header line:
>
> egrep "CF[0-9][0-9][0-9]_CO[0-9][0-9][0-9]|VERSION"
> mode_120000L_20050807_120000V_000000A_obj.txt
>
> After selecting the rows of interest, we'll select out the columns
of
> interest using awk:
>
> egrep "CF[0-9][0-9][0-9]_CO[0-9][0-9][0-9]|VERSION"
> mode_120000L_20050807_120000V_000000A_obj.txt | awk '{print
$40,$41,$42}'
>
> All you'd need to do is list the column numbers you'd like to dump
out.  In
> the above example, I've picked columns 40, 41, and 42.
>
> Alternatively, if you are familiar with R, on the following page you
can
> find a sample Rscript named "mode_summary.R":
>
> http://www.dtcenter.org/met/users/downloads/analysis_scripts.php
>
> That script reads one or more MODE output files, classifies the line
types,
> and dumps out summary information.  You might be able to adapt it
for the
> analysis you're doing.
>
> Hope that helps.
>
> Thanks,
> John Halley Gotway
>
>
> On Mon, Nov 21, 2016 at 5:30 PM, Tara Jensen via RT
<met_help at ucar.edu>
> wrote:
>
>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78738 >
>>
>> Antonio,
>>
>> I see that you are using MODE and would like to have it write out
only
>> selected fields.  At this time we do not have that capability so
you will
>> have to filter the output using some other utility, e.g. grep.  We
will
>> take your request as a potential enhancement to consider for a
future
>> release.
>>
>> Please let us know if you have any other questions.
>>
>> Thanks,
>> Tara
>>
>> On Mon, Nov 21, 2016 at 4:41 PM, Antonio Parodi via RT
<met_help at ucar.edu>
>> wrote:
>>
>>> Mon Nov 21 16:41:34 2016: Request 78738 was acted upon.
>>> Transaction: Ticket created by Antonio.parodi at cimafoundation.org
>>>         Queue: met_help
>>>       Subject: reducing the content of the *_obj.txt output files
>>>         Owner: Nobody
>>>    Requestors: Antonio.parodi at cimafoundation.org
>>>        Status: new
>>>   Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78738 >
>>>
>>>
>>>
>>> To whom it may concern,
>>>
>>> i would like to limit the contents of the file *_obj.txt to what
>>> concerns the paired clusters, namely the columns corresponding to
the
>>> following metrics:
>>>
>>> CLUS PAIR
>>> CEN DIST
>>> ANG DIFF
>>> FCST AREA
>>> OBS AREA
>>> INTER AREA
>>> UNION AREA
>>> SYMM DIFF
>>> FCST INT 50
>>> OBS INT 50
>>> FCST INT 90
>>> OBS INT 90
>>> TOT INTR
>>>
>>> is this possible?
>>>
>>> thanks
>>>
>>> best regards
>>>
>>> Antonio Parodi
>>>
>>>
>>>
>>
>> --
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Tara Jensen
>> Project Manager II
>> NCAR RAL and DTC
>> PO Box 3000, Boulder, Colorado 80307 USA
>> +1 303-497-8479          jensen at ucar.edu
>>
>>


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


More information about the Met_help mailing list