<div>Good evening every ones.<br></div><div><br></div><div>I am trying to set a projection system for an ascii file in Rstudio.<br></div><div><br></div><div>I reached to import the .asc on R and to plot it. Now I need to set a projection. <br></div><div><br></div><div>In my matrix I have CRS : NA<br></div><div><br></div><div>I tried two ways :<br></div><div><br></div><div><b>First way:</b><br></div><div><b></b><br></div><div><i>crs(rasterClimat, asText=F)</i></div><div><i>crs(rasterClimat)<- "+proj=lcc +lat_1=48 +lat_2=33 +lon_0=-100 +datum=WSG84"</i><i><br></i></div><div><i>crs(rasterClimat)</i><i><br></i></div><div><i>w<- wkt(rasterClimat)</i><i><br></i></div><div><i>w</i><i><br></i></div><div><i>cat(w, "\n")</i><br></div><div><br></div><div>(taken from here :<a href="https://rdrr.io/cran/raster/man/projection.html">https://rdrr.io/cran/raster/man/projection.html</a>)<br></div><div><br></div><div><b>Second way:</b><br></div><div><br></div><div><i>crs(rasterClimat)<-"proj=longlat +datum=WGS84 +no_defs +ellps=WGS84+towgs84= 0,0,0"</i><br></div><div><div><br></div><div>(taken from here : <a href="https://www.youtube.com/watch?v=iqbVyt8mjIk">https://www.youtube.com/watch?v=iqbVyt8mjIk</a>, tutorial that I followed)<br></div><div><br></div>For the two methods, the error message is the same :<br><br><i>Error in sp::CRS(SRS_string = x) : NA</i><br><br>I followed the youtube tutorial, our two cases seem similar but she reached to project her map.<br><br>May someone gives me some clues about what I do not understand in this process and where I have to look for and/or what can I do to fix it?<br> I want to do it on R, I do not want to use a GISsoftware to set the coordinate system then import the file into R.<br><br>I put in attachment the code I used if you want to have a close look, and the .asc files.<br><br>Thank you very much for your time,<br>best regards,<br><br>Basile.<br><br><br><br></div><div><br></div><div><br></div><div><br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user protonmail_signature_block-empty"></div><div class="protonmail_signature_block-proton">Sent with <a rel="noopener noreferrer" href="https://protonmail.com/" target="_blank">ProtonMail</a> Secure Email.</div></div><div><br></div>