---
title: "Met Downscaling"
output: html_vignette
vignette: >
  %\VignetteIndexEntry{Met Downscaling}
  %\VignetteEngine{knitr::rmarkdown}
---

Met Downscaling
===============

## Subdaily Data

examples:

* NARR 3 hourly
* CRU-NCEP 6 hourly

### Extract 
TODO: urbana_subdaily_test now lives in the test folder, not extdata
```{r, eval=FALSE}
library(PEcAn.data.atmosphere)
subdaily.nc <- ncdf4::nc_open(system.file("extdata/urbana_subdaily_test.nc", package = "PEcAn.data.atmosphere"))
subdaily.cf <- load.cfmet(met.nc = subdaily.nc, lat = 39.75, lon = -87.25, start.date = "1979-01-01", end.date = "1979-06-30")
```

### Downscale

```{r, eval = FALSE}

hourly.cf <- cfmet.downscale.time(cfmet = subdaily.cf)

```

### Convert to model-specific format

```{r}

```
## Daily: what to do with ISIMIP - only daily average RH
