Dear All, Just a quick report back: To turn the plot around Ansley’s and Martin Schmidt’s suggestions worked. Following Ansley: shade/vlim=90:-90 st[i=1:43200:60,j=1:21600:30] turns the plot around nicely. Martin had suggested to write to a netcdf file first and then use the order qualifier when reading the data in netcdf back in. Like so: save/file=hwsd.nc st use/order=x-y hwsd.nc The latter has the advantage that when I now select points based on lat and lon with samplexy, these are correct sections. Also, Ansley was right saying that I had a precision issue (even though I thought that I had put in enough 3s) Using the following axis definitions gives me the expected number of points (see below). Maybe that’s of use to somebody, Cheers, Joerg define axis/x=-180:180:`1/120`/edges/modulo/unit=degrees x1km define axis/y=-90:90:`1/120`/edges/unit=degrees y1km define grid/x=x1km/y=y1km gr1km set data/ez/format=stream/var=st/type=i2/grid=gr1km hwsd.bil show data currently SET data sets: 1> ./hwsd.bil (default) name title I J K L M N ST ST 1:43200 1:21600 ... From: Ansley Manke [mailto:ansley.b.manke@xxxxxxxx] Hi Joerg, SHADE/VLIMITS=90:0 The axis definition will always have increasing coordinates, but in the graphics step, we can ask the plot to be drawn the other way up. define axis/x=-180:180/npoints=43200/edges/unit=degrees x1km Or, give the full double-precision value for 1/120 define axis/x=-180:180:0.008333333333333333/edges/unit=degrees x1km Either of these gives you the correct modulo axis, with the grid cell edges at -180 and 180 and the grid cell centers half of a 1/120 degree grid cell size from each end. Writing delta-x without its full precision may result in the wrong number of cells, and if the total length becomes longer than 360 then it isn't a modulo axis. On 11/19/2013 2:52 AM, Kaduk, Joerg (Dr.) wrote:
|