[Met_help] [rt.rap.ucar.edu #40632] History for draw_country_border_maps
RAL HelpDesk {for John Halley Gotway}
met_help at ucar.edu
Mon Sep 13 08:44:01 MDT 2010
----------------------------------------------------------------
Initial Request
----------------------------------------------------------------
Hi,
My second question:
- How to plot national boundaries - in MODE and wavelets tools ?
I have build my "rou_poly.nc" using "gen_poly_mask"
I have the country borders in different formats, but I dont't know how to
use it in this context.
Thank you very much for your help
Otilia Diaconu
National Meteorological Administration,
Romania
National Meteorological Administration Mail Server
Mail Scanned by NMA Antivirus Server
----------------------------------------------------------------
Complete Ticket History
----------------------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #40632] draw_country_border_maps
From: John Halley Gotway
Time: Fri Sep 10 16:44:00 2010
Otilia,
Sorry for the delay in getting back to you.
As you've noticed, when the MODE tool runs and creates PostScript
output, it plots the world coastlines and the states in the USA. The
plotting of the world outlines is performed by the draw_world()
routines in the file METv2.0/lib/vx_plot_util/vx_plot_util.cc. And
the world outline data that gets plotted by these routines is
contained in the file METv2.0/data/map/group3.
You're welcome to add more data to the end of that file to customize
it if you'd like. Each section of data in that file is used to fill
up a MapRegion structure. The MapRegion structure is defined
in the file METv2.0/lib/vx_plot_util/vx_plot_util.h:
struct MapRegion
{
int number;
int n_points;
int a;
int b;
int c;
double lat_max;
double lat_min;
double lon_max;
double lon_min;
double lat[max_region_points];
double lon[max_region_points];
};
If you add additional sections to this file, be sure to set:
- "number" as a unique identifier. Just set it to one value larger
than the previous section.
- "n_points" as the number of lat/lon points to follow.
- "a, b, c" - it doesn't really matter how these are set - just copy a
setting from above.
- "lat_max" and "lat_min" as the maximum and minimum latitude values
in your region.
- "lon_max" and "lon_min" as the maximum and minimum longitude values
in your region.
- "lat" and "lon" as a list of lat/lon points defining the boundary of
your region to be plotted.
Here's an example of a region from that group3 file:
1005 4 1 81 2 80.170 79.750 97.670 99.500
79.900 99.500
79.750 97.670
80.170 98.830
79.900 99.500
The region is numbered as 1005 and has 4 lat/lon points to follow.
"a, b, and c" are set as 1, 81, and 2 but MODE doesn't actually
currently use those values. And the min/max lat/lon values are
listed at the end of the first line, followed by the actual lat/lon's
to be plotted.
I'm not positive, but I believe that the longitude values are actually
in degrees-west, which is not typical.
Hope that helps. Also, please be aware that MODE also writes out a
NetCDF file containing the object field. And you're welcome to use
whatever tools you'd like to plot those object fields.
Thanks,
John Halley Gotway
met_help at ucar.edu
RAL HelpDesk {for otilia.diaconu} wrote:
> Thu Sep 09 00:14:30 2010: Request 40632 was acted upon.
> Transaction: Ticket created by otilia.diaconu at meteoromania.ro
> Queue: met_help
> Subject: draw_country_border_maps
> Owner: Nobody
> Requestors: otilia.diaconu at meteoromania.ro
> Status: new
> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=40632 >
>
>
> Hi,
> My second question:
> - How to plot national boundaries - in MODE and wavelets tools ?
> I have build my "rou_poly.nc" using "gen_poly_mask"
>
> I have the country borders in different formats, but I dont't know
how to
> use it in this context.
> Thank you very much for your help
>
> Otilia Diaconu
> National Meteorological Administration,
> Romania
>
> National Meteorological Administration Mail Server
> Mail Scanned by NMA Antivirus Server
------------------------------------------------
Subject: draw_country_border_maps
From: Otilia Diaconu
Time: Sun Sep 12 22:58:34 2010
Hi John,
Thank you very much. I have tried to add my data at the end of
group3 file
..but .. I haven't the necessary information about longitude
orientation.
So, now it's OK, it works. I have the map !
Problem solved.
Thanks again and, have a nice week
Otilia
On Sat, Sep 11, 2010 at 1:44 AM, RAL HelpDesk {for John Halley Gotway}
<
met_help at ucar.edu> wrote:
> Otilia,
>
> Sorry for the delay in getting back to you.
>
> As you've noticed, when the MODE tool runs and creates PostScript
output,
> it plots the world coastlines and the states in the USA. The
plotting of
> the world outlines is performed by the draw_world()
> routines in the file METv2.0/lib/vx_plot_util/vx_plot_util.cc. And
the
> world outline data that gets plotted by these routines is contained
in the
> file METv2.0/data/map/group3.
>
> You're welcome to add more data to the end of that file to customize
it if
> you'd like. Each section of data in that file is used to fill up a
> MapRegion structure. The MapRegion structure is defined
> in the file METv2.0/lib/vx_plot_util/vx_plot_util.h:
>
> struct MapRegion
> {
> int number;
> int n_points;
>
> int a;
> int b;
> int c;
>
> double lat_max;
> double lat_min;
>
> double lon_max;
> double lon_min;
>
> double lat[max_region_points];
> double lon[max_region_points];
> };
>
> If you add additional sections to this file, be sure to set:
> - "number" as a unique identifier. Just set it to one value larger
than
> the previous section.
> - "n_points" as the number of lat/lon points to follow.
> - "a, b, c" - it doesn't really matter how these are set - just copy
a
> setting from above.
> - "lat_max" and "lat_min" as the maximum and minimum latitude values
in
> your region.
> - "lon_max" and "lon_min" as the maximum and minimum longitude
values in
> your region.
> - "lat" and "lon" as a list of lat/lon points defining the boundary
of your
> region to be plotted.
>
> Here's an example of a region from that group3 file:
> 1005 4 1 81 2 80.170 79.750 97.670 99.500
> 79.900 99.500
> 79.750 97.670
> 80.170 98.830
> 79.900 99.500
>
> The region is numbered as 1005 and has 4 lat/lon points to follow.
"a, b,
> and c" are set as 1, 81, and 2 but MODE doesn't actually currently
use those
> values. And the min/max lat/lon values are
> listed at the end of the first line, followed by the actual
lat/lon's to be
> plotted.
>
> I'm not positive, but I believe that the longitude values are
actually in
> degrees-west, which is not typical.
>
> Hope that helps. Also, please be aware that MODE also writes out a
NetCDF
> file containing the object field. And you're welcome to use
whatever tools
> you'd like to plot those object fields.
>
> Thanks,
> John Halley Gotway
> met_help at ucar.edu
>
> RAL HelpDesk {for otilia.diaconu} wrote:
> > Thu Sep 09 00:14:30 2010: Request 40632 was acted upon.
> > Transaction: Ticket created by otilia.diaconu at meteoromania.ro
> > Queue: met_help
> > Subject: draw_country_border_maps
> > Owner: Nobody
> > Requestors: otilia.diaconu at meteoromania.ro
> > Status: new
> > Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=40632 >
> >
> >
> > Hi,
> > My second question:
> > - How to plot national boundaries - in MODE and wavelets tools ?
> > I have build my "rou_poly.nc" using "gen_poly_mask"
> >
> > I have the country borders in different formats, but I dont't
know how
> to
> > use it in this context.
> > Thank you very much for your help
> >
> > Otilia Diaconu
> > National Meteorological Administration,
> > Romania
> >
> > National Meteorological Administration Mail Server
> > Mail Scanned by NMA Antivirus Server
>
>
------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #40632] draw_country_border_maps
From: John Halley Gotway
Time: Mon Sep 13 08:43:55 2010
Otilia,
Great, glad you were able to figure it out!
Thanks,
John
RAL HelpDesk {for Otilia Diaconu} wrote:
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=40632 >
>
> Hi John,
> Thank you very much. I have tried to add my data at the end of
group3 file
> ..but .. I haven't the necessary information about longitude
orientation.
>
> So, now it's OK, it works. I have the map !
>
> Problem solved.
> Thanks again and, have a nice week
>
> Otilia
>
>
> On Sat, Sep 11, 2010 at 1:44 AM, RAL HelpDesk {for John Halley
Gotway} <
> met_help at ucar.edu> wrote:
>
>> Otilia,
>>
>> Sorry for the delay in getting back to you.
>>
>> As you've noticed, when the MODE tool runs and creates PostScript
output,
>> it plots the world coastlines and the states in the USA. The
plotting of
>> the world outlines is performed by the draw_world()
>> routines in the file METv2.0/lib/vx_plot_util/vx_plot_util.cc. And
the
>> world outline data that gets plotted by these routines is contained
in the
>> file METv2.0/data/map/group3.
>>
>> You're welcome to add more data to the end of that file to
customize it if
>> you'd like. Each section of data in that file is used to fill up a
>> MapRegion structure. The MapRegion structure is defined
>> in the file METv2.0/lib/vx_plot_util/vx_plot_util.h:
>>
>> struct MapRegion
>> {
>> int number;
>> int n_points;
>>
>> int a;
>> int b;
>> int c;
>>
>> double lat_max;
>> double lat_min;
>>
>> double lon_max;
>> double lon_min;
>>
>> double lat[max_region_points];
>> double lon[max_region_points];
>> };
>>
>> If you add additional sections to this file, be sure to set:
>> - "number" as a unique identifier. Just set it to one value larger
than
>> the previous section.
>> - "n_points" as the number of lat/lon points to follow.
>> - "a, b, c" - it doesn't really matter how these are set - just
copy a
>> setting from above.
>> - "lat_max" and "lat_min" as the maximum and minimum latitude
values in
>> your region.
>> - "lon_max" and "lon_min" as the maximum and minimum longitude
values in
>> your region.
>> - "lat" and "lon" as a list of lat/lon points defining the boundary
of your
>> region to be plotted.
>>
>> Here's an example of a region from that group3 file:
>> 1005 4 1 81 2 80.170 79.750 97.670 99.500
>> 79.900 99.500
>> 79.750 97.670
>> 80.170 98.830
>> 79.900 99.500
>>
>> The region is numbered as 1005 and has 4 lat/lon points to follow.
"a, b,
>> and c" are set as 1, 81, and 2 but MODE doesn't actually currently
use those
>> values. And the min/max lat/lon values are
>> listed at the end of the first line, followed by the actual
lat/lon's to be
>> plotted.
>>
>> I'm not positive, but I believe that the longitude values are
actually in
>> degrees-west, which is not typical.
>>
>> Hope that helps. Also, please be aware that MODE also writes out a
NetCDF
>> file containing the object field. And you're welcome to use
whatever tools
>> you'd like to plot those object fields.
>>
>> Thanks,
>> John Halley Gotway
>> met_help at ucar.edu
>>
>> RAL HelpDesk {for otilia.diaconu} wrote:
>>> Thu Sep 09 00:14:30 2010: Request 40632 was acted upon.
>>> Transaction: Ticket created by otilia.diaconu at meteoromania.ro
>>> Queue: met_help
>>> Subject: draw_country_border_maps
>>> Owner: Nobody
>>> Requestors: otilia.diaconu at meteoromania.ro
>>> Status: new
>>> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=40632 >
>>>
>>>
>>> Hi,
>>> My second question:
>>> - How to plot national boundaries - in MODE and wavelets tools ?
>>> I have build my "rou_poly.nc" using "gen_poly_mask"
>>>
>>> I have the country borders in different formats, but I dont't
know how
>> to
>>> use it in this context.
>>> Thank you very much for your help
>>>
>>> Otilia Diaconu
>>> National Meteorological Administration,
>>> Romania
>>>
>>> National Meteorological Administration Mail Server
>>> Mail Scanned by NMA Antivirus Server
>>
------------------------------------------------
More information about the Met_help
mailing list