[gradsusr] 'q w2gr 120 30'

James T. Potemra jimp at hawaii.edu
Mon Jun 20 14:44:44 EDT 2011


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
>   



More information about the gradsusr mailing list