Logo
  • Bay-Delta SCHISM Project
  • Installation And Getting Started
    • Overview
    • SCHISM Software Code/Binaries
      • Downloading
      • Compile Settings
    • Bay-Delta SCHISM Python Package
      • Downloading
      • Contents
      • Bathymetry
      • Complete Sample Inputs
      • Other Required Python Packages
    • Configuration System
      • Overview
      • Configuration File Locations and Priorities
      • Usage
      • Example Configuration File
    • VisIt SCHISM Plug-in
    • Links to tools
  • Bay-Delta SCHISM User Guide
    • Essentials for Running the Model
      • Running a Preprepared Setup
      • Overview of a Bay-Delta SCHISM Run
        • Grid and Spatial Data
          • Templates
          • Preprocessor
        • Time-dependent data
        • Files that Change with Both Mesh and Dates
        • Driver Files (param.tropic.nml, param.clinic.nml)
        • Other Nomenclature and Concepts
        • Organizing the Launch Directory
      • Required Files, Directory Structure and Recommended Study Practices
        • Required files and structure
          • SCHISM launch directory structure
          • Launch directory
          • Output directory
          • Atmospheric (sflux) directory
          • Study layout
        • Input/Output Units
          • File Units
          • Coordinate System
      • Vignette: Hindcast Bay Delta SCHISM at Delta Modeling Section with Preprocessor
        • Windows
        • Linux
        • Barotropic Simulation
        • Baroclinic
    • Model Inputs & Generation
      • Overview of Model Inputs
      • Spatial Inputs and the Preprocessor
        • Mesh Input File
          • 2dms
          • hgrid.gr3
        • Preprocesing Spatial Data
          • When to use the preprocessor
          • Running the preprocessor
            • prepare_schism
            • Applying the template
            • Partial preprocessing for modification
            • Configuring the input (yaml)
          • Where to? Required files and directory structure
          • Volumetric Refinement and Smoothing, Depth Enforcement
            • Overview
            • Mathematical Formulation
            • Depth Enforcement
            • Shoreline Discovery Seeds
            • Preprocessor Integration
            • Inline Parameters (Annotated)
            • Examples
        • Vegetation
          • Aquatic Vegetation in SCHISM
          • Approximations and preprocessor
          • Effective Stem Density
          • Height
      • Boundaries and Sources: Time-Varying Inputs
        • Bay Delta Boundaries
        • Boundary Types (bctides.in)
          • Bay-Delta templates
          • Generating the files
        • Prepare Ocean Boundary (elev2D.th.nc)
          • bds gen_elev2d
        • Ocean Boundary Stabilization: Barotropic Warmup (uv3D.th.nc)
          • Introduction
          • Workflow
            • bctides.in
            • param.nml
            • vgrid.in
            • Simple method
            • Batch method (SLURM)
        • Inflow/Outflow Boundaries (flux.th)
          • Where are the data?
          • Clipping to run dates and conversion to elapsed time
          • What if I have to add or move a boundary?
          • Porting Boundaries from Other Sources
            • File Descriptions
            • Configuring the port_boundary yaml file
            • Use
            • Configuring the mapping file
          • Parsing Consumptive Use
            • parse_cu_yaml_cli()
            • Configuring the parse_cu yaml file
          • Plotting Input Boundaries
            • plot_bds_bc_cli()
            • Use
        • Atmospheric setup (sflux_*.nc)
          • Basic introduction and requirements
          • Where are the data?
          • Pointing to the data with make_links_full.py
        • Key Run Parameters and Gotchas
          • Runtime settings
          • Hotstart settings
          • Nudging settings
          • Output requests
          • Settings that have historically gone awry
          • What happens when SCHISM versions get advanced?
      • Run Initialization and Nudging: Spatio-Temporal Inputs
        • Nudging Files
          • Introduction: What is nudging?
          • Do I need nudging?
          • Generating nudging files
            • Nudging
          • Preparing for nudging with observed data
          • Nudging Example
          • Nudging Suffix Standards and Procedure
            • SCHISM Conventions
            • BayDeltaSCHISM Conventions
            • Using the set_nudge Utility
          • Sequencing your run
          • References
        • Run Initialization and Restart (Hotstart)
          • When do you need an initial condition or hotstart?
          • What is the difference between a cold and hot start?
          • Choosing a good start time
          • Creating a Hotstart for Hydro/Salt/Temp with schism_hotstart
            • Examples
            • Acquiring the data
          • Initializing Restoration Areas and Gradual Inundation
          • Combining Hotstarts and Managing Restart Files
          • Hotstart Inventory Utility (schimpy.hotstart_inventory)
          • Automated Hotstart Combining (bdschism.combine_hotstart)
            • File Naming Convention
            • Typical Use Cases
          • Why This Matters
    • Inspection of Model Setup
      • Test Suite for Prechecking Runs
        • Using the Tests
        • Writing Run Tests
          • Basics of testing
          • Test Fixtures
          • Markers
          • What to test
      • Checklists
        • Running a Processed Setup
        • Simple Hindcast Runs
          • ☐ Choose run dates
          • ☐ Apply template to existing mesh
          • ☐ Collect time series inputs
          • ☐ Hotstart (can be concurrent with barotropic)
          • ☐ Nudging (can be concurrent with barotropic)
          • ☐ Barotropic warmup
          • ☐ Baroclinic simulation
        • Sea level rise (SLR) runs
          • SLR-specific items
          • Workflow for setting up a SLR run where bathymetry and hydrology come from two separate, existing runs
    • Output
      • Flavors of output
      • What you should plan in advance
        • Request station output
          • station.in
          • flow_station_xsects.yaml and fluxflag.prop
        • Request dense output (netCDF/*.nc files)
      • Working with output files
        • staout_ files
        • flux.out files
        • Visualizing dense (.nc) output in VisIt
          • SCHISM VisIT Plug-in Manual
      • SCHISM’s extraction utilities
      • Quick validation plots
      • Where do we keep specialized postprocessing materials?
    • Computing Resources
      • Intro to Clusters and High Performance Computing
        • Anatomy of a Cluster
        • Figure: Cluster Components
        • Compilation
        • Job Submission
        • Compute Nodes and Message Passing
        • Input/Output and Scribes
        • Example Slurm Launch File
        • Example Shell Script to Run SCHISM
        • Intro to Batch Cloud Cluster
        • Figure: Azure Batch Cluster Components
      • Running on Azure Batch
        • Setup Azure
          • Download Azure Utilities
          • Login
          • Register with Azure
            • Set Console Variables
            • Create Azure Accounts
            • Removing a Resource Group
          • Download azure_dms_batch
        • Upload Applications
          • SCHISM
          • Python Packages
        • File Transfer Commands
          • azcopy commands
            • Generating SAS Links
          • azcopy options
        • Ensure Batch Quota
        • References
      • Step-by-step: HelloSCHISM on Azure
        • Initial Setup
        • Uploading Model Input Files
        • Set up Model Run Config
          • Spot Pricing Config
        • Run Simulation!
      • Step-by-step: Bay-Delta SCHISM on Azure
        • Initial Setup
        • Uploading Model Input Files
        • Running Model Simulation
          • Simple Run Config
          • Spot Pricing Config
    • Advanced Tasks and Concepts
      • Common Problems and Diagnosis
        • Where does SCHISM write error messages?
        • Common Problems
          • SIGSEGV or segmentation fault
          • The runs seems very slow compared to normal
          • Dry boundary
        • SCHISM Errors & Solutions
        • SCHISM Utility Errors & Solutions
      • Simulating water age
        • Compile with age
        • Parameters in param.nml
        • Additional *.ic files
        • Hotstart considerations
        • Typical output processing
      • Sea Level Rise
      • Sources, Sinks, Delta Channel Depletions
        • Identifying source locations and names in preprocessor
        • Delta and Suisun channel depletions
        • Making sure you includ the th files for sources/sinks
        • Tracer concentrations
      • Mesh Generation
        • Horizontal Mesh
          • Meshing considerations for SCHISM
            • Video (Joseph Zhang, SCHISM summit)
            • Recap/checklist
          • Getting to know SMS
            • Sample Data
            • Recap checklist
            • Presentation: clip_dems and efficient use of DEMS
          • Building the Bay-Delta mesh the standard way
          • Presentation: Meshing consideration for marshes and restoration
          • Merging/Stitching SMS mesh/maps (new work, flooded islands, etc)
            • Video
            • Recap/checklist
        • Vertical Mesh
        • Checklist for after you change the mesh
        • Performance Tuning
          • The analyze_dt Utility
      • Wetting, Drying, and Fluxes in SCHISM
        • Overview
        • Wet/dry side states
        • Wetting and drying changes mesh state
        • Variable placement
        • Case A: ordinary wet/wet side
        • Case B: wet side with one dry neighbor
          • Hydrodynamics at B
          • Interpreting volume flux at B
        • Tracer transport at B
          • WENO and implicit-vertical transport
        • Case C: dry side
        • Case D: a true open boundary
        • How flux.out calculates volume flux
        • 10. Why B can appear in flux.out even though TVD tracer transport skips it
        • 11. Native tracer flux in flux.out
        • 12. Rewetting and tracer state
        • 13. Unit-tracer thought experiment
        • 14. Hydrodynamic conservation versus interpreting a single B-side flux
        • 15. Why fine discretization on levee slopes remains important
        • 16. Final interpretation table
        • 17. Final code-path table
        • Compact summary
        • 19. Source basis
      • Utilities and Scripts
        • GIS Conversion
          • Mesh to shapefile
          • Polygons to/from shapefile
          • Polylines to/from shapefile
        • Hotstart Inventory: Convert iteration numbers to dates
        • model_time and multi_clip
  • Learning Resources for Bay-Delta SCHISM
    • General Resources and Tools
      • Bay-Delta SCHSIM Tutorials
      • Linux Hints for SCHISM
        • Using Linux from Windows
          • Basic connection
          • Copying files
          • XWindow Emulation
          • All-in-one: MobaXTerm
        • Copying a Run Safely
          • Special Case: Remote Computer Using RSA Keys
        • Symbolic links
        • Archives and Tarballs
        • Essential commands in a SCHISM context
    • Manuals
    • Getting Help
    • VIMS and Other External Resources
  • Calibration Report and References
    • Calibration
  • Contributing to the Documentation
    • Introduction
    • Getting Started
      • Windows
      • Linux and macOS
      • What the helper does
    • How it works
      • Local html pages
      • GitHub Pages
    • Examples and Concepts
      • Sphinx Documentation Principles
        • Code Auto-Documentation
        • Headings order
        • BayDeltaSCHISM Specifics
      • Sphinx examples
        • Math
        • Figures
        • Diagrams
          • Sphinx Mermaid Directive
          • Embedding Charts with SVG
        • Embedding Videos
      • Mermaid Chart Principles
        • BayDeltaSCHISM Standards
          • Symbols
          • Style
        • VS Code plugin
        • Cool stuff
          • Clickables
          • Icons in an Element
      • Click Documentation Principles
  • Training
  • Support
  • References
  • bdschism python package
    • bdschism package
      • Subpackages
        • bdschism.config package
          • Module contents
      • Submodules
      • bdschism.analyze_dt module
        • load_data()
        • plot_summarized_bad_actors()
        • summarize_elements()
        • write_bad_csv()
        • write_bad_shp()
      • bdschism.barrier_status module
        • main()
        • read_install_series()
        • status_at_midnight()
      • bdschism.calc_ndoi module
        • calc_indoi()
      • bdschism.ccf_gate_height module
        • ccf_gate()
        • create_priority_series()
        • draw_down_regression()
        • export_lookup()
        • flow_to_max_gate()
        • flow_to_priority()
        • gen_gate_height()
        • gen_prio_for_varying_exports()
        • get_flux_ts_cfs()
        • make_priorities()
        • predict_oh4_level()
        • process_height()
        • radial_gate_flow()
        • radial_gate_flow_ts()
        • remove_continuous_duplicates()
        • save_prio_ts()
        • sffpx_level()
        • simple_mass_balance()
      • bdschism.channel_depletion module
        • convert_channel_depletion()
        • convert_nc_flow()
      • bdschism.check_nudging_data module
        • load_nc_series()
        • validate_nudging_files()
      • bdschism.combine_hotstart module
        • combine_hot()
      • bdschism.combine_nc module
        • combine_nc()
        • combine_uv3d()
        • compare_dataarray_all_axes()
        • get_selected_files()
        • validate_time_step_consistency()
      • bdschism.config_cli module
      • bdschism.convert_csv_th module
        • convert_csv_th()
        • detect_header()
      • bdschism.convert_struct_data_schism module
        • convert_struct_data_schism()
        • write_ccf_th()
      • bdschism.create_sflux_links module
      • bdschism.cruise module
        • check_read_output10_xyt_available()
        • cruise_plot()
        • cruise_xyt()
        • do_depth_plot()
        • gen_multi_profile_plot()
        • gen_profile_plot()
        • gen_station_xyt()
        • longitudinal()
        • main()
        • match_cruise()
        • model_data_for_longitude()
        • process_cruise()
        • process_cruise_yearly_csv()
        • process_stations()
        • process_xyt()
        • validate_out2d_time_variable()
      • bdschism.diff_gr3 module
        • diff_congruent_gr3()
      • bdschism.gen_elev2d module
        • BinaryTHWriter
          • BinaryTHWriter.write_all()
          • BinaryTHWriter.write_step()
        • NetCDFTHWriter
          • NetCDFTHWriter.write_all()
          • NetCDFTHWriter.write_step()
        • THWriter
          • THWriter.write_all()
          • THWriter.write_step()
        • gen_elev2D()
      • bdschism.generate_realtime_elev2d module
        • main()
        • stitch_station()
      • bdschism.generate_visit_filelist module
        • visit_list()
      • bdschism.hotstart_date module
        • set_hotstart_date()
      • bdschism.hotstart_from_hotstart module
        • hotstart_newgrid()
      • bdschism.hotstart_nudging_data module
        • hotstart_nudge_data()
      • bdschism.logging_config module
        • LoggingConfig
          • LoggingConfig.clear_handlers
          • LoggingConfig.console
          • LoggingConfig.include_pid_in_filename
          • LoggingConfig.include_third_party
          • LoggingConfig.level
          • LoggingConfig.logdir
          • LoggingConfig.logfile_prefix
          • LoggingConfig.package_name
          • LoggingConfig.propagate
        • configure_logging()
        • configure_logging_config()
        • resolve_loglevel()
      • bdschism.nc_metadata module
        • nc_metadata()
      • bdschism.ocean_boundary_ops module
        • ocean_bathy_smooth_blend()
        • ocean_manning_ramp()
      • bdschism.parse_cu module
        • adjust_src_sink()
        • calc_net_calsim()
        • calc_net_diff()
        • calc_net_dsm2()
        • calc_net_obs_schism()
        • calc_net_schism()
        • calc_srcsnk_dsm2()
        • orig_pert_to_schism_dcd()
        • orig_pert_to_schism_dcd_yaml()
        • read_net_csv()
        • sch_dcd_net_diff()
        • strip_dpart()
      • bdschism.plot_input_boundaries module
        • get_boundary_data()
        • get_date_data()
        • get_observed_data()
        • get_observed_tide()
        • get_required_files()
        • plot_bds_bc()
        • plot_bds_boundaries()
      • bdschism.port_boundary module
        • clean_df()
        • create_schism_bc()
        • plot_ported_bc()
        • read_csv()
        • set_gate_fraction()
        • set_gate_ops()
      • bdschism.potw module
        • potw_to_schism()
      • bdschism.predict_smscg_tidal_op module
        • load_ts()
        • load_ts_from_repo()
        • load_ts_harmonic()
        • plot_gate_op_ts()
        • predict_gate_op()
        • smscg_gate()
      • bdschism.profile_plot module
        • get_index_bounds()
        • nearest_neighbor_fill()
        • profile_plot()
        • set_index_bounds()
        • vertical_fill()
      • bdschism.read_dss module
        • check_exclude()
        • read_dss()
      • bdschism.runtime_hotstart module
        • rst_fm_hotstart
          • rst_fm_hotstart.combine_hotstart()
          • rst_fm_hotstart.get_last_hotstart()
          • rst_fm_hotstart.get_mirror_crash()
          • rst_fm_hotstart.get_ts_info()
          • rst_fm_hotstart.param_mod()
        • tail()
      • bdschism.set_mode module
        • ModeError
        • set_mode()
      • bdschism.set_nudging module
        • get_nudge_list()
        • parse_var_map()
        • set_nudging()
      • bdschism.settings module
        • create_link()
        • get_output_from_interpolate_variables()
        • get_settings()
        • interpolate_variables()
      • bdschism.slice_th_nc module
        • CLI
        • slice_nc()
      • bdschism.smscg_log_2_schism_th module
      • bdschism.source_sink_postprocess module
        • added_src_sink_names()
        • copy_paradise_up()
        • create_mss_minimum_srcsink()
        • create_nullzone_sink()
        • floor_source_sink_exchange()
        • inferred_to_psu()
        • tps_masks()
        • write_source_sink_th()
      • bdschism.source_sink_workflow module
        • run_source_sink_workflow()
      • bdschism.synthetic_copy module
        • is_leap_year_manual()
      • bdschism.synthetic_sflux module
        • Leap-year handling
        • configure_logging()
        • is_leap_year()
      • bdschism.three_point_linear_norm module
        • ThreePointLinearNorm
          • ThreePointLinearNorm.autoscale()
          • ThreePointLinearNorm.autoscale_None()
          • ThreePointLinearNorm.inverse()
          • ThreePointLinearNorm.scaled()
      • bdschism.tide module
        • Node
          • Node.add_child()
          • Node.add_parent()
          • Node.get_ancestors()
          • Node.get_descendants()
          • Node.num_ancestors()
          • Node.num_descendants()
        • gen_constituents_tree()
        • get_astro_constituent_names()
        • get_constituents()
      • bdschism.uv3d module
        • interpolate_uv3d()
        • setup_tmp_dir()
        • single_uv3d()
      • bdschism.x2_buildpoints module
        • create_arg_parser()
        • main()
        • main_fixed()
        • x2_route2_bp()
      • bdschism.x2_time_series module
        • create_arg_parser()
        • default_outname()
        • find_x2()
        • get_start_date_from_param()
        • main()
        • main_hardwire()
        • process_x2()
      • bdschism.zone_utils module
        • face_aver()
        • face_aver_inst()
        • fill_ele_area()
        • fill_ele_area510()
        • gen_node_neibor_ele()
        • gen_node_wet_dry()
        • quad_area()
        • triangle_area()
      • Module contents
Bay-Delta SCHISM

Advanced Tasks and Concepts

  • Common Problems and Diagnosis
  • Simulating water age
  • Sea Level Rise
  • Sources, Sinks, Delta Channel Depletions
  • Mesh Generation
  • Wetting, Drying, and Fluxes in SCHISM
  • Utilities and Scripts
Previous Next

© Copyright 2014,2020 California Department of Water Resources.

Built with Sphinx using a theme provided by Read the Docs.