{ "cells": [ { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "# NLDAS2 Forcing" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "execution": { "iopub.execute_input": "2021-11-12T23:05:08.325945Z", "iopub.status.busy": "2021-11-12T23:05:08.325171Z", "iopub.status.idle": "2021-11-12T23:05:09.703892Z", "shell.execute_reply": "2021-11-12T23:05:09.704334Z" } }, "outputs": [], "source": [ "from pathlib import Path\n", "\n", "import pynldas2 as nldas\n", "from pygeohydro import WBD" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "The NLDAS2 database provides forcing data at 1/8th-degree grid spacing and range from 01 Jan 1979 to present. Let's take a look at NLDAS2 grid mask that includes land, water, soil, and vegetation masks:" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
<xarray.Dataset>\n", "Dimensions: (lon: 464, lat: 224, time: 1, bnds: 2)\n", "Coordinates:\n", " * lon (lon) float32 -124.9 -124.8 -124.7 ... -67.31 -67.19 -67.06\n", " * lat (lat) float32 25.06 25.19 25.31 25.44 ... 52.69 52.81 52.94\n", " * time (time) datetime64[ns] 2000-01-01\n", " spatial_ref int64 0\n", "Dimensions without coordinates: bnds\n", "Data variables:\n", " time_bnds (time, bnds) datetime64[ns] ...\n", " NLDAS_mask (time, lat, lon) float32 ...\n", " CONUS_mask (time, lat, lon) float32 ...\n", " NLDAS_veg (time, lat, lon) float32 ...\n", " NLDAS_soil (time, lat, lon) float32 ...\n", "Attributes: (12/13)\n", " missing_value: -9999.0\n", " time_definition: constant\n", " title: NLDAS masks and predominant vegetation/soil\n", " institution: NASA GSFC\n", " history: created on date: Fri Mar 8 15:58:50 2019\n", " references: Mitchell_etal_JGR_2004; Xia_etal_JGR_2012\n", " ... ...\n", " website: https://ldas.gsfc.nasa.gov/nldas/\n", " MAP_PROJECTION: EQUIDISTANT CYLINDRICAL\n", " SOUTH_WEST_CORNER_LAT: 25.0625\n", " SOUTH_WEST_CORNER_LON: -124.9375\n", " DX: 0.125\n", " DY: 0.125