New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 3069 for branches/dev_2802_OBStools/NEMOGCM/TOOLS/OBSTOOLS/dataplot/read_feedback.pro – NEMO

Ignore:
Timestamp:
2011-11-09T16:18:38+01:00 (12 years ago)
Author:
djlea
Message:

Update OBS and ASM documentation. Small updates and fixes to dataplot.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_2802_OBStools/NEMOGCM/TOOLS/OBSTOOLS/dataplot/read_feedback.pro

    r2945 r3069  
    6161  if (NumObs gt 0) then begin   
    6262    ByteNam = intarr(strnam, NumVars) 
    63     ByteEntries = intarr(strnam, NumEntries) 
     63    if (n_elements(NumEntries) eq 1) then ByteEntries = intarr(strnam, NumEntries) 
    6464    ByteId = intarr(strwmo, NumObs) 
    6565    ByteType = intarr(strtyp, NumObs) 
    6666    ByteJulDRef = intarr(strjuld) 
    6767    VarNames = strarr(NumVars) 
    68     Entries = strarr(NumEntries) 
     68    if (n_elements(NumEntries) eq 1) then Entries = strarr(NumEntries) 
    6969    Id = strarr(NumObs) 
    7070    Type = strarr(NumObs) 
     
    148148   
    149149      varid = ncdf_varid(ncid, strtrim(VarNames(ivar))+'_Hx') 
    150       ncdf_varget, ncid, varid, tmp 
    151       Hx(*,*,ivar) = tmp 
    152       ncdf_attget, ncid, varid, '_Fillvalue', FillValHx         
     150      if (varid gt -1) then begin 
     151         ncdf_varget, ncid, varid, tmp 
     152         Hx(*,*,ivar) = tmp 
     153         ncdf_attget, ncid, varid, '_Fillvalue', FillValHx 
     154      endif else begin 
     155         FillValHx=0 
     156      endelse  
    153157       
    154158      varid = ncdf_varid(ncid, strtrim(VarNames(ivar))+'_QC') 
Note: See TracChangeset for help on using the changeset viewer.