Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Improved S3 summary #41

Merged
merged 1 commit into from Feb 26, 2014
Merged

Improved S3 summary #41

merged 1 commit into from Feb 26, 2014

Conversation

karthik
Copy link
Contributor

@karthik karthik commented Feb 26, 2014

In response to @mkoo's question yesterday, I improved the print method to clearly show how many pages are being retrieved and also differentiate what's downloaded on a call as opposed to what's available on the server. With this update, the ee_observations calls look like this:

> aves <- ee_observations(clss = "aves")
Search contains 171117 observations (downloading 1 of 6845 pages)
> aves
Total results on the server: 171117 
Args: 
country = United States 
clss = aves 
georeferenced = FALSE 
page_size = 25 
page = 1 
Type: observations 
Number of results retrieved: 25 
> aves <- ee_observations(clss = "aves", page = 1:2)
Search contains 171117 observations (downloading 2 of 6845 pages)
> aves
Total results on the server: 171117 
Args: 
country = United States 
clss = aves 
georeferenced = FALSE 
page_size = 25 
page = 1 2 
Type: observations 
Number of results retrieved: 50 

With other types of search (e.g. photos)

> z <- ee_photos()
Search contains 43708 photos (downloading 1 of 1 pages )

> z
Total results on the server: 43708 
Args: 
page_size = 25 
georeferenced = 0 
page = 1 
Type: photos 
Number of results retrieved: 25 

Now the print method clearly shows the number of observations available in the sever and what's been downloaded locally.
karthik added a commit that referenced this pull request Feb 26, 2014
@karthik karthik merged commit f7f118c into master Feb 26, 2014
@karthik karthik deleted the print_fix branch February 26, 2014 18:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant