Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter_spatial with Point returns NODATA pixel #1021

Open
bossie opened this issue Jan 28, 2025 · 0 comments
Open

filter_spatial with Point returns NODATA pixel #1021

bossie opened this issue Jan 28, 2025 · 0 comments
Labels

Comments

@bossie
Copy link
Collaborator

bossie commented Jan 28, 2025

This process graph (originally on CDSE) will generate a 1x1 image but its value is NODATA.

{
  "process_graph": {
    "load1": {
      "process_id": "load_collection",
      "arguments": {
        "id": "SENTINEL2_L2A",
        "bands": [
          "B02"
        ],
        "temporal_extent": [
          "2025-01-03T00:00:00Z",
          "2025-01-04T00:00:00Z"
        ],
        "spatial_extent": null
      }
    },
    "filter2": {
      "process_id": "filter_spatial",
      "arguments": {
        "data": {
          "from_node": "load1"
        },
        "geometries": {
          "type": "Point",
          "coordinates": [
            40.290404,
            60.542651
          ]
        }
      }
    },
    "save1": {
      "process_id": "save_result",
      "arguments": {
        "data": {
          "from_node": "filter2"
        },
        "format": "GTIFF"
      },
      "result": true
    }
  },
  "parameters": []
}
For comparison, the same process graph with a polygon that encompasses the point; it has data
{
  "process_graph": {
    "load1": {
      "process_id": "load_collection",
      "arguments": {
        "id": "SENTINEL2_L2A",
        "bands": [
          "B02"
        ],
        "temporal_extent": [
          "2025-01-03T00:00:00Z",
          "2025-01-04T00:00:00Z"
        ],
        "spatial_extent": null
      }
    },
    "filter2": {
      "process_id": "filter_spatial",
      "arguments": {
        "data": {
          "from_node": "load1"
        },
        "geometries": {
          "type": "Polygon",
          "coordinates": [
            [
              [
                40.2895030991,
                60.5417500991
              ],
              [
                40.2895030991,
                60.5435519009
              ],
              [
                40.2913049009,
                60.5435519009
              ],
              [
                40.2913049009,
                60.5417500991
              ],
              [
                40.2895030991,
                60.5417500991
              ]
            ]
          ]
        }
      }
    },
    "save1": {
      "process_id": "save_result",
      "arguments": {
        "data": {
          "from_node": "filter2"
        },
        "format": "GTIFF"
      },
      "result": true
    }
  },
  "parameters": []
}
@bossie bossie added the bug label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant