<div dir="ltr">Conrado,<div><br></div><div>please, try open the data with a control file similar to this one below:</div><div><br></div><div><div>dset
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">ndvi3g_geo_v1_1981_0712.nc4</span>
</div><div>UNDEF -5000</div><div>dtype netcdf</div><div>*</div><div>XDEF 4320 LINEAR -180.0 0.083333333<br></div><div>YDEF 2160 LINEAR -90.0 0.083333333</div><div>*</div><div>TDEF 12 LINEAR 01212jul1981 15DY</div><div>*</div><div>ZDEF 1 LEVELS 1000</div><div><br></div><div>VARS 1</div><div>ndvictl=>ndvi 1 t,z,y,x NDVI GRIDDED DATA [[ units ]]</div></div><div>ENDVARS</div><div><br></div><div>-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-</div><div><br></div><div>Save this as a control file, for example: ndvi1981.ctl, and open it in grads.</div><div><br></div><div>In LINUX:</div><div><br></div><div>grads -pc 'open ndvi1981.ctl'</div><div>and</div><div>d ndvictl</div><div><br></div><div>to see if it works.</div><div><br></div><div>This .ctl was built accordingly to the necdump above. As, obviously, I haven't tested this .ctl with your data, it is possible that it is missing something or it needs a few corrections to work with your data file.</div><div><br></div><div>Note that the choice of using the varname "ndvictl" is arbitrary. It could be another varname, or even ndvi, as I know.</div><div><br></div><div>Let me now if there is yet some problem with this.</div><div><br></div><div>Regards,</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><br style="color:rgb(0,0,0);font-family:"times new roman","new york",times,serif;font-size:16px"><span style="color:rgb(0,0,0);font-family:"times new roman","new york",times,serif;font-size:16px">-- </span><br style="color:rgb(0,0,0);font-family:"times new roman","new york",times,serif;font-size:16px"><div style="color:rgb(0,0,0);font-family:"times new roman","new york",times,serif;font-size:16px"><span name="x"></span>Prof. Ricardo Hallak<br>Laboratório de Meteorologia de Mesoescala - LMM<br>Departamento de Ciências Atmosféricas<br>Instituto de Astronomia, Geofísica e Ciências Atmosféricas<br>Universidade de São Paulo<br><br>Phone: +55(11)3091-4698</div></div></div></div>
<br><div class="gmail_quote">2018-03-09 10:26 GMT-03:00 <span dir="ltr"><<a href="mailto:jorge.conrado@cptec.inpe.br" target="_blank">jorge.conrado@cptec.inpe.br</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Hi,<br>
<br>
<br>
I have some NDI data in netcdf4 format, here is the result of the ncdfdump for my data:<br>
<br>
<br>
ncdump -h ndvi3g_geo_v1_1981_0712.nc4<br>
netcdf ndvi3g_geo_v1_1981_0712 {<br>
dimensions:<br>
lon = 4320 ;<br>
lat = 2160 ;<br>
time = 12 ;<br>
variables:<br>
double lon(lon) ;<br>
double lat(lat) ;<br>
double time(time) ;<br>
short satellites(time) ;<br>
short ndvi(time, lat, lon) ;<br>
ndvi:units = "1" ;<br>
ndvi:scale = "x 10000" ;<br>
ndvi:missing_value = -5000. ;<br>
ndvi:valid_range = -0.3, 1. ;<br>
short percentile(time, lat, lon) ;<br>
percentile:units = "%" ;<br>
percentile:scale = "x 10" ;<br>
percentile:flags = "flag 0: from data flag 1: spline interpolation flag 2: possible snow/cloud cover" ;<br>
percentile:valid_range = "flag*2000 + [0 1000]" ;<br>
<br>
// global attributes:<br>
:FileName = "ndvi3g_geo_v1_1981_0712.nc4" ;<br>
:Institution = "NASA/GSFC GIMMS" ;<br>
:Data = "NDVI3g version 1" ;<br>
:Reference = "1. Pinzon, J.E.; Tucker, C.J. A Non-Stationary 1981-2012 AVHRR NDVI3g Time Series. Remote Sens. 2014, 6, 6929-6960. 2. Pinzon, J.E.; Tucker, C.J. A Non-Stationary 1981-2015 AVHRR NDVI3g.v1 Time Series: an update. Remote Sens. 2016, in preparation " ;<br>
:CommentsVersion1 = "version1 includes two major fixes (a and b), and three minor (c-g): (a) Reprocessed Level 2 entire SeaWIFS mission for the land products to reduce artifacts in the data, particularly changes in calibration after 2006 that generates drops in ndvi lower values. OB.DAAC / Ocean Biology Processing group NASA/GSFC 616 (april 2016) (b) Recovered ndvi negative values of snow-covered regions in winter Northern latitudes. In Version0, we masked them with zero values, creating artifacts in phenology parameters. (c) Arranged data in ncd format, compiled it in two nc4 files a year. Each nc4 file includes 6 months of ndvi data (jan-jun and jul-dec), with a total of 12 (15-day) composites each semester. (d) Rescaled ndvi values and splitted the flag values from them. (e) Added a new variable, percentile, to represent the distribution of ndvi values in the time series. Range 10*[0, 100] (f) Flag values are (simpler): flag 0: ndvi without apparent issues (good value) flag 1: ndvi retrieved from spline interpolation flag 2: ndvi retrieved from seasonal profile (possible snow/cloud) (g) Flag values are embeded on the percentile variable: 2000*flag + percentile. Thus, the actual percentile three ranges [0 1000], [2000 3000] and [4000 5000] could provide direct information of how interpolation is affecting the time series. " ;<br>
:Temporalrange = "1981-07-01 -> 2015-12-31" ;<br>
:Year = 1981. ;<br>
:RangeSemester = "Jul 1 - Dec 31 (7:0.5:12.5)" ;<br>
:SpatialResolution = "1/12 x 1/12 degrees" ;<br>
:TemporalResolution = "1/24 a year" ;<br>
:_fill_val = -32768. ;<br>
:NorthernmostLatitude = "90" ;<br>
:SouthernmostLatitude = "-90" ;<br>
:WesternmostLongitude = "-180" ;<br>
:EasternmostLongitude = "180" ;<br>
}<br>
<br>
<br>
Then I did: grads -p<br>
<br>
sdfopen ndvi3g_geo_v1_1981_0712.nc4<br>
<br>
and I had:<br>
<br>
Scanning self-describing file: ndvi3g_geo_v1_1981_0712.nc4<br>
gadsdf: SDF file has no discernable X coordinate.<br>
<br>
<br>
Please, what can I do to solve this.<br>
<br>
<br>
<br>
Thanks,<br>
<br>
<br>
Conrado<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/li<wbr>stinfo/gradsusr</a><br>
</blockquote></div><br></div>