Annonce : Tous les projets non commerciaux enregistrés pour utiliser Earth Engine avant le 15 avril 2025 doivent vérifier leur éligibilité non commerciale pour conserver leur accès à Earth Engine.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/26 (UTC)."],[[["The `abs()` function calculates the absolute value of each element in an input array."],["It accepts an array as input and returns a new array with the absolute values of the original elements."],["The function works on arrays of any dimensions, including nested arrays."],["Both JavaScript and Python APIs support the `abs()` function."]]],["The `abs()` function computes the absolute value of each element in an input array. It takes an array as input (`this: input`) and returns a new array. The function operates element-wise, transforming negative values to their positive counterparts while leaving non-negative values unchanged. Examples show its use in JavaScript and Python, demonstrating its application to one-dimensional and two-dimensional arrays. In both cases it is used by the `.abs()` at the end of the array.\n"]]