Annuncio: tutti i progetti non commerciali registrati per l'utilizzo di Earth Engine prima del 15 aprile 2025 devono verificare l'idoneità non commerciale per mantenere l'accesso a Earth Engine.
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Restituisce il rapporto tra la lunghezza di un'unità e la lunghezza di un'altra, ad esempio unitRatio('day', 'minute') restituisce 1440. Le unità valide sono "year", "month", "week", "day", "hour", "minute" e "second".
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-06-24 UTC."],[[["`ee.Date.unitRatio()` calculates the length ratio between two time units, such as days and minutes."],["Valid time units for this function include 'year', 'month', 'week', 'day', 'hour', 'minute', and 'second'."],["The function takes two string arguments: the numerator unit and the denominator unit, and returns a float representing the ratio."],["Example: `ee.Date.unitRatio('day', 'minute')` would return 1440, indicating there are 1440 minutes in a day."]]],["The `unitRatio` function calculates the ratio between two time units. It accepts two string arguments: `numerator` and `denominator`, representing the desired units. Valid time units include 'year', 'month', 'week', 'day', 'hour', 'minute', and 'second'. The function returns a float value representing the ratio of the numerator to the denominator (e.g., how many minutes are in a day). Examples are provided in JavaScript and Python demonstrating various unit conversions.\n"]]