Jenny Barnes
2006-Dec-12 10:12 UTC
[R] how do you interpolate a gaussian grid to a standard 2.5 degree grid?
Dear R-help community, I have looked on the R search site and archives but cannot find mention of a way of interpolating a gaussian distribution of data to a standard 2.5 degree grid. I have two global dataset and I need to correlate - unfortunately one is a 2.5 degree grid dim[longitude=144,latitude=72] and one is gaussian dim[longitude=192,latitude=94]. I would rally appreciate hearing back from any of you who may have wanted to interpolate your data is this way. If there is no ready-made function you know of but you are willing to share your own methods I would also appreciate any pointers. Many thanks for your time, Jenny Barnes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jennifer Barnes PhD student - long range drought prediction Climate Extremes Department of Space and Climate Physics University College London Holmbury St Mary, Dorking Surrey RH5 6NT Web: http://climate.mssl.ucl.ac.uk
Zhuanshi He
2006-Dec-12 15:47 UTC
[R] how do you interpolate a gaussian grid to a standard 2.5 degree grid?
Hi Jenny, Maybe the following links will be useful for you. Both of thoes are used in meteorological and climate research community. But u can used the codes to create the data values that you need. g2fsh : Interpolates a scalar quantity from a Gaussian grid to a fixed grid. http://www.ncl.ucar.edu/Document/Functions/Built-in/g2fsh.shtml g2fshv : Interpolates a vector quantity from a Gaussian grid to a fixed grid. http://www.ncl.ucar.edu/Document/Functions/Built-in/g2fshv.shtml In addition, both of those functions based on a package named SPHEREPACK (http://www.cisl.ucar.edu/css/software/spherepack/ ). you can write call subroutines shipped from SPHEREPACK to get values at your fixed grids. Good luck. Zhuanshi He On 12/12/06, Jenny Barnes <jmb at mssl.ucl.ac.uk> wrote:> > Dear R-help community, > > I have looked on the R search site and archives but cannot find mention of a way > of interpolating a gaussian distribution of data to a standard 2.5 degree grid. > > I have two global dataset and I need to correlate - unfortunately one is a 2.5 > degree grid dim[longitude=144,latitude=72] and one is gaussian > dim[longitude=192,latitude=94]. > > I would rally appreciate hearing back from any of you who may have wanted to > interpolate your data is this way. If there is no ready-made function you know > of but you are willing to share your own methods I would also appreciate any > pointers. > > Many thanks for your time, > > Jenny Barnes > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Jennifer Barnes > PhD student - long range drought prediction > Climate Extremes > Department of Space and Climate Physics > University College London > Holmbury St Mary, Dorking > Surrey > RH5 6NT > Web: http://climate.mssl.ucl.ac.uk > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > >-- Zhuanshi He / Z. He (PhD) Waterloo Centre for Atmospheric Sciences (WCAS) Department of Chemistry Phy Bldg, Rm 2022 University of Waterloo, Waterloo, ON N2L 3G1 Canada Tel: +1-519-888-4567 ext 38053 FAX: +1-519-746-0435
Jenny Barnes
2006-Dec-12 15:56 UTC
[R] how do you interpolate a gaussian grid to a standard 2.5 degree grid?
Zhuanshi Thanks for that! I've never seen that website before and it looks really useful! I think those functions look a lot more straight forward than any of the others I've seen today in my searching. I'll let you know if I get it sorted! Jenny> >Hi Jenny, > >Maybe the following links will be useful for you. Both of thoes are >used in meteorological and climate research community. But u can used >the codes to create the data values that you need. > > >g2fsh : Interpolates a scalar quantity from a Gaussian grid to a fixed grid. > >http://www.ncl.ucar.edu/Document/Functions/Built-in/g2fsh.shtml > > >g2fshv : Interpolates a vector quantity from a Gaussian grid to a fixed grid. >http://www.ncl.ucar.edu/Document/Functions/Built-in/g2fshv.shtml > > >In addition, both of those functions based on a package named >SPHEREPACK (http://www.cisl.ucar.edu/css/software/spherepack/ ). > >you can write call subroutines shipped from SPHEREPACK to get values >at your fixed grids. > >Good luck. > >Zhuanshi He > > > >On 12/12/06, Jenny Barnes <jmb at mssl.ucl.ac.uk> wrote: >> >> Dear R-help community, >> >> I have looked on the R search site and archives but cannot find mention of away>> of interpolating a gaussian distribution of data to a standard 2.5 degreegrid.>> >> I have two global dataset and I need to correlate - unfortunately one is a2.5>> degree grid dim[longitude=144,latitude=72] and one is gaussian >> dim[longitude=192,latitude=94]. >> >> I would rally appreciate hearing back from any of you who may have wanted to >> interpolate your data is this way. If there is no ready-made function youknow>> of but you are willing to share your own methods I would also appreciate any >> pointers. >> >> Many thanks for your time, >> >> Jenny Barnes >> >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> Jennifer Barnes >> PhD student - long range drought prediction >> Climate Extremes >> Department of Space and Climate Physics >> University College London >> Holmbury St Mary, Dorking >> Surrey >> RH5 6NT >> Web: http://climate.mssl.ucl.ac.uk >> >> ______________________________________________ >> R-help at stat.math.ethz.ch mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> >> >> > > >-- >Zhuanshi He / Z. He (PhD) >Waterloo Centre for Atmospheric Sciences (WCAS) >Department of Chemistry >Phy Bldg, Rm 2022 >University of Waterloo, >Waterloo, ON N2L 3G1 >Canada >Tel: +1-519-888-4567 ext 38053 FAX: +1-519-746-0435~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jennifer Barnes PhD student - long range drought prediction Climate Extremes Department of Space and Climate Physics University College London Holmbury St Mary, Dorking Surrey RH5 6NT 01483 204149 07916 139187 Web: http://climate.mssl.ucl.ac.uk