afsc-gap-products / trawllight

An R package to derive apparent optical properties from irradiance data collected during AFSC trawl surveys.
Other
3 stars 1 forks source link

radtran output gives NA values #14

Open gerard-ricardo opened 1 year ago

gerard-ricardo commented 1 year ago

Any idea why this is giving NA's. Is the input correct? Thanks for your help in advance.

radtran(-28, 154, zenith_degrees = 30, doy = 20, alpha = 1, surface_pressure = 800)

sean-rohan-NOAA commented 1 year ago

Hi @gerard-ricardo,

Yes. The function requires providing additional atmospheric variables that affect transmission. You'll need to add the following:

Here's a working example:

radtran(-28, 154, 
        zenith_degrees = 30, 
        doy = 20, 
        alpha = 1, 
        surface_pressure = 800,
        water_vapor = 0.3,
        cloud_droplet_radius = 14,
        liquid_water_path = 50)

Reminds me that there should be better checks for input data.

Sean