<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:メイリオ
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Dear Sir <div><br></div><div>I tried to read the HDF file of pathfinder monthly sst via opendap </div><div><br></div><div>Fortunately I could read the sst data by xdfopen and data descriptor file(bsst.ctl) as bellow,</div><div>Then I tried to develop using % of DSET in the data descriptor file.</div><div>Then I have a problem explained below and could you tell me how to solve the problem?</div><div><br></div><div>Best Regards, Takaya Namba</div><div><br></div><div>bsst.ctl (data descriptor file)</div><div><br></div><div><div>DSET http://data.nodc.noaa.gov/opendap/pathfinder/Version5.0/Monthly/1985/198501.s04m1pfv50-bsst-16b.hdf</div><div>options yrev</div><div>***DSET http://data.nodc.noaa.gov/opendap/pathfinder/Version5.0/Monthly/%y4/%y4%m2.s04m1pfv50-bsst-16b.hdf</div><div>TITLE This is a sample</div><div>UNDEF 99999.0</div><div>YDEF lat 4096 LINEAR -90 0.043945</div><div>XDEF lon 8192 LINEAR -180 0.043945</div><div>***TDEF time 1 linear 00:00z15JAN1985 1mo</div><div>VARS 1:</div><div>bsst=>bsst 1 99 surface temperature</div><div>ENDVARS</div><div><br></div><div><br></div><div>However, I would like to use </div><div>DSET http://data.nodc.noaa.gov/opendap/pathfinder/Version5.0/Monthly/%y4/%y4%m2.s04m1pfv50-bsst-16b.hdf</div><div>instead of </div><div>DSET http://data.nodc.noaa.gov/opendap/pathfinder/Version5.0/Monthly/1985/198501.s04m1pfv50-bsst-16b.hdf.</div><div>Because I would like to do all the thirty years from jan 1988 to 2009.</div><div><br></div><div>I added the line in the bsst.ctl</div><div>TDEF time 1 linear 00:00z15JAN1985 1mo </div><div>and then </div><div>grads -cl batch-opendap.gs.</div><div><br></div><div>However, the error comes like below,</div><div><div><br></div><div>Error: nc_open failed to open file http://data.nodc.noaa.gov/opendap/pathfinder/Version5.0/Monthly/%y4/%y4%m2.s04m1pfv50-bsst-16b.hdf</div><div>NetCDF: DAP server error</div><div>gadsdf: Couldn't ingest SDF metadata.</div><div>SDF Descriptor file bsst.ctl was not suc
cessfully opened & parsed.</div></div><div><br></div><div>I understand that I could not replace /%y4/%y4%m2 with /1985/198501 by the data descriptor file.</div><div>Could you tell me how can I replace by the proper descriptor file as I expected?</div><div><br></div><div>(batch-opendap.gs grads script file)</div><div>'set gxout shaded'</div><div><div>'xdfopen bsst.ctl'</div><div>'q file'</div><div>say result</div><div>'set lat 10 50'</div><div>'set lon 120 170'</div><div>'set T 1'</div><div>'set Z 1'</div><div><div>'d bsst'</div><div>'cbar'</div><div>'quit'</div></div><div><br></div><div><div><br></div><div><div>dncdump -h "http://data.nodc.noaa.gov/opendap/pathfinder/Version5.0/Monthly/1985/198501.s04m1pfv50-bsst-16b.hdf" </div><div>is as below,</div><div><br></div></div><div>netcdf 198501.s04m1pfv50-bsst-16b { // format variant: 64bit </div><div>dimensions:</div><div> lat = 4096 ;</div><div> lon = 8192 ;</div><div>variables:</div><div> short bsst(lat, lon) ;</div><div> bsst:dsp_PixelType = 1b ;</div><div> bsst:dsp_PixelSize = 2b ;</div><div> bsst:dsp_Flag = 0s ;</div><div> bsst:dsp_nBits = 16s ;</div><div> bsst:dsp_LineSize = 0 ;</div><div> bsst:dsp_cal_name = "Temperature" ;</div><div> bsst:units = "Temp" ;</div><div> bsst:dsp_cal_eqnNumber = 2s ;</div><div> bsst:dsp_cal_CoeffsLength = 8s ;</div><div> &n
bsp; bsst:dsp_cal_coeffs = 0.075f, -3.f ;</div><div> bsst:scale_factor = 0.075f ;</div><div> bsst:add_off = -3.f ;</div><div><br></div></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div>                                            </div></body>
</html>