[Met_help] FW: You have been unsubscribed from the Met_help mailing list

John Halley Gotway johnhg at ucar.edu
Wed Nov 4 08:30:52 MST 2009


Jon,

Unfortunately, this is a bit messier than I'd like.  The MODE-Analysis tool simply parses MODE output lines and extracts the valid times from those output lines.  However, if no objects are identified
in a MODE run, it'll create an output file that contains no lines (other than the header line).  And the MODE-Analysis tool won't have anything to parse.

The only alternative I see is to have the MODE-Analysis tool also parse the valid times from the MODE output file name itself.  However, this is something we always try to avoid.  We don't like
relying on information being stored in filenames as they can easily be changed.

I've made a quick and dirty fix for this and have attached the file you'll need.  But we'll discuss how we'd like to handle this in the next release of MET.  Hopefully we can come up with a more
robust way of handling this case without relying on info in the filename.

Please place the attached file "mode_job.cc" into the directory METv2.0/lib/vx_analysis_util.  Then from the top-level directory, do a "make clean", and then rebuild MET.

Listed below are the lines I added for this fix.  Please let me know if you have any more problems with this.

Thanks,
John

+++++++++++++++++++++++++++++++++++++

char tmp_str[16];

   //
   //  parse valid time from the filename
   //

c = mode_filename + strlen(mode_filename) - 32;

strncpy(tmp_str, c, 15);

tmp_str[15] = '\0';

t = (int) timestring_to_unix(tmp_str);

if ( !(valid_times.has(t)) )  {

   valid_times.add(t);
}

+++++++++++++++++++++++++++++++++++++

Case, Jonathan (MSFC-VP61)[Other] wrote:
> Take your time.  All I need is you to point us to where the code is to make that change.  It should be trivial, but I figure you know where in the code that write statement is a lot faster than if I searched the files!
> 
> Jonathan
> 
> --------------------------------------------------------------------------------------------------
> Jonathan Case, ENSCO Inc.
> NASA Short-term Prediction Research and Transition Center (aka SPoRT Center)
> 320 Sparkman Drive, Room 3062
> Huntsville, AL 35805
> Voice: 256.961.7504
> Fax: 256.961.7788
> Emails: Jonathan.Case-1 at nasa.gov / case.jonathan at ensco.com
> --------------------------------------------------------------------------------------------------
> 
> "Whether the weather is cold, or whether the weather is hot, we'll weather 
>   the weather whether we like it or not!"
> 
> 
> -----Original Message-----
> From: John Halley Gotway [mailto:johnhg at ucar.edu] 
> Sent: Wednesday, November 04, 2009 8:35 AM
> To: Case, Jonathan (MSFC-VP61)[Other]
> Cc: Randy Bullock
> Subject: Re: FW: You have been unsubscribed from the Met_help mailing list
> 
> Jon,
> 
> We were all out of town at a work retreat over the last 2 days, but I'm going through the met_help emails now.  I'll take a look at that and get back to you.
> 
> John
> 
> Case, Jonathan (MSFC-VP61)[Other] wrote:
>> John,
>>
>> I fully understand.  I just wasn't sure what happened because I received an unsubscribing email without explanation.  
>>
>> If possible, did you have a chance to look into my request for modifying the mode_analysis code slightly to output all 0's for forecast times when no forecast/observed objects occur?  This would greatly benefit us in working up a side-by-side dataset for doing a student t significance test.
>>
>> Many thanks!
>> Jonathan
>>
>> --------------------------------------------------------------------------------------------------
>> Jonathan Case, ENSCO Inc.
>> NASA Short-term Prediction Research and Transition Center (aka SPoRT Center)
>> 320 Sparkman Drive, Room 3062
>> Huntsville, AL 35805
>> Voice: 256.961.7504
>> Fax: 256.961.7788
>> Emails: Jonathan.Case-1 at nasa.gov / case.jonathan at ensco.com
>> --------------------------------------------------------------------------------------------------
>>
>> "Whether the weather is cold, or whether the weather is hot, we'll weather 
>>   the weather whether we like it or not!"
>>
>> -----Original Message-----
>> From: John Halley Gotway [mailto:johnhg at ucar.edu] 
>> Sent: Wednesday, November 04, 2009 8:29 AM
>> To: Case, Jonathan (MSFC-VP61)[Other]
>> Cc: tressa at ucar.edu
>> Subject: Re: FW: You have been unsubscribed from the Met_help mailing list
>>
>> Jon,
>>
>> We're in the process of transitioning our tools for met_help support.  We're moving from a mailing list setup to a ticketing system, which will help us track the support requests better.  I'm checking
>> into what options we have for "publishing" the support requests so that they're open for others to view.  I apologize for the inconvenience.  We're hoping this change will enable us to have multiple
>> people working to provide met_help support.
>>
>> Thanks,
>> John
>>
>> Case, Jonathan (MSFC-VP61)[Other] wrote:
>>> Hello John and Tressa,
>>>
>>> I just noticed the email I received below on 19 OCT, unsubscribing me from the met_help list.
>>> Just so you know, I didn't do anything to unsubscribe, so I'm wondering what may have happened?
>>>
>>> If you could, please re-subscribe me to your met_help list.
>>>
>>> Many thanks!
>>> Jon
>>>
>>> --------------------------------------------------------------------------------------------------
>>> Jonathan Case, ENSCO Inc.
>>> NASA Short-term Prediction Research and Transition Center (aka SPoRT Center)
>>> 320 Sparkman Drive, Room 3062
>>> Huntsville, AL 35805
>>> Voice: 256.961.7504
>>> Fax: 256.961.7788
>>> Emails: Jonathan.Case-1 at nasa.gov / case.jonathan at ensco.com
>>> --------------------------------------------------------------------------------------------------
>>>
>>> "Whether the weather is cold, or whether the weather is hot, we'll weather
>>>   the weather whether we like it or not!"
>>>
>>> From: met_help-bounces at mailman.ucar.edu [mailto:met_help-bounces at mailman.ucar.edu]
>>> Sent: Monday, October 19, 2009 10:42 AM
>>> To: Case, Jonathan (MSFC-VP61)[Other]
>>> Subject: You have been unsubscribed from the Met_help mailing list
>>>
>>>
>>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mode_job.cc
Type: text/x-c++src
Size: 17261 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/met_help/attachments/20091104/a7f519f4/attachment.bin 


More information about the Met_help mailing list