<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
I have scripts that need to handle data requests from both arbitrary control files and also arbitrary longitude values in the range of -180 to 180 degrees longitude; some of the control files have longitude ranges from 0-360 degrees, while the others are in the -180 to 180 range.<br><br>when I load a control file that is in the 0-360 longitude range, and then set arbitrary longitude values in the -180=>180 range that completely lies within the control file's longitude range, grads complains that 'Data Request Warning: Request is completely outside file limits'. In other words, grads doesnt seem to be able to handle overlapping ranges. Unfortunately, I cant change the user-defined longitude ranges to the 0-360 range, and I
dont want to be forced to manually edit all of the control file(s) to use the -180=>180 range.<br>
<br>example:<br>#control file with 0-360 degree longitude range<br>#longitude is equal to -165 to -116 degree range on -180=>180 degree scale<br>xdef 736 linear 195.000000 0.066667<br><br>...and within grads:<br>LON set to 195 244<br>LAT set to 15 50.0002<br>LEV set to 1 1<br>Time values set: 2010:10:14:18 2010:10:14:18<br>E set to 1 1<br>ga-> set lon -120 -117<br>LON set to -120 -117<br>ga-> d myval<br>Data Request Warning: Request is completely outside file limits<br> Entire grid contents are set to missing data<br> Grid limits of file: X = 1 736 Y = 1 526 Z = 1 1 T = 1 61 E = 1 1<br> Grid limits of request: X = -4724 -4678 Y = -2024 -1978 Z = 1 1 T = 1 1 E = 1 1<br> Warning issued for variable = myval<br>Cannot contour grid - all undefined values<br><br><br>How can I make grads understand that Im trying to plot within a valid longitude range, and automatically adjust the user-defined longitude range to match the control file's longitude range?<br>                                            </body>
</html>