batch_process: batch_process

View source: R/batch.R

batch_processR Documentation

batch_process

Description

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

Usage

batch_process(url, download_path, output_path, outname,
  calc_emissions = FALSE, feer = NULL, maskvals = c(10, 11, 30, 31))

Arguments

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

Value

A data frame that matches the output csv

Examples

df <- batch_process("ftp://ftp.avl.class.noaa.gov/sub/sraffuse1/52654/",
 "../../data/netcdf/", "../../data/csv/", "GOES_Fires")

raffscallion/goesfire documentation built on June 9, 2025, 2:46 a.m.