tag:blogger.com,1999:blog-4834004831115556445.post4027554411161577451..comments2024-03-13T02:05:52.877-04:00Comments on GrADS-aholic!: Tutorial:Two methods to plot more than one shaded variable on the same map using GrADSUnknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-4834004831115556445.post-32918773331087977752014-01-10T08:51:10.056-05:002014-01-10T08:51:10.056-05:00Aha, that is simple, thank you. I stupidly never t...Aha, that is simple, thank you. I stupidly never thought of changing t to get the time I need, then changing it back afterward. Weathertomhttps://www.blogger.com/profile/15926654387291504232noreply@blogger.comtag:blogger.com,1999:blog-4834004831115556445.post-92152961790515614872014-01-09T14:15:17.278-05:002014-01-09T14:15:17.278-05:00There are two ways to do this: The best way to do ...There are two ways to do this: The best way to do this is to simply use the "set t" command to set your time to the offset you want and grab the time (though this can be tricky if your model data isn't timed by 1 hour intervals). For example if you wanted to do an offset of 6 hours, you could simply do a:<br /><br />'set t 't-6<br /><br />Then you use the 'q dims' command to get the time string information, and you just ignore the UTC in the string. Then you must remember to set the time back to it's original spot. If your time step is 3 hours, then you would do 'set t 't-2, for a six hour offset. If your offset is not divisible by 3, then you have issues with this method, which is why this is tricky if your data isn't in 1 hour intervals.<br /><br />The second way to do this is to isolate the different aspects of the time string, (hour, day, month, year) and then do your offset here. This way can be a little more complex since you would need if statements to help you ensure that you change the month and the year around as well, but this isn't that terribly hard, just takes a little time to input the information. So you do this by getting the time dimensions, and then using the substr() command to get each piece of the date. Then its just a matter of applying your offset to the hours, and then deciding to alter the date as needed.<br /><br />Hopefully some of that makes sense!<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4834004831115556445.post-64864398192202740782014-01-09T08:41:24.618-05:002014-01-09T08:41:24.618-05:00I apologize for what is probably an extremely simp...I apologize for what is probably an extremely simple/stupid question... I noticed on one of the maps here (and a few others on the blog) that you have UTC and local time plotted. I've been trying to figure out how to get local time to plot with data that is in UTC, since not only the time changes, but the date (and day of week) can also be different (e.g. 00 UTC is not only 1800 CST, but is also the previous day of week and date). Any suggestions you might have on working with the display of dates/times would be appreciated. Thank you.Weathertomhttps://www.blogger.com/profile/15926654387291504232noreply@blogger.com