Ignore:
Timestamp:
Nov 8, 2022, 3:32:12 PM (2 years ago)
Author:
romain.vande
Message:

DYNAMICO MARS
Update startarchive2icosa repertory for new version of Dynamico
RV

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/util/startarchive2icosa/icosa_finalize.bash

    r2532 r2813  
    77# load nco module
    88module purge
    9 source /scratch/cnt0027/lmd1167/adelavois/models/code/XIOS/arch.env
    10 module load nco/4.7.9-gcc-4.8.5-hdf5-1.8.18-openmpi-2.0.4
     9source /scratch/cnt0027/lmd1167/adelavois/models/code/XIOS/arch.env #You have to adapt to your own path
     10#module load nco/4.7.9-gcc-4.8.5-hdf5-1.8.18-openmpi-2.0.4 #Example of version of the module needed
     11module load nco
    1112
    1213#conversion to netcdf 3 in order to rename and add variables, not properly done with netcdf4 files
     
    2425#Temporay soildepth array from Dynamico restartfi
    2526ncks -A -v soildepth \
    26          ../../mars_dynamico_update_basic/startfi_0.nc startphy_nc3.nc
     27         ../../mars_dynamico_update_basic/startfi_0.nc startphy_nc3.nc #You have to adapt to your own path
    2728
    28 nccopy -k 'netCDF-4' startphy_nc3.nc startfi.nc
     29nccopy -k 4 startphy_nc3.nc startfi.nc
    2930
    3031#Temporary Time variable from start2archive; should be added with xios
    31 ncks -A -v Time \
    32          start_archive_nc4.nc startfi.nc
     32#ncks -A -v Time \
     33#         start_archive_nc4.nc startfi.nc
     34ncks -O -x -v time_counter startfi.nc startfi.nc_tmp
     35ncks -A -v Time start.nc startfi.nc_tmp
     36cp startfi.nc_tmp startfi.nc
    3337
    3438rearrange_startphy > rearrange_startphy.out 2>&1
     
    4751     start_icosa_ref.nc start_icosa.nc
    4852
     53# In the current version of Dynamico, the variable q for tracer is needed but unused.
     54# To create this unused variable simply run this short python code
     55
     56#import numpy as np
     57#import netCDF4 as nc
     58
     59#fn = 'start_icosa.nc'
     60#ds = nc.Dataset(fn, 'a', format='NETCDF4')
     61#nq = ds.createDimension('nq', 7)
     62
     63#q = ds.createVariable('q', 'f8', ('nq','lev', 'cell_mesh',))
     64#nqq = ds.createVariable('nq', 'f8', ('nq',))
     65#q[:,:,:]=0.
     66#q.online_operation = "once"
     67#q.coordinates = "lat lon"
     68#ds.close()
     69
    4970# cleanup
    5071rm -rf startphy_icosa_nc3.nc startphy_nc3.nc
Note: See TracChangeset for help on using the changeset viewer.