Thank you Jim,<br><br>But when I abbreviate the name of variable as:<br><br>AELQA_Mean      0    1,  1,  0, 
    0 Surface pressure [hPa]<br><br>I receive this errror message:<br><br>Error: Variable aelqa_mean not in HDF-SDS file<br>Data Request Error:  Error for variable &#39;aelqa_mean&#39;<br>  Error ocurred at column 1<br>DISPLAY error:  Invalid expression<br>
  Expression = aelqa_mean<br><br><br>Any idea?<br><br>Thank you in advance,<br>Ehsan<br><br><br><br><div class="gmail_quote">On Sat, Oct 13, 2012 at 7:46 PM, James T. Potemra <span dir="ltr">&lt;<a href="mailto:jimp@hawaii.edu" target="_blank">jimp@hawaii.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Ehsan:<br>
    <br>
    I think there is a character limit on the variable name.  So, you
    have<br>
    a variable called &quot;Angstrom_Exponent_Land_QA_Mean&quot;, but GrADS<br>
    is looking for &quot;angstrom_expone&quot;.  Instead, you can map the variable<br>
    to something shorter (see
    <a href="http://www.iges.org/grads/gadoc/gadocindex.html" target="_blank">http://www.iges.org/grads/gadoc/gadocindex.html</a>),<br>
    e.g., in your ctl file:<br>
    <br>
    Angstrom_Exponent_Land_QA_Mean=&gt;AELQA_Mean      0    1,  1,  0, 
    0 Surface pressure [hPa]<br>
    <br>
    then open and display &quot;aelqa_mean&quot;, or whatever you call it.<br>
    <br>
    Jim<div><div class="h5"><br>
    <br>
    <div>On 10/13/12 1:54 PM, Ehsan Erfani
      wrote:<br>
    </div>
    <blockquote type="cite"><font><span style="font-size:10pt">Hi again,<br>
          <br>
          I attached an hdf file with a ctl (I downloaded the data from
          Giovanni website and I wrote the ctl). This time, the Grads
          can open the data, but when I write the command: d
          Angstrom_Exponent_Land_QA_Mean, This error message appears:<br>
          Syntax Error:  Invalid Operand<br>
            &#39;angstrom_exponent&#39; not a variable or function name<br>
            Error ocurred at column 1<br>
          DISPLAY error:  Invalid expression<br>
            Expression = angstrom_exponent_land_qa_mean<br>
          <br>
          But, I am sure the name of variable is true. I checked it by
          HDFView and this is the information from HDFView:<br>
          Angstrom_Exponent_Land_QA_Mean (720, 2)<br>
              32-bit floating-point,    180 x 360<br>
              Number of attributes = 18<br>
                  _FillValue = -9999.0<br>
                  QA_Useful_Flag_Bit = 0<br>
                  Quality_Assurance_Data_Set = Quality_Assurance_Land<br>
                  scale_factor = 1.0<br>
                  QA_Value_Start_Bit = 1<br>
                  add_offset = 0.0<br>
                  long_name = Angstrom exponent (Land) for 0.47 and 0.66
          microns: Level-2 QA Weighted Mean<br>
                  Statistic_Type = Simple<br>
                  units = unitless<br>
                  QA_Byte = 0<br>
                  Aggregation_Data_Set = None<br>
                  valid_range = -500,5000<br>
                  Included_Level_2_Nighttime_Data = False<br>
                  Derived_From_Level_2_Data_Set = Angstrom_Exponent_Land<br>
                  QA_Value_Num_Bits = 3<br>
                  Level_2_Pixel_Values_Read_As = Real<br>
                  structureType = Grid<br>
                  unitsCategory = exponent<br>
          <br>
          Hope these help to solve the problems. I appreciate all your
          consideration and help.<br>
          <br>
          Best regards,<br>
          Ehsan</span></font><br>
      <br>
      <div class="gmail_quote">On Sat, Oct 13, 2012 at 1:26 AM, Ehsan
        Erfani <span dir="ltr">&lt;<a href="mailto:e.erfani81@gmail.com" target="_blank">e.erfani81@gmail.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <font><span style="font-size:10pt">1- I used
              grads-2.0.a3.oga.1.win32_superpack (GrADS OPenNDAP). Also,
              I tried grads-2.0.1.oga.1-win32_superpack. <br>
              2- Both of them are opengrads and run in windows.<br>
              3- First, I want to open hdf data without ctl (I have a
              lot of data and they do not have similar variables). So, I
              consider using sdfopen to open the files.<br>
            </span></font><br>
          <font><span style="font-size:10pt"><font><span style="font-size:10pt">4- By using sdfopen, I received
                  these error message for the above grads versions,
                  respectively:
                  <div><br>
                    <br>
                    &quot;gradsdf : SDF file has no discernable X
                    coordinate.&quot;<br>
                    <br>
                  </div>
                  &quot;gadsdf: SDF file has no discernable X coordinate.<br>
                   To open this file with GrADS, use a descriptor file
                  with an XDEF entry.&quot;</span></font><br>
              <br>
              5- I used MODIS hdf files. A typical name of the files can
              be &quot;MOD08_D3.A2011152.051.2011153120457.hdf&quot;. I wanted to
              plot 550 nm AOD and deep blue AOD. These data are typical
              satellite data from terra or aqua.<br>
              I do not have access to linux to provide ncdump data.
              Anyway, the message would be very long and I write some
              first lines (containing the dimension and grid data) from 
              the HDF Import Tool and write the full message in the end:<br>
            </span></font><font><span style="font-size:10pt">Name:
              MERRA200.prod.assim.tavg1_2d_lnd_Nx.20000601.hdf
              HDFEOSVersion: HDFEOS_V2.14 StructMetadata.0:
              GROUP=SwathStructure END_GROUP=SwathStructure
              GROUP=GridStructure     GROUP=GRID_1        
              GridName=&quot;EOSGRID&quot;         XDim=540        
              YDim=361        
              UpperLeftPointMtrs=(-180000000.000000,90000000.000000)        
              LowerRightMtrs=(180000000.000000,-90000000.000000)        
              Projection=GCTP_GEO         GridOrigin=HDFE_GD_LL        
              GROUP=Dimension            
              OBJECT=Dimension_1                
              DimensionName=&quot;TIME&quot;                 Size=24            
              END_OBJECT=Dimension_1         END_GROUP=Dimension        
              GROUP=DataField            
              OBJECT=DataField_1                
              DataFieldName=&quot;GRN&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)
              3- I used sdfopen command to open them.<br>
              <br>
              Final word:<br>
              I know that the problem can be due to the dimension,
              however the dimension is defined in the data by XDim and
              YDim, Time.  I wonder does anyone successfully use GrADS
              to open hdf files by sdfopen command. Is a certain version
              of GrADS recommended to do this?<br>
              <br>
              Thank you in advance,<br>
              Ehsan<br>
              <br>
            </span></font><br>
          <div class="gmail_quote">
            <div>On Fri, Oct 12, 2012 at 10:53 AM, Jennifer
              Adams <span dir="ltr">&lt;<a href="mailto:jma@cola.iges.org" target="_blank">jma@cola.iges.org</a>&gt;</span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div style="word-wrap:break-word">Your post is missing
                  the following information:
                  <div>1. The version of GrADS you are running</div>
                  <div>2. What operating system you&#39;re running it on</div>
                  <div>3. The contents of your ctl file</div>
                  <div>4. The error message you get when you try to open
                    your ctl file</div>
                  <div>5. More information about the grid in your MODIS
                    file, especially the output from ncdump (which is
                    often enabled to handle HDF files)</div>
                  <div>
                    Nobody can help until you provide these things. </div>
                  <div>--Jennifer</div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                </div>
              </blockquote>
            </div>
            <div><br>
              <br>
              Name: MERRA200.prod.assim.tavg1_2d_lnd_Nx.20000601.hdf
              HDFEOSVersion: HDFEOS_V2.14 StructMetadata.0:
              GROUP=SwathStructure END_GROUP=SwathStructure
              GROUP=GridStructure     GROUP=GRID_1        
              GridName=&quot;EOSGRID&quot;         XDim=540        
              YDim=361        
              UpperLeftPointMtrs=(-180000000.000000,90000000.000000)        
              LowerRightMtrs=(180000000.000000,-90000000.000000)        
              Projection=GCTP_GEO         GridOrigin=HDFE_GD_LL        
              GROUP=Dimension            
              OBJECT=Dimension_1                
              DimensionName=&quot;TIME&quot;                 Size=24            
              END_OBJECT=Dimension_1         END_GROUP=Dimension        
              GROUP=DataField            
              OBJECT=DataField_1                
              DataFieldName=&quot;GRN&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_1            
              OBJECT=DataField_2                
              DataFieldName=&quot;LAI&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_2            
              OBJECT=DataField_3                
              DataFieldName=&quot;GWETROOT&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_3            
              OBJECT=DataField_4                
              DataFieldName=&quot;GWETTOP&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_4            
              OBJECT=DataField_5                
              DataFieldName=&quot;TPSNOW&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_5            
              OBJECT=DataField_6                
              DataFieldName=&quot;TUNST&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_6            
              OBJECT=DataField_7                
              DataFieldName=&quot;TSAT&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_7            
              OBJECT=DataField_8                
              DataFieldName=&quot;TWLT&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_8            
              OBJECT=DataField_9                
              DataFieldName=&quot;PRECSNO&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_9            
              OBJECT=DataField_10                
              DataFieldName=&quot;PRECTOT&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_10            
              OBJECT=DataField_11                
              DataFieldName=&quot;SNOMAS&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_11            
              OBJECT=DataField_12                
              DataFieldName=&quot;SNODP&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_12            
              OBJECT=DataField_13                
              DataFieldName=&quot;EVPSOIL&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_13            
              OBJECT=DataField_14                
              DataFieldName=&quot;EVPTRNS&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_14            
              OBJECT=DataField_15                
              DataFieldName=&quot;EVPINTR&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_15            
              OBJECT=DataField_16                
              DataFieldName=&quot;EVPSBLN&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_16            
              OBJECT=DataField_17                
              DataFieldName=&quot;RUNOFF&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_17            
              OBJECT=DataField_18                
              DataFieldName=&quot;BASEFLOW&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_18            
              OBJECT=DataField_19                
              DataFieldName=&quot;SMLAND&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_19            
              OBJECT=DataField_20                
              DataFieldName=&quot;FRUNST&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_20            
              OBJECT=DataField_21                
              DataFieldName=&quot;FRSAT&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_21            
              OBJECT=DataField_22                
              DataFieldName=&quot;FRSNO&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_22            
              OBJECT=DataField_23                
              DataFieldName=&quot;FRWLT&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_23            
              OBJECT=DataField_24                
              DataFieldName=&quot;PARDF&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_24            
              OBJECT=DataField_25                
              DataFieldName=&quot;PARDR&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_25            
              OBJECT=DataField_26                
              DataFieldName=&quot;SHLAND&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_26            
              OBJECT=DataField_27                
              DataFieldName=&quot;LHLAND&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_27            
              OBJECT=DataField_28                
              DataFieldName=&quot;EVLAND&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_28            
              OBJECT=DataField_29                
              DataFieldName=&quot;LWLAND&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_29            
              OBJECT=DataField_30                
              DataFieldName=&quot;SWLAND&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_30            
              OBJECT=DataField_31                
              DataFieldName=&quot;GHLAND&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_31            
              OBJECT=DataField_32                
              DataFieldName=&quot;TWLAND&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_32            
              OBJECT=DataField_33                
              DataFieldName=&quot;TELAND&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_33            
              OBJECT=DataField_34                
              DataFieldName=&quot;WCHANGE&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_34            
              OBJECT=DataField_35                
              DataFieldName=&quot;ECHANGE&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_35            
              OBJECT=DataField_36                
              DataFieldName=&quot;SPLAND&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_36            
              OBJECT=DataField_37                
              DataFieldName=&quot;SPWATR&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_37            
              OBJECT=DataField_38                
              DataFieldName=&quot;SPSNOW&quot;                
              DataType=DFNT_FLOAT32                
              DimList=(&quot;TIME&quot;,&quot;YDim&quot;,&quot;XDim&quot;)            
              END_OBJECT=DataField_38            
              OBJECT=DataField_39                
              DataFieldName=&quot;XDim&quot;                
              DataType=DFNT_FLOAT64                
              DimList=(&quot;XDim&quot;)            
              END_OBJECT=DataField_39            
              OBJECT=DataField_40                
              DataFieldName=&quot;YDim&quot;                
              DataType=DFNT_FLOAT64                
              DimList=(&quot;YDim&quot;)            
              END_OBJECT=DataField_40            
              OBJECT=DataField_41                
              DataFieldName=&quot;Time&quot;                
              DataType=DFNT_FLOAT64                
              DimList=(&quot;TIME&quot;)            
              END_OBJECT=DataField_41        
              END_GROUP=DataField         GROUP=MergedFields        
              END_GROUP=MergedFields     END_GROUP=GRID_1
              END_GROUP=GridStructure GROUP=PointStructure
              END_GROUP=PointStructure END  <br>
            </div>
            <div>
              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div style="word-wrap:break-word">
                  <div>
                    <div>
                      <div>
                        <div>
                          <div>On Oct 11, 2012, at 9:53 PM, Ehsan Erfani
                            wrote:</div>
                          <br>
                        </div>
                      </div>
                      <blockquote type="cite">
                        <div>
                          <div>Hello,<br>
                            <br>
                            I cannot open MODIS (Moderate Resolution
                            Imaging Spectroradiometer) HDF files by
                            grads. I receive this message when I use the
                            sdfopen:<br>
                            &quot;gradsdf : SDF file has no discernable X
                            coordinate.&quot;<br>
                            <br>
                            I tried to open by xdfopen without any
                            success. Also, I made a ctl but again it did
                            not help. I appreciate it if you let me know
                            how to open hdf files by GrADS. Thank you.<br>
                            <br>
                            Best regards,<br>
                          </div>
                        </div>
                        Ehsan
                        _______________________________________________<br>
                        gradsusr mailing list<br>
                        <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
                        <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
                      </blockquote>
                    </div>
                    <br>
                    <div>
                      <span style="border-spacing:0px 0px;text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="border-spacing:0px 0px;text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="border-spacing:0px 0px;text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px">
                            <div>
                              --</div>
                            <div>Jennifer M. Adams</div>
                            <div>IGES/COLA</div>
                            <div>4041 Powder Mill Road, Suite 302</div>
                            <div>Calverton, MD 20705</div>
                            <div><a href="mailto:jma@cola.iges.org" target="_blank">jma@cola.iges.org</a></div>
                            <div><br>
                            </div>
                            <br>
                          </span></span></span>
                    </div>
                    <br>
                  </div>
                </div>
                <br>
                _______________________________________________<br>
                gradsusr mailing list<br>
                <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
                <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
                <br>
              </blockquote>
            </div>
          </div>
          <br>
        </blockquote>
      </div>
      <br>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
gradsusr mailing list
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br>