[gradsusr] Saving local copies of OPENDAP NetCDF files using SDFWRITE

Jennifer Adams jma at cola.iges.org
Mon Sep 9 09:13:02 EDT 2013


The first time step seems to be missing in the original data. Data are there in u_curr.nc for t=2 and t=3. 
--Jennifer

On Sep 8, 2013, at 1:54 PM, Huw Davies wrote:

> Hello team.
> I am using RTOFS current files using OPeNDAP. My script is:
>  
> *open data file (need to specify correct file)
> 'sdfopen http://nomads.ncep.noaa.gov:9090/dods/rtofs/rtofs_global20130908/rtofs_glo_2ds_nowcast_daily_prog'
>  
> * save local copy
> 'set t 1 last'
> 'set x 1 4320'
> 'set y 1 2160'
> 'define u = u_velocity'
> 'set sdfwrite u_curr.nc'
> 'sdfwrite u'
> 'define v = v_velocity'
> 'set sdfwrite v_curr.nc'
> 'sdfwrite v'
>  
> This saves a NetCDF file which I can open using ‘sdfopen’ and has the correct parameters and variable (‘u’).
> However when I try to plot the variable I receive the error:
> ‘Cannot contour grid – all undefined values’
>  
> Most grateful for any guidance.
> Huw
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer M. Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
111 Research Hall, Mail Stop 2B3
George Mason University
4400 University Drive
Fairfax, VA 22030 





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130909/b287a00c/attachment-0003.html 


More information about the gradsusr mailing list