[gradsusr] mask country by shpfile

Dibas Shrestha st.dibas at yahoo.com
Tue Sep 15 02:19:28 EDT 2015


Dear grads users, 

I am using TRMM_3B42 daily v7 data for my study. I want to get area average rainfall value for Nepal using country shpfile. Further I want to display only Nepal by using mask-out function. While I am trying to use GDAL and GrADS, following error has been is occurs. I would appreciate your suggestions.  
  
Data Request Warning:  Request is completely outside file limits
  Entire grid contents are set to missing data 
  Grid limits of file:     X = 1 1440  Y = 1 400  Z = 1 1  T = 1 1  E = 1 1 
  Grid limits of request:  X = 320 361  Y = 300 329  Z = 1 1  T = -313919 -313919  E = 1 1 
  Warning issued for variable = r
Define memory allocation size = 10080 bytes

Attached herewith is data file and .gs file is as follows. 
sdfopen nep-map.nc
define ca=band1
sdfopen 3B42_daily.1998.08.07.7.nc
set dfile 2 
set time jan1998
set mpdset hires
set gxout grfill
set lat 25 32
set lon 80 90
define carain=r*ca
d carain

*quit


Thank you in advance. 
Dibas Shrestha 
Nepal Academy of Science and Technology
Nepal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150915/d5349400/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3B42_daily.1998.08.07.7.nc
Type: application/x-netcdf
Size: 2321820 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20150915/d5349400/attachment-0002.nc 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nep-map.nc
Type: application/x-netcdf
Size: 4623792 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20150915/d5349400/attachment-0003.nc 


More information about the gradsusr mailing list