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

Use $USER environment variable in CUPiD notebook #258

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions notebooks/diagnostics/cupid.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
"# All parameters under global_params get passed to all the notebooks\n",
"\n",
"global_params:\n",
" CESM_output_dir: /glade/derecho/scratch/USERNAME/archive #<-Replace \"USERNAME\" with your own username\n",
" CESM_output_dir: /glade/derecho/scratch/${USER}/archive\n",
" #Uncomment code here if you need a complete CESM tutorial simulation:\n",
" #CESM_output_dir: /glade/campaign/cesm/tutorial/tutorial_2023_archive\n",
" lc_kwargs:\n",
Expand All @@ -205,7 +205,7 @@
" num_procs: 8\n",
" ts_done: [False]\n",
" overwrite_ts: [False]\n",
" ts_output_dir: /glade/derecho/scratch/USERNAME/archive #<-Replace \"USERNAME\" with your own username\n",
" ts_output_dir: /glade/derecho/scratch/${USER}/archive\n",
" case_name: 'b1850.run_length'\n",
"\n",
" #Variables can either be provided as a list (e.g. ['X', 'Y', 'Z']) or,\n",
Expand Down Expand Up @@ -342,7 +342,7 @@
"id": "63d02026-9dc3-492d-a14d-5b05d854833f",
"metadata": {},
"source": [
"Now let's check if the time series files were generated successfully, by examining the directory we are writing the time series files to. In the below command replace \"USERNAME\" with your username, and \"COMP\" with your components of choice (atm, lnd, ocn, ice, or glc):"
"Now let's check if the time series files were generated successfully, by examining the directory we are writing the time series files to. In the below command replace \"COMP\" with your components of choice (atm, lnd, ocn, ice, or glc):"
]
},
{
Expand All @@ -352,7 +352,7 @@
"metadata": {},
"outputs": [],
"source": [
"ts_data_path=\"/glade/derecho/scratch/USERNAME/archive/COMP/proc/tseries\"\n",
"ts_data_path=\"/glade/derecho/scratch/${USER}/archive/COMP/proc/tseries\"\n",
"ls $ts_data_path"
]
},
Expand Down