ArcticSnow / TopoPyScale

TopoPyScale: a Python library to perform simplistic climate downscaling at the hillslope scale
https://topopyscale.readthedocs.io
MIT License
39 stars 9 forks source link

Removal of SVF file (ds_param.nc) not desired when cleaning? #57

Open joelfiddes opened 1 year ago

joelfiddes commented 1 year ago
ArcticSnow commented 1 year ago

good point Joel. I ran into this behavior that is frustrating, indeed. We could instead have an overwrite flag in the compute_dem_parameter(). Would that be a good alternative?

joelfiddes commented 1 year ago

yup - i think that would be a good solution. We still need write ds_param.nc to dem dir or else it is removed by:

` if self.config.outputs.file.clean_outputs:

remove outputs directory because if results already exist this causes concat of netcdf files

        try:
            shutil.rmtree(self.config.project.directory + '/outputs/')
            print('---> Output directory cleaned')
        except:
            os.makedirs('/'.join((self.config.project.directory, 'outputs/')))

`

ShawanDeba commented 1 year ago

Hi everyone. can anyone just give me a gist of what I need to do? then I can proceed with the work

joelfiddes commented 1 year ago

@ShawanDeba Welcome aboard! If you would like to get involved a first good step would be to try deploy the code on your laptop (linux is best) and run the examples https://github.com/ArcticSnow/TopoPyScale_examples then will be easier to get into the code. I can give some pointers once you have a first successful run of the code. Let me know if you get stuck anywhere. Thanks :)