Discussion

Find answers, ask questions, and connect with our
community around the world.

  • Mark Herrndorf

    Member
    November 22, 2022 at 8:10 pm

    cd library(raster)

    Error: unexpected symbol in “cd library”

    > library(raster)

    > Gewata<-brick(file.path(data_dir, “S2B2A_T36NZP_20201227T075239_20m_gewata_crop.tif”))

    Error in .rasterObjectFromFile(x, objecttype = “RasterBrick”, …) :

    Cannot create a RasterLayer object from this file. (file does not exist)

    In addition: Warning message:

    C:/Data/M4L/Core_IC//S2B2A_T36NZP_20201227T075239_20m_gewata_crop.tif: No such file or directory (GDAL error 4)

    > Gewata S2B2A_T36NZP_20201227T075239_20m_gewata_crop.tif

    Error: unexpected symbol in “Gewata S2B2A_T36NZP_20201227T075239_20m_gewata_crop.tif”

    >In the Terminal Window I am in the directory where the Raster files are.

    cd library(raster)

    Error: unexpected symbol in “cd library”

    > library(raster)

    > Gewata<-brick(file.path(data_dir, “S2B2A_T36NZP_20201227T075239_20m_gewata_crop.tif”))

    Error in .rasterObjectFromFile(x, objecttype = “RasterBrick”, …) :

    Cannot create a RasterLayer object from this file. (file does not exist)

    In addition: Warning message:

    C:/Data/M4L/Core_IC//S2B2A_T36NZP_20201227T075239_20m_gewata_crop.tif: No such file or directory (GDAL error 4)

    > Gewata S2B2A_T36NZP_20201227T075239_20m_gewata_crop.tif

    Error: unexpected symbol in “Gewata S2B2A_T36NZP_20201227T075239_20m_gewata_crop.tif”

    >