[Met_help] [rt.rap.ucar.edu #74435] History for ascii2nc data format
Julie Prestopnik via RT
met_help at ucar.edu
Tue Dec 22 10:49:17 MST 2015
----------------------------------------------------------------
Initial Request
----------------------------------------------------------------
Hello,
Having just installed, tested and started to learn MET myself, I would like to work on the real observation data for local WRF output evaluation. Thinking about using ascii2nc, I reformat our Nepal meteorological observation data, but it looks like the format is not yet correct. So far, the error messages are:
$./bin/ascii2nc data/sample_obs/ascii/444040.asc \ out/ascii2nc/444040.nc
DEBUG 1: Config File: /home/vsurapipith/met-5.1_bugfix/share/met/config/Ascii2NcConfig_default
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr
Aborted (core dumped)
Here I attach the ascii file that I use as input, being aware that it is a bit different from the sample. Could you kindly spot for me the significant errors that are in the ascii file, such that I may correct efficiently, please?
Actually I'll appreciate if you may recommend the best data format to try for Nepal/Himalayan region. We collect a number of local observation in ISD format, but these have to be most effectively formatted.
Best wishes,
Vanisa
---
Vanisa Surapipith, Ph.D.
Atmospheric Modeller, Atmosphere Initiative, Water and Air Theme
International Centre for Integrated Mountain Development
GPO Box 3226, Kathmandu, Nepal
Tel +977-1-5003222 Ext 415 Fax +977-1-5003277 Web www.icimod.org<http://www.icimod.org/>
Connect to ICIMOD: [facebook16x16] <http://www.facebook.com/icimod> [twitter16x16] <http://www.twitter.com/icimod> [youtube16x16] <http://www.youtube.com/icimod>
----------------------------------------------------------------
Complete Ticket History
----------------------------------------------------------------
Subject: ascii2nc data format
From: Julie Prestopnik
Time: Thu Dec 17 10:49:31 2015
Hi Vanisa.
I see that you are having some problems with your data format for
ascii2nc. I have taken a look at the file you attached, and I do see
a few
problems.
The format of your file is very similar to the file format that will
work
for ascii2nc so I think I can safely assume that you have seen a
description of the necessary file format like the one described here:
http://www.dtcenter.org/met/users/support/online_tutorial/METv5.0/ascii2nc/index.php
One of the problems I see is the Valid_Time column which needs to have
valid times in the format YYYYMMDD_HHMMSS. For example, our sample
file
(data/sample_obs/ascii/sample_ascii_obs.txt) has valid time like:
20070331_120000
In your file I see a few different valid time problems. For example:
1990 210_ 60000
1990 215_ 0
1990 3 1_120000
1990 5 6_ 0
The valid time cannot contain any spaces and needs to have all fields
(year, month, day, two digit hour, two digit minute, two digit second)
listed as the example shown above from our sample file.
Another problem that I see is that there is no white space between the
Grib
Code and Level columns, and similarly there is no white space between
the
Level and the Height columns. So, for example, in your file I see:
11-999.91848.0
111014.41848.0
but I believe this should be:
11 -999.9 1848.0
11 1014.4 1848.0
I believe that once these issues are resolved the file format will
work
well for ascii2nc. Please let us know if you have any other questions
or
experience any other problems.
Thanks,
Julie
On Thu, Dec 17, 2015 at 4:02 AM, Vanisa Surapipith via RT
<met_help at ucar.edu
> wrote:
>
> Thu Dec 17 04:02:05 2015: Request 74435 was acted upon.
> Transaction: Ticket created by Vanisa.Surapipith at icimod.org
> Queue: met_help
> Subject: ascii2nc data format
> Owner: Nobody
> Requestors: Vanisa.Surapipith at icimod.org
> Status: new
> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=74435 >
>
>
> Hello,
>
> Having just installed, tested and started to learn MET myself, I
would
> like to work on the real observation data for local WRF output
evaluation.
> Thinking about using ascii2nc, I reformat our Nepal meteorological
> observation data, but it looks like the format is not yet correct.
So far,
> the error messages are:
>
> $./bin/ascii2nc data/sample_obs/ascii/444040.asc \
out/ascii2nc/444040.nc
> DEBUG 1: Config File:
> /home/vsurapipith/met-
5.1_bugfix/share/met/config/Ascii2NcConfig_default
> terminate called after throwing an instance of 'std::out_of_range'
> what(): basic_string::substr
> Aborted (core dumped)
>
> Here I attach the ascii file that I use as input, being aware that
it is a
> bit different from the sample. Could you kindly spot for me the
significant
> errors that are in the ascii file, such that I may correct
efficiently,
> please?
>
> Actually I'll appreciate if you may recommend the best data format
to try
> for Nepal/Himalayan region. We collect a number of local observation
in ISD
> format, but these have to be most effectively formatted.
>
> Best wishes,
> Vanisa
> ---
> Vanisa Surapipith, Ph.D.
> Atmospheric Modeller, Atmosphere Initiative, Water and Air Theme
> International Centre for Integrated Mountain Development
> GPO Box 3226, Kathmandu, Nepal
> Tel +977-1-5003222 Ext 415 Fax +977-1-5003277 Web www.icimod.org<
> http://www.icimod.org/>
> Connect to ICIMOD: [facebook16x16] <http://www.facebook.com/icimod>
> [twitter16x16] <http://www.twitter.com/icimod> [youtube16x16] <
> http://www.youtube.com/icimod>
>
>
>
--
Julie Prestopnik
National Center for Atmospheric Research
Research Applications Laboratory
Phone: 303.497.8399
Email: jpresto at ucar.edu
------------------------------------------------
Subject: RE: [rt.rap.ucar.edu #74435] ascii2nc data format
From: Vanisa Surapipith
Time: Tue Dec 22 03:10:08 2015
Thank you very much, Julie. I have then rewritten the reformatting
code, and now got the correct text files that went through with
ascii2nc.
Wishing there a happy Winter Solstice & coming Xmas!
Best wishes,
Vanisa
-----Original Message-----
From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
Sent: 17 December 2015 23:35
To: Vanisa Surapipith
Subject: Re: [rt.rap.ucar.edu #74435] ascii2nc data format
Hi Vanisa.
I see that you are having some problems with your data format for
ascii2nc. I have taken a look at the file you attached, and I do see
a few problems.
The format of your file is very similar to the file format that will
work for ascii2nc so I think I can safely assume that you have seen a
description of the necessary file format like the one described here:
http://www.dtcenter.org/met/users/support/online_tutorial/METv5.0/ascii2nc/index.php
One of the problems I see is the Valid_Time column which needs to have
valid times in the format YYYYMMDD_HHMMSS. For example, our sample
file
(data/sample_obs/ascii/sample_ascii_obs.txt) has valid time like:
20070331_120000
In your file I see a few different valid time problems. For example:
1990 210_ 60000
1990 215_ 0
1990 3 1_120000
1990 5 6_ 0
The valid time cannot contain any spaces and needs to have all fields
(year, month, day, two digit hour, two digit minute, two digit second)
listed as the example shown above from our sample file.
Another problem that I see is that there is no white space between the
Grib Code and Level columns, and similarly there is no white space
between the Level and the Height columns. So, for example, in your
file I see:
11-999.91848.0
111014.41848.0
but I believe this should be:
11 -999.9 1848.0
11 1014.4 1848.0
I believe that once these issues are resolved the file format will
work well for ascii2nc. Please let us know if you have any other
questions or experience any other problems.
Thanks,
Julie
On Thu, Dec 17, 2015 at 4:02 AM, Vanisa Surapipith via RT
<met_help at ucar.edu
> wrote:
>
> Thu Dec 17 04:02:05 2015: Request 74435 was acted upon.
> Transaction: Ticket created by Vanisa.Surapipith at icimod.org
> Queue: met_help
> Subject: ascii2nc data format
> Owner: Nobody
> Requestors: Vanisa.Surapipith at icimod.org
> Status: new
> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=74435
> >
>
>
> Hello,
>
> Having just installed, tested and started to learn MET myself, I
would
> like to work on the real observation data for local WRF output
evaluation.
> Thinking about using ascii2nc, I reformat our Nepal meteorological
> observation data, but it looks like the format is not yet correct.
So
> far, the error messages are:
>
> $./bin/ascii2nc data/sample_obs/ascii/444040.asc \
> out/ascii2nc/444040.nc DEBUG 1: Config File:
> /home/vsurapipith/met-
5.1_bugfix/share/met/config/Ascii2NcConfig_defau
> lt terminate called after throwing an instance of
'std::out_of_range'
> what(): basic_string::substr
> Aborted (core dumped)
>
> Here I attach the ascii file that I use as input, being aware that
it
> is a bit different from the sample. Could you kindly spot for me the
> significant errors that are in the ascii file, such that I may
correct
> efficiently, please?
>
> Actually I'll appreciate if you may recommend the best data format
to
> try for Nepal/Himalayan region. We collect a number of local
> observation in ISD format, but these have to be most effectively
formatted.
>
> Best wishes,
> Vanisa
> ---
> Vanisa Surapipith, Ph.D.
> Atmospheric Modeller, Atmosphere Initiative, Water and Air Theme
> International Centre for Integrated Mountain Development GPO Box
3226,
> Kathmandu, Nepal Tel +977-1-5003222 Ext 415 Fax +977-1-5003277 Web
> www.icimod.org< http://www.icimod.org/> Connect to ICIMOD:
> [facebook16x16] <http://www.facebook.com/icimod>
> [twitter16x16] <http://www.twitter.com/icimod> [youtube16x16] <
> http://www.youtube.com/icimod>
>
>
>
--
Julie Prestopnik
National Center for Atmospheric Research Research Applications
Laboratory
Phone: 303.497.8399
Email: jpresto at ucar.edu
------------------------------------------------
Subject: ascii2nc data format
From: Julie Prestopnik
Time: Tue Dec 22 10:49:05 2015
Hi Vanisa. I am glad to hear that you were successful in preparing
the
correct format for input to ascii2nc!
I wish you a happy Winter Solstice and a Merry Christmas as well!
Julie
On Tue, Dec 22, 2015 at 3:10 AM, Vanisa Surapipith via RT
<met_help at ucar.edu
> wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=74435 >
>
> Thank you very much, Julie. I have then rewritten the reformatting
code,
> and now got the correct text files that went through with ascii2nc.
>
> Wishing there a happy Winter Solstice & coming Xmas!
>
> Best wishes,
> Vanisa
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: 17 December 2015 23:35
> To: Vanisa Surapipith
> Subject: Re: [rt.rap.ucar.edu #74435] ascii2nc data format
>
> Hi Vanisa.
>
> I see that you are having some problems with your data format for
> ascii2nc. I have taken a look at the file you attached, and I do
see a few
> problems.
>
> The format of your file is very similar to the file format that will
work
> for ascii2nc so I think I can safely assume that you have seen a
> description of the necessary file format like the one described
here:
>
>
>
http://www.dtcenter.org/met/users/support/online_tutorial/METv5.0/ascii2nc/index.php
>
> One of the problems I see is the Valid_Time column which needs to
have
> valid times in the format YYYYMMDD_HHMMSS. For example, our sample
file
> (data/sample_obs/ascii/sample_ascii_obs.txt) has valid time like:
>
> 20070331_120000
>
> In your file I see a few different valid time problems. For
example:
>
> 1990 210_ 60000
> 1990 215_ 0
> 1990 3 1_120000
> 1990 5 6_ 0
>
> The valid time cannot contain any spaces and needs to have all
fields
> (year, month, day, two digit hour, two digit minute, two digit
second)
> listed as the example shown above from our sample file.
>
> Another problem that I see is that there is no white space between
the
> Grib Code and Level columns, and similarly there is no white space
between
> the Level and the Height columns. So, for example, in your file I
see:
>
> 11-999.91848.0
> 111014.41848.0
>
> but I believe this should be:
>
> 11 -999.9 1848.0
> 11 1014.4 1848.0
>
> I believe that once these issues are resolved the file format will
work
> well for ascii2nc. Please let us know if you have any other
questions or
> experience any other problems.
>
> Thanks,
> Julie
>
> On Thu, Dec 17, 2015 at 4:02 AM, Vanisa Surapipith via RT <
> met_help at ucar.edu
> > wrote:
>
> >
> > Thu Dec 17 04:02:05 2015: Request 74435 was acted upon.
> > Transaction: Ticket created by Vanisa.Surapipith at icimod.org
> > Queue: met_help
> > Subject: ascii2nc data format
> > Owner: Nobody
> > Requestors: Vanisa.Surapipith at icimod.org
> > Status: new
> > Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=74435
> > >
> >
> >
> > Hello,
> >
> > Having just installed, tested and started to learn MET myself, I
would
> > like to work on the real observation data for local WRF output
> evaluation.
> > Thinking about using ascii2nc, I reformat our Nepal meteorological
> > observation data, but it looks like the format is not yet correct.
So
> > far, the error messages are:
> >
> > $./bin/ascii2nc data/sample_obs/ascii/444040.asc \
> > out/ascii2nc/444040.nc DEBUG 1: Config File:
> > /home/vsurapipith/met-
5.1_bugfix/share/met/config/Ascii2NcConfig_defau
> > lt terminate called after throwing an instance of
'std::out_of_range'
> > what(): basic_string::substr
> > Aborted (core dumped)
> >
> > Here I attach the ascii file that I use as input, being aware that
it
> > is a bit different from the sample. Could you kindly spot for me
the
> > significant errors that are in the ascii file, such that I may
correct
> > efficiently, please?
> >
> > Actually I'll appreciate if you may recommend the best data format
to
> > try for Nepal/Himalayan region. We collect a number of local
> > observation in ISD format, but these have to be most effectively
> formatted.
> >
> > Best wishes,
> > Vanisa
> > ---
> > Vanisa Surapipith, Ph.D.
> > Atmospheric Modeller, Atmosphere Initiative, Water and Air Theme
> > International Centre for Integrated Mountain Development GPO Box
3226,
> > Kathmandu, Nepal Tel +977-1-5003222 Ext 415 Fax +977-1-5003277 Web
> > www.icimod.org< http://www.icimod.org/> Connect to ICIMOD:
> > [facebook16x16] <http://www.facebook.com/icimod>
> > [twitter16x16] <http://www.twitter.com/icimod> [youtube16x16] <
> > http://www.youtube.com/icimod>
> >
> >
> >
>
>
> --
> Julie Prestopnik
> National Center for Atmospheric Research Research Applications
Laboratory
> Phone: 303.497.8399
> Email: jpresto at ucar.edu
>
>
>
>
--
Julie Prestopnik
National Center for Atmospheric Research
Research Applications Laboratory
Phone: 303.497.8399
Email: jpresto at ucar.edu
------------------------------------------------
More information about the Met_help
mailing list