[gradsusr] 'q w2gr 120 30'

Namba Takaya takayanamba at hotmail.com
Tue Jun 21 01:20:50 EDT 2011


Dear Jim
Thank you very for your advice.I will check it as you suggested below and will inform the result.
Best Regards,Takaya Namba

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


More information about the gradsusr mailing list