I have a problem to open netcdf files. This is a netcdf file with daily precipitation data in January over the globe. I tried to read precipitation, latitude and longitude data, but could not get it. For example, when reading precipitation data, there are two dimensions: "land" and "tstep". The "land" is latitude-longitude combination every half-degree spacing, while the "tstep" is day ID (which is from 1 to 31).
I don't know if the land is row-wise or column-wise from latitude and longitude alone? I can not attach the netcdf file, but I copy the relevant description here. Thanks for your help.
compress: y x
note1: half-degree spacing
note2: land mask in file: WFD-land-lat-long-z.nc
tstep Size:31 *** is unlimited ***
For example, if I want to extract data for a specific area: latitude (25 to 45 degree north), longitude (34 to 52 degree west), which rows of data should I consider? Currently, when using ncvar_get() function to get the precipitation data, it has two dimensions, "land" -67420 rows and "tstep" -31 columns.
When I try to get latitude and longitude separately, they each have two dimensions, "x" or longitude -720 rows and "y" or latitude -360 columns. Sincerely thanks for your help.