Does anyone know how to implement a for loop to download for example each 15 days a land cover MODIS image in 20 years? It will be so helpful for me.
For example I need in a folder get 1 image each 15 days from 2000 to 2020 .tif
How do I implement a loop for it?
Landcover_01.tif, where 01 it's the consecutive number, and this must finish in Landcover_480.tif. that means one image each 15 days from January 2000 to December 2020
Related
We have a process that shouldn't go over 24 hours (it did) and I have simply been copy/pasting the times from the reporting system i.e. 00:01:05 to 01:23:38 and simple subtraction to give me hours/minutes/seconds duration.
Excel is fine if this is the same 24 hour period, but those two times are split by 24 hours. As you can gather the copy/paste is not including dates so how do I trick excel into adding another 24 hours.
I've read quite a few options out there but none of them seem to work, or its just my 2020 brain....
So long as the interval will never be equal or greater than 24 hours, you can use:
=end-start+(start>end)
If it might be => 24 hours, then you will need to add date information.
I am trying to trend the occurrence of a system event in Excel. I've attached a screen shot showing the pretty simple data that I'm working with.
The spreadsheet lists the times of the event (Column A) for a two week period and I've used a ceiling formula to group those events into 15 minute increments (Column B). Using a pivot table and chart, it's pretty simple to then take that data and graph the events into a line chart that shows the 15 minute increment time, and the count of the events in that 15 minute period.
Now I'd like to take subsets of that data and compare them. For example I'd like to compare Friday Saturday Sunday of last week Friday Saturday and Sunday of this week. So far, the only way I found to achieve this is to create duplicate pivot tables (Columns E, F and H,I), filter each table by the days I want to compare (25, 26, and 27 in one table and 1, 2 and 3 in the second), and then visually compare them (the Two charts).
But what I'd really like to do is to combine both series into one chart as a stacked line graph. I thought that would be pretty simple, but since the dates are so very dissimilar, I always wind up getting a single line or duplicate data, or totally off the wall results.
I've gotten kinda close by converting the row labels in to a custom DDD HH:MM format. That lists the Dates as (For Oct 25th)
Fri 00:15 11
Fri 00:30 1
Fri 00:45 4
Fri 01:00 3
Fri 01:15 6
Etc.
And (For Nov 1st)
Fri 00:15 7
Fri 00:30 1
Fri 00:45 2
Fri 01:00 1
Fri 01:30 2
Etc
Now I have something I can join on (Friday 00:15, 00:30, 00:45, etc is in both charts)
But the problem is, the two series often don't have the same Labels. For example the data for Nov 1 is missing 01:15,01:45 and 02:00 because no events occurred at those times. Same problem for the Oct 25th's data which is also missing 02:00 in addition to all increments between 02:30 and 03:45.
I tried just manually inserting the missing times in both charts but that quickly became a very complex and error prone chore.
So the question is: Is there a way to get excel to automatically fill in the missing time slots or am I completely off base in the way I'm trying to do this?
OK.. that was two questions :)
Thanks so much for your help!
I am attempting to sum up hours per day across numerous fields. The issue I am encountering is when the sum passes 24 hour it defaults to 24 hour clock so 01:00:00 for 25 hours when actually I want it to show 25:00:00. Can anyone advise on this please? Many thanks,
Depends how your data is formatted - what happens if you change the custom number format to this:
[h]:mm:ss
The time is stored as a number by Excel and it will only show from 0 to 24 hours. If you format the cell as a number it should be 1.04 which Excel sees as 1.04 days and only uses the .04 when formatted as a time. Add *24 to your calculation and you will get 25.00.
It's a little more tricky to get your desired format hh:mm:as but I'll have a go and get back to you shortly.
I have two columns in a excel containing value like : Mon Dec 01 09:27:04 2014.
Lets say column A and column B and each column has rows containing values in the above format. How can we find the difference between two dates?
Mon Dec 01 09:27:04 2014 - Sun Nov 30 11:08:36 2014 = 25 hrs 51 minutes
Please see this for how to do that..
A more direct answer: you can format the cell
=TEXT(B2-A2,"h:mm")
I suspect the data is text strings for which I suggest:
=VALUE(MID(A1,9,2)&"/"&MID(A1,5,3)&"/"&RIGHT(A1,4))-VALUE(MID(B1,9,2)&"/"&MID(B1,5,3)&"/"&RIGHT(B1,4))+(MID(A1,12,8)-MID(B1,12,8))
However this relies on Excel's ability to interpret the likes of Dec as the month of December which may not be the case for all language versions. If so, I suggest a lookup table and extracting the dates with DATE along these lines:
=DATE(RIGHT(A1,4),VLOOKUP(MID(A1,5,3),Table,2,0),MID(A1,9,2))
However by such calculation the difference of the timestamps given in the question is:
22 hrs 18 minutes 28 seconds
when formatted:
[hh] "hrs" mm "minutes" ss "seconds"
In Microsoft Excel 2007, given a date span, I want to find our what fraction of that date span lies within each season, which is obviously another date span.
For example:
Given a span of 26 Nov 10—28 Feb 11 (95 days):
26 Nov—30 Nov is in Spring (or Autumn for you Northerners) (5 days)
1 Dec—28 Feb in Summer (or Winter) (90 days)
Thus, 5.3% is in Spring/Autumn and 94.7% is in Summer/Winter.
Any Excel formula to work this out? Preferably not macro-dependent, but not a deal-breaker.
I would be difficult to explain in post. I have uploaded the solution at http://www.2shared.com/file/WHU5v_h1/Book1.html Let me know if you have questions...