<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body><div style="font-family:bookman old style, new york, times, serif;font-size:16px;"><div></div><div id="ydp3ab675yahoo_quoted_3679061779" class="ydp3ab675yahoo_quoted"><div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;"><br><div><div id="ydp3ab675yiv4944814448"><div><div style="font-family:bookman old style, new york, times, serif;font-size:16px;"><div>Hi,</div><div>First I want to say thank you for your help about my previous problem. I think this committee is really fast in helping and answering.</div><div>However I have another problem and I'll be thankful if I could have your help again.</div><div>I want to draw SMAP (Soil Moisture Active Passive) data and I use a provided script at following link:</div><div><a href="https://www.ncl.ucar.edu/Applications/Scripts/smap_l3_2.ncl" rel="nofollow" target="_blank">https://www.ncl.ucar.edu/Applications/Scripts/smap_l3_2.ncl</a><br></div><div>which the parent directory is:</div><div><a href="https://www.ncl.ucar.edu/Applications/HDF.shtml" class="ydp3ab675yiv4944814448enhancr_card_3408556451" rel="nofollow" target="_blank">NCL Applications: HDF, HDF-EOS</a><br></div><div><br></div><div id="ydp3ab675yiv4944814448ydp81121617enhancr_card_3408556451" class="ydp3ab675yiv4944814448ydp81121617yahoo-link-enhancr-card ydp3ab675yiv4944814448ydp81121617yahoo-link-enhancr-not-allow-cover ydp3ab675yiv4944814448ydp81121617ymail-preserve-class ydp3ab675yiv4944814448ydp81121617ymail-preserve-style" style="max-width:400px;font-family:Helvetica Neue, Helvetica, Segoe UI, Arial, sans-serif;" data-url="https://www.ncl.ucar.edu/Applications/HDF.shtml" data-type="YENHANCER" data-size="MEDIUM" contenteditable="false"><a href="https://www.ncl.ucar.edu/Applications/HDF.shtml" style="text-decoration:none;color:#000;" class="ydp3ab675yiv4944814448ydp81121617yahoo-enhancr-cardlink" rel="nofollow" target="_blank"><table class="ydp3ab675yiv4944814448ydp81121617card-wrapper ydp3ab675yiv4944814448ydp81121617yahoo-ignore-table" style="max-width:400px;" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td width="400"><table class="ydp3ab675yiv4944814448ydp81121617card ydp3ab675yiv4944814448ydp81121617yahoo-ignore-table" style="max-width:400px;border-width:1px;border-style:solid;border-color:rgb(224, 228, 233);border-radius:2px;" cellspacing="0" cellpadding="0" width="100%" border="0"><tbody><tr><td><table class="ydp3ab675yiv4944814448ydp81121617card-info ydp3ab675yiv4944814448ydp81121617yahoo-ignore-table" style="background-color: rgb(255, 255, 255); background-repeat: repeat; background-attachment: scroll; background-image: none; background-size: auto auto; position: relative; z-index: 2; width: 100%; max-width: 400px; border-radius: 0px 0px 2px 2px; border-top: 1px solid rgb(224, 228, 233);" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;border-radius:0 0 0 2px;"></td><td style="vertical-align:middle;padding:12px 24px 16px 12px;width:99%;font-family:Helvetica Neue, Helvetica, Segoe UI, Arial, sans-serif;border-radius:0 0 2px 0;"><h2 class="ydp3ab675yiv4944814448ydp81121617card-title" style="font-size:14px;line-height:19px;margin:0px 0px 6px;color:rgb(38, 40, 42);">NCL Applications: HDF, HDF-EOS</h2><p class="ydp3ab675yiv4944814448ydp81121617card-description" style="font-size:12px;line-height:16px;margin:0px;color:rgb(151, 155, 167);">Use of NCL to visualize datasets in HDF format.</p></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></a></div><div><br></div><div><br></div><div>This script helps to draw multiple files, but after one file I got following error:</div><div><div><font style="background-color:rgb(228, 172, 100);" size="2"> fatal:Dimension sizes on right hand side of assignment do not match dimension sizes of left hand side</font></div><div><font style="background-color:rgb(228, 172, 100);" size="2"> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 80 in file smap_l3_2.ncl</font></div><div><br></div>which mentioned different sizes of my files. For example for one file I have:</div><div><font style="background-color:rgb(253, 248, 105);" size="2"> float latitude(281024);</font><br></div><div>and for another file I have:<br></div><div><div style="color:rgb(0, 0, 0);"><span style="background-color:rgb(253, 248, 105);"><font size="2"> float latitude(281711);</font></span><br></div><div style="color:rgb(0, 0, 0);font-size:16px;">and the error arises when the script wants to do following command:</div><div style="color:rgb(0, 0, 0);"><div><font style="background-color:rgb(125, 190, 241);" size="2"> lat2d = f[nf]->$lat_path$</font></div><div style="font-size:16px;">also for</div><div><div><font style="background-color:rgb(125, 190, 241);" size="2"> lon2d = f[nf]->$lat_path$</font></div><div style="font-size:16px;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;">Attachment is the script and following lines are output of printVarSummary(var):</div><div style="color:rgb(0, 0, 0);font-size:16px;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;"><br></div><div><div><font style="background-color:rgb(228, 172, 100);" size="2">Variable: var</font></div><div><font style="background-color:rgb(228, 172, 100);" size="2">Type: float</font></div><div><font style="background-color:rgb(228, 172, 100);" size="2">Total Size: 1124096 bytes</font></div><div><font style="background-color:rgb(228, 172, 100);" size="2"> 281024 values</font></div><div><font style="background-color:rgb(228, 172, 100);" size="2">Number of Dimensions: 1</font></div><div><font style="background-color:rgb(228, 172, 100);" size="2">Dimensions and sizes: [DIM_000 | 281024]</font></div><div><font style="background-color:rgb(228, 172, 100);" size="2">Coordinates:</font></div><div><font style="background-color:rgb(228, 172, 100);" size="2">Number Of Attributes: 6</font></div><div><font style="background-color:rgb(228, 172, 100);" size="2"> _FillValue : -9999</font></div><div><font style="background-color:rgb(228, 172, 100);" size="2"> coordinates : /Soil_Moisture_Retrieval_Data/latitude /Soil_Moisture_Retrieval_Data/longitude</font></div><div><font style="background-color:rgb(228, 172, 100);" size="2"> long_name : Representative soil moisture measurement for the Earth based grid cell.</font></div><div><font style="background-color:rgb(228, 172, 100);" size="2"> units : cm**3/cm**3</font></div><div><font style="background-color:rgb(228, 172, 100);" size="2"> valid_max : 0.5</font></div><div><font style="background-color:rgb(228, 172, 100);" size="2"> valid_min : 0.02</font></div><div><font style="background-color:rgb(228, 172, 100);" size="2">(0) Representative soil moisture measurement for the Earth based grid cell. (cm**3/cm**3) : min=0.02 max=0.85494</font></div><div><font style="background-color:rgb(228, 172, 100);" size="2">(0) nf=1; SMAP_L2_SM_P_E_11167_D_20170305T030914_R14010_001.h5</font></div><div><font style="background-color:rgb(228, 172, 100);" size="2">fatal:Dimension sizes of left hand side and right hand side of assignment do not match</font></div><div><font style="background-color:rgb(228, 172, 100);" size="2">fatal:["Execute.c":8640]:Execute: Error occurred at or near line 80 in file smap_l3_2.ncl</font></div><div><br></div><br></div>So how could I read and plot multiple files with different sizes?</div><div><br></div><div><i>Sincerely</i></div><div><i>Ehsan</i></div><br></div><div><br></div><br></div><div><br></div><div><br></div></div></div></div></div>
</div>
</div></div></body></html>