|
| 1 | +dms_datastore Command Reference |
| 2 | +=============================== |
| 3 | + |
| 4 | +This page collects CLI command help pointers and workflow examples for the commands |
| 5 | +exposed by the package entry points. |
| 6 | + |
| 7 | +Main Entrypoint |
| 8 | +--------------- |
| 9 | + |
| 10 | +Use the `dms` grouped CLI (or call commands directly by script name). |
| 11 | + |
| 12 | +.. code-block:: bash |
| 13 | +
|
| 14 | + # grouped help |
| 15 | + dms --help |
| 16 | +
|
| 17 | + # subcommand help (example) |
| 18 | + dms download_ncro --help |
| 19 | +
|
| 20 | +Command Help Shortcuts |
| 21 | +----------------------- |
| 22 | + |
| 23 | +.. code-block:: bash |
| 24 | +
|
| 25 | + dms --help |
| 26 | + download_noaa --help |
| 27 | + download_hycom --help |
| 28 | + download_hrrr --help |
| 29 | + download_cdec --help |
| 30 | + download_wdl --help |
| 31 | + download_nwis --help |
| 32 | + download_des --help |
| 33 | + download_ncro --help |
| 34 | + download_mokelumne --help |
| 35 | + download_ucdipm --help |
| 36 | + download_cimis --help |
| 37 | + download_dcc --help |
| 38 | + download_montezuma_gates --help |
| 39 | + download_smscg --help |
| 40 | + compare_directories --help |
| 41 | + populate_repo --help |
| 42 | + station_info --help |
| 43 | + reformat --help |
| 44 | + auto_screen --help |
| 45 | + inventory --help |
| 46 | + usgs_multi --help |
| 47 | + delete_from_filelist --help |
| 48 | + data_cache --help |
| 49 | + merge_files --help |
| 50 | + dropbox --help |
| 51 | + coarsen --help |
| 52 | + update_repo --help |
| 53 | + update_flagged_data --help |
| 54 | + rationalize_time_partitions --help |
| 55 | +
|
| 56 | +Workflow A: Repository Build Pipeline (Download → Reformat → Auto Screen) |
| 57 | +----------------------------------------------------------------------- |
| 58 | + |
| 59 | +Stage 1: Download into raw/staging |
| 60 | + |
| 61 | +.. code-block:: bash |
| 62 | +
|
| 63 | + # helper pattern used by all downloaders |
| 64 | + download_noaa --help |
| 65 | + download_nwis --help |
| 66 | + download_des --help |
| 67 | + download_ncro --help |
| 68 | +
|
| 69 | +Examples |
| 70 | +~~~~~~~~ |
| 71 | + |
| 72 | +.. code-block:: bash |
| 73 | +
|
| 74 | + # NOAA |
| 75 | + download_noaa --start 2024-01-01 --end 2024-01-31 --param water_level --stations ccc --dest <raw_dir> |
| 76 | +
|
| 77 | + # NWIS |
| 78 | + download_nwis --start 2024-01-01 --end 2024-01-31 --stations sjj --param 00060 --dest <raw_dir> |
| 79 | +
|
| 80 | + # DES |
| 81 | + download_des --start 2024-01-01 --end 2024-01-31 --stations cll --param flow --dest <raw_dir> |
| 82 | +
|
| 83 | + # NCRO timeseries |
| 84 | + download_ncro --start 2024-01-01 --end 2024-12-31 --stations orm --param elev --dest <raw_dir> |
| 85 | +
|
| 86 | + # NCRO inventory only |
| 87 | + download_ncro --inventory-only |
| 88 | +
|
| 89 | + # CDEC |
| 90 | + download_cdec --start 2024-01-01 --end 2024-01-31 --stations cse --param elev --dest <raw_dir> |
| 91 | +
|
| 92 | + # HYCOM |
| 93 | + download_hycom --sdate 2024-01-01 --edate 2024-01-31 --raw_dest <hycom_raw_dir> --processed_dest <hycom_processed_dir> |
| 94 | +
|
| 95 | + # HRRR |
| 96 | + download_hrrr --sdate 2024-01-01 --edate 2024-01-03 --dest <hrrr_raw_dir> |
| 97 | +
|
| 98 | + # UCD IPM (positional dates) |
| 99 | + download_ucdipm 2024-01-01 2024-01-31 --stnkey 281 |
| 100 | +
|
| 101 | +Stage 2: Reformat raw → formatted |
| 102 | + |
| 103 | +.. code-block:: bash |
| 104 | +
|
| 105 | + reformat --inpath <raw_dir> --outpath <formatted_dir> |
| 106 | +
|
| 107 | +Stage 2b: USGS multivariate cleanup |
| 108 | + |
| 109 | +.. code-block:: bash |
| 110 | +
|
| 111 | + usgs_multi --fpath <formatted_dir> |
| 112 | +
|
| 113 | +Stage 3: Auto screen formatted → screened |
| 114 | + |
| 115 | +.. code-block:: bash |
| 116 | +
|
| 117 | + auto_screen --fpath <formatted_dir> --dest <screened_dir> |
| 118 | +
|
| 119 | +Workflow B: Dropbox Ingest (separate workflow) |
| 120 | +---------------------------------------------- |
| 121 | + |
| 122 | +.. code-block:: bash |
| 123 | +
|
| 124 | + dropbox --input dms_datastore/config_data/dropbox_spec.yaml |
| 125 | +
|
| 126 | +Workflow C: Staging → Repo update and utilities |
| 127 | +------------------------------------------------ |
| 128 | + |
| 129 | +.. code-block:: bash |
| 130 | +
|
| 131 | + update_repo <staging_formatted_dir> <repo_formatted_dir> --plan --out-actions update_plan.csv |
| 132 | + update_repo <staging_formatted_dir> <repo_formatted_dir> --apply |
| 133 | +
|
| 134 | +Additional Utilities |
| 135 | +-------------------- |
| 136 | + |
| 137 | +See the documentation for details and examples for `station_info`, `merge_files`, `coarsen`, and other utilities. |
0 commit comments