Util¶
Functions for dates
|
convert [doy, year] into datetime.datetime |
|
|
|
if year is a leap year return True else return False |
|
given year, month, day return day of year Astronomical Algorithms, Jean Meeus, 2d ed, 1998, chap 7 |
|
given the current datetime or doy and year, lookup the week of the year |
|
given year = Y and day of year = N, return year, month, day Astronomical Algorithms, Jean Meeus, 2d ed, 1998, chap 7 |
|
calculate the timesteps in weeks, months and days between 2 dates. |
|
yields a timestep |
|
calculate the number of days for any month |
|
calculate the number of days for any month for individual (year, dayOfYear), datetime.datetime or lists of these |
|
returns a list with the number of days for each stress period. |
Utility functions
|
bisect an list for a value and return the position |
|
returns a string with a given length. |
|
Loads a prickle binary file. |
|
Save a struct or list into a prickle binary file. |
|
Load a prickle binary file. |