{
  "place_id": "NMS:CINMS",
  "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": 89,
  "axes": [
    {
      "bbox": [
        -120.64208,
        33.36241,
        -118.90712,
        34.20707
      ],
      "lon": [
        -120.666664,
        -120.583336,
        -120.5,
        -120.416664,
        -120.333336,
        -120.25,
        -120.166664,
        -120.083336,
        -120,
        -119.916664,
        -119.833336,
        -119.75,
        -119.666664,
        -119.583336,
        -119.5,
        -119.416664,
        -119.333336,
        -119.25,
        -119.166664,
        -119.083336,
        -119,
        -118.916664
      ],
      "lat": [
        34.22418,
        34.140804,
        34.057434,
        33.974064,
        33.89069,
        33.80732,
        33.723946,
        33.640575,
        33.5572,
        33.47383,
        33.390457
      ]
    }
  ],
  "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(34.22418):1:(33.390457)%5D%5B(-120.666664):1:(-118.916664)%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(34.22418):1:(33.390457)%5D%5B(-120.666664):1:(-118.916664)%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(34.22418):1:(33.390457)%5D%5B(-120.666664):1:(-118.916664)%5D"
  ],
  "griddap_url_templates": [
    "https://erddap.oceanmetrics.io/erddap/griddap/moda_npp_mo_glob.parquet?npp%5B({t0}):1:({t1})%5D%5B(34.22418):1:(33.390457)%5D%5B(-120.666664):1:(-118.916664)%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": 13451,
  "generated": "2026-10-22T14:38:27Z",
  "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"
}
