Changeset 3679


Ignore:
Timestamp:
Mar 11, 2025, 11:57:01 AM (3 months ago)
Author:
afalco
Message:

Pluto: cleaned icosa_finalize.bash script a little.
AF

File:
1 edited

Legend:

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

    r3670 r3679  
    1313module load nco
    1414
    15 # save start*nc from lmdz grid
    1615
    1716#conversion to netcdf 3 in order to rename and add variables, not properly done with netcdf4 files
     
    2221ncrename -v lon,longitude -v lat,latitude -d cell,physical_points\
    2322         startphy_icosa_nc3.nc startphy_nc3.nc
    24 #Temporay soildepth array from Dynamico restartfi
    25 ncks -A -v soildepth restartfi.nc startphy_nc3.nc #You have to adapt to your own path
    26 # ncks -A -v subslope_dist restartfi.nc startphy_nc3.nc
    27 # ncks -A -v def_slope restartfi.nc startphy_nc3.nc
     23#Temporay soildepth array from Dynamico startphy_icosa_ref
     24ncks -A -v soildepth startphy_icosa_ref.nc startphy_nc3.nc #You have to adapt to your own path
     25# ncks -A -v subslope_dist startphy_icosa_ref.nc startphy_nc3.nc
     26# ncks -A -v def_slope startphy_icosa_ref.nc startphy_nc3.nc
    2827
    2928nccopy -k 4 startphy_nc3.nc startfi.nc
     29cp startfi.nc startfi_before_finalize.nc
    3030
    3131#Temporary Time variable from start2archive; should be added with xios
    3232ncks -O -x -v time_counter startfi.nc startfi.nc_tmp
    3333ncks -A -v Time start.nc startfi.nc_tmp
    34 # ncks -A -v flux_geo restartfi.nc startfi.nc_tmp
    35 # ncks -A -v wstar restartfi.nc startfi.nc_tmp
    36 # ncks -A -v hmons restartfi.nc startfi.nc_tmp
    37 # ncks -A -v summit restartfi.nc startfi.nc_tmp
    38 # ncks -A -v base restartfi.nc startfi.nc_tmp
     34# ncks -A -v flux_geo startphy_icosa_ref.nc startfi.nc_tmp
     35# ncks -A -v wstar startphy_icosa_ref.nc startfi.nc_tmp
     36# ncks -A -v hmons startphy_icosa_ref.nc startfi.nc_tmp
     37# ncks -A -v summit startphy_icosa_ref.nc startfi.nc_tmp
     38# ncks -A -v base startphy_icosa_ref.nc startfi.nc_tmp
    3939cp startfi.nc_tmp startfi.nc
    4040
     
    5454     start_icosa_ref.nc start_icosa.nc
    5555
    56 ncks -A -v W,geopot,q,nq start_icosa_ref.nc start_icosa.nc
     56ncks -A -v q,nq start_icosa_ref.nc start_icosa.nc
    5757
     58ncks -A -v latitude,longitude startphy_icosa_ref.nc startfi.nc
     59ncks -A -v latitude,longitude startphy.nc startfi.nc
    5860# In the current version of Dynamico, the variable q for tracer is needed but unused.
    5961# To create this unused variable simply run this short python code
Note: See TracChangeset for help on using the changeset viewer.