Changeset 2440 for trunk


Ignore:
Timestamp:
Jan 12, 2021, 5:40:13 PM (4 years ago)
Author:
abierjon
Message:

Mars GCM:
Harmonization of the utility programs lslin, concatnc and localtime when dealing
with Solar longitude as the Time variable (for localtime, the check on long_name
attribute is still compliant with files from previous versions)

AB

Location:
trunk/LMDZ.MARS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r2438 r2440  
    32473247Fix a typo made in r2434 in localtime.F90, that replaced the long_name attribute
    32483248of variables by "Time"
     3249
     3250== 12/01/2021 == AB
     3251Harmonization of the utility programs lslin, concatnc and localtime when dealing
     3252with Solar longitude as the Time variable (for localtime, the check on long_name
     3253attribute is still compliant with files from previous versions)
  • trunk/LMDZ.MARS/util/concatnc.F90

    r2434 r2440  
    774774!==============================================================================
    775775if (axis=="ls") then
    776   call def_var(nout,"Time","Solar longitude","degree",1,&
     776  call def_var(nout,"Time","Ls (Solar Longitude)","degrees",1,&
    777777             (/timedimout/),timevarout,ierr)
    778778else
     
    12791279else ! if (axis.eq."adls")
    12801280   write(*,*) "Adding Ls as a 1D time variable"
    1281    call def_var(nout,"Ls","Solar Longitude","degree",1, (/timedimout/),nvarid,ierr)
     1281   call def_var(nout,"Ls","Ls (Solar Longitude)","degrees",1, (/timedimout/),nvarid,ierr)
    12821282end if
    12831283
  • trunk/LMDZ.MARS/util/localtime.F90

    r2438 r2440  
    404404     ierr=nf_get_att_text(nid,timevar,"title",long_name)
    405405   endif
    406    if ((ierr.EQ.NF_NOERR).and.(long_name.eq."Solar longitude")) then
     406   if ((ierr.EQ.NF_NOERR).and.(index(long_name,"Solar").ne.0)) then
     407     ! if long_name contains "Solar"
    407408     write(*,*) "ERROR: Time axis in input file is in Solar Longitude!"
    408409     write(*,*) "       localtime requires sols as time axis!"
Note: See TracChangeset for help on using the changeset viewer.