ooici / coverage-model

BSD 2-Clause "Simplified" License
2 stars 9 forks source link

num_timesteps for complex coverage #187

Closed lukecampbell closed 10 years ago

lukecampbell commented 10 years ago

Could we implement num_timesteps for complex coverage so that it returns effectively the shape for

cov.get_parameter_values(['time']).get_data()['time'].shape[0]

Or if there's a more efficient or better way to do that.

lukecampbell commented 10 years ago

ERDDAP regularly needs to know what the number of timesteps in the datasets are. Right now I'm using num_timesteps and I was thinking about changing it to actually count the shape of time so that it would be consistent across the two coverage types we use, but I'm wondering if we can just keep num_timesteps.