[gradsusr] Subtract previous value
Chorley Weather
weatherstu at chorleyweather.com
Sat Dec 5 09:52:30 EST 2015
Hi Raymond,
Thanks for all your help, i am still getting 'Cannot contour grid - all
undefined values' so it must be the grib files and the way they are
packaged. (ARPEGE French model) They only have a TPRATE variable for
precipitation and it must be weird way they have packaged it. I would
have thought that the 96 hours worth of data would be accumulated,
therefore by subtracting the first image from the next, it should work.
Thanks anyway.
Stuart.
On 05-12-2015 14:05, raymond ordinario wrote:
> change line 73 by this
>
> 'd apcpsfc(t='i') - apcpsfc(t='i-1')'
>
> On Sat, Dec 5, 2015 at 10:55 PM, Chorley Weather <weatherstu at chorleyweather.com> wrote:
>
> Hi raymond,
>
> It now comes up with this error, see image.
>
> On 05-12-2015 13:23, raymond ordinario wrote:
> sorry i forget the endif
>
> On Sat, Dec 5, 2015 at 10:06 PM, Chorley Weather <weatherstu at chorleyweather.com> wrote:
>
> On 05-12-2015 12:29, raymond ordinario wrote:
>
> Hi Stuart,
>
> try this script...
>
> Raymond
>
> On Sat, Dec 5, 2015 at 8:12 PM, Chorley Weather <weatherstu at chorleyweather.com> wrote:
>
> On 05-12-2015 10:09, raymond ordinario wrote:
> Hi Stuart,
>
> yes it is easy you can play around with the time element as example below
>
> n=2
> while (n <=96)
> precip(t=n) - precip(t=n-1)
> n=n+1
> endwhile
>
> you can put this on a script.
>
> Thanks,
>
> Raymond
>
> On Sat, Dec 5, 2015 at 6:03 PM, Chorley Weather <weatherstu at chorleyweather.com> wrote:
>
> Hi all,
>
> This is probably an easy solution but if I have 96 hours worth of precipitation data but I need to subtract the previous value for an hourly output how would I go about this? For example hour 2 would need to subtract hour 1, then hour 3 would need to subtract hour 2 and so on......
>
> Thanks in advance!!!
> --
>
> Stuart Markham
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr [1]
>
> HI Raymond,
>
> Thank you for the reply. I have tried the function but it just produces one image then ends the script. I have attached the script and control file. Can you advise why it does this or even maybe there is a better solution.
>
> --
> Many Thanks,
> Stuart.
>
> ------------------------------------------------------------------------------------------------------------------------------- Raymond C. Ordinario
> MS Atmospheric Science
> Ateneo De Manila University
> Quezon City, Philippines
>
> Weather Specialist I
>
> Technique Application and Meteorological Satellite Section
> Weather DIvision
> Philippine Atmospheric, Geophysical and Astronomical Services Admistration
> Quezon City, Philippines
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr [1]
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr [1]
--
-------------------------------------------------------------------------------------------------------------------------------
Raymond C. Ordinario
MS Atmospheric Science
Ateneo De Manila University
Quezon City, Philippines
Weather Specialist I
Technique Application and Meteorological Satellite Section
Weather DIvision
Philippine Atmospheric, Geophysical and Astronomical Services
Admistration
Quezon City, Philippines
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr [1]
Hi Raymond,
Thanks for your help in this. Tried the script and returned an error
(see attached image)
--
Stuart Markham
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr [1]
--
-------------------------------------------------------------------------------------------------------------------------------
Raymond C. Ordinario
MS Atmospheric Science
Ateneo De Manila University
Quezon City, Philippines
Weather Specialist I
Technique Application and Meteorological Satellite Section
Weather DIvision
Philippine Atmospheric, Geophysical and Astronomical Services
Admistration
Quezon City, Philippines
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr [1]
--
Stuart Markham
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr [1]
--
-------------------------------------------------------------------------------------------------------------------------------
Raymond C. Ordinario
MS Atmospheric Science
Ateneo De Manila University
Quezon City, Philippines
Weather Specialist I
Technique Application and Meteorological Satellite Section
Weather DIvision
Philippine Atmospheric, Geophysical and Astronomical Services
Admistration
Quezon City, Philippines
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr [1]
--
Stuart Markham
Links:
------
[1] http://gradsusr.org/mailman/listinfo/gradsusr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20151205/f3afe2dc/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blocked.gif
Type: image/gif
Size: 118 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20151205/f3afe2dc/attachment-0002.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blocked.gif
Type: image/gif
Size: 118 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20151205/f3afe2dc/attachment-0003.gif
More information about the gradsusr
mailing list