<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Yes, raster package can load NetCDF files. You can then use "extract" to sample the environmental layers onto your XY coordinates</div><div><br></div><div><br></div><br><div><div>Le 8 déc. 2010 à 15:06, Charles Novaes de Santana a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Dear Wilfried,<br><br>Thank you very much for your answer.<br><br>Our environmental data is in NCDF format, that we have downloaded<br>here: <a href="http://www.esrl.noaa.gov/psd/data/gridded/data.UDel_AirT_Precip.html">http://www.esrl.noaa.gov/psd/data/gridded/data.UDel_AirT_Precip.html</a><br><br>Our biotic data is in ASCII format, but we can try to convert them to<br>some raster format.<br><br>Thank you again, best regards!<br><br>Charles<br><br>On Wed, Dec 8, 2010 at 7:12 AM, Wilfried Thuiller<br>&lt;<a href="mailto:wilfried.thuiller@ujf-grenoble.fr">wilfried.thuiller@ujf-grenoble.fr</a>&gt; wrote:<br><blockquote type="cite">Dear Charles,<br></blockquote><blockquote type="cite">Do not too much the interpolations techniques. In which format are your<br></blockquote><blockquote type="cite">data? Are they originally ArcGIS raster or grid data?<br></blockquote><blockquote type="cite">If yes, better practice to use the raster package with the extract<br></blockquote><blockquote type="cite">function.<br></blockquote><blockquote type="cite">Else, I guess your approach is probably the best one.<br></blockquote><blockquote type="cite">Best<br></blockquote><blockquote type="cite">Wilfried<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Le 7 déc. 2010 à 21:22, Charles Novaes de Santana a écrit :<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Dear all,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">First of all, I would like to say "Congratulations" to all the<br></blockquote><blockquote type="cite">developers of BIOMOD. It is a GREAT tool and I can not imagine the<br></blockquote><blockquote type="cite">hard work you need to mantain it working so nice! Thank your for<br></blockquote><blockquote type="cite">everything!<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I am just starting to use Biomod, and I have a question that maybe is<br></blockquote><blockquote type="cite">a tipical "newbie" question :)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">My biotic data (presence of species) are not at the same grid that my<br></blockquote><blockquote type="cite">environmental data (temperature and precipitation). And my<br></blockquote><blockquote type="cite">environmental data are at a regular grid while my biotic data are at<br></blockquote><blockquote type="cite">points irregularly spaced.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I think the best thing to do in this case is to make an interpolation<br></blockquote><blockquote type="cite">of my environmental data to find the values of temperature and<br></blockquote><blockquote type="cite">precipitation at the same grid points of my biotic data. To do it, I<br></blockquote><blockquote type="cite">am using the function "interp" from the package "akima". Am I correct?<br></blockquote><blockquote type="cite">Is ther another option?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Here, just an example similar of my case: environmental data at a<br></blockquote><blockquote type="cite">regular gridpoint. Biotic data at points irregularly spaced.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">environmental$lat &lt;- c(2.5, 3.0, 3.5, 4.0, 4.5, 5.0, 5.5, 6.0, 6.5,<br></blockquote><blockquote type="cite">7.0, 7.5, 8.0)<br></blockquote><blockquote type="cite">environmental$lon &lt;- c(-38.5, -38.0, -37.5, -37.0, -36.5, -36.0,<br></blockquote><blockquote type="cite">-35.5, -35.0, -34.5, -34.0,-33.5, -33.0, -32.5, -32.0, -31.5, -31.0)<br></blockquote><blockquote type="cite">biotic$lat &lt;- c(4.222, 4.250, 4.34, 4.7, 4.71, 4.77, 4.811, 4.99)<br></blockquote><blockquote type="cite">biotic$lon&lt;- c(-35.1, -34.8, -34.7, -34.4, -34.38, -34.21, -33.23, -32.77)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">biotic$temp &lt;- interp (environmental$lon, environmental$lat,<br></blockquote><blockquote type="cite">environmental$temp, biotic$lon, biotic$lat)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thank you in advance for any help!<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">best regards,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Charles<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">Um axé! :)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">Charles Novaes de Santana<br></blockquote><blockquote type="cite">PhD student - Global Change<br></blockquote><blockquote type="cite">Laboratorio Internacional de Cambio Global<br></blockquote><blockquote type="cite">Department of Global Change Research<br></blockquote><blockquote type="cite">Instituto Mediterráneo de Estudios Avanzados(CSIC/UIB)<br></blockquote><blockquote type="cite">Calle Miquel Marques 21, 07006<br></blockquote><blockquote type="cite">Esporles - Islas Baleares - España<br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Biomod-commits mailing list<br></blockquote><blockquote type="cite"><a href="mailto:Biomod-commits@lists.r-forge.r-project.org">Biomod-commits@lists.r-forge.r-project.org</a><br></blockquote><blockquote type="cite"><a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/biomod-commits">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/biomod-commits</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--------------------------<br></blockquote><blockquote type="cite">Dr. Wilfried Thuiller<br></blockquote><blockquote type="cite">Laboratoire d'Ecologie Alpine, UMR CNRS 5553<br></blockquote><blockquote type="cite">Université Joseph Fourier<br></blockquote><blockquote type="cite">BP53, 38041 Grenoble cedex 9, France<br></blockquote><blockquote type="cite">tel: +33 (0)4 76 51 44 97<br></blockquote><blockquote type="cite">fax: +33 (0)4 76 51 42 79<br></blockquote><blockquote type="cite">Email:&nbsp;<a href="mailto:wilfried.thuiller@ujf-grenoble.fr">wilfried.thuiller@ujf-grenoble.fr</a><br></blockquote><blockquote type="cite">Home page:&nbsp;<a href="http://www.will.chez-alice.fr">http://www.will.chez-alice.fr</a><br></blockquote><blockquote type="cite">Website:&nbsp;<a href="http://www-leca.ujf-grenoble.fr/equipes/tde.htm">http://www-leca.ujf-grenoble.fr/equipes/tde.htm</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">FP6 European MACIS project:&nbsp;<a href="http://www.macis-project.net">http://www.macis-project.net</a><br></blockquote><blockquote type="cite">FP6 European EcoChange project:&nbsp;<a href="http://www.ecochange-project.eu">http://www.ecochange-project.eu</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br><br><br>-- <br>Um axé! :)<br><br>--<br>Charles Novaes de Santana<br>PhD student - Global Change<br>Laboratorio Internacional de Cambio Global<br>Department of Global Change Research<br>Instituto Mediterráneo de Estudios Avanzados(CSIC/UIB)<br>Calle Miquel Marques 21, 07006<br>Esporles - Islas Baleares - España<br>_______________________________________________<br>Biomod-commits mailing list<br><a href="mailto:Biomod-commits@lists.r-forge.r-project.org">Biomod-commits@lists.r-forge.r-project.org</a><br>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/biomod-commits<br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-size: 12px; "><div>--------------------------</div><div>Dr. Wilfried Thuiller</div><div>Laboratoire d'Ecologie Alpine, UMR CNRS 5553</div><div>Université Joseph Fourier</div><div>BP53, 38041 Grenoble cedex 9, France</div><div>tel: +33 (0)4 76 51 44 97</div><div>fax: +33 (0)4 76 51 42 79</div><div><br></div><div>Email:&nbsp;<a href="mailto:wilfried.thuiller@ujf-grenoble.fr">wilfried.thuiller@ujf-grenoble.fr</a><br>Home page:&nbsp;<a href="http://www.will.chez-alice.fr/">http://www.will.chez-alice.fr</a><br>Website:&nbsp;<a href="http://www-leca.ujf-grenoble.fr/equipes/tde.htm">http://www-leca.ujf-grenoble.fr/equipes/tde.htm</a><br><br>FP6 European MACIS project:&nbsp;<a href="http://www.macis-project.net/">http://www.macis-project.net</a><br>FP6 European EcoChange project:&nbsp;<a href="http://www.ecochange-project.eu/">http://www.ecochange-project.eu</a></div><div><br></div></span></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></body></html>