Description Usage Arguments Details Value Examples
Generate bash script for copying ALFRESCO map outputs from one file system location to another.
1 2 3 | copy_alf_outputs(project, in_dir, out_dir = alfdef()$alf_extract_dir,
file = "copy_alf_outputs.sh", domain = "akcan1km",
cru_id = "CRU32")
|
project |
character, a (new) name for the project, not required to match anything in source data directories. |
in_dir |
input directory, the parent directory above model (GCM/RCP) run subdirectories. |
out_dir |
output directory. |
file |
name of shell script. |
domain |
character, the ALFRESCO run spatial domain, either |
cru_id |
character, label for CRU data. Defaults to |
This function is used for generating a bash script that is used for making a copy of a subset of ALFRESCO geotiff map outputs for subsequent analyses. The historical and projected periods (years subsets) are inferred from the choice of ALFRESCO spatial domain. The file copy process adjusts the new file path structure, creates more consistency, and limits the number of geotiffs to only the required ones. This means not only limiting to standard year ranges but also retaining only fire scar, vegetation type and vegetation age maps. The bash script itself is run on SNAP's Atlas cluster.
Note that this function is intended to be run on the Atlas cluster. If you make a bash script like this on Windows,
you may have to run a command line utility like dos2unix
on the file.
invisible, writes a file to disk.
1 2 3 4 5 6 7 | ## Not run:
copy_alf_outputs(
"JFSP",
"/big_scratch/shiny/Runs_Statewide/JFSP",
domain = "ak1km")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.