[Met_help] [rt.rap.ucar.edu #97763] History for How to use Indian_State shapefiles in MODE?
John Halley Gotway via RT
met_help at ucar.edu
Wed Feb 10 09:02:49 MST 2021
----------------------------------------------------------------
Initial Request
----------------------------------------------------------------
Dear MET Help,
I wanted to know can I use Indian_State shapefiles in MODE / MTD/
Wavelet_Stat etc?
* Regards*
===========================================
HARVIR SINGH / हरवीर सिंह
Project Scientist- 'C' / परियोजना वैज्ञानिक 'स'
National Centre for Medium Range Weather Forecasting / राष्ट्रीय
मध्यम अवधि मौसम पूर्वानुमान केन्द्र
(Ministry of Earth Sciences/पृथ्वी विज्ञान मंत्रालय )
A-50, Sector-62, NOIDA / ए-50, खण्ड-62 नोएडा,
UTTAR PRADESH /उत्तर प्रदेश
INDIA/ भारत
harvir at ncmrwf.gov.in,
Contact +91-120-2419443 (O), extn. 443
Mobile No. +91-9540042780
http://www.harvir007.webs.com
===========================================
----------------------------------------------------------------
Complete Ticket History
----------------------------------------------------------------
Subject: How to use Indian_State shapefiles in MODE?
From: John Halley Gotway
Time: Fri Dec 04 21:26:10 2020
Hello Harvir,
I see you have a question about changing the map data that's included
in
the plots created by MODE and Wavelet-Stat.
The default map data used when plotting data in these tools is defined
in a
file named "ConfigMapData":
https://github.com/dtcenter/MET/blob/main_v9.1/met/data/config/ConfigMapData
This specifies what map data is plotted and how it is formatted.
Unfortunately, the map data is NOT in shapefile format. Ideally it
would
be, but we haven't gotten around to making that change yet. However,
the
MET release does include the administrative boundaries for each
country,
including India:
https://github.com/dtcenter/MET/blob/main_v9.1/met/data/map/admin_by_country/admin_India_data
So I'd recommend copying/pasting the following configuration entries
to the
bottom of your MODE config file:
map_data = {
line_color = [ 25, 25, 25 ]; // rgb triple values, 0-255
line_width = 0.5;
line_dash = "";
source = [
{ file_name = "MET_BASE/map/country_data"; },
{ file_name = "MET_BASE/map/admin_by_country/admin_India_data";
},
{ file_name = "MET_BASE/map/major_lakes_data"; }
];
}
That'll result in maps like the one attached. As you can see, it now
includes the administrative boundaries of India. But unfortunately,
the
lines don't look all that great.
We do have a development utility called "make_mapefiles" which can
convert
shapefiles to the map data format that MET expects. While that code is
available in GitHub (
https://github.com/dtcenter/MET/blob/main_v9.1/met/src/tools/dev_utils/shapefiles/make_mapfiles.cc),
it is not bundled with and included in official release tarballs.
Hope that helps.
Thanks,
John Halley Gotway
[image: Screen Shot 2020-12-04 at 9.22.01 PM.png]
On Fri, Dec 4, 2020 at 1:24 AM HARVIR SINGH via RT <met_help at ucar.edu>
wrote:
>
> Fri Dec 04 01:24:32 2020: Request 97763 was acted upon.
> Transaction: Ticket created by harviriitkgp at gmail.com
> Queue: met_help
> Subject: How to use Indian_State shapefiles in MODE?
> Owner: Nobody
> Requestors: harviriitkgp at gmail.com
> Status: new
> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=97763 >
>
>
> Dear MET Help,
>
> I wanted to know can I use Indian_State shapefiles in MODE / MTD/
> Wavelet_Stat etc?
> * Regards*
> ===========================================
> HARVIR SINGH / हरवीर सिंह
> Project Scientist- 'C' / परियोजना वैज्ञानिक 'स'
> National Centre for Medium Range Weather Forecasting /
राष्ट्रीय
> मध्यम अवधि मौसम पूर्वानुमान केन्द्र
> (Ministry of Earth Sciences/पृथ्वी विज्ञान मंत्रालय )
> A-50, Sector-62, NOIDA / ए-50, खण्ड-62 नोएडा,
> UTTAR PRADESH /उत्तर प्रदेश
> INDIA/ भारत
> harvir at ncmrwf.gov.in,
> Contact +91-120-2419443 (O), extn. 443
> Mobile No. +91-9540042780
> http://www.harvir007.webs.com
> ===========================================
>
>
------------------------------------------------
More information about the Met_help
mailing list