/[MITgcm]/MITgcm/pkg/ecco/cost_gencost_sshv4.F
ViewVC logotype

Log of /MITgcm/pkg/ecco/cost_gencost_sshv4.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Links to HEAD: (view) (download) (annotate)
Sticky Tag:

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Mon Apr 3 17:20:58 2017 UTC (7 years ago) by ou.wang
Branch: MAIN
CVS Tags: HEAD, checkpoint66f, checkpoint66g, checkpoint66h, checkpoint66i, checkpoint66j, checkpoint66k, checkpoint66l, checkpoint66m, checkpoint66n, checkpoint66o
Changes since 1.35: +4 -4 lines
Diff to previous 1.35
Correct an indexing bug in cost_gencost_sshv4.F.


Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Tue Sep 20 15:27:54 2016 UTC (7 years, 7 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint65z, checkpoint66a, checkpoint66b, checkpoint66c, checkpoint66d, checkpoint66e
Changes since 1.34: +24 -16 lines
Diff to previous 1.34
- replace gencost_scalefile, gencost_smooth2Ddiffnbt (now deprecated)
  with gencost_posproc_c, gencost_posproc_i (gencost_posproc = smooth)


Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Thu Nov 12 12:11:20 2015 UTC (8 years, 5 months ago) by atn
Branch: MAIN
CVS Tags: checkpoint65q, checkpoint65r, checkpoint65s, checkpoint65t, checkpoint65u, checkpoint65v, checkpoint65w, checkpoint65x, checkpoint65y
Changes since 1.33: +62 -1 lines
Diff to previous 1.33
add 2 warnings related to hardcoded (1) num0 and (2) ndaysave to let users know (1) why some fields are set
to zero and (2) why entire cost sections are skipped even after passing all tests post ecco_check.


Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Tue Oct 27 02:37:46 2015 UTC (8 years, 6 months ago) by gforget
Branch: MAIN
Changes since 1.32: +22 -2 lines
Diff to previous 1.32
- revised handling of gencost_errfile and gencost_weight.


Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Sun Aug 16 14:51:01 2015 UTC (8 years, 8 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint65o, checkpoint65p
Changes since 1.31: +1 -22 lines
Diff to previous 1.31
- remove old prof_etan_mean code


Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Thu Aug 6 15:48:59 2015 UTC (8 years, 8 months ago) by gforget
Branch: MAIN
Changes since 1.30: +4 -3 lines
Diff to previous 1.30
- add includes of PROFILES_SIZE.h


Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Tue Jun 16 13:18:35 2015 UTC (8 years, 10 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint65n
Changes since 1.29: +7 -4 lines
Diff to previous 1.29

- cost_gencost_bpv4.F, cost_gencost_sshv4.F, ecco_check.F :
  bring up to date after updated variable naming convention.
- ecco_readparms.F : set gencost_is3d automiatically,
  set mult_gencost default to 1.


Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Mon Mar 23 21:10:04 2015 UTC (9 years, 1 month ago) by gforget
Branch: MAIN
CVS Tags: checkpoint65k, checkpoint65l, checkpoint65m
Changes since 1.28: +14 -1 lines
Diff to previous 1.28
- use eccoiter in place of optimcycle.
- if autodiff is not compiled then use READ_REC_XY_RL/READ_REC_XYZ_RL instead of active read/write


Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Sun Nov 2 22:31:04 2014 UTC (9 years, 5 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint65g, checkpoint65h, checkpoint65i, checkpoint65j
Changes since 1.27: +10 -2 lines
Diff to previous 1.27
- cost_gencost_sshv4.F : set gmsl weight to 1.
- ecco.h : increase NGENCOST3D to 4.
- cost_gencost_bpv4.F : use gencost_outputlevel.


Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Sat Oct 18 14:17:53 2014 UTC (9 years, 6 months ago) by gforget
Branch: MAIN
Changes since 1.26: +84 -76 lines
Diff to previous 1.26
- cost_gencost_boxmean.F, cost_gencost_seaicev4.F : fix gencost
  for case of undef SST costs (... see devel posting later).
- cost_gencost_sshv4.F : remove remaining CPP brackets
  (ALLOW_GENCOST_SSHV4_OUTPUT, ALLOW_SSH_MEAN_COST_CONTRIBUTION,
  ALLOW_PSBAR_MEAN) and rely on variables instead (added
  useEtaMean; used gencost_outputlevel) .


Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Mon Oct 6 22:57:36 2014 UTC (9 years, 6 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint65f
Changes since 1.25: +36 -45 lines
Diff to previous 1.25
- cost_gencost_boxmean.F, cost_gencost_bpv4.F, ecco_cost_init_fixed.F,
  ecco_cost_weights.F : treat cases of missing files at run time.
- cost_gencost_sshv4.F : rename etabar as etaday to reflect
  the required averaging frequency, move the test for etaday (now
  used instead of psbar) definition to ecco_check.F
- ecco_check.F : if no gencost term properly defines etaday (e.g.
  due to missing files) then turn off sshv4 cost all together.


Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Tue Sep 30 18:39:33 2014 UTC (9 years, 7 months ago) by gforget
Branch: MAIN
Changes since 1.24: +61 -1 lines
Diff to previous 1.24
- avoid AD recomputation.


Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Mon Sep 29 16:46:43 2014 UTC (9 years, 7 months ago) by gforget
Branch: MAIN
Changes since 1.23: +241 -190 lines
Diff to previous 1.23
- cost_gencost_customize.F : add automated fill based upon barfile name
  when it starts with eta, sst, sss, bp, taux, or tauy; rm hard coded
  gencost_modfld(i,j,bi,bj,1) = empmr(i,j,bi,bj)
- cost_gencost_assignperiod.F : revise gencost conditionality
- cost_gencost_sshv4.F : rm ALLOW_SSH_COST_CONTRIBUTION etc brackets,
  add initialization of local arrays, streamline reading of mdt,
  use gencost_barfile rather than psbarfile, use local variables
  (e.g. tpob, tpma instead of tpobs, tpmask), only include ecco.h
- cost_gencost_sstv4.F : rename igen_amsre as kgen, replace
  sstbar with gencost_barfile, rm ALLOW_DAILYSST_COST_CONTRIBUTION
- cost_gencost_boxmean.F : replace tbarfile with gencost_barfile,
  rename igen_boxmean as kgen
- cost_gencost_sstv4.F, cost_gencost_sshv4.F : rm myiter, mytime args
- cost_gencost_bpv4.F (new) : to replace cost_bp using gencost,
  added to ecco_ad_diff.list


Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Mon Jun 9 17:55:22 2014 UTC (9 years, 10 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64z, checkpoint65, checkpoint65a, checkpoint65b, checkpoint65c, checkpoint65d, checkpoint65e
Changes since 1.22: +4 -39 lines
Diff to previous 1.22
- remove ALLOW_HIGHLAT_ALTIMETRY codes (now in IO routines)
- impose minium area for global mean constraint
     ( slaoffset_sum.GT.0.25 _d 0 * globalArea ) )


Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Mon Jun 9 17:53:59 2014 UTC (9 years, 10 months ago) by gforget
Branch: MAIN
Changes since 1.21: +33 -15 lines
Diff to previous 1.21
- implement slaoffset constraint (gencost_name is 'sshv4-gmsl')


Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Mon Jun 9 17:52:28 2014 UTC (9 years, 10 months ago) by gforget
Branch: MAIN
Changes since 1.20: +18 -25 lines
Diff to previous 1.20
subtract anom_slaobs from pointwise
 - merge irec loops of PARTS 4 & 5
 - compute pointwise at krec = irec + (ndaysave/2)
 - subtract slaoffset and anom_psMslaobs


Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Mon Jun 9 17:51:46 2014 UTC (9 years, 10 months ago) by gforget
Branch: MAIN
Changes since 1.19: +82 -38 lines
Diff to previous 1.19
subtract time variable global mean in lsc term
 - remove anom_psMtpobs in PART 4 (is not used in lsc!)
 - introduce slaoffset then compute it then
   subtract it from anom_psMslaobs (and anom_slaobs)


Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Mon Jun 9 17:50:59 2014 UTC (9 years, 10 months ago) by gforget
Branch: MAIN
Changes since 1.18: +70 -58 lines
Diff to previous 1.18
revise lsc and pointwise terms wrt time mean removal
 - rename mean_slaobs2 as mean_slaos_model
   and mean_slaobs as mean_slaobs_mdt
 - introduce mean_psMslaobs (and MSK)
 - use it instead of mean_psMtpobs etc (and MSK)
   in the computation of lsc and pointwise terms


Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Mon Jun 9 17:50:12 2014 UTC (9 years, 10 months ago) by gforget
Branch: MAIN
Changes since 1.17: +19 -19 lines
Diff to previous 1.17
- fix bug in gencost indexing.


Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Mon Apr 7 18:08:50 2014 UTC (10 years ago) by atn
Branch: MAIN
CVS Tags: checkpoint64v, checkpoint64w, checkpoint64x
Changes since 1.16: +48 -32 lines
Diff to previous 1.16
Replace hardcoded mdt year range with runtime param mdt[start,end]date[1,2],
rename variable "tpmean" as "mdt" and "topexmeanfile" as "mdtdatfile",
add error+stop statement if "topexmeanfile" is used in data.ecco


Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Tue Apr 1 08:03:42 2014 UTC (10 years, 1 month ago) by atn
Branch: MAIN
Changes since 1.15: +10 -5 lines
Diff to previous 1.15
o move smooth2Ddiffnbt param from pkg/smooth to pkg/ecco
o minor bug fix in set gencost default values in ecco_readparms.F


Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Sun Jan 26 06:10:10 2014 UTC (10 years, 3 months ago) by atn
Branch: MAIN
CVS Tags: checkpoint64t, checkpoint64u
Changes since 1.14: +9 -6 lines
Diff to previous 1.14
Replace hardcoded value 300 for eccov4 with general runtime param smooth2Ddiffnbt


Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Tue Nov 19 20:36:54 2013 UTC (10 years, 5 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint64r, checkpoint64s
Changes since 1.13: +38 -7 lines
Diff to previous 1.13
- refine large scale anomalies cost computation : subsample smoothed field
  to observed points (at medium day), remove 1/ndaysaveRL factors,
  remove weekly stepping, output sladiff_subsample


Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Tue Nov 19 20:20:52 2013 UTC (10 years, 5 months ago) by gforget
Branch: MAIN
Changes since 1.12: +34 -28 lines
Diff to previous 1.12
- refine MDT misfit computation : more consistent offset computations,
  clean up of "doReference or not" logic, mask out mdt points where
  less than 100 altimeter data points.


Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Tue Nov 19 19:56:51 2013 UTC (10 years, 5 months ago) by gforget
Branch: MAIN
Changes since 1.11: +7 -6 lines
Diff to previous 1.11
- fix bug, reported by O. Wang, in MDT re-referencing, which was always off.


Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Tue Feb 5 14:51:09 2013 UTC (11 years, 2 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint64d, checkpoint64e, checkpoint64f, checkpoint64g, checkpoint64h, checkpoint64i, checkpoint64j, checkpoint64k, checkpoint64l, checkpoint64m, checkpoint64n, checkpoint64o, checkpoint64p, checkpoint64q
Changes since 1.10: +35 -13 lines
Diff to previous 1.10
- add compile switches ALLOW_SHALLOW_ALTIMETRY and ALLOW_HIGHLAT_ALTIMETRY.


Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Tue Oct 2 01:40:03 2012 UTC (11 years, 7 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint64, checkpoint64a, checkpoint64b, checkpoint64c
Changes since 1.9: +1 -3 lines
Diff to previous 1.9
- introduce gencost_flag(k) that is currently one of 3 values :
   0  if cost term k is not used
   1  if cost term is fully interactive (i.e. uses gencost_datafile)
  -1  if ocst term is pre-specified (i.e. uses gencost_name)
- introduce using_gencost(k) logical in line with using_topex etc.

- ecco_readparms.F : assign using_gencost(k) & gencost_flag(k) based
  on gencost_datafile(k).NE.' ' (fully interactive cost terms)
  or on gencost_name(k) (for pre-specified generic cost terms)
- throughout : replace "if ( gencost_datafile(num_var) .ne. ' ' )"
  with "if ( using_gencost(num_var) ) then"
- throughout : rm ALLOW_GENCOST_FREEFORM CPP option. The same
  thing is now achieved dynamically based on gencost_flag.
- ecco_check.F : add gencost checks, account for "data"startdate
  in ecco_check_files, add topexmean check.


Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Tue Sep 4 15:04:51 2012 UTC (11 years, 7 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint63s
Changes since 1.8: +21 -8 lines
Diff to previous 1.8
- remove #ifdef ALLOW_SMOOTH_CORREL3D brackets.
- add more relevant #ifdef ALLOW_SMOOTH ones.
- sort out useAtmWind, useSMOOTH, ctrlSmoothCorrel2D.


Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Fri Aug 10 19:45:26 2012 UTC (11 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint63r
Changes since 1.7: +10 -10 lines
Diff to previous 1.7
include ECCO_OPTIONS.h instead of COST_CPPOPTIONS.h


Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Mon Aug 6 20:41:54 2012 UTC (11 years, 8 months ago) by heimbach
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6
Clean up inclusions of CTRL_SIZE.h


Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Fri Jun 22 02:04:06 2012 UTC (11 years, 10 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint63o, checkpoint63p, checkpoint63q
Changes since 1.5: +3 -1 lines
Diff to previous 1.5
- add run-time switch usePROFILES.


Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Tue Feb 28 00:51:07 2012 UTC (12 years, 2 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint63k, checkpoint63l, checkpoint63m, checkpoint63n
Changes since 1.4: +6 -6 lines
Diff to previous 1.4
- goals:
   -- fix startdate.NE.modelstartdate cases and related model crashes.
   -- alleviate the need for altimeter etc. files (of zeros) for e.g. 1948-1991.
- accross the board issues that should be fixed in the updated routines :
   -- dont try to read a file that does no exist
   -- take proper account of startdate (e.g. ymod .GE. yday)
   -- use cal_FullDate to complete date
   -- if .le. spval (not .lt. spval) then mask out
- more specific issues and updates :
  -- cost_gencost_ssht4.F : hard-code startdate to 19920101 (no run time param avail).
  -- cost_readscatxfields.F & cost_gencost_sstv4.F : added option for debbuging
     (if ALLOW_ECCO_DEBUG is defined then to print date info to stdout)
  -- cost_sla_read_yd.F : added startdate as input parameter
  -- ecco_summary.F : bug fix; include AD_CONFIG.h was missing.


Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Thu Feb 23 23:31:48 2012 UTC (12 years, 2 months ago) by gforget
Branch: MAIN
Changes since 1.3: +40 -3 lines
Diff to previous 1.3
- dont create ad files unless adjoint run.
- bug fix : sla_startdate etc. rather than modelstartdate.
- ecco_cost_driver.F : dont do cost_ssh.F when cost_gencost_sshv4.F.
- cost_gencost_sshv4.F : only re-reference MDT if altimeter period is covered.


Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Wed May 18 03:15:38 2011 UTC (12 years, 11 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint62y, checkpoint62z, checkpoint63, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63h, checkpoint63i, checkpoint63j
Changes since 1.2: +24 -5 lines
Diff to previous 1.2
- ifndef ALLOW_PSBAR_MEAN remove sea level mean from psbar
- mask out data beyond abs(lat)>66


Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Mon Oct 25 20:42:31 2010 UTC (13 years, 6 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint62n, checkpoint62o, checkpoint62p, checkpoint62q, checkpoint62r, checkpoint62s, checkpoint62t, checkpoint62u, checkpoint62v, checkpoint62w, checkpoint62x
Changes since 1.1: +2 -2 lines
Diff to previous 1.1
- cost_gencost_sshv4.F and cost_sshv4.F: compute smoothed
  35 day-average fields once a week only -- for speed up.
- ecco_cost_driver.F: necessary includes.


Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Tue Sep 7 21:20:39 2010 UTC (13 years, 7 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint62k, checkpoint62l, checkpoint62m
Pointwise vs Large-Scale cost function terms for
MDT and bin averaged daily SLA (cost_gencost_sshv4.F)
and bin averaged daily SST (cost_gencost_sstv4.F)
within the gencost framework.

note:
  cost_gencost_sshv4.F v1.1 is the same as
  cost_sshv4.F v1.5 except that it
  takes advantage of the gencost framework.


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.22