<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 Jim<div><br></div><div>Thank you very for your advice.</div><div>I will check it as you suggested below and will inform the result.</div><div><br></div><div>Best Regards,</div><div>Takaya Namba</div><div><br><br><div>> Date: Mon, 20 Jun 2011 16:23:43 -1000<br>> From: jimp@hawaii.edu<br>> To: gradsusr@gradsusr.org<br>> Subject: Re: [gradsusr] 'q w2gr 120 30'<br>> <br>> <br>> I think this is ok; the 'q w2gr' command is looking for lon=120, lat=30<br>> which<br>> probably doesn't exist exactly in your grid (note that the delta-lat and<br>> delta-lon<br>> are 0.043945). Instead, the index return is the closest point. So,<br>> technically<br>> you can 'set x 6827.72' and 'set y 2731.69', but I think you'll get the<br>> same<br>> result as 'set x 6828' and 'set y 2732'. Probably worth checking though (I'm<br>> not sure if it rounds up or down).<br>> <br>> Jim<br>> <br>> Namba Takaya wrote:<br>> > Jim<br>> ><br>> > Thank you very much for your advice.<br>> > I made it.<br>> ><br>> > However, I feel strange that<br>> > X, Y are integer? Is it OK?<br>> ><br>> > 'q w2gr 120 30'<br>> > result is<br>> > Xdim = 6827.72 Ydim = 2731.69<br>> ><br>> > 'q file'<br>> > result is also.<br>> > Default file number is: 1<br>> > X is varying Lon = 120 to 170 X = 6827.72 to 7965.5<br>> > Y is varying Lat = 10 to 50 Y = 2276.57 to 3186.8<br>> ><br>> > B<br>> > Takaya Namba<br>> ><br>> > > Date: Mon, 20 Jun 2011 ! 08:44:44 -1000<br>> > > From: jimp@hawaii.edu<br>> > > To: gradsusr@gradsusr.org<br>> > > Subject: Re: [gradsusr] 'q w2gr 120 30'<br>> > ><br>> > > Hi Takaya:<br>> > ><br>> > > You first need to display something, then the 'q w2gr' should work.<br>> > > For example, add a line 'd sst' (or whatever) before the 'q w2gr'.<br>> > ><br>> > > Jim<br>
> > ><br>> > > Namba Takaya wrote:<br>> > > > Dear Sir<br>> > > ><br>> > > > When I do<br>> > > > 'q w2gr 120 30'<br>> > > > the error comes like<br>> > > > coordinate No scaling environment<br>> > > ><br>> > > > Could you give me how to solve the problem?<br>> > > ><br>> > > > Best Regards, Takaya Namba<br>> > > ><br>> > > ><br>> > > > My grads script is<br>> > > ><br>> > > > 'set gxout shaded'<br>> > > > 'xdfopen bsst.ctl'<br>> > > > say test2<br>> > > > 'q file'<br>> > > > say result<br>> > > > !<br>> > > > 'q w2gr 120 30'<br>> > > > say result<br>> > > ><br>> > > > data descriptor file<br>> > &g! t; ><br>> > > > DSET<br>> > > > http://data.nodc.noaa.gov/opend<br>> > ap/pathfinder/Version5.0/Monthly/1985/198501.s04m1pfv50-bsst-16b.hdf<br>> > > > options yrev<br>> > > > TITLE This is a sample<br>> > > > UNDEF 99999.0<br>> > > > YDEF lat 4096 LINEAR -90 0.043945<br>> > > > XDEF lon 8192 LINEAR -180 0.043945<br>> > > > VARS 1:<br>> > > > bsst=>bsst 1 99 surface temperature<br>> > > > ENDVARS<br>> > > ><br>> > > ><br>> > > > My grads script is<br>> > > ><br>> > > > 'set gxout shaded'<br>> > > > 'xdfopen bsst.ctl'<br>> > > > say test2<br>> > > > 'q file'<br>> > > > say result<br>> > > > 'q w2gr 120 30'<br>> > > > say result<br>> > > ><br>> > > > netcdf 198501.s04m1pfv50-bsst-16b { // format variant: 64bit<br>> > > > dimensions:<br>> > > > ! lat = 4096 ;<br>> > > > lon = 8 192 ;<br>>
> > > variables:<br>> > > > short bsst(lat, lon) ;<br>> > > > bsst:dsp_PixelType = 1b ;<br>> > > > bsst:dsp_PixelSize = 2b ;<br>> > > > bsst:dsp_Flag = 0s ;<br>> > > > bsst:dsp_nBits = 16s ;<br>> > > &g! t; bsst:dsp_LineSize = 0 ;<br>> > > > bsst:dsp_cal_name = "Temperature" ;<br>> > > > bsst:units = "Temp" ;<br>> > > > bsst:dsp_cal_eqnNumber = 2s ;<br>> > > > bsst:dsp_cal_CoeffsLength = 8s ;<br>> > > > ! bsst:dsp_cal_coeffs = 0.075f, -3.f ;<br>> > > > bsst:scale_factor = 0.075f ;<br>> > > > bsst:add_off = -3.f ;<br>> > > ><br>> > > ><br>> > > ><br>> > > ><br>> > > ><br>> > > ><br>> > > ><br>> > ------------------------------------------------------------------------<br>> > > ><br>> > > > _______________________________________________<br>> > > > gradsusr mailing list<br>> > > > gradsusr@gradsusr.org<br>> > > > http://gradsusr.org/mailman/listinfo/gradsusr<br>> > > ><br>> > > _______________________________________________<br>> > > gradsusr mailing list<br>> > > gradsusr@gradsusr.org<br>> > > http://gradsusr.org/mailman/listinfo/gradsusr<br>> > ------------------------------------------------------------------------<br>> ><br>> > _______________________________________________<br>> > gradsusr mailing list<br>> > gradsusr@gradsusr.org<br>> > http://gradsusr.org/mailman/listinfo/gradsusr<br>> > <br>> _______________________________________________<br>> gradsusr mailing list<br>> gradsusr@gradsusr.org<br>> http://gradsusr.org/mailman/listinfo/gradsusr<br></div></div>                                            </div></body>
</html>