mask nc using shapefile and calculate average and anomaly #6072
-
Dear all, New user to xarray here. This is a cross-posting that can also be found here. Suppose I have the monthly temperature data download temperature file and the state-level US shapefile download shapefile here. How can I get the county-level average temperature for each state like the following table (of course, no need to sort state by name):
Also, how can I get the temperature anomaly of the year 2019 relative to baseline years from 2000 to 2010 for each state (like the data format above)? I have been trying with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks for your question - I think this is only marginally related to xarray so I'll answer on stackoverflow. |
Beta Was this translation helpful? Give feedback.
Thanks for your question - I think this is only marginally related to xarray so I'll answer on stackoverflow.