JGCRI / fldgen

Given a global mean temperature pathway, generate random global climate fields consistent with it and with spatial and temporal correlation derived from an ESM
https://jgcri.github.io/fldgen/
GNU General Public License v2.0
12 stars 6 forks source link

fully define and use classes for composite structures #22

Open abigailsnyder opened 5 years ago

abigailsnyder commented 5 years ago

e.g. https://github.com/JGCRI/fldgen/pull/14

rplzzz 38 minutes ago Member This is a case where we could really benefit from defining classes for all of our composite structures. It would make describing what the functions are expecting easier, and we could even check the class attributes in functions that are expecting structures.

rplzzz commented 5 years ago

Another reason to do this is that we could define accessors for the components of the structures. As things stand, using fldgen in practice involves a lot of interactive use of str to try to figure out where the data you're looking for is located.