I have downloaded 5 years daily precipitation data of MSWEP, but i havent succeded in subsetting it for Indonesia region and make pandas dataframe of it using python. Please advise?
3. Load the data: Assuming you have your MSWEP precipitation data in a CSV file, you can load it into a pandas dataframe using the `read_csv()` function. Provide the path to your CSV file as the argument:
````python
data = pd.read_csv("path/to/your/mswep_data.csv")
```
4. Subset the data for Indonesia: assume you want to subset the data for a latitude range of -11 to 6 and a longitude range of 95 to 141:
Are all the .nc files structured identically? if so, would you be able to provide the columns/layout?
To approach this problem, I would suggest creating a master table so that you can subset from this as needs be. This can be done using the concat(£ method if the columns are all referring to the same data but just stored across different tables. Without knowing your layout though.
The subsetting in pandas is easy, but I prefer SQL as it’s more intuitiv. You can also run this inside Python but I will have to check with package when working tomorrow if you are interested.
Feel free to inbox a sample and I’d be happy to help