user97103
user97103

Reputation: 255

Number of hot days from daily temperature

I am following this answer to calculate number of hot days in a year (temperature exceeding 35degC) from daily tmax data.

I am using tmax from CHELSA from 2000-2016, and I have crop it based on my bounding-box requirement.

Here are the steps I have done (example using 2001 data - 1 month 1 nc file):

And below is the result and unfortunately not what I expected. img1 img2

Why the number of days is not in integer? Did I missed something in the script?

UPDATE1 (following response from Adrian)

I have installed ncview via homebrew but unfortunately can't open. Got following error:

Note: could not open file /Users/xxx/.ncviewrc for reading
Error: Can't open display:

I try to open the nc output using QGIS, and the result still in float.

qgis

UPDATE2

Ok, I managed to check it using ncdump, and here's the first line that contains the value. Bit confuse, because I tried using 1 year data and the total is more than 365. How did it happen?

ncdump

Upvotes: 2

Views: 448

Answers (1)

ClimateUnboxed
ClimateUnboxed

Reputation: 8087

I strongly suspect panoply is performing some kind of spatial interpolation on the data on import.

Please take a look at the raw field directly using ncdump like this

ncdump chelsa_hotdays_yearsum_2001.nc | less

(I pipe to less so you can stroll down through the data). Or alternatively you can open the file in ncview and move the cursor over the data and you will see the field values displayed in the dialog box.

ncview chelsa_hotdays_yearsum_2001.nc

Upvotes: 1

Related Questions