[gradsusr] OSCAR DATA CTL
James T. Potemra
jimp at hawaii.edu
Tue Feb 14 13:27:27 EST 2017
Hi Carlos,
I believe the (x,y,z,t) dimension in OSCAR are
(longitude,latitude,depth,time). So, you need to change dimension1 to
longitude, dimension2 to latitude, dimension3 to depth and dimension4 to
time. I also suggest you just remove the lines from vars 4 to the end;
as they are they won't work, but you don't need then unless for some
reason you want to change the names. If you then use "xdfopen" you
should be able to access the data.
Note Jeff's earlier comment about "OPTIONS template". You modified
descriptor file will work (don't think you'll get an error), but you
only have a single time and no template strings. Also, having xdef > 360
should not be a problem.
This should work, again use xdfopen to open the file. Ultimately you'll
want to change the tdef line to include more times and the DSET line to
include file name template options.
DSET ^oscar_vel8859.nc
undef 200000000000000000000.000000
OPTIONS template
xdef longitude 1201 linear 20.000000 0.333333
ydef latitude 481 linear -80.000000 0.333333
zdef depth 1 linear 1 1
tdef time 1 linear 00:00Z06jan2017 1dy
Jim
On 2/14/17 6:39 AM, Carlos Enciso Ojeda wrote:
> HI everyone
>
> I'm having some troubles with OSCAR data, which are in netcdf format,
> I made a ctl, but when I tried to open it, it mentioned an error with
> xdef value. The ctl is as follow:
>
> DSET ^oscar_vel8859.nc <http://oscar_vel8859.nc>
> DTYPE netcdf
> undef 200000000000000000000.000000
> OPTIONS template
> xdef dimension1 1201 linear 20.000000 0.333333
> ydef dimension2 481 linear -80.000000 0.333333
> zdef dimension3 1 linear 1 1
> tdef dimension4 1 linear 00:00Z06jan2017 1dy
>
> vars 4
> u 0 99 Ocean Surface Zonal Currents [meter/sec]
> v 0 99 Ocean Surface Meridional Currents [meter/sec]
> um 0 99 Ocean Surface Zonal Currents Maximum Mask [meter/sec]
> vm 0 99 Ocean Surface Meridional Currents Maximum Mask [meter/sec]
> endvars
>
> I'd really appreciate, If anyone can help me with this one.
>
> Thanks in advance
>
> Cheers
> Carlos Enciso
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20170214/ed46bc83/attachment.html
More information about the gradsusr
mailing list