Giter Site home page Giter Site logo

Comments (4)

RuthG avatar RuthG commented on August 23, 2024

I think in Exeter we are all running a 360-day calendar, or planets with a totally different calendar, and so haven't explored this issue - but it's a good point! From a quick look at the source code I think run length is just set in days, hours and seconds in main_nml and I can't see a quick option to change this, so the best bet is likely to do it via the python wrapper.
I don't know exactly how you configure your runs, here we usually run a month, output, run the next month etc. as per the examples in Isca/exp/. If you're using that approach and you want output files to contain single Julian calendar months or years, my suggestion would be to add a loop in the python runscript that alters the run length based on which year you are running using e.g. the isleap() or monthrange() methods from the calendar module.
So specifically, I'd set up the code to alter the value of days in main_nml based on the year and/or month being run.

If you do get something of that kind coded up, that could be a nice example to add to the codebank or a README somewhere.

Hope that helps!

from isca.

sit23 avatar sit23 commented on August 23, 2024

I agree with @RuthG that there is not an obvious answer for this. One additional suggestion would be to, instead of running for 1 month at a time, run 4 years at a time. That way you'll get 3x 365 day and 1 x 366 day years in each file. Then you can split them up by year afterwards using something like cdo?

from isca.

natgeo-wong avatar natgeo-wong commented on August 23, 2024

I could get an example coded up sometime during the summer (sorry swamped with deadlines over the next two weeks).

The reason why I'm asking though, is because I'm writing a Julia package IscaTools.jl that analyzes Isca output and uses calendar features to determine how to analyse the output (monthly, yearly averages when output is daily/sub-daily) and does some analysis and calculations.

I generally use the "NO_CALENDAR" option myself, generally because that's what I grew up with (in a modelling sense) with the GFDL version of FMS at Caltech.

from isca.

RuthG avatar RuthG commented on August 23, 2024

The analysis package sounds great!
And of course, no rush, thanks for doing that too. I think we've got a resolution here so I'll close this for now.

from isca.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.