Difference between revisions of "Migrate experiment projects"

Line 10: Line 10:
  
 
= Tips for other scripts =
 
= Tips for other scripts =
 +
  
  
 
== Find files with the project listed in ==
 
== Find files with the project listed in ==
  
To find all the files with the following command:
+
To find all the files that contain the mention of <samp>w35</samp>, you can use the following command:
 
<pre>grep --exclude=*.nc -irlI w35 <directory_name> > files_to_update.txt</pre>
 
<pre>grep --exclude=*.nc -irlI w35 <directory_name> > files_to_update.txt</pre>
  
 
<samp>files_to_update.txt </samp>will contain a list of files where <samp>w35</samp> appear in at least one line. The command will ignore binary files. It will also exclude netCDF files and you can exclude more files from the search (e.g. figures). Replace <samp><directory_name></samp> with the directory you want to search through.
 
<samp>files_to_update.txt </samp>will contain a list of files where <samp>w35</samp> appear in at least one line. The command will ignore binary files. It will also exclude netCDF files and you can exclude more files from the search (e.g. figures). Replace <samp><directory_name></samp> with the directory you want to search through.

Revision as of 18:22, 14 November 2021

This page contains information on what to do if you want to change project to work at NCI.

Climate model experiments

WRF does not have a standard experiment setup so we can't give specific instructions for this model.

Tips for other scripts

Find files with the project listed in

To find all the files that contain the mention of w35, you can use the following command:

grep --exclude=*.nc -irlI w35 <directory_name> > files_to_update.txt

files_to_update.txt will contain a list of files where w35 appear in at least one line. The command will ignore binary files. It will also exclude netCDF files and you can exclude more files from the search (e.g. figures). Replace <directory_name> with the directory you want to search through.