Anuncio: Todos los proyectos no comerciales registrados para usar Earth Engine antes del
15 de abril de 2025 deben
verificar su elegibilidad no comercial para mantener el acceso a Earth Engine.
ee.DateRange.isUnbounded
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Devuelve verdadero si este DateRange contiene todas las fechas.
Uso | Muestra |
---|
DateRange.isUnbounded() | Booleano |
Argumento | Tipo | Detalles |
---|
esta: dateRange | DateRange | |
Ejemplos
Editor de código (JavaScript)
// A series of ee.DateRange objects.
var dateRangeBounded = ee.DateRange('2017-06-24', '2017-07-24');
var dateRangeUnbounded = ee.DateRange.unbounded();
// Determine if an ee.DateRange object is unbounded.
print('Is dateRangeBounded unbounded?', dateRangeBounded.isUnbounded());
print('Is dateRangeUnbounded unbounded?', dateRangeUnbounded.isUnbounded());
Configuración de Python
Consulta la página
Entorno de Python para obtener información sobre la API de Python y el uso de geemap
para el desarrollo interactivo.
import ee
import geemap.core as geemap
Colab (Python)
# A series of ee.DateRange objects.
date_range_bounded = ee.DateRange('2017-06-24', '2017-07-24')
date_range_unbounded = ee.DateRange.unbounded()
# Determine if an ee.DateRange object is unbounded.
display('Is date_range_bounded unbounded?', date_range_bounded.isUnbounded())
display(
'Is date_range_unbounded unbounded?', date_range_unbounded.isUnbounded()
)
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-26 (UTC)
[null,null,["Última actualización: 2025-07-26 (UTC)"],[[["\u003cp\u003eThe \u003ccode\u003eisUnbounded()\u003c/code\u003e method, applied to a \u003ccode\u003eDateRange\u003c/code\u003e object, returns \u003ccode\u003etrue\u003c/code\u003e if the \u003ccode\u003eDateRange\u003c/code\u003e includes all dates.\u003c/p\u003e\n"],["\u003cp\u003eIt takes a single argument, the \u003ccode\u003eDateRange\u003c/code\u003e object itself, and returns a boolean value indicating whether the date range is unbounded.\u003c/p\u003e\n"],["\u003cp\u003eThis method helps determine if a \u003ccode\u003eDateRange\u003c/code\u003e is unbounded, meaning it represents all possible dates without specific start and end points.\u003c/p\u003e\n"],["\u003cp\u003eExamples demonstrate using \u003ccode\u003eisUnbounded()\u003c/code\u003e with \u003ccode\u003eDateRange\u003c/code\u003e objects in JavaScript and Python, illustrating how to check for unbounded date ranges.\u003c/p\u003e\n"]]],["The `isUnbounded()` method checks if a `DateRange` object contains all dates. It returns a boolean (`true` or `false`). The method is called on a `DateRange` object. The provided examples create bounded and unbounded `DateRange` objects and then use `isUnbounded()` to determine if they are unbounded. The outputs show if the object is unbounded, for example if the `DateRange` is `ee.DateRange.unbounded()`.\n"],null,["# ee.DateRange.isUnbounded\n\nReturns true if this DateRange contains all dates.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------|---------|\n| DateRange.isUnbounded`()` | Boolean |\n\n| Argument | Type | Details |\n|-------------------|-----------|---------|\n| this: `dateRange` | DateRange | |\n\nExamples\n--------\n\n### Code Editor (JavaScript)\n\n```javascript\n// A series of ee.DateRange objects.\nvar dateRangeBounded = ee.DateRange('2017-06-24', '2017-07-24');\nvar dateRangeUnbounded = ee.DateRange.unbounded();\n\n// Determine if an ee.DateRange object is unbounded.\nprint('Is dateRangeBounded unbounded?', dateRangeBounded.isUnbounded());\nprint('Is dateRangeUnbounded unbounded?', dateRangeUnbounded.isUnbounded());\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\n### Colab (Python)\n\n```python\n# A series of ee.DateRange objects.\ndate_range_bounded = ee.DateRange('2017-06-24', '2017-07-24')\ndate_range_unbounded = ee.DateRange.unbounded()\n\n# Determine if an ee.DateRange object is unbounded.\ndisplay('Is date_range_bounded unbounded?', date_range_bounded.isUnbounded())\ndisplay(\n 'Is date_range_unbounded unbounded?', date_range_unbounded.isUnbounded()\n)\n```"]]