Author Topic: how to show my output data in map like attached figure  (Read 4787 times)

varunesh

  • Team tributary
  • *
  • Karma: +0/-0
    • View Profile
how to show my output data in map like attached figure
« on: June 12, 2014, 02:19:03 PM »
ma'am/sir i want to plot my own output data like attached figure.please help me. how will do this. ma'am/sir i have 8 years annual time series of rainfall frequency and ma'am/sir my data size is (20x22x8)(lon,lat,time).
« Last Edit: June 14, 2014, 12:29:06 PM by varunesh »

Sat Kumar Tomer

  • Administrator
  • Team sea
  • *****
  • Karma: +116/-0
    • View Profile
    • ambhas
  • Institute : IISc
  • Programming language : R, Python and Matlab
Re: how to show my output data in map like attached figure
« Reply #1 on: June 12, 2014, 03:13:46 PM »
You can read the reply in this topic http://iisc-wree.com/forum/index.php?topic=426.0.

After reading the reply to post, please be more specific, where are you getting the problem e.g. in getting shape file for India, plotting shapefile, plotting filled contour or pcolor (pseudocolor) map?

varunesh

  • Team tributary
  • *
  • Karma: +0/-0
    • View Profile
Re: how to show my output data in map like attached figure
« Reply #2 on: June 12, 2014, 04:21:50 PM »
sir,i have already tried shape file. but simply plotting india map state wise but problem is that how to fill or plot output on map. i m unable to do this thing.

Sat Kumar Tomer

  • Administrator
  • Team sea
  • *****
  • Karma: +116/-0
    • View Profile
    • ambhas
  • Institute : IISc
  • Programming language : R, Python and Matlab
Re: how to show my output data in map like attached figure
« Reply #3 on: June 12, 2014, 06:39:55 PM »

varunesh

  • Team tributary
  • *
  • Karma: +0/-0
    • View Profile
Re: how to show my output data in map like attached figure
« Reply #4 on: June 12, 2014, 10:06:00 PM »
Thank you so much sir for your support.i saw contourfm function but sir i am confuse that how will use this for my data ? please  help me sir.i am new in this field.

Sat Kumar Tomer

  • Administrator
  • Team sea
  • *****
  • Karma: +116/-0
    • View Profile
    • ambhas
  • Institute : IISc
  • Programming language : R, Python and Matlab
Re: how to show my output data in map like attached figure
« Reply #5 on: June 13, 2014, 12:05:06 AM »
First you will have to make vector for the latitute (lat) and longitude (lon) for your data, then you can use the contourfm function in the below format:
Code: [Select]
contourfm(lat,lon,map)
map has to be a two dimension matrix. So either you can plot the average data (20X22), or you can create 8 maps separately for each time step.
« Last Edit: June 13, 2014, 12:08:15 AM by Sat Kumar Tomer »

varunesh

  • Team tributary
  • *
  • Karma: +0/-0
    • View Profile
Re: how to show my output data in map like attached figure
« Reply #6 on: June 13, 2014, 02:21:31 PM »
sir how will create vector form? i am attaching my output rainfall frequency file.

Sat Kumar Tomer

  • Administrator
  • Team sea
  • *****
  • Karma: +116/-0
    • View Profile
    • ambhas
  • Institute : IISc
  • Programming language : R, Python and Matlab
Re: how to show my output data in map like attached figure
« Reply #7 on: June 13, 2014, 03:45:26 PM »
I do not have Matlab, I can not open the file sent by you.

From where are you getting this file?
There should be some information to get the 20 values of lat and 22 values of lon.
 


varunesh

  • Team tributary
  • *
  • Karma: +0/-0
    • View Profile
Re: how to show my output data in map like attached figure
« Reply #8 on: June 14, 2014, 03:12:09 PM »
LON(X1) = X1 =

   68.9062
   70.3125
   71.7188
   73.1250
   74.5312
   75.9375
   77.3438
   78.7500
   80.1562
   81.5625
   82.9688
   84.3750
   85.7812
   87.1875
   88.5938
   90.0000
   91.4062
   92.8125
   94.2188
   95.6250

   AND LAT(Y1) =
7.7042
    9.1050
   10.5058
   11.9065
   13.3073
   14.7081
   16.1088
   17.5096
   18.9104
   20.3111
   21.7119
   23.1127
   24.5134
   25.9142
   27.3150
   28.7157
   30.1165
   31.5172
   32.9180
   34.3188
   35.7195
   37.1203




Sat Kumar Tomer

  • Administrator
  • Team sea
  • *****
  • Karma: +116/-0
    • View Profile
    • ambhas
  • Institute : IISc
  • Programming language : R, Python and Matlab
Re: how to show my output data in map like attached figure
« Reply #9 on: June 14, 2014, 07:14:06 PM »
So where is the problem. You have all the data, why can't you plot it?

varunesh

  • Team tributary
  • *
  • Karma: +0/-0
    • View Profile
Re: how to show my output data in map like attached figure
« Reply #10 on: June 15, 2014, 12:12:52 PM »
but sir how will plot time it mean 3rd variable.i am very confuse.my data size is (lon,lat,time) 3d.

Sat Kumar Tomer

  • Administrator
  • Team sea
  • *****
  • Karma: +116/-0
    • View Profile
    • ambhas
  • Institute : IISc
  • Programming language : R, Python and Matlab
Re: how to show my output data in map like attached figure
« Reply #11 on: June 15, 2014, 01:38:31 PM »
As I said previously, you can either plot their statistics (e.g. mean, std., etc.) over time, or you can make 8 plots.

varunesh

  • Team tributary
  • *
  • Karma: +0/-0
    • View Profile
Re: how to show my output data in map like attached figure
« Reply #12 on: June 17, 2014, 01:45:04 PM »
sir i am trying but i am unable to do this .pls can you hint me in long way? please sir

Sat Kumar Tomer

  • Administrator
  • Team sea
  • *****
  • Karma: +116/-0
    • View Profile
    • ambhas
  • Institute : IISc
  • Programming language : R, Python and Matlab
Re: how to show my output data in map like attached figure
« Reply #13 on: June 17, 2014, 08:19:26 PM »
If you are unable to plot in Matlab, then you should try to learn Matlab first.
You can follow some basic book of Matlab e.g. http://www.um.edu.ar/catedras/II012/document/basics.pdf.

If you face some problem in the code, we can help you.
But do not expect us to write the code for you.

varunesh

  • Team tributary
  • *
  • Karma: +0/-0
    • View Profile
Re: how to show my output data in map like attached figure
« Reply #14 on: June 17, 2014, 09:37:27 PM »
sorry sir but i am not talking about coding. i am asking about hint. there is some problem your are saying that take(lat,lon,map) but what is map? and my data is dependent on three variable (lon,lat,time).