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

Data Model for NLDAS2 QA/Process Log Data #31

Open
19 of 32 tasks
rburghol opened this issue May 20, 2022 · 0 comments
Open
19 of 32 tasks

Data Model for NLDAS2 QA/Process Log Data #31

rburghol opened this issue May 20, 2022 · 0 comments
Assignees

Comments

@rburghol
Copy link
Contributor

rburghol commented May 20, 2022

Overview

Data Model

  • NLDAS data
    • import grid cells of interest as either raster or shape
    • set data to store overall download QA stuff
    • bundle = weather_sensor
    • ftype = nldas2
    • geometry = multipolygon
  • Land segments:
    • land segment has model, 1 model for each version (p6, p532)
    • model met scenarios are stored as properties under "met_scenarios"
    • bundle = landunit
    • ftype = cbp532_landseg, cbp6_landseg
    • geometry = multipolygon
    • Template Model property: om-model-info/6791051

Workflow

Run met data workflow steps all the way, so this gets inserted after pre-populating the database runtime table.

Cell and WDM QA

Single Cell csv QA

  • test a single land segment N51165: ./make_met2date N51165 19840101 20230829 "2021 2022 2023" landseg
  • test grid2land: i=N24013; ./grid2land.sh 2022010100 2022123123 /backup/meteorology /backup/meteorology/out/grid_met_csv $i
  • take a look inside, search for 2022,12,30 and 2023,8
    • nano /backup/meteorology/out/lseg_csv/1984010101-2023082923/${i}.PRC

Verify data in WDM files

  • Can use wdmexp command, whih will generate a summary,
    • met input:
      • Ex: cbp wdmexp met2date met met_N51073.wdm 1000 1984 2023
    • runoff SURO output:
      • Ex: cbp wdmexp vadeq_2021 land soyN51073.wdm 111 1984 2023
Loading /opt/model/p6/vadeq/hspf.config
Outputting to /opt/model/p6/vadeq/input/scenario/climate/met/met2date/
echo met_N51073.wdm,1984,2023,1000 | wdm2text
  program to write hourly ascii output from a wdm
 wdm name, start year, end year, dsn
 hourly average =    3.7912358137427338E-003
 annual average =    33.233973143268805

Check individual grid cells duration in CSV

gc=`./nldas_land_grids $i`
n=0
yr=2021
for i in $gc;do 
  if [ $n -gt 0 ]; then
    lrow=`tail -n 1 out/grid_met_csv/$yr/${i}zPP.txt`
    echo "$i: $lrow"
  fi
  n=$(($n+1))
done
# make the full met2date for this series
a2l_one 1984010101 2023082923 /backup/meteorology/out/grid_met_csv /backup/meteorology/out/lseg_csv N24031
@rburghol rburghol self-assigned this May 20, 2022
@rburghol rburghol changed the title Data Model for QA/Process Log Data Data Model for NLDAS2 QA/Process Log Data Jun 1, 2022
@rburghol rburghol transferred this issue from HARPgroup/HARParchive Mar 11, 2024
@rburghol rburghol mentioned this issue Sep 25, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant