Python Forum
Converting days to years in loop while computing values across grid cells
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Converting days to years in loop while computing values across grid cells
#3
Hi ThiefOfTime,

Thank you for your response.

The loops might be necessary, since I need to compute the maximum values over a multitude of grid cells for every year for 140 years. How would you do that using a for loop, if you had to? Such that all maximum values would be computed over every grid cell. As outlined in my other thread, something like this:

Grid cell #1 for year 0: Max value derived
Grid cell #2 for year 0: Max value derived
Grid cell #3 for year 0: Max value derived
....
Grid cell #1000 for year 0: Max value derived

Then, move on to year 1....

etc....all the way to year 139?

What would be an efficient way to account for all of that in a for loop? What I have above appears to be a good starting point.

Thanks!
Reply


Messages In This Thread
RE: Converting days to years in loop while computing values across grid cells - by Lightning1800 - May-15-2018, 08:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Cloud computing advice needed sawtooth500 3 334 Apr-18-2024, 09:23 PM
Last Post: sawtooth500
  Matplotlib scatter plot in loop with None values ivan_sc 1 2,294 Nov-04-2021, 11:25 PM
Last Post: jefsummers
  Computing the distance between each pair of points Truman 11 4,244 Jun-20-2020, 01:15 PM
Last Post: Truman
  newbie: loop, modify dataframe cells expat_th 5 3,748 Mar-03-2020, 09:05 PM
Last Post: jefsummers
  Learning python specific syntax after using other scripting languages for years Arcs 12 6,103 Dec-13-2017, 07:18 PM
Last Post: Arcs
  Error in computing FFT operation raady07 1 4,276 Jan-18-2017, 08:30 AM
Last Post: j.crater

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020