Replies: 2 comments 2 replies
-
|
Hi there, Thank you for getting in touch about using the extract_dynamic_coords function. The function works by collecting all the bands from a dataset within a temporal window and then processing them. For your specific case, I would recommend setting the temporal resolution as 31 days prior and using the GEE.math.fun argument as "last". This will return the value of the most recent band in the dataset from the month prior to your occurrence data. By setting GEE.math.fun to "last", you are essentially using the Google Earth Engine reducer ee.Reducer.last(), which returns the last value of its inputs (https://developers.google.com/earth-engine/apidocs/ee-reducer-last). Best wishes, |
Beta Was this translation helpful? Give feedback.
-
|
Hi Rachel, I am trying to use the DynamicSDM package for my project. Before applying it to my own dataset, I wanted to test it with the dataset you shared. However, I encountered a problem at the extract_dynamic_coords function— it took a long time to run because of different errors and eventually for this error: Error in value[3L]: I saw in one of the GitHub issues that this error could be solved by running: (r-spatial/rgee#369) rgee::ee$Initialize(project = "Your_Project") Now I have two questions: Do I need to upload your CSV file to the project that appears in https://code.earthengine.google.com/ > Assets → Cloud Assets to make it work? Or does it simply work through the project path, regardless of what is uploaded there, and just use the CSV file I read from R? Because when I specify a new project name that is empty , it still doesn’t work. Thank you ! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone!
I am testing the dSDM package for a project of mine and have a question about using the "extract_dynamic_coords" function.
I am extracting data from a monthly dataset (TERRACLIMATE, link: https://developers.google.com/earth-engine/datasets/catalog/IDAHO_EPSCOR_TERRACLIMATE) and I have daily presence/pseudoab occurrences data. When I use the function "extract_dynamic_coords" I can't omit the arguments "GEE.math.fun" and "temporal.res". All I need is the single climatic data for my occurences data (e.g. maximum temperature for that month), not an average or any other function that I can calculate with "GEE.math.fun". I don't need, for example, the sum of the precipitation for x days before my data, as in the tutorials.
How should I set these two arguments?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions