Displaying 4 results from an estimated 4 matches for "spatraster".
2024 Jun 26
1
Converting .grib to excel file
..."param2", "param3", "param4", "param5", "param6")
> extracted_data <- extract(raster_data, param_names, df = TRUE)
#Error in (function (classes, fdef, mtable) :
#unable to find an inherited method for function ?extract? for
signature ?"SpatRaster", "character"?
OK. The problem is that the extract() function didn't know what to do.
What does the documentation for 'extract' say?
The error message seems to say that it is not defined for first argument being
a SpatRaster and second argument being of type character....
2024 Jun 25
1
Converting .grib to excel file
Dear Bert and Sara;
I have searched on the internet and found some way to do this like python.
But python is so complicated to me as it needs many steps to be done for
reading and converting it.
I will try terra package to convert it.
On Tue, 25 Jun 2024, 15:15 javad bayat, <j.bayat194 at gmail.com> wrote:
> Richard,
> Many thanks for your email.
> I had attached the grib file to
2024 Jun 26
1
Converting .grib to excel file
I'm now inclined to go with 'search for "convert GRIB to CSV".
https://confluence.ecmwf.int/display/CKB/How+to+convert+GRIB+to+CSV
is the first line. I know that's not an R solution, but using software
specifically developed for encoding, decoding, extracting, &c GRIB file by the
European Centre for Medium-Range Weather Forecasts and actively
maintained, with an example
2024 Jun 29
0
R related tools - GUI
...param4", "param5",
>> "param6")
>>> extracted_data <- extract(raster_data, param_names, df = TRUE)
>> #Error in (function (classes, fdef, mtable) :
>> #unable to find an inherited method for function ?extract? for
>> signature ?"SpatRaster", "character"?
>>
>> OK. The problem is that the extract() function didn't know what to do.
>> What does the documentation for 'extract' say?
>> The error message seems to say that it is not defined for first argument
>> being
>> a Spa...