{
  "place_id": "NMS:NMSAS",
  "dataset_id": "moda_npp_mo_glob",
  "variable": "npp",
  "categorical": false,
  "start_date": "2002-07-31",
  "end_date": "2023-12-31",
  "start_datetime": "2002-07-31T00:00:00Z",
  "end_datetime": "2023-12-31T00:00:00Z",
  "record_start": "2002-07-31",
  "lobes": 1,
  "mask_cells": 472,
  "axes": [
    {
      "bbox": [
        -171.1409031,
        -15.3861496,
        -167.2835263,
        -10.9975996
      ],
      "lon": [
        -171.16667,
        -171.08333,
        -171,
        -170.91667,
        -170.83333,
        -170.75,
        -170.66667,
        -170.58333,
        -170.5,
        -170.41667,
        -170.33333,
        -170.25,
        -170.16667,
        -170.08333,
        -170,
        -169.91667,
        -169.83333,
        -169.75,
        -169.66667,
        -169.58333,
        -169.5,
        -169.41667,
        -169.33333,
        -169.25,
        -169.16667,
        -169.08333,
        -169,
        -168.91667,
        -168.83333,
        -168.75,
        -168.66667,
        -168.58333,
        -168.5,
        -168.41667,
        -168.33333,
        -168.25,
        -168.16667,
        -168.08333,
        -168,
        -167.91667,
        -167.83333,
        -167.75,
        -167.66667,
        -167.58333,
        -167.5,
        -167.41667,
        -167.33333,
        -167.25
      ],
      "lat": [
        -10.963409,
        -11.046781,
        -11.130153,
        -11.213525,
        -11.296897,
        -11.380269,
        -11.46364,
        -11.547012,
        -11.630384,
        -11.713757,
        -11.797129,
        -11.8805,
        -11.963872,
        -12.047244,
        -12.130616,
        -12.213988,
        -12.297359,
        -12.380732,
        -12.464104,
        -12.547476,
        -12.630848,
        -12.714219,
        -12.797591,
        -12.880963,
        -12.964335,
        -13.047708,
        -13.13108,
        -13.214451,
        -13.297823,
        -13.381195,
        -13.464567,
        -13.547939,
        -13.63131,
        -13.714683,
        -13.798055,
        -13.881427,
        -13.964799,
        -14.04817,
        -14.131542,
        -14.214914,
        -14.298286,
        -14.381659,
        -14.46503,
        -14.548402,
        -14.631774,
        -14.715146,
        -14.798518,
        -14.881889,
        -14.965261,
        -15.048634,
        -15.132006,
        -15.215378,
        -15.298749,
        -15.382121
      ]
    }
  ],
  "griddap_urls": [
    "https://erddap.oceanmetrics.io/erddap/griddap/moda_npp_mo_glob.parquet?npp%5B(2002-07-31T00:00:00Z):1:(2010-02-08T12:00:00Z)%5D%5B(-10.963409):1:(-15.382121)%5D%5B(-171.16667):1:(-167.25)%5D",
    "https://erddap.oceanmetrics.io/erddap/griddap/moda_npp_mo_glob.parquet?npp%5B(2010-02-09T12:00:00Z):1:(2017-08-20T12:00:00Z)%5D%5B(-10.963409):1:(-15.382121)%5D%5B(-171.16667):1:(-167.25)%5D",
    "https://erddap.oceanmetrics.io/erddap/griddap/moda_npp_mo_glob.parquet?npp%5B(2017-08-21T12:00:00Z):1:(2023-12-31T00:00:00Z)%5D%5B(-10.963409):1:(-15.382121)%5D%5B(-171.16667):1:(-167.25)%5D"
  ],
  "griddap_url_templates": [
    "https://erddap.oceanmetrics.io/erddap/griddap/moda_npp_mo_glob.parquet?npp%5B({t0}):1:({t1})%5D%5B(-10.963409):1:(-15.382121)%5D%5B(-171.16667):1:(-167.25)%5D"
  ],
  "griddap_chunks": [
    [
      "2002-07-31T00:00:00Z",
      "2010-02-08T12:00:00Z"
    ],
    [
      "2010-02-09T12:00:00Z",
      "2017-08-20T12:00:00Z"
    ],
    [
      "2017-08-21T12:00:00Z",
      "2023-12-31T00:00:00Z"
    ]
  ],
  "griddap_requests": 3,
  "rows": 259,
  "bytes": 13335,
  "generated": "2026-10-22T14:38:25Z",
  "erddap_base": "https://erddap.oceanmetrics.io/erddap",
  "erddap_version": "2.31.1",
  "sql": "-- daily key statistics for one place from an ERDDAP griddap slab.\n--   s.\"npp\"  the value expression over the slab alias `s` (e.g. s.\"CRW_SST\", or\n--             (s.\"analysed_sst\" - 273.15) to convert Kelvin to Celsius)\n--   (SELECT DISTINCT * FROM read_parquet([<one griddap slab per lobe for the chunk>]))  the registered griddap file (parquet) or view\n--   mask  the mask table: latitude, longitude, weight (0,1]\n-- the join is an exact equality on ROUND(x, 3): the ERDDAP axis is float32 in the parquet and float64\n-- in the JS mask, so 21.375 arrives as 21.374999... on one side; rounding to the grid's 3 decimals\n-- (0.05 spacing) makes the two match without a tolerance join.\nSELECT\n  -- utc day; via epoch_ms because duckdb-wasm ships without icu, so TIMESTAMPTZ::DATE is unimplemented there\n  make_timestamp(epoch_ms(s.\"time\") * 1000)::DATE   AS date,\n  count(s.\"npp\")                                  AS n,\n  avg(s.\"npp\")                                    AS mean,\n  sum(s.\"npp\" * m.weight) / sum(m.weight)         AS mean_wt,\n  stddev_samp(s.\"npp\")                            AS sd,\n  min(s.\"npp\")                                    AS min,\n  max(s.\"npp\")                                    AS max,\n  quantile_cont(s.\"npp\", 0.10)                    AS p10,\n  quantile_cont(s.\"npp\", 0.90)                    AS p90,\n  sum(m.weight)                                     AS weight_sum\nFROM (SELECT DISTINCT * FROM read_parquet([<one griddap slab per lobe for the chunk>])) s\nJOIN mask m\n  ON  ROUND(s.latitude::DOUBLE,  3) = ROUND(m.latitude::DOUBLE,  3)\n  AND ROUND(s.longitude::DOUBLE, 3) = ROUND(m.longitude::DOUBLE, 3)\nWHERE s.\"npp\" IS NOT NULL\nGROUP BY 1\nORDER BY 1"
}
