batch_process | R Documentation |
Used for routine acquisition of GOES FDCC files from a CLASS subscription. The function (really a script) will open an ftp location, find all of the netcdf FDCC files (currently skipping FDCF), and process all of those files that are not already found in the download_path. The new files will be downloaded and processed, with the results concatenated into a sinlge csv output file
batch_process(url, download_path, output_path, outname,
calc_emissions = FALSE, feer = NULL, maskvals = c(10, 11, 30, 31))
url |
Subscription FTP location (e.g., "ftp://ftp.avl.class.noaa.gov/sub/sraffuse1/52654/") |
download_path |
Local path where netcdf files are stored |
output_path |
Local path where output csv will be written |
outname |
Name of output csv. The script will add a time stamp |
calc_emissions |
logical Calculate emissions (FRE and TPM) using FEER |
feer |
The FEERv1.0_Ce.csv file loaded as a data frame. This can be acquired from https://feer.gsfc.nasa.gov/ |
maskvals |
Mask values to include |
A data frame that matches the output csv
df <- batch_process("ftp://ftp.avl.class.noaa.gov/sub/sraffuse1/52654/",
"../../data/netcdf/", "../../data/csv/", "GOES_Fires")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.