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

json cannot contain -nan #48

Open
przell opened this issue Jul 23, 2021 · 1 comment
Open

json cannot contain -nan #48

przell opened this issue Jul 23, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@przell
Copy link
Member

przell commented Jul 23, 2021

I received a json containing -nan. It doesn't seem to be supported by json.

image

According pg:

{
  "id": "test",
  "process_graph": {
    "load_collection_TJFKM9997B": {
      "process_id": "load_collection",
      "arguments": {
        "id": "SAO_S2_ST_BRDF_10m_L2A",
        "spatial_extent": {
          "west": 11.5383,
          "east": 11.5383,
          "south": 46.4867,
          "north": 46.4867
        },
        "temporal_extent": [
          "2016-01-01T00:00:00Z",
          "2020-01-01T00:00:00Z"
        ],
        "bands": [
          "B04",
          "B08"
        ]
      }
    },
    "reduce_dimension_BXTOH3275E": {
      "process_id": "reduce_dimension",
      "arguments": {
        "data": {
          "from_node": "load_collection_TJFKM9997B"
        },
        "reducer": {
          "process_graph": {
            "array_element_EETGR5045G": {
              "process_id": "array_element",
              "arguments": {
                "data": {
                  "from_parameter": "data"
                },
                "index": 1,
                "return_nodata": false
              }
            },
            "array_element_BTGMF3287L": {
              "process_id": "array_element",
              "arguments": {
                "data": {
                  "from_parameter": "data"
                },
                "index": 0,
                "return_nodata": false
              }
            },
            "subtract_SSDYC8213C": {
              "process_id": "subtract",
              "arguments": {
                "x": {
                  "from_node": "array_element_EETGR5045G"
                },
                "y": {
                  "from_node": "array_element_BTGMF3287L"
                }
              }
            },
            "add_SWVYQ2330D": {
              "process_id": "add",
              "arguments": {
                "x": {
                  "from_node": "array_element_EETGR5045G"
                },
                "y": {
                  "from_node": "array_element_BTGMF3287L"
                }
              }
            },
            "divide_MKMAT8525D": {
              "process_id": "divide",
              "arguments": {
                "x": {
                  "from_node": "subtract_SSDYC8213C"
                },
                "y": {
                  "from_node": "add_SWVYQ2330D"
                }
              },
              "result": true
            }
          }
        },
        "dimension": "bands",
        "context": null
      }
    },
    "save_result_ZPHWX9536E": {
      "process_id": "save_result",
      "arguments": {
        "data": {
          "from_node": "reduce_dimension_BXTOH3275E"
        },
        "format": "json",
        "options": {}
      },
      "result": true
    }
  },
  "parameters": [],
  "returns": {
    "schema": {
      "type": "boolean",
      "subtype": [],
      "pattern": [],
      "parameters": [],
      "items": {
        "type": {}
      },
      "minItems": [],
      "maxItems": []
    }
  }
} 
@przell przell added the bug Something isn't working label Jul 23, 2021
@przell
Copy link
Member Author

przell commented Jul 23, 2021

The -nan needs quotes around it -> "-nan"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants