Ignore:
Timestamp:
Feb 20, 2011, 10:42:19 AM (13 years ago)
Author:
sommeria
Message:

improves the use of get_field, no projection object by default in uvmat( allows usual 1D plots),

various bug repairs, elimination of get_plot_handles.m (not useful)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/check_functions.m

    r89 r193  
    4747          'get_field';...% choose and plot a field from a Netcdf file
    4848          'get_field.fig';...%interface for get_field
    49           'get_plot_handles';... %provides handles of elements setting the plotting parameters in the uvmat interface
    5049          'griddata_uvmat';...%make 2D linear interpolation using griddata, with input appropriate for both Matlab 6.5 and 7
    5150          'hist_update';...%  update of a current global histogram by inclusion of a new field 
     
    9291icount=0;
    9392% loop on the list of functions in the uvmat package
     93datnum=zeros(1,length(list_fct));
    9494 for i=1:length(list_fct)
    9595    dir_fct=which(list_fct{i});% path to fct
     
    104104       end
    105105       datfile=dir(dir_fct);
    106        date_str=datfile.date;%string of the date of last modification
    107        datnum(i)=0;%default
    108        try
    109            datnum(i)=datenum(date_str);
    110        catch
    111            datnum(i)=0;%in case of error with datenum (e.g. date in french)
     106       if isfield(datfile,'datenum')
     107          datnum(i)= datfile.datenum;
    112108       end
     109%        date_str=datfile.date;%string of the date of last modification
     110%        datnum(i)=0;%default
     111%        try
     112%            datnum(i)=datenum(date_str);
     113%        catch
     114%            datnum(i)=0;%in case of error with datenum (e.g. date in french)
     115%        end
    113116   end
    114117end
Note: See TracChangeset for help on using the changeset viewer.