columncolab / EMC2

Earth Model Column Collabratory
BSD 3-Clause "New" or "Revised" License
10 stars 7 forks source link

ADD: Booleans to skip spectral width or moment calculations #117

Closed mckenna-stanford closed 1 month ago

mckenna-stanford commented 3 months ago

Added Boolean functionality to (1) skip spectral width calculations if not desired by user since they are computationally expensive and not always needed (skip_spectral_width=Bool) and (2) to only produce subcolumn generation of q and N and skip moment calculations in case only subcolumn generation is desired (subcol_gen_only=Bool). Both default to False.

Also changed instances of np.float to float in classification.py to adhere to deprecation of numpy.float. This wasn't an issue running EMC2 on a single file in a Jupyter Notebook, but became an issue while running in a loop and attempting to write output files since it received a fatal warning.

isilber commented 1 month ago

Those edits look good to me @mckenna-stanford. Merging.