<br>Hi!<br><br>If you could, you may need to be more specific about the MODIS data you are using. I haven't been able to get MODIS L2 data into grads directly, but MODIS L3 data can be read into grads, with the right xdf file
<br><br>Below are two examples, the first opens MODIS MOD11C1 data (Land surface Temperature, daily 0.05 degree grid), and the second opens MOD08(Monthly 1 degree atmospheric water vapor) the grads call to "open" opens these data.
<br><br>I've used HDFLook to dump L2 granules to a binary that can be opened in Grads, but that is rather tedious. There are probably better ways for L2.<br><br>Mike<br><br>DSET MOD11/data/Y2004/M%m2/MOD11C1.A2004%m2%d2.004.hdf
<br>title MODIS Land Surface Temperature (LST) CMG v4 <br>DTYPE hdfsds<br>OPTIONS yrev template<br>unpack scale_factor add_offset<br>undef -999.0<br>XDEF 7200 linear -180 0.05<br>YDEF 3600 linear -90 0.05<br>ZDEF 1 linear 1 1
<br>TDEF 31 linear 01JUL2004 1dy<br>VARS 6<br>LST_Day_CMG=>LSTDay 0 y,x Daily daytime 3min CMG Land-surface Temp<br>LST_Night_CMG=>LSTNite 0 y,x Daily nighttime 3min CMG Land-surface Temp<br>QC_Day=>QCDay 0 y,x Quality control for daytime LST and emissivity
<br>QC_Night=>QCNite 0 y,x Quality control for nighttime LST and emissivity<br>Day_view_time=>DayTime 0 y,x Time of daytime LST observation (UTC)<br>Night_view_time=>NiteTime 0 y,x Time of nighttime LST observation (UTC)
<br>ENDVARS<br><br>-------------------------------------------------<br><br>DSET MOD08/MOD08_M3.A%y4%m2.004.hdf<br>dtype hdfsds<br>title MODIS MOD08 Atmosphere monthly 1 degree CMG<br>UNDEF 0 _FillValue<br>unpack scale_factor add_offset
<br>OPTIONS yrev template<br>XDEF 360 linear -180 1.00<br>YDEF 180 linear -90 1.00<br>ZDEF 1 linear 1 1<br>TDEF 75 linear 01MAY2000 1mo<br>VARS 1<br>Atmospheric_Water_Vapor_Mean_Mean=>tcwcm 0 y,x Total Column Precipitable Water V
<br>apor -- IR Retrieval: Mean of Daily Mean<br>ENDVARS<br><br><br><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>From: Jayakrishnan PR <<a href="mailto:prjayakrishnan@gmail.com">prjayakrishnan@gmail.com</a>><br>Date: Nov 30, 2007 11:46 AM<br>Subject: Re: MODIS HDF<br>To: <a href="mailto:GRADSUSR@list.cineca.it">GRADSUSR@list.cineca.it
</a><br><br><br>Dear Mr.Jean,<br> Last six months I was trying to plot MODIS data in Grads.<br>Today I succeeded with the help of grads user group and some of my<br>friends. There is two ways to plot the MODIS HDF data.
<br>1) Firstly convert the hdf data into ascii form using any software<br>such as ENVI, HDF explorer, etc.<br>2) Using the ascii code we are able to know the latitude, longitude<br>and the parameter at different heights.<br>
3) Construct a fortran program which will convert this data into<br>station format and I have also written a c program which will convert<br>the out put of fortran into station data format.<br>4) Now write a ctl file for the station data
<br>5) Run the station map utility using the command stnmap -i stnexample.ctl<br>6)open the ctl file in grads<br>7)plot the data. Now set gxout stnmark<br>8) then set cmark 11( or something)<br> set digsiz 0.14<br> now display and it will give the values in the data points as
<br>markers. This is a quite good approach because we are not doing any<br>interpolation techniques. Just the pure data.<br><br>There is another way also. We can directly plot the hdf files in<br>grads. For that we have to write a Data descriptor file. That I am
<br>trying now. Yet not succeeded. If you succeeded first, please let me<br>know.<br> If you want the program or ctl files that I have used dont<br>hesitate to ask me.<br>sincerely<br><br><br><br><br><br>On Nov 30, 2007 9:55 PM, Jean Pierre Arabonis <
<a href="mailto:arabonis@egs.uct.ac.za">arabonis@egs.uct.ac.za</a>> wrote:<br>><br>> I tried using grads for the modis data some years ago with no success, I ended up using Envi - interestingly if you re-save the data as hdf in Envi then you can open it with grads. I suspect is is some incompatibility with the file format.
<br>> Please let me know if you do find a solution<br>> Good Luck<br>> JP<br>><br>><br>><br>><br>><br>> Jayakrishnan PR wrote:<br>> On Fri, 25 Apr 2003 11:28:34 -0000, Pawan Gupta <
<a href="mailto:pawanpgupta@REDIFFMAIL.COM">pawanpgupta@REDIFFMAIL.COM</a>><br>> wrote:<br>><br>><br>><br>> Dear Friends<br>> Can you help me in displaying MODIS HDF format<br>><br>> Thanks<br>> pawan
<br>><br>> ********************************************************************<br>><br>> Dear Pawan,<br>> I also now facing the same problem to analyse MODIS data in hdf format<br>> using grads. If you got the solution, kindly help me.
<br>><br>><br>><br>><br>> --<br>> Jean Pierre Arabonis<br>> <a href="mailto:arabonis@egs.uct.ac.za">arabonis@egs.uct.ac.za</a><br>> Tel 021 780 1021 cell 084 401 1365<br>> This email is 100% Microsoft Free
<br>><br>><br><br></blockquote></div><br>