这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@kotfic
Copy link
Contributor

@kotfic kotfic commented Sep 16, 2016

@dorukozturk PTAL - There is a TIme Series.ipynb notebook that should let you test the functionality. You just need the NBAR data converted to GeoTIFFs and to change the DATA_DIR variable in cell 3.

@dorukozturk
Copy link
Contributor

@kotfic LGTM! I love the prev() and next(). One thing is, I think next should go to the beginning of the list when it reaches the end. Same with prev.
NBAR = [img_1, img_2, img_3]
x = NBAR[0]
x.next() = img_2
x.next() = img_3
x.next() = img_1

@jbeezley
Copy link

I think it would be better to keep it like a standard iterator if you are using the .next method. That is, it should raise a StopIteration when it reaches the end. This way you can use it anywhere else an iterator is allowed.

@dorukozturk
Copy link
Contributor

@jbeezley You are right. It makes sense now.

@kotfic
Copy link
Contributor Author

kotfic commented Sep 20, 2016

@dorukozturk PTAL, thanks!

@dorukozturk
Copy link
Contributor

dorukozturk commented Sep 20, 2016

@kotfic LGTM!
I always forget to do vagrant up and it would be great if geoserver is not up and running an error is raised about geoserver.

@kotfic kotfic merged commit df499b5 into master Sep 20, 2016
@kotfic kotfic deleted the raster-data-collection branch September 20, 2016 14:52
jpolchlo pushed a commit to jpolchlo/geonotebook that referenced this pull request Jun 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants