[gradsusr] 'q w2gr 120 30'

Namba Takaya takayanamba at hotmail.com
Mon Jun 20 18:57:00 EDT 2011


Jim
Thank you very much for your advice.I made it.
However, I feel strange thatX, Y are integer? Is it OK?
'q w2gr 120 30' result isXdim = 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.5Y is varying   Lat = 10 to 50   Y = 2276.57 to 3186.8
Best Regards,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
> >
> > DSET
> > http://data.nodc.noaa.gov/opendap/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 ;
> > 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
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110620/f261258b/attachment-0003.html 


More information about the gradsusr mailing list